{"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\\BasicDataManagement\\quoteTemplate\\component\\quoteTemplateAddDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\BasicDataManagement\\quoteTemplate\\component\\quoteTemplateAddDialog.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/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 procurementManagement from '@/api/procurementManagement';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nexport default {\n name: 'quoteTemplateAddDialog',\n components: {\n Breadcrumb: Breadcrumb\n },\n props: {\n editData: Object\n },\n data: function data() {\n return {\n breadcrumbOpt: [{\n breadcrumbName: '报价模板'\n }, {\n breadcrumbName: '新增'\n }],\n saveing: false,\n methodUnitsList: [],\n rules: {\n preparedOrgName: [{\n required: true,\n message: '请输入编制公司',\n trigger: 'blur'\n }],\n name: [{\n required: true,\n message: '请输入模板名称',\n trigger: 'blur'\n }],\n quotationMethod: [{\n required: true,\n message: '请选择报价方式',\n trigger: 'blur'\n }],\n targetType: [{\n required: true,\n message: '请选择标的类型',\n trigger: 'blur'\n }],\n isTax: [{\n required: true,\n message: '请选择是否含税价',\n trigger: 'blur'\n }],\n isEnable: [{\n required: true,\n message: '请选择是否启用',\n trigger: 'blur'\n }]\n },\n parameter: {\n preparedOrgName: '',\n remarks: '',\n quotationMethod: '1',\n targetType: '',\n detailList: [],\n isTax: '1',\n isEnable: '1',\n name: '',\n preparedOrgId: '',\n preparedOrgCode: ''\n }\n };\n },\n created: function created() {\n var _this = this;\n\n this.addModifyBtn();\n this.currentUser = JSON.parse(sessionStorage.getItem('currentUserDetail'));\n this.parameter.preparedOrgName = this.currentUser.org[0].orgName;\n this.parameter.preparedOrgId = this.currentUser.org[0].orgId;\n this.parameter.preparedOrgCode = this.currentUser.org[0].orgCode;\n var data = dictUtils.getDictItemsFromCache('cglx-jjfs');\n data.forEach(function (item) {\n if (item.value == _this.parameter.isTax) {\n _this.parameter.quoArrange = item.name;\n }\n });\n this.parameter.detailList = [{\n beckonEntry: '',\n evaluationShow: true,\n isRequired: true,\n priceEntry: '1',\n quoArrange: this.parameter.quoArrange,\n sourceType: '',\n throwEntry: '',\n throwShow: true\n }, {\n beckonEntry: '',\n evaluationShow: true,\n isRequired: true,\n priceEntry: '2',\n quoArrange: '合计金额',\n sourceType: '',\n throwEntry: '',\n throwShow: true\n }];\n },\n mounted: function mounted() {},\n methods: {\n changeIsTax: function changeIsTax(val) {\n var _this2 = this;\n\n var data = dictUtils.getDictItemsFromCache('cglx-jjfs');\n data.forEach(function (item) {\n if (val == item.value) {\n _this2.parameter.detailList[0].quoArrange = item.name;\n\n _this2.$forceUpdate();\n }\n });\n },\n //列表删除行\n addTable: function addTable() {\n if (this.parameter.detailList == undefined) {\n this.parameter.detailList = [];\n this.parameter.detailList.push({\n beckonEntry: '',\n evaluationShow: '',\n isRequired: '',\n priceEntry: '',\n quoArrange: '',\n sourceType: '',\n throwEntry: '',\n throwShow: '',\n key: new Date()\n });\n } else {\n this.parameter.detailList.push({\n beckonEntry: '',\n evaluationShow: '',\n isRequired: '',\n priceEntry: '',\n quoArrange: '',\n sourceType: '',\n throwEntry: '',\n throwShow: '',\n key: new Date()\n });\n }\n\n this.$forceUpdate();\n },\n //列表删除行\n delTable: function delTable(index, row) {\n var _this3 = this;\n\n console.log(row);\n\n if (row.id != undefined) {\n this.parameter.detailList.splice(index, 1);\n this.$http.remove('${portal}/quotationTemplateDetail/v1/' + row.id).then(function (res) {\n if (res.data.state) {\n _this3.$message.success(res.data.message);\n }\n });\n } else {\n this.parameter.detailList.splice(index, 1);\n }\n },\n //编辑\n addModifyBtn: function addModifyBtn() {\n if (this.$route.query.editRows) {\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 _this4 = this;\n\n this.$http.post('${portal}/quotationTemplate/v1/dataById?id=' + val.id).then(function (res) {\n _this4.parameter = res.data.value;\n });\n },\n // 关闭//面包屑点击\n handleClose: function handleClose() {\n if (this.breadcrumbOpt[1].breadcrumbName === '编辑') {\n this.$router.push({\n name: 'quoteTemplate'\n });\n } else {\n this.$router.push({\n name: 'quoteTemplate'\n });\n }\n\n this.parameter = {};\n },\n // 保存\n handleSave: function handleSave() {\n var _this5 = this;\n\n console.log(this.parameter, 'this.parameter');\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n _this5.saveing = true;\n\n _this5.$http.post('${portal}/quotationTemplate/v1/saveOrUpdateData', _this5.parameter).then(function (res) {\n if (res.data.state) {\n _this5.$message.success(res.data.message);\n\n if (_this5.breadcrumbOpt[1].breadcrumbName === '编辑') {\n _this5.$router.push({\n name: 'quoteTemplate',\n params: {\n pageBean: _this5.$route.query.pageBean\n }\n });\n } else {\n _this5.$router.push({\n name: 'quoteTemplate'\n });\n }\n }\n\n _this5.saveing = false;\n });\n }\n });\n }\n }\n};",null]}