{"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\\ProcurementManagement\\approvalProcurement\\component\\purchasingUnits.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\ProcurementManagement\\approvalProcurement\\component\\purchasingUnits.vue","mtime":1720730442274},{"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\";\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//\n//\n//\n//\n//\nimport { TableMixin } from '@/mixins/tableMixin';\nimport basicData from '@/api/basicData';\nimport procurementManagement from '@/api/procurementManagement';\nexport default {\n name: 'CmgtSaftyDangerCheckplanFormDialogTroubleshooting',\n // 排查计划明细\n props: {\n useOrgList: Array\n },\n data: function data() {\n return {\n showTroubleshooting: false,\n // 控制弹层显示与隐藏\n multipleSelection: [],\n selectedValue: [],\n dialogVisible: false,\n tableHeight: 600,\n loading: false,\n data: [],\n matIfPlat: '',\n pickerOptions: {\n shortcuts: [{\n text: '最近一周',\n onClick: function onClick(picker) {\n var end = new Date();\n var start = new Date();\n start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);\n picker.$emit('pick', [start, end]);\n }\n }, {\n text: '最近一个月',\n onClick: function onClick(picker) {\n var end = new Date();\n var start = new Date();\n start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);\n picker.$emit('pick', [start, end]);\n }\n }, {\n text: '最近三个月',\n onClick: function onClick(picker) {\n var end = new Date();\n var start = new Date();\n start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);\n picker.$emit('pick', [start, end]);\n }\n }]\n },\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'preparedOrgName',\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: 'EQUAL',\n parentGroup: '',\n property: 'status',\n relation: 'AND',\n value: '3'\n }, {\n group: 'main',\n operation: 'NOT_EQUAL',\n parentGroup: '',\n property: 'procurementMethod',\n relation: 'AND',\n value: '6'\n }],\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n }\n },\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n querys: []\n }\n };\n },\n mixins: [TableMixin],\n created: function created() {},\n methods: {\n // 动态计算表格的高度,自适应当前容器\n calcTableHeight: function calcTableHeight() {\n this.tableHeight = this.$refs.tableContent.offsetHeight;\n },\n rowKey: function rowKey(row) {\n return row.id;\n },\n //搜索\n handleSearch: function handleSearch() {\n this.loadData();\n },\n //重置\n handleReset: function handleReset() {\n this.querys[0].value = '';\n this.querys[1].value = '';\n this.querys[2].value = '3';\n this.querys[3].value = '6';\n this.loadData();\n },\n //显示弹框\n add: function add(row) {\n this.matIfPlat = row;\n this.showTroubleshooting = true;\n this.$nextTick(function () {\n var _this = this;\n\n this.useOrgList.forEach(function (item) {\n if (_this.tableData.some(function (data) {\n return data.id === item.id;\n })) {\n _this.$refs.multipleSelection.toggleRowSelection(item, true); //这样就可以了\n\n } else {\n _this.$refs.multipleSelection.toggleRowSelection(item, true); //这样就可以了\n\n }\n });\n });\n this.loadData();\n },\n // 获取list\n loadData: function loadData() {\n var _this2 = this;\n\n this.loading = true;\n this.tableData = [];\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 }\n\n this.queryParam.querys.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'matIfPlat',\n relation: 'AND',\n value: this.matIfPlat\n });\n this.queryParam.sorter = [{\n direction: 'DESC',\n property: 'createTime'\n }];\n this.$http.post('${portal}/purchasingApplication/v1/pageCurOrgData', this.queryParam).then(function (res) {\n if (res.data.state) {\n _this2.queryParam.pageBean.total = res.data.value.total;\n _this2.tableData = res.data.value.rows;\n\n _this2.$set(_this2.tableData);\n\n _this2.loading = false;\n }\n });\n },\n tableSelect: function tableSelect(rows, row) {\n var selected = rows.length && rows.indexOf(row) !== -1;\n\n if (!selected) {\n this.selectedValue = rows;\n } else {\n this.selectedValue = [];\n }\n },\n // 查看明细\n handleDetails: function handleDetails(row) {\n console.log(row, 'row');\n this.params.querys = [];\n this.params.querys.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'purchasingApplicationId',\n relation: 'AND',\n value: row.id\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'matIfPlat',\n relation: 'AND',\n value: row.matIfPlat\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'status',\n relation: 'AND',\n value: '1'\n });\n this.getDetals();\n this.dialogVisible = true;\n },\n getDetals: function getDetals() {\n var _this3 = this;\n\n this.$http.post('${portal}/bizPurchasingApplicationDetails/v1/page', this.params).then(function (res) {\n console.log(res, 'res');\n\n if (res.data.state) {\n _this3.data = res.data.value.rows;\n _this3.params.pageBean.total = res.data.value.total;\n _this3.params.pageBean.page = res.data.value.page;\n _this3.params.pageBean.pageSize = res.data.value.pageSize;\n }\n });\n },\n dialogBeforeClose: function dialogBeforeClose() {\n this.dialogVisible = false;\n },\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n // 点击关闭按钮\n handleClose: function handleClose() {\n this.$refs.multipleSelection.clearSelection();\n this.showTroubleshooting = false;\n },\n // 保存按钮\n handleSave: function handleSave() {\n var list = [];\n list = this.multipleSelection;\n console.log(list, 'list');\n this.$emit('addDetail', list);\n this.handleClose();\n },\n handleCurrentChange: function handleCurrentChange(page) {\n this.queryParam.pageBean = _objectSpread(_objectSpread({}, this.queryParam.pageBean), {}, {\n page: page\n });\n this.loadData();\n },\n handleSizeChange: function handleSizeChange(pageSize) {\n this.queryParam.pageBean = _objectSpread(_objectSpread({}, this.queryParam.pageBean), {}, {\n pageSize: pageSize\n });\n this.loadData();\n },\n currentChange: function currentChange(page) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n page: page\n });\n this.getDetals();\n },\n sizeChange: function sizeChange(pageSize) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n pageSize: pageSize\n });\n this.getDetals();\n }\n }\n};",null]}