{"remainingRequest":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\orderManagement\\orderQuery\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\orderManagement\\orderQuery\\index.vue","mtime":1713259781131},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"D:/jenkins/workspace/jd_cgpt_fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.reflect.delete-property\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 pagination from '@/components/pagination';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport purchaseOrder from '@/api/BasicDataManagement/purchaseOrder.js';\nimport req from '@/request.js';\nimport utils from '@/utils.js';\nvar portal = window.context.portal;\nexport default {\n name: 'DemandEntry',\n components: {\n pagination: pagination\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n currentPage: 1,\n tableMaxHeight: 400,\n loading: false,\n tableLoading: false,\n tableData: [{\n id: 1,\n code: '13353434334',\n date: '2016-05-02',\n name: '王小虎',\n state1: '1',\n state2: '1',\n address: '上海市普陀区金沙江路 1518 弄'\n }, {\n id: 2,\n code: '13353434334',\n date: '2016-05-04',\n name: '王小虎',\n state1: '2',\n state2: '2',\n address: '上海市普陀区金沙江路 1517 弄'\n }, {\n id: 3,\n code: '13353434334',\n date: '2016-05-01',\n name: '王小虎',\n state2: '3',\n state1: '1',\n address: '上海市普陀区金沙江路 1519 弄'\n }, {\n id: 4,\n code: '13353434334',\n date: '2016-05-03',\n name: '王小虎',\n state2: '1',\n state1: '1',\n address: '上海市普陀区金沙江路 1516 弄'\n }],\n multipleSelection: [],\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n }\n },\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n }\n },\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n searchForm: {// state: '1',\n },\n // 顶部搜索对象\n deleteIds: '',\n // 是否选中列表解锁删除按钮\n activeCollapse1: ['1', '2'],\n fileList: [],\n // 文件上传\n edit: false,\n // 是否是修改功能\n currentDataDel: [],\n // 删除时排查是否有在审核的数据\n statusList: [{\n label: '供应商待确认',\n value: '2'\n }, {\n label: '已确认',\n value: '3'\n }],\n isExpend: false,\n // 搜索展开\n dialogVisible: false,\n feedbackForm: {}\n };\n },\n mounted: function mounted() {},\n created: function created() {\n if (this.$route.params.pageBean) {\n this.params = this.$route.params.pageBean;\n this.pageResult = this.$route.params.pageBean.pageBean;\n }\n\n this.loadData();\n },\n methods: {\n handleSure: function handleSure(rows) {\n var _this = this;\n\n this.$confirm('确定要确认订单吗?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n purchaseOrder.batchConfirmation(rows.id).then(function (res) {\n if (res.data.state) {\n _this.$message.success('确认订单成功!');\n\n _this.loadData();\n }\n });\n });\n },\n handleFeedback: function handleFeedback() {\n this.dialogVisible = true;\n },\n handleClose: function handleClose(done) {\n done();\n },\n handleMoreSearch: function handleMoreSearch() {\n this.isExpend = !this.isExpend;\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n //获取数据\n loadData: function loadData(params) {\n var _this2 = this;\n\n this.tableLoading = true;\n this.tableData = [];\n var data = [];\n\n if (params) {\n data = params;\n } else {\n this.params.querys = [{\n group: 'main',\n operation: 'NOT_EQUAL',\n parentGroup: '',\n property: 'status',\n relation: 'AND',\n value: 1\n }];\n data = this.params;\n console.log(data);\n }\n\n purchaseOrder.queryEventsList(data).then(function (res) {\n _this2.tableLoading = false;\n var data = res && res.data || {};\n _this2.tableData = data.value.rows || [];\n console.log('返回的表格数据', _this2.tableData);\n _this2.pageResult = {\n page: data.value.page,\n pageSize: data.value.pageSize,\n total: data.value.total\n };\n });\n },\n // 编辑\n handleEdit: function handleEdit(rows) {\n this.$refs.form.clearValidate();\n this.$router.push({\n name: 'purchaseOrderAddDialog',\n query: {\n editRows: rows,\n pageBean: this.params\n }\n });\n },\n // 详情\n handleDetail: function handleDetail(rows) {\n this.$router.push({\n name: 'orderQueryDetail',\n query: {\n detailRows: rows,\n pageBean: this.params\n }\n });\n },\n // 删除\n handleDelete: function handleDelete() {\n var _this3 = this;\n\n this.$confirm(this.$t('common.sureDelete'), this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n purchaseOrder.batchDelete(_this3.deleteIds).then(function (res) {\n _this3.loadData(_this3.params);\n });\n });\n },\n //重置\n clearSearchForm: function clearSearchForm() {\n this.searchForm = {};\n this.handleSearch();\n },\n // 顶部搜索\n handleSearch: function handleSearch(searchForm) {\n var obj = this.searchForm;\n console.log(obj);\n var querys = [{\n group: 'main',\n operation: 'NOT_EQUAL',\n parentGroup: '',\n property: 'status',\n relation: 'AND',\n value: 1\n }];\n\n for (var i in obj) {\n if (obj[i]) {\n if (i == 'orderCreatedate') {\n querys.push({\n group: 'main',\n operation: 'GREAT_EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i][0] + ' 00:00:00'\n }, {\n group: 'main',\n operation: 'LESS_EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i][1] + ' 23:59:59'\n });\n } else {\n querys.push({\n group: 'main',\n operation: i == 'name' || i == 'code' || i == 'companyName' || i == 'matCompanyName' || i == 'vendorName' ? 'LIKE' : 'EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n }\n }\n }\n\n console.log(querys, 'querys');\n this.params.querys = querys;\n console.log(this.params, 'params');\n this.loadData(this.params);\n },\n // 表单提交保存\n submit: function submit(status) {\n var _this4 = this;\n\n this.dialogForm.status = status; // 删除approvalComments参数确保能够保存\n\n Reflect.deleteProperty(this.dialogForm, 'approvalComments');\n this.$refs.form.validate(function (valid) {\n if (valid) {\n _this4.loading = true;\n purchaseOrder.batchSubmit(_this4.dialogForm).then(function (res) {\n console.log('res', res);\n\n if (res.data.state) {\n _this4.dialog.visible = false;\n\n _this4.loadData(_this4.params);\n }\n\n if (!res.errorMsg) {\n _this4.$message({\n message: !_this4.edit ? '添加成功' : '修改成功',\n type: 'success'\n });\n\n _this4.editVisible = false;\n }\n\n _this4.loading = false;\n }).catch(function () {\n _this4.loading = false;\n });\n } else {\n return false;\n }\n });\n },\n handleSelectionChange: function handleSelectionChange(currentData) {\n this.currentDataDel = currentData;\n if (currentData.length === 0) return this.deleteIds = '';\n var ids = [];\n currentData.forEach(function (item) {\n ids.push(item.id);\n }); // this.$message.error(`【${item.demandTopic}】已上报待审核不能删除!`)\n\n this.deleteIds = ids.join(',');\n },\n handleCurrentChange: function handleCurrentChange(page) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n page: page\n });\n this.loadData(this.params);\n },\n handleSizeChange: function handleSizeChange(pageSize) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n pageSize: pageSize\n });\n this.loadData(this.params);\n }\n },\n computed: {\n SearchPanel: function SearchPanel() {\n return {\n '--searchPanel': this.searchPanel + 'px'\n };\n }\n }\n};",null]}