diff --git a/src/views/auditPages/assetsManagement/assetsAuth.vue b/src/views/auditPages/assetsManagement/assetsAuth.vue index 11c4477..aa15846 100644 --- a/src/views/auditPages/assetsManagement/assetsAuth.vue +++ b/src/views/auditPages/assetsManagement/assetsAuth.vue @@ -2484,7 +2484,7 @@ 不通过 - 通过 + 通过 @@ -2697,16 +2697,19 @@ export default { // 获取详情 getInfo(id){ assetInfo(id).then(res=>{ - console.log(res,"res"); this.ruleForm = res.data; - this.xttz = this.ruleForm.xttz.split(',') - this.chepingUnit = this.ruleForm.gylxxList.filter((item) => item.type == 1) - this.yjgysUnit = this.ruleForm.gylxxList.filter((item) => item.type == 2) - this.jfywUnit = this.ruleForm.gylxxList.filter((item) => item.type == 3) - this.xtsjUnit = this.ruleForm.gylxxList.filter((item) => item.type == 4) - this.xtjsUnit = this.ruleForm.gylxxList.filter((item) => item.type == 5) - this.xtyyUnit = this.ruleForm.gylxxList.filter((item) => item.type == 7) - this.aqfwUnit = this.ruleForm.gylxxList.filter((item) => item.type == 6) + if(!this.ruleForm.xjgywxt) { + this.ruleForm.xjgywxt = {} + this.$set(this.ruleForm.xjgywxt, 'remark', "") + } + this.ruleForm.xttz ? this.xttz = this.ruleForm.xttz.split(',') : []; + this.ruleForm.gylxxList.length > 0 ? this.chepingUnit = this.ruleForm.gylxxList.filter((item) => item.type == 1) : [] + this.ruleForm.gylxxList.length > 0 ? this.yjgysUnit = this.ruleForm.gylxxList.filter((item) => item.type == 2) : [] + this.ruleForm.gylxxList.length > 0 ? this.jfywUnit = this.ruleForm.gylxxList.filter((item) => item.type == 3) : [] + this.ruleForm.gylxxList.length > 0 ? this.xtsjUnit = this.ruleForm.gylxxList.filter((item) => item.type == 4) : [] + this.ruleForm.gylxxList.length > 0 ? this.xtjsUnit = this.ruleForm.gylxxList.filter((item) => item.type == 5) : [] + this.ruleForm.gylxxList.length > 0 ? this.xtyyUnit = this.ruleForm.gylxxList.filter((item) => item.type == 7) : [] + this.ruleForm.gylxxList.length > 0 ? this.aqfwUnit = this.ruleForm.gylxxList.filter((item) => item.type == 6) : [] this.fwqxx = this.ruleForm.jcwlList.filter((item) => item.type == 1) this.wlsb = this.ruleForm.jcwlList.filter((item) => item.type == 2) @@ -2717,9 +2720,6 @@ export default { this.xtfhqkFzd = this.ruleForm.xtfhqkFzd.split(',') this.xtfhqkFls = this.ruleForm.xtfhqkFls.split(',') - if(this.ruleForm.xjgywxt.remark) { - this.radio = this.ruleForm.xjgywxt.remark; - } if(this.ruleForm.sheng && this.ruleForm.shi && this.ruleForm.qu) { this.dlwz = [this.ruleForm.sheng,this.ruleForm.shi,this.ruleForm.qu] @@ -2862,9 +2862,6 @@ export default { this.ruleForm.shi = this.dlwz[1] this.ruleForm.qu = this.dlwz[2] } - if(this.radio) { - this.xjgywxt.remark = this.radio; - } this.loading = true; if(this.$route.query.pageType == 'change') { assetUnitData('put',this.ruleForm).then(res=>{