{"remainingRequest":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\yhxt-web\\src\\views\\specialProjectManagement\\ContractChange.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\specialProjectManagement\\ContractChange.vue","mtime":1717697645399},{"path":"D:\\jenkins\\workspace\\yhxt-web\\babel.config.js","mtime":1667326389982},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\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 \"core-js/modules/es6.regexp.constructor\";\nimport _typeof from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/typeof.js\";\nimport _defineProperty from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.map\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nvar _methods;\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : 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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 contractSelector from '@/components/selector/contractSelector.vue';\nimport basicData from '@/api/basicData.js';\nimport eipOrgSelector from '@/components/eipControl/selector/EipOrgSelector.vue';\nimport ProjectInfoDialog from '@/components/dialog/ProjectInfoDialog.vue';\nimport eipUserSelector from '@/components/eipControl/selector/EipUserSelector.vue';\nimport projectInfoSelector from '@/components/selector/projectInfoSelector.vue';\nimport companyInfoSelector from '@/components/selector/companyInfoSelector.vue';\nimport fileUpload from '@/components/upload/fileUploadProject.vue';\nimport CascaderCompany from '@/components/selector/CascaderCompany.vue';\nimport req from '@/request.js';\nexport default {\n components: {\n contractSelector: contractSelector\n // eipOrgSelector,\n // ProjectInfoDialog,\n // eipUserSelector,\n // projectInfoSelector,\n // companyInfoSelector,\n // fileUpload,\n // CascaderCompany\n },\n data: function data() {\n return {\n fullscreenLoading: false,\n //全屏加载控件\n dadToSon: {\n bizPath: 'specialproject',\n fileList: []\n },\n optionYears: [],\n accessories: [],\n searchForm: {},\n companyOptions: [],\n company: [],\n key: '',\n dialogVisible: false,\n data: [],\n pageResult: {\n page: 1,\n pageSize: 50,\n total: 0\n },\n form: {\n Applicationform: {\n contractId: '',\n changeReason: '',\n changeApplyRemarks: '',\n contractName: ''\n },\n Contractform: [],\n Detailform: [],\n CtInfoform: {\n projectName: '',\n projectId: ''\n },\n detailList: []\n },\n formExamine: {\n changeConfirmStatus: 1 //审核状态通过,2是未通过\n },\n\n isShow: false,\n //是否显示审核操作\n rules: {\n changeApplyRemarks: {\n required: true,\n message: '请输入变更说明',\n trigger: 'change'\n },\n changeReason: {\n required: true,\n message: '请输入变更理由',\n trigger: 'change'\n },\n // contractName: {\n // required: true,\n // message: '请选择合同',\n // trigger: 'change',\n // },\n subjectName: {\n required: true,\n message: '请选择科目名称',\n trigger: 'change'\n },\n subSubjectName: {\n required: true,\n trigger: 'change',\n message: '请选择细科目名称'\n }\n },\n activeName: ['1', '2'],\n options: [],\n permission: 'b',\n vlue: '',\n changeDisabled: false,\n //表单是否允许填写\n groupCodeArr: [],\n //当前角色编码\n currentUserName: '',\n //当前登录人的名称\n isCurrentUserName: false,\n //判断当前登录人与创建人是否是同一个人\n ids: '',\n //修改审批状态的ids\n roadData: []\n };\n },\n created: function created() {\n this.company = this.getCompany();\n this.roadData = this.getroad();\n },\n mounted: function mounted() {\n this.getYear();\n var orgAccount = JSON.parse(window.sessionStorage.getItem('currentUser')).account;\n this.getOrgInfo(orgAccount);\n // 获取当前登录用户名\n var currentUser = JSON.parse(window.sessionStorage.getItem('currentUser'));\n this.currentUserName = currentUser.username;\n this.searchForm = {\n changeApplyDate: new Date().getFullYear()\n };\n },\n methods: (_methods = {\n getroad: function getroad() {\n var arr = [];\n basicData.getRoadManagement().then(function (res) {\n res.rows.forEach(function (item) {\n arr.push({\n value: item.name,\n key: item.id\n });\n });\n console.log(arr, '12');\n });\n return arr;\n },\n handleProjectChanged: function handleProjectChanged(id) {\n var _this = this;\n this.projectOptions.forEach(function (item) {\n if (item.id === id) {\n _this.form.projectName = item.projectName;\n }\n });\n },\n //获取级角色信息\n getOrgInfo: function getOrgInfo(orgAccount) {\n var _this2 = this;\n this.$http.get('${yhxt}/api/role/v1/role/getRolesByUser?account=' + orgAccount).then(function (res) {\n if (res.data.length != 0) {\n console.log(res.data);\n res.data.forEach(function (item) {\n _this2.groupCodeArr.push(item.groupCode);\n });\n }\n });\n },\n //审核事件\n handleExamine: function handleExamine(data) {\n var _this3 = this;\n this.ids = data.id;\n this.isCurrentUserName = true;\n this.isShow = true;\n this.dialogVisible = true;\n this.changeDisabled = true;\n this.type = 'examine';\n this.form.Applicationform.contractName = data.contractName;\n this.$http.get('${form}/bizApplicationForChangeOfContract/v1/getVo/' + data.id).then(function (res) {\n console.log(res);\n //第一个变更信息\n _this3.form.Applicationform = res.data.bizApplicationForChangeOfContract;\n if (res.data.bizContractDetailChangeInvalidList) {\n var index = 0;\n res.data.bizContractDetailChangeInvalidList.forEach(function (item) {\n item.key = index++;\n });\n _this3.form.Detailform = res.data.bizContractDetailChangeInvalidList;\n }\n _this3.form.CtInfoform = res.data.bizProjectContract;\n if (res.data.bizProjectContractDetailsList) {\n var _index = 0;\n res.data.bizProjectContractDetailsList.forEach(function (item) {\n item.key = _index++;\n });\n _this3.form.detailList = res.data.bizProjectContractDetailsList;\n }\n var respold = res.data.bizProjectContract;\n var respnew = res.data.bizContractChangeInvalid;\n var arr = [];\n if (_this3.options.length == 0) {\n var _data = 'CBKM';\n basicData.getCostAccountManagement(_data).then(function (res) {\n res.data.forEach(function (item) {\n _this3.options.push({\n label: item.subjectName,\n value: item.subjectCode\n });\n });\n });\n }\n });\n },\n sonToDad: function sonToDad(data) {\n // console.log(data)\n var arr = [];\n data.forEach(function (item) {\n arr.push({\n isDele: item.isDele,\n attachmentName: item.name,\n attachmentPath: item.url,\n attachmentSuffix: item.suffix,\n attachmentType: item.type,\n type: 0\n });\n });\n this.accessories = arr;\n },\n uniqueFunc: function uniqueFunc(arr, uniId) {\n var res = new Map();\n return arr.filter(function (item) {\n return !res.has(item[uniId]) && res.set(item[uniId], 1);\n });\n },\n handleReset: function handleReset() {\n this.searchForm = _objectSpread(_objectSpread({}, this.searchForm), {}, {\n companyIds: '',\n contractType: '',\n contractName: '',\n roadSegmentId: ''\n });\n this.findinfo();\n },\n //获取顶部搜索的年份区间\n getYear: function getYear() {\n var myDate = new Date();\n var startYear = 2006; //起始年份\n var endYear = myDate.getFullYear() + 3; //结束年份\n for (var i = endYear; i >= startYear; i--) {\n this.optionYears.push({\n label: i + '年',\n value: i\n });\n }\n },\n findinfo: function findinfo() {\n var _this4 = this;\n typeof this.$refs.filterTable !== 'undefined' && this.$refs.filterTable.clearFilter();\n var query = [];\n var search = {\n companyId: this.searchForm.companyIds,\n contractType: this.searchForm.contractType,\n contract_name_: this.searchForm.contractName,\n road_segment_id_: this.searchForm.roadSegmentId,\n change_apply_date_: this.searchForm.changeApplyDate\n };\n for (var i in search) {\n if (search[i]) {\n if (i == 'companyId') {\n query.push({\n group: 'companyIds',\n operation: 'IN',\n parentGroup: '',\n property: 'companyId',\n relation: 'AND',\n value: search[i]\n });\n } else {\n query.push({\n group: 'advance',\n operation: 'LIKE',\n property: i,\n relation: 'AND',\n value: search[i]\n });\n }\n }\n }\n query = this.uniqueFunc(query, 'property');\n var data = {\n pageBean: {\n page: 1,\n pageSize: 20,\n showTotal: true\n },\n querys: query\n };\n this.topQuery = query;\n this.$http.post('${form}/bizApplicationForChangeOfContract/v1/getJsonVo', data).then(function (response) {\n // console.log(res, '11')\n _this4.data = response.rows;\n _this4.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n });\n },\n getCompany: function getCompany() {\n var _this5 = this;\n this.$http.post('${yhxt}/Company/v1/getCompany').then(function (res) {\n res.data.forEach(function (item) {\n _this5.companyOptions.push({\n id: item.id,\n name: item.name\n });\n });\n });\n },\n //深层拷贝回去公司名称\n deepClone: function deepClone(obj) {\n var objClone = Array.isArray(obj) ? [] : {};\n if (obj && _typeof(obj) === 'object') {\n for (var key in obj) {\n if (obj.hasOwnProperty(key)) {\n //判断ojb子元素是否为对象,如果是,递归复制\n if (obj[key] && _typeof(obj[key]) === 'object') {\n objClone[key] = this.deepClone(obj[key]);\n } else {\n if (obj[key] == obj.name) {\n this.companyOptions.push({\n id: obj.id,\n name: obj.name\n });\n } //如果不是,简单复制\n objClone[key] = obj[key];\n }\n }\n }\n }\n },\n loadData: function loadData(param, cb) {\n var _this6 = this;\n if (typeof this.topQuery !== 'undefined' && this.topQuery.length !== 0) {\n param.querys = typeof param.querys !== 'undefined' ? param.querys : [];\n this.topQuery.forEach(function (item) {\n param.querys.push(item);\n });\n param.querys = this.uniqueFunc(param.querys, 'property');\n }\n param.querys = [{\n group: 'advance',\n operation: 'LIKE',\n property: 'change_apply_date_',\n relation: 'AND',\n value: new Date().getFullYear()\n }];\n this.$http.post('${form}/bizApplicationForChangeOfContract/v1/getJsonVo', param).then(function (res) {\n _this6.data = res.data.rows.map(function (item) {\n item.bizProjectContract.changeConfirmStatus = item.bizApplicationForChangeOfContract.changeConfirmStatus;\n item.bizProjectContract.changeApplyDate = item.bizApplicationForChangeOfContract.changeApplyDate;\n item.bizProjectContract.changeApplyRemarks = item.bizApplicationForChangeOfContract.changeApplyRemarks;\n item.bizProjectContract.changeApplyUser = item.bizApplicationForChangeOfContract.changeApplyUser;\n // item.bizProjectContract.carId =\n // item.bizApplicationForChangeOfContract.id\n return item.bizProjectContract;\n });\n _this6.pageResult = {\n page: res.data.page,\n pageSize: res.data.pageSize,\n total: res.data.total\n };\n }).finally(function () {\n if (cb) {\n cb();\n }\n });\n },\n handleEdit: function handleEdit(data) {\n var _this7 = this;\n this.ids = data.id;\n if (this.currentUserName == data.changeApplyUser && this.groupCodeArr.indexOf('zxgcgly') != -1 || this.currentUserName == '超级管理员') {\n this.isCurrentUserName = true;\n }\n var status = data.changeConfirmStatus;\n if (this.groupCodeArr.indexOf('zxhtbgsp') != -1 && status == 0 || this.currentUserName == '超级管理员') {\n //专项合同审批编码\n this.isShow = true;\n this.type = 'examine';\n }\n this.changeDisabled = false;\n this.dialogVisible = true;\n this.form.Applicationform.contractName = data.contractName;\n this.$http.get('${form}/bizApplicationForChangeOfContract/v1/getVo/' + data.id).then(function (res) {\n console.log(res);\n //第一个变更信息\n _this7.form.Applicationform = res.data.bizApplicationForChangeOfContract;\n if (res.data.bizContractDetailChangeInvalidList) {\n var index = 0;\n res.data.bizContractDetailChangeInvalidList.forEach(function (item) {\n item.key = index++;\n });\n _this7.form.Detailform = res.data.bizContractDetailChangeInvalidList;\n }\n _this7.form.CtInfoform = res.data.bizProjectContract;\n if (res.data.bizProjectContractDetailsList) {\n var _index2 = 0;\n res.data.bizProjectContractDetailsList.forEach(function (item) {\n item.key = _index2++;\n });\n _this7.form.detailList = res.data.bizProjectContractDetailsList;\n }\n var respold = res.data.bizProjectContract;\n var respnew = res.data.bizContractChangeInvalid;\n var arr = [];\n if (_this7.options.length == 0) {\n var _data2 = 'CBKM';\n basicData.getCostAccountManagement(_data2).then(function (res) {\n res.data.forEach(function (item) {\n _this7.options.push({\n label: item.subjectName,\n value: item.subjectCode\n });\n });\n });\n }\n });\n },\n handleAdd: function handleAdd() {\n var _this8 = this;\n this.isCurrentUserName = true;\n this.changeDisabled = false;\n this.dialogVisible = true;\n if (this.options.length == 0) {\n var data = 'CBKM';\n basicData.getCostAccountManagement(data).then(function (res) {\n res.data.forEach(function (item) {\n _this8.options.push({\n label: item.subjectName,\n value: item.subjectCode\n });\n });\n });\n }\n },\n afterDelete: function afterDelete() {}\n }, _defineProperty(_methods, \"afterDelete\", function afterDelete() {\n //删除后重新加载\n this.$refs.htTable.load();\n }), _defineProperty(_methods, \"handleCancel\", function handleCancel() {\n //取消弹窗\n //清空表单\n this.form = {\n Applicationform: {\n contractId: '',\n changeReason: '',\n changeApplyRemarks: ''\n },\n CtInfoform: {\n projectName: '',\n projectId: ''\n },\n Contractform: [],\n Detailform: [],\n detailList: []\n };\n this.dadToSon = {\n fileList: []\n };\n this.dialogVisible = false;\n this.isShow = false;\n }), _defineProperty(_methods, \"handleClose\", function handleClose(done) {\n this.dadToSon = {\n fileList: []\n };\n this.isShow = false;\n this.handleCancel();\n }), _defineProperty(_methods, \"delTableData\", function delTableData(key, id, num) {\n //判断是否存在key值\n //删除时调用保存接口\n if (num == 1) {\n this.form.Contractform = this.form.Contractform.filter(function (item) {\n return item.key !== key;\n });\n } else if (num == 2) {\n this.form.Detailform = this.form.Detailform.filter(function (item) {\n return item.key !== key;\n });\n //调用接口\n basicData.deleteContractDetailInfo(id).then(function (res) {\n // this.$message.success('删除成功')\n });\n }\n }), _defineProperty(_methods, \"changesele\", function changesele(value, key) {\n var _this9 = this;\n var arr = [];\n basicData.getCostAccountManagement(value).then(function (res) {\n if (res.data.length > 0) {\n res.data.forEach(function (item) {\n if (item.pcode == value) {\n arr.push({\n label: item.subjectName,\n value: item.subjectCode\n });\n }\n });\n //默然赋值细科目的第一条数据\n _this9.form.Detailform.forEach(function (item) {\n if (item.key == key) {\n item.subOption = arr;\n item.subSubjectNumber = item.subOption[0].value;\n item.subSubjectName = item.subOption[0].label;\n }\n });\n //赋值科目名称\n _this9.options.forEach(function (item) {\n if (item.value == value) {\n _this9.form.Detailform.forEach(function (item1) {\n if (item1.key == key) {\n item1.subjectName = item.label;\n }\n });\n }\n });\n } else {\n _this9.form.Detailform.forEach(function (item) {\n if (item.key == key) {\n item.subOption = [];\n item.subSubjectName = '';\n }\n });\n }\n });\n }), _defineProperty(_methods, \"calculation\", function calculation(row) {\n // 完成已计量金额 = 完成已计量数量 * 单价\n var sun_paidMoney = row.completeAmount * row.subjectPrice;\n var sun_subjectMoney = row.subjectPrice * row.subjectAmount;\n this.form.Detailform.forEach(function (item) {\n if (item.key == row.key) {\n //判断计算结果是否是数字,是则返回false,否则返回true\n if (isNaN(sun_paidMoney)) {\n item.paidMoney = 0;\n } else {\n item.paidMoney = sun_paidMoney;\n }\n if (isNaN(sun_subjectMoney)) {\n item.subjectMoney = 0;\n } else {\n item.subjectMoney = sun_subjectMoney;\n }\n }\n });\n }), _defineProperty(_methods, \"BlurText\", function BlurText(e) {\n if (e.target.value) {\n var boolean = new RegExp('^[1-9][0-9]*$').test(e.target.value);\n if (!boolean) {\n this.$message.warning('请输入正整数');\n e.target.value = ' ';\n }\n }\n }), _defineProperty(_methods, \"subSubChange\", function subSubChange(val, obj) {\n var _this10 = this;\n if (obj.subOption) {\n obj.subOption.forEach(function (item) {\n if (item.value == val) {\n _this10.form.Detailform.forEach(function (item1) {\n if (item1.key == obj.key) {\n item1.subSubjectName = item.label;\n }\n });\n }\n });\n }\n }), _defineProperty(_methods, \"addTableData\", function addTableData(id) {\n if (id == 1) {\n this.form.Contractform.push({\n key: this.form.Contractform.length + 1,\n oldcont: '',\n newcont: '',\n budgetContent: ''\n });\n } else if (id == 2) {\n this.form.Detailform.push({\n key: this.form.Detailform.length + 1,\n subOption: [],\n subSubjectName: '',\n subSubjectNumber: '',\n subjectNumber: '',\n subjectName: '',\n paidMoney: '',\n subjectMoney: ''\n });\n }\n }), _defineProperty(_methods, \"changed\", function changed(obj) {\n this.form.Applicationform.contractName = obj.contractName;\n this.form.Applicationform.contractId = obj.id;\n this.getContract(obj.id);\n }), _defineProperty(_methods, \"value\", function value(obj) {\n this.form.Applicationform.contractName = obj.contractName;\n this.form.Applicationform.contractId = obj.id;\n this.getContract(obj.id);\n }), _defineProperty(_methods, \"getContract\", function getContract(id) {\n var _this11 = this;\n basicData.getByIdContractInfoData(id).then(function (res) {\n _this11.form.CtInfoform = res.bizProjectContract;\n _this11.form.detailList = res.detailList;\n _this11.form.Detailform = _this11.deepClone(_this11.form.detailList);\n });\n }), _defineProperty(_methods, \"deepClone\", function deepClone(obj) {\n var _obj = JSON.stringify(obj),\n objClone = JSON.parse(_obj);\n return objClone;\n }), _defineProperty(_methods, \"seleinput\", function seleinput(val, key) {\n var _this12 = this;\n this.vlue = val;\n this.form.Contractform.forEach(function (item) {\n if (_this12.form.CtInfoform.hasOwnProperty(val)) {\n if (item.key == key) {\n item.oldcont = _this12.form.CtInfoform[val];\n }\n }\n });\n }), _defineProperty(_methods, \"handleSubmit\", function handleSubmit() {\n var _this13 = this;\n if (this.type === 'examine') {\n this.fullscreenLoading = true;\n var formData = new FormData();\n formData.append('changeConfirmStatus', this.formExamine.changeConfirmStatus);\n formData.append('ids', this.ids);\n this.$http.post('${yhxt}/bizApplicationForChangeOfContract/v1/updateChangeConfirmStatusById', formData).then(function (res) {\n _this13.isShow = false;\n _this13.dialogVisible = false;\n _this13.fullscreenLoading = false;\n _this13.$refs.htTable.load();\n });\n // basicData.examineData(this.formExamine).then(res => {\n // this.$message.success(res.message)\n // this.isShow = false\n // this.disabled = false\n // this.fullscreenLoading = false\n // })\n } else {\n var arr = this.deepClone(this.form.CtInfoform);\n this.form.Contractform.forEach(function (item) {\n if (arr.hasOwnProperty(item.budgetContent)) {\n arr[item.budgetContent] = item.newcont;\n }\n });\n var data = {\n bizApplicationForChangeOfContract: this.form.Applicationform,\n bizContractChangeInvalid: arr,\n bizContractDetailChangeInvalidList: this.form.Detailform\n };\n var validate;\n //验证子表单\n this.$refs.detailForm.validate(function (bool) {\n validate = bool;\n });\n this.$refs.Applicationform.validate(function (bool) {\n if (bool && validate) {\n _this13.fullscreenLoading = true;\n _this13.$http.post('${form}/bizApplicationForChangeOfContract/v1/saveVo', data).then(function (res) {\n var resp = res.data;\n if (resp.state) {\n _this13.$message.success(resp.message);\n _this13.dialogVisible = false;\n _this13.fullscreenLoading = false;\n _this13.$refs.htTable.load();\n } else {\n _this13.$message.error(resp.message);\n }\n });\n }\n });\n }\n }), _methods)\n};",null]}