{"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\\ProjectManagement\\projectPurchaseRequisition\\component\\projectPurchaseAddDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\ProjectManagement\\projectPurchaseRequisition\\component\\projectPurchaseAddDialog.vue","mtime":1719607232277},{"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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 Breadcrumb from '@/components/Breadcrumb/index.vue';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport procurementManagement from '@/api/procurementManagement';\nexport default {\n name: 'domesticDialog',\n components: {\n Breadcrumb: Breadcrumb\n },\n props: {\n editData: Object\n },\n data: function data() {\n return {\n importData: {\n title: '物料导入',\n templateName: '物料导入模板.xls',\n downloadUrl: '/../fvue/static/excel/material.xlsx',\n importUrl: window.context.portal + '/biz/Gs/v1/importExcelData',\n showProject: true,\n header: '物料导入'\n },\n saveing: false,\n breadcrumbOpt: [{\n breadcrumbName: '采购申请'\n }, {\n breadcrumbName: '新增'\n }],\n projectData: [],\n rules: {\n projectName: [{\n required: true,\n message: '请输入项目名称',\n trigger: 'blur'\n }],\n projectManager: [{\n required: true,\n message: '请输入项目负责人',\n trigger: 'blur'\n }],\n completionTime: [{\n required: true,\n message: '请选择建设时间',\n trigger: 'blur'\n }],\n projectType: [{\n required: true,\n message: '请选择项目类型',\n trigger: 'blur'\n }]\n },\n parameter: {\n projectName: '',\n projectManager: '',\n projectType: '',\n completionTime: '',\n projectMoney: '',\n remarks: '',\n projectInfoList: []\n }\n };\n },\n created: function created() {\n this.addModifyBtn(); // 数据单位\n\n this.projectData = dictUtils.getDictItemsFromCache('xmlx');\n },\n mounted: function mounted() {},\n methods: {\n //列表删除行\n addTable: function addTable() {\n this.parameter.projectInfoList.push({\n matName: '',\n matCode: '',\n matCompanyCode: '',\n matMaterial: '',\n matSpec: '',\n matNum: '',\n matUnit: '',\n procurementMethod: '',\n matBrand: '',\n demandDate: '',\n matBaseExt: '',\n matOtherExt: '',\n id: '',\n key: new Date()\n });\n },\n //列表删除行\n delTable: function delTable(index, row) {\n this.parameter.projectInfoList.splice(index, 1); // if (row.id) {\n // this.parameter.deleteDetailsId.push(row.id)\n // }\n },\n //编辑\n addModifyBtn: function addModifyBtn() {\n if (this.$route.query.editRows) {\n console.log();\n this.breadcrumbOpt[1].breadcrumbName = '编辑';\n this.modifychoData(this.$route.query.editRows);\n } else {\n this.breadcrumbOpt[1].breadcrumbName = '新增';\n }\n },\n //获取修改回显数据\n modifychoData: function modifychoData(val) {\n var _this = this;\n\n procurementManagement.projectApprovalProDetailsSelectOne(val.id).then(function (res) {\n _this.parameter = res.value;\n });\n },\n // 关闭//面包屑点击\n handleClose: function handleClose() {\n if (this.breadcrumbOpt[1].breadcrumbName === '编辑') {\n this.$router.push({\n name: 'projectPurchaseRequisition',\n params: {\n pageBean: this.$route.query.pageBean\n }\n });\n } else {\n this.$router.push({\n name: 'projectPurchaseRequisition'\n });\n }\n\n this.parameter = {};\n },\n // 保存\n handleSave: function handleSave() {\n var _this2 = this;\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n _this2.saveing = true;\n procurementManagement.projectApprovalProDetailsSaveOrUpdate(_this2.parameter).then(function (res) {\n _this2.saveing = false;\n\n if (res.state) {\n _this2.$message.success(res.message);\n\n if (_this2.breadcrumbOpt[1].breadcrumbName === '编辑') {\n _this2.$router.push({\n name: 'projectPurchaseRequisition',\n params: {\n pageBean: _this2.$route.query.pageBean\n }\n });\n } else {\n _this2.$router.push({\n name: 'projectPurchaseRequisition'\n });\n }\n }\n });\n }\n });\n }\n }\n};",null]}