{"remainingRequest":"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\\purchaseRequisition\\component\\selfPurchaseRequisition.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\ProcurementManagement\\purchaseRequisition\\component\\selfPurchaseRequisition.vue","mtime":1720730442290},{"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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n import pagination from '@/components/pagination'\n import {TableMixin} from '@/mixins/tableMixin'\n import procurementManagement from '@/api/procurementManagement'\nimport { search } from 'core-js/fn/symbol';\nimport { status } from 'nprogress';\n export default {\n name: 'DemandEntry',\n components: {\n pagination\n },\n mixins: [TableMixin],\n data() {\n return {\n tableHeight: 1000,\n tableData: [],\n handleDeleteActive: true,\n handleDeleteId: [],\n submiting:false,\n search:{\n status:'1',\n },\n tableLoading: false,\n options:[{\n value:'1',label:'草稿'\n },{\n value:'2',label:'审批中'\n },{\n value:'3',label:'已审批'\n },{\n value:'8',label:'驳回'\n }],\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n sorter: [\n {\n direction: 'DESC',\n property: 'create_time_'\n }\n ]\n },\n querys: [\n {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'preparedOrgName',\n relation: 'AND',\n value: ''\n },\n {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'applicationNum',\n relation: 'AND',\n value: ''\n },\n {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'status',\n relation: 'AND',\n value: '1'\n },\n {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'matIfPlat',\n relation: 'AND',\n value: '0'\n },\n {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'applicationType',\n relation: 'AND',\n value: ''\n }\n ]\n }\n },\n mounted() {\n //页面缩放从新计算表格的高度\n window.addEventListener('resize', this.calcTableHeight)\n },\n created() {\n this.loadData()\n },\n beforeDestroy() {\n window.removeEventListener('resize', this.calcTableHeight)\n },\n methods: {\n // 动态计算表格的高度,自适应当前容器\n calcTableHeight() {\n this.tableHeight = this.$refs.tableContent.offsetHeight\n },\n //获取数据\n loadData() {\n this.tableLoading = true\n this.queryParam.querys = []\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0])\n }\n if (this.querys[1].value) {\n this.queryParam.querys.push(this.querys[1])\n }\n if (this.querys[2].value) {\n this.queryParam.querys.push(this.querys[2])\n }\n if (this.querys[3].value) {\n this.queryParam.querys.push(this.querys[3])\n }\n if (this.querys[4].value) {\n this.queryParam.querys.push(this.querys[4])\n }\n procurementManagement\n .bizPurchasingApplicationPage(this.queryParam)\n .then(res => {\n this.queryParam.pageBean.total = res.value.total\n this.tableLoading = false\n this.tableData = res.value.rows\n })\n },\n //添加\n handleAdd() {\n this.$router.push({\n name: 'purchaseAddDialog',\n query: {type:0}\n })\n },\n // 编辑\n handleEdit(rows) {\n this.$refs.form.clearValidate()\n this.$router.push({\n name: 'purchaseAddDialog',\n query: {editRows: rows, type:0}\n })\n },\n // 详情\n handleDetail(rows) {\n this.$router.push({\n name: 'purchaseDetail',\n query: {detailRows: rows,type:0}\n })\n },\n seleteType(val){\n if(val== 3){ \n this.querys[2].operation = 'NOT_IN'\n this.querys[2].value = ['0','1','8']\n }else{\n this.querys[2].value = val\n this.querys[2].operation = 'EQUAL'\n }\n },\n // 提交审核\n handleSubmit(){\n this.submiting = true\n let ids = this.handleDeleteId.join(',')\n this.$http.post('${portal}/purchasingApplication/v1/updateStatus?status=2'+'&ids='+ids).then(res=>{\n if(res.data.state){\n this.$message.success(res.data.message)\n }\n this.submiting = false\n this.loadData()\n })\n },\n handleWithdraw(){\n this.submiting = true\n let ids = this.handleDeleteId.join(',')\n this.$http.post('${portal}/purchasingApplication/v1/updateStatus?status=1'+'&ids='+ids).then(res=>{\n if(res.data.state){\n this.$message.success(res.data.message)\n }\n this.submiting = false\n this.loadData()\n })\n },\n // 删除\n handleDelete() {\n this.$confirm('确定删除选中数据?', '提示', {\n confirmButtonText: '确 定',\n cancelButtonText: '取 消',\n type: 'warning'\n }).then(() => {\n procurementManagement\n .bizPurchasingApplicationRemove(this.handleDeleteId)\n .then(res => {\n if (res.state) {\n this.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000\n })\n \n this.loadData()\n }\n })\n .catch(res => {\n this.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n })\n })\n })\n },\n //重置\n clearSearchForm() {\n this.querys[0].value = ''\n this.querys[1].value = ''\n this.querys[2].value = '1'\n this.querys[3].value = '0'\n this.querys[4].value = ''\n this.querys[2].operation = 'EQUAL'\n this.search.status = '1'\n this.loadData()\n },\n // 顶部搜索\n handleSearch() {\n this.loadData()\n },\n handleSelectionChange(val) {\n if (val.length !== 0) {\n this.handleDeleteActive = false\n this.handleDeleteId = val.map(item => {\n return item.id\n })\n } else {\n this.handleDeleteActive = true\n }\n },\n handleCurrentChange(page) {\n this.queryParam.pageBean = {...this.queryParam.pageBean, page}\n this.loadData(this.queryParam)\n },\n handleSizeChange(pageSize) {\n this.queryParam.pageBean = {...this.queryParam.pageBean, pageSize}\n this.loadData(this.queryParam)\n }\n },\n computed: {\n SearchPanel() {\n return {\n '--searchPanel': this.searchPanel + 'px'\n }\n }\n }\n }\n ",null]}