{"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\\projectLedger\\component\\addLedger.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\ProjectManagement\\projectLedger\\component\\addLedger.vue","mtime":1717533647326},{"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/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"D:/jenkins/workspace/jd_cgpt_fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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'; // import purchaseMaterial from './purchaseMaterial.vue'\n\nimport { mapState } from 'vuex';\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 activeName: 'first',\n breadcrumbOpt: [{\n breadcrumbName: '项目台账'\n }, {\n breadcrumbName: '新增'\n }],\n saveing: false,\n flexAuto: true,\n methodUnitsList: [],\n dataList: [],\n qualificationList: [],\n rules: {\n projectName: [{\n required: true,\n message: '请输入项目名称',\n trigger: 'blur'\n }],\n projectNumber: [{\n required: true,\n message: '请输入项目编号',\n trigger: 'blur'\n }],\n projectType: [{\n required: true,\n message: '请选择项目类型',\n trigger: 'blur'\n }],\n purchasingOrgName: [{\n required: true,\n message: '请输入采购单位',\n trigger: 'blur'\n }],\n projectUserName: [{\n required: true,\n message: '请输入项目负责人',\n trigger: 'blur'\n }],\n constructionStartTime: [{\n required: true,\n message: '请选择建设开始时间',\n trigger: 'blur'\n }],\n constructionCompletionTime: [{\n required: true,\n message: '请选择建设结束时间',\n trigger: 'blur'\n }],\n investment: [{\n required: true,\n message: '请输入总投资',\n trigger: 'blur'\n }],\n projectUserMobile: [{\n required: true,\n message: '请输入联系电话',\n trigger: 'blur'\n }]\n },\n procurementMethod: '',\n parameter: {\n purchasingOrgName: '',\n purchasingOrgCode: '',\n purchasingOrgId: '',\n projectCode: '',\n projectType: '1',\n serviceDetailList: [],\n equipmentDetailList: [],\n engineeringDetailList: [],\n status: '1',\n accessoryList: []\n }\n };\n },\n computed: _objectSpread({}, mapState({\n headers: function headers(state) {\n return {\n Authorization: \"Bearer \".concat(state.login.currentUser.token)\n };\n },\n action: function action() {\n return window.context.portal + '/biz/universal/v1/minioUpload';\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.purchasingOrgName = this.currentUser.org[0].orgName;\n this.parameter.purchasingOrgCode = this.currentUser.org[0].orgCode;\n this.parameter.purchasingOrgId = this.currentUser.org[0].orgId;\n\n var moment = require('moment');\n\n if (this.breadcrumbOpt[1].breadcrumbName == '新增') {\n this.$http.get('${portal}/sys/identity/v1/getNextIdByAlias?alias=xmxx_xmbh').then(function (res) {\n console.log(res, 'ressssss');\n\n if (res.data.state) {\n _this.parameter.projectCode = res.data.value;\n } else {\n _this.parameter.projectCode = '';\n }\n });\n }\n },\n mounted: function mounted() {},\n methods: {\n handleClick: function handleClick() {},\n //添加明细\n addTable: function addTable(val) {\n if (val == 'first') {\n this.parameter.serviceDetailList.push({\n category: this.parameter.projectType,\n manufacturer: '',\n matBaseExt: '',\n matBrand: '',\n matCompanyCode: '',\n matCompanyId: '',\n matCompanyName: '',\n matMaterial: '',\n matName: '',\n matNum: '',\n matOtherExt: '',\n matSpec: '',\n serviceEndTime: this.parameter.constructionStartTime,\n serviceStartTime: this.parameter.constructionCompletionTime,\n singleValuation: null,\n totalValuation: null,\n type: null,\n matUnit: '',\n key: new Date()\n });\n }\n\n if (val == 'second') {\n this.parameter.engineeringDetailList.push({\n category: this.parameter.projectType,\n manufacturer: '',\n matBaseExt: '',\n matBrand: '',\n matCompanyCode: '',\n matCompanyId: '',\n matCompanyName: '',\n matMaterial: '',\n matName: '',\n matNum: '',\n matOtherExt: '',\n matSpec: '',\n serviceEndTime: this.parameter.constructionStartTime,\n serviceStartTime: this.parameter.constructionCompletionTime,\n singleValuation: null,\n totalValuation: null,\n type: null,\n matUnit: '',\n key: new Date()\n });\n }\n\n if (val == 'third') {\n this.parameter.equipmentDetailList.push({\n category: this.parameter.projectType,\n manufacturer: '',\n matBaseExt: '',\n matBrand: '',\n matCompanyCode: '',\n matCompanyId: '',\n matCompanyName: '',\n matMaterial: '',\n matName: '',\n matNum: '',\n matOtherExt: '',\n matSpec: '',\n serviceEndTime: this.parameter.constructionStartTime,\n serviceStartTime: this.parameter.constructionCompletionTime,\n singleValuation: null,\n totalValuation: null,\n type: null,\n matUnit: '',\n key: new Date()\n });\n }\n },\n //列表删除行\n delTable: function delTable(index, row) {\n if (this.activeName == 'first') {\n this.parameter.serviceDetailList.splice(index, 1);\n }\n\n if (this.activeName == 'second') {\n this.parameter.engineeringDetailList.splice(index, 1);\n }\n\n if (this.activeName == 'third') {\n this.parameter.equipmentDetailList.splice(index, 1);\n } // if (row.id) {\n // this.parameter.deleteDetailsId.push(row.id)\n // }\n\n },\n changeType: function changeType(val) {\n if (val == 1) {\n this.activeName = 'first';\n } else {\n this.activeName = 'third';\n }\n },\n handleOver: function handleOver() {\n this.flexAuto = !this.flexAuto;\n },\n // 选择采购方式\n changeMethod: function changeMethod(val) {\n this.procurementMethod = val;\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 changematNum: function changematNum(val) {\n console.log(val, 'val'); // if(val.singleValuation)\n },\n changeSingle: function changeSingle(val) {},\n //获取修改回显数据\n modifychoData: function modifychoData(val) {\n var _this2 = this;\n\n this.$http.post('${portal}/projectLedger/v1/getDataById?id=' + val.id).then(function (res) {\n console.log(res, 'reas');\n\n if (res.data.state) {\n _this2.parameter = res.data.value;\n\n if (_this2.parameter.accessoryList.length != 0) {\n _this2.dataList = _this2.parameter.accessoryList;\n }\n }\n });\n },\n // 关闭//面包屑点击\n handleClose: function handleClose() {\n if (this.breadcrumbOpt[1].breadcrumbName === '编辑') {\n this.$router.push({\n name: 'projectLedger',\n params: {\n pageBean: this.$route.query.pageBean\n }\n });\n } else {\n this.$router.push({\n name: 'projectLedger'\n });\n }\n\n this.parameter = {};\n },\n // 保存\n handleSave: function handleSave() {\n var _this3 = this;\n\n this.$refs.formInfo1.validate(function (valid) {\n if (valid) {\n _this3.saveing = true;\n\n _this3.$http.post('${portal}/projectLedger/v1/saveOrUpdate', _this3.parameter).then(function (res) {\n _this3.saveing = false;\n\n if (res.data.state) {\n _this3.$message.success(res.data.message);\n\n _this3.handleClose();\n }\n });\n }\n });\n }\n }\n};",null]}