{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\material\\ApplicationManager.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\material\\ApplicationManager.vue","mtime":1686644562585},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"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//\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//\nimport CommonApi from '@/views/Manage/CommonApi.js';\nimport Print from 'vue-print-nb';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport purchasingManage from '@/api/manager/material/purchasingManage.js';\nimport purchasingApi from \"./api/PurchasingApi\";\nimport ApplicationManageDialog from '@/views/Manage/material/components/ApplicationManageDialog.vue';\nexport default {\n directives: {\n Print: Print\n },\n name: 'PurchasingManage',\n components: {\n ApplicationManageDialog: ApplicationManageDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n userSelectOptions: [],\n // isType: true,\n printMe: {\n // 打印区域\n id: 'printAvailable',\n // 是否有打印预览\n preview: false\n },\n printDialogVisible: false,\n purchasingDetailList: [],\n params: {\n applicant: '',\n applicantName: '',\n applicationCase: '',\n applicationDate: '',\n approver: '',\n approvedDate: '',\n id: null,\n memo: '',\n pkVal: '',\n detailList: [],\n sn: 0,\n version: 0\n },\n tableData: [// {\n // index: 1,\n // applicationDeptNum: '12',\n // applicationTitle: '开关',\n // applicationMent: '技术部',\n // applicantPeople: '张三',\n // applicantData: '2022-1-3',\n // applicantTime: '2023-3-5',\n // createDate: '2022-1-2',\n // status: 'COMPLETED'\n // }\n ],\n url: {\n delete: '/manager/material/purchasing/delete/'\n },\n options: [{\n value: '1',\n label: '申请中'\n }, {\n value: '2',\n label: '已确认'\n }],\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'applyTitle',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'applicant',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'BETWEEN',\n parentGroup: '',\n property: 'applicationDate',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'IN',\n parentGroup: '',\n property: 'status',\n relation: 'AND',\n value: ''\n }],\n StshowFormDias: false // fuelTypes: []\n\n };\n },\n created: function created() {\n // this.fuelTypes = dictContracts.getDictItemsFromCache('cmgt_rylx')\n this.commonApiData();\n },\n mounted: function mounted() {},\n methods: {\n commonApiData: function commonApiData() {\n var _this = this;\n\n CommonApi.loadSelectOptions({\n name: 'manageCommonService.getAllUsers',\n query: '96240625-934F-490B-8AA6-0BC775B18468'\n }, function (res) {\n // console.log('=========userSelectOptions=====', res)\n _this.userSelectOptions = res; // this.userSelectOptions.forEach(item => {\n // this.tableData.forEach(v => {\n // if (item.id == v.applicant) {\n // // console.log(item, v)\n // v.applicant = item.fullname\n // }\n // })\n // })\n });\n },\n //领用人\n // userChange(v, s) {\n // const vobj = this.userSelectOptions.find(u => {\n // return u.id === v\n // })\n // if (vobj) {\n // this.params.org = vobj.orgName\n // this.params.orgId = vobj.orgId\n // }\n // },\n //打印弹出\n printMask: function printMask(index, row) {\n var _this2 = this;\n\n console.log(row);\n purchasingApi.getDetailListDetail(row.id).then(function (res) {\n // console.log(res)\n _this2.purchasingDetailList = res.value;\n });\n this.params = row;\n this.printDialogVisible = true;\n },\n //打印保存\n handleSave: function handleSave() {},\n //打印取消\n handleClose: function handleClose() {\n this.printDialogVisible = false;\n },\n // 重置\n clearQuerys: function clearQuerys() {\n this.querys[0].value = '';\n this.querys[1].value = '';\n this.querys[2].value = '';\n this.querys[3].value = '';\n },\n // 获取list\n loadData: function loadData(page) {\n var _this3 = this;\n\n if (page) {\n this.queryParam.pageBean.page = page;\n } // this.queryParam.groupRelation = 'AND'\n // this.loading = true\n // this.tableData = []\n\n\n this.queryParam.querys = [];\n\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0]);\n }\n\n if (this.querys[1].value) {\n this.queryParam.querys.push(this.querys[1]);\n }\n\n if (this.querys[2].value) {\n this.queryParam.querys.push(this.querys[2]);\n }\n\n if (this.querys[3].value !== '') {\n this.queryParam.querys.push(this.querys[3]);\n } // else {\n // this.queryParam.querys.push({\n // group: 'main',\n // operation: 'IN',\n // parentGroup: '',\n // property: 'status',\n // relation: 'AND',\n // value: '1,2'\n // })\n // }\n // if (this.isType) {\n // }\n\n\n this.queryParam.sorter = [{\n direction: 'ASC',\n property: 'sn'\n }];\n purchasingApi.recipientsQuery(this.queryParam, function (res) {\n // console.log('-------------load-------------')\n console.log(res);\n _this3.total = res.total;\n _this3.isType = false;\n _this3.tableData = res.rows; // this.$set(this.tableData)\n\n _this3.commonApiData();\n\n _this3.loading = false;\n });\n },\n // 修改\n handleUpdate: function handleUpdate(row) {\n var _this4 = this;\n\n console.log(row);\n purchasingManage.loadMaterialDetail(row.id, function (res) {\n console.log('---res:', res);\n\n _this4.$refs.formModal.Update(row, res.value);\n });\n },\n closeStshowForm: function closeStshowForm() {\n this.StshowFormDias = false;\n },\n //确认申请单\n // handleEdit(index, row) {\n // //确认申请单\n // this.$confirm('是否确认申请单?', '提示', {\n // confirmButtonText: '确定',\n // cancelButtonText: '取消',\n // type: 'warning'\n // }).then(() => {\n // purchasingApi.purchasingUpdateStatus({id: row.id}).then(res => {\n // console.log(res)\n // // this.purchasingDetailList = res.value\n // if (res.state) {\n // this.$message({\n // type: 'success',\n // message: '确认申请成功!'\n // })\n // this.loadData()\n // } else {\n // this.$message({\n // type: 'info',\n // message: '已取消确认申请'\n // })\n // }\n // })\n // })\n // },\n //打印\n printBtn: function printBtn() {}\n }\n};",null]}