{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\material\\PurchaseSchedule.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\material\\PurchaseSchedule.vue","mtime":1686706098958},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport Print from 'vue-print-nb'\r\nimport {TableMixin} from '@/mixins/tableMixin'\r\nimport purchasingManage from '@/api/manager/material/purchasingManage.js'\r\nimport purchaseSchedule from './api/PurchaseSchedule'\r\nimport purchaseScheduleDialog from '@/views/Manage/material/components/PurchaseScheduleDialog.vue'\r\n\r\nexport default {\r\n directives: {Print},\r\n name: 'PurchasingManage',\r\n components: {\r\n purchaseScheduleDialog\r\n },\r\n mixins: [TableMixin],\r\n data() {\r\n return {\r\n printTitle: '',\r\n printMe: {\r\n // 打印区域\r\n id: 'printAvailable',\r\n // 是否有打印预览\r\n preview: false\r\n },\r\n purMaterialsData: [],\r\n applicationMonthLength: '',\r\n //当月申请单数据\r\n // gridData: [],\r\n // dialogVisible: false,\r\n url: {\r\n delete: '/manager/material/purchasing/delete/'\r\n },\r\n options: [\r\n {\r\n value: '1',\r\n label: '已下单'\r\n },\r\n {\r\n value: '2',\r\n label: '已完成'\r\n },\r\n {\r\n value: '3',\r\n label: '进行中'\r\n }\r\n ],\r\n inquire: {\r\n title: '',\r\n sector: '',\r\n state: '',\r\n data: ''\r\n },\r\n querys: [\r\n {\r\n group: 'main',\r\n operation: 'LIKE',\r\n parentGroup: '',\r\n property: 'planTitle',\r\n relation: 'AND',\r\n value: ''\r\n },\r\n {\r\n group: 'main',\r\n operation: 'LIKE',\r\n parentGroup: '',\r\n property: 'orgName',\r\n relation: 'AND',\r\n value: ''\r\n },\r\n {\r\n group: 'main',\r\n operation: 'BETWEEN',\r\n parentGroup: '',\r\n property: 'planDate',\r\n relation: 'AND',\r\n value: ''\r\n },\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'status',\r\n relation: 'AND',\r\n value: ''\r\n }\r\n ],\r\n StshowFormDias: false\r\n // fuelTypes: []\r\n }\r\n },\r\n created() {\r\n // this.applicationMonth()\r\n // this.fuelTypes = dictContracts.getDictItemsFromCache('cmgt_rylx')\r\n },\r\n mounted() {},\r\n methods: {\r\n printMask(item) {\r\n purchaseSchedule.entitiesQuery(item.id, res => {\r\n console.log(res)\r\n this.printTitle = res.planTitle\r\n this.purMaterialsData = res.detailList\r\n this.$refs.import.$el.click()\r\n })\r\n },\r\n //获取当月申请单列表\r\n // applicationMonth() {\r\n // let applicationMonthData = {\r\n // groupRelation: 'AND',\r\n // pageBean: {\r\n // page: 1,\r\n // pageSize: 10,\r\n // showTotal: true\r\n // },\r\n // querys: [\r\n // {\r\n // group: 'main',\r\n // operation: 'EQUAL',\r\n // parentGroup: '',\r\n // property: 'status',\r\n // relation: 'AND',\r\n // value: '2'\r\n // }\r\n // ],\r\n // sorter: [\r\n // {\r\n // direction: 'ASC',\r\n // property: 'sn'\r\n // }\r\n // ]\r\n // }\r\n // purchaseSchedule.purchasingCount(applicationMonthData, res => {\r\n // // console.log('-------------load-------------')\r\n // console.log(res)\r\n // // this.total = res.total\r\n // this.gridData = res.value\r\n // this.applicationMonthLength = res.value.length\r\n // // this.commonApiData()\r\n // // this.loading = false\r\n // })\r\n // },\r\n //当月申请单\r\n // monthApplication() {\r\n // this.dialogVisible = true\r\n // },\r\n // 重置\r\n clearQuerys() {\r\n this.querys[0].value = ''\r\n this.querys[1].value = ''\r\n this.querys[2].value = ''\r\n this.querys[3].value = ''\r\n },\r\n // 获取list\r\n loadData(page) {\r\n if (page) {\r\n this.queryParam.pageBean.page = page\r\n }\r\n this.loading = true\r\n this.tableData = []\r\n this.queryParam.querys = []\r\n if (this.querys[0].value) {\r\n this.queryParam.querys.push(this.querys[0])\r\n }\r\n if (this.querys[1].value) {\r\n this.queryParam.querys.push(this.querys[1])\r\n }\r\n if (this.querys[2].value) {\r\n this.queryParam.querys.push(this.querys[2])\r\n }\r\n if (this.querys[3].value) {\r\n this.queryParam.querys.push(this.querys[3])\r\n }\r\n\r\n this.queryParam.sorter = [\r\n {\r\n direction: 'DESC',\r\n property: 'sn'\r\n }\r\n ]\r\n\r\n purchaseSchedule.orderQuery(this.queryParam, res => {\r\n console.log(res)\r\n this.total = res.total\r\n this.tableData = res.rows\r\n this.$set(this.tableData)\r\n this.loading = false\r\n })\r\n },\r\n // 批量删除产品类型\r\n handleDelete() {\r\n purchaseSchedule\r\n .deleteMaterialOrder(this.multipleSelection)\r\n .then(res => {\r\n if (res.state) {\r\n this.$notify({\r\n type: 'success',\r\n message: '删除成功',\r\n duration: 2000\r\n })\r\n this.queryParam.pageBean.page = 1\r\n this.loadData()\r\n }\r\n })\r\n .catch(res => {\r\n this.$notify({\r\n type: 'error',\r\n message: res.message,\r\n duration: 2000,\r\n offset: 80\r\n })\r\n })\r\n },\r\n // 修改\r\n handleUpdate(row) {\r\n console.log(row.id)\r\n // purchasingManage.loadMaterialDetail(row.id, res => {\r\n // console.log('---res:', res)\r\n // this.$refs.formModal.Update(row, res.value)\r\n // })\r\n this.$refs.formModal.Update(row)\r\n },\r\n closeStshowForm() {\r\n this.StshowFormDias = false\r\n },\r\n //操作\r\n handleEdit() {}\r\n }\r\n}\r\n",null]}