带入标准,勘误件无法显示.switch没写break(@_@;)
This commit is contained in:
@@ -1814,47 +1814,52 @@
|
|||||||
// 带入
|
// 带入
|
||||||
case 2:
|
case 2:
|
||||||
if (this.standardCheckedList.length === 1) {
|
if (this.standardCheckedList.length === 1) {
|
||||||
const bringData = this.standardCheckedList[0]
|
this.$http.get('sarStandardsInfo/sar-standards-info/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
|
||||||
bringData.signFlag = this.form.signFlag && this.form.signFlag != '' ? this.form.signFlag : '0'
|
_this: this
|
||||||
bringData.standInData = this.form.standInData && this.form.standInData != '' ? this.form.standInData : '0'
|
}, res => {
|
||||||
|
if(res && res.data){
|
||||||
|
const bringData = res.data
|
||||||
|
bringData.signFlag = this.form.signFlag && this.form.signFlag != '' ? this.form.signFlag : '0'
|
||||||
|
bringData.standInData = this.form.standInData && this.form.standInData != '' ? this.form.standInData : '0'
|
||||||
|
|
||||||
const json = Object.assign(bringData, bringData.attrInfoCaseMap);
|
const json = Object.assign(bringData, bringData.attrInfoCaseMap);
|
||||||
this.form = JSON.parse(JSON.stringify(json))
|
this.form = JSON.parse(JSON.stringify(json))
|
||||||
|
|
||||||
this.form.qcdw = JSON.parse(JSON.stringify(json)).qcdw && JSON.parse(JSON.stringify(json)).qcdw !== '[]' ? JSON.parse(JSON.stringify(json)).qcdw.split(',') : []
|
this.form.qcdw = JSON.parse(JSON.stringify(json)).qcdw && JSON.parse(JSON.stringify(json)).qcdw !== '[]' ? JSON.parse(JSON.stringify(json)).qcdw.split(',') : []
|
||||||
this.form.wssmr = JSON.parse(JSON.stringify(json)).wssmr && JSON.parse(JSON.stringify(json)).wssmr !== '[]' ? JSON.parse(JSON.stringify(json)).wssmr.split(',') : []
|
this.form.wssmr = JSON.parse(JSON.stringify(json)).wssmr && JSON.parse(JSON.stringify(json)).wssmr !== '[]' ? JSON.parse(JSON.stringify(json)).wssmr.split(',') : []
|
||||||
this.form.zrgcs = JSON.parse(JSON.stringify(json)).zrgcs && JSON.parse(JSON.stringify(json)).zrgcs !== '[]' ? JSON.parse(JSON.stringify(json)).zrgcs.split(',') : []
|
this.form.zrgcs = JSON.parse(JSON.stringify(json)).zrgcs && JSON.parse(JSON.stringify(json)).zrgcs !== '[]' ? JSON.parse(JSON.stringify(json)).zrgcs.split(',') : []
|
||||||
this.form.zrbm = JSON.parse(JSON.stringify(json)).zrbm && JSON.parse(JSON.stringify(json)).zrbm !== '[]' ? JSON.parse(JSON.stringify(json)).zrbm.split(',') : []
|
this.form.zrbm = JSON.parse(JSON.stringify(json)).zrbm && JSON.parse(JSON.stringify(json)).zrbm !== '[]' ? JSON.parse(JSON.stringify(json)).zrbm.split(',') : []
|
||||||
this.form.syrz = JSON.parse(JSON.stringify(json)).syrz && JSON.parse(JSON.stringify(json)).syrz !== '[]' ? JSON.parse(JSON.stringify(json)).syrz.split(',') : []
|
this.form.syrz = JSON.parse(JSON.stringify(json)).syrz && JSON.parse(JSON.stringify(json)).syrz !== '[]' ? JSON.parse(JSON.stringify(json)).syrz.split(',') : []
|
||||||
this.form.sycpx = JSON.parse(JSON.stringify(json)).sycpx && JSON.parse(JSON.stringify(json)).sycpx !== '[]' ? JSON.parse(JSON.stringify(json)).sycpx.split(',') : []
|
this.form.sycpx = JSON.parse(JSON.stringify(json)).sycpx && JSON.parse(JSON.stringify(json)).sycpx !== '[]' ? JSON.parse(JSON.stringify(json)).sycpx.split(',') : []
|
||||||
this.form.nylx = JSON.parse(JSON.stringify(json)).nylx && JSON.parse(JSON.stringify(json)).nylx !== '[]' ? JSON.parse(JSON.stringify(json)).nylx.split(',') : []
|
this.form.nylx = JSON.parse(JSON.stringify(json)).nylx && JSON.parse(JSON.stringify(json)).nylx !== '[]' ? JSON.parse(JSON.stringify(json)).nylx.split(',') : []
|
||||||
this.form.cllx = JSON.parse(JSON.stringify(json)).cllx && JSON.parse(JSON.stringify(json)).cllx !== '[]' ? JSON.parse(JSON.stringify(json)).cllx.split(',') : []
|
this.form.cllx = JSON.parse(JSON.stringify(json)).cllx && JSON.parse(JSON.stringify(json)).cllx !== '[]' ? JSON.parse(JSON.stringify(json)).cllx.split(',') : []
|
||||||
this.defaultCheckedKeys = [this.form.standSystem];
|
this.defaultCheckedKeys = [this.form.standSystem];
|
||||||
this.defaultCheckedKeys1 = [this.form.cycvppsbm];
|
this.defaultCheckedKeys1 = [this.form.cycvppsbm];
|
||||||
this.defaultCheckedKeys2 = [this.form.kccvppsbm];
|
this.defaultCheckedKeys2 = [this.form.kccvppsbm];
|
||||||
this.defaultCheckedKeys3 = [this.form.dybxh];
|
this.defaultCheckedKeys3 = [this.form.dybxh];
|
||||||
this.key++
|
this.key++
|
||||||
this.key1++
|
this.key1++
|
||||||
this.key2++
|
this.key2++
|
||||||
this.key3++
|
this.key3++
|
||||||
this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
|
this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
|
||||||
this.form.standYear = bringData.standYear ? parseInt(bringData.standYear) : ''
|
this.form.standYear = bringData.standYear ? parseInt(bringData.standYear) : ''
|
||||||
this.form.prcNum = this.prcNum
|
this.form.prcNum = this.prcNum
|
||||||
this.form.prcName = this.prcName
|
this.form.prcName = this.prcName
|
||||||
this.form['id'] = bringData.id
|
this.form['id'] = bringData.id
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
this.verifySarStandard = true
|
this.verifySarStandard = true
|
||||||
this.busVsFunc()
|
this.busVsFunc()
|
||||||
this.modelFunc()
|
this.modelFunc()
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
|
|
||||||
console.log("this.form",this.form);
|
|
||||||
// 遍历对象初始化文件信息
|
|
||||||
for(const p in this.form) {
|
|
||||||
if (typeof (this.form[p]) != "function") {
|
|
||||||
this.initializeFileList(p,this.form[p]);
|
|
||||||
}
|
}
|
||||||
}
|
// 遍历对象初始化文件信息
|
||||||
|
for(const p in this.form) {
|
||||||
|
if (typeof (this.form[p ]) != "function") {
|
||||||
|
this.initializeFileList(p,this.form[p]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
console.log("res",res);
|
||||||
|
})
|
||||||
|
|
||||||
} else if (this.standardCheckedList.length > 1) {
|
} else if (this.standardCheckedList.length > 1) {
|
||||||
this.$message.warning('最多可以带入一条标准信息')
|
this.$message.warning('最多可以带入一条标准信息')
|
||||||
@@ -1890,8 +1895,8 @@
|
|||||||
this.getFileList(value,this.kwjFileList);
|
this.getFileList(value,this.kwjFileList);
|
||||||
break;
|
break;
|
||||||
case 'jdwj':
|
case 'jdwj':
|
||||||
debugger
|
|
||||||
this.getFileList(value,this.jdwjFileList);
|
this.getFileList(value,this.jdwjFileList);
|
||||||
|
console.log("初始",this.jdwjFileList)
|
||||||
break;
|
break;
|
||||||
case 'bpg':
|
case 'bpg':
|
||||||
this.getFileList(value,this.bpgFileList);
|
this.getFileList(value,this.bpgFileList);
|
||||||
@@ -1909,7 +1914,7 @@
|
|||||||
}, {
|
}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
debugger
|
|
||||||
let fileList = res.data
|
let fileList = res.data
|
||||||
if (fileList != null && fileList.length > 0) {
|
if (fileList != null && fileList.length > 0) {
|
||||||
for (let i = 0; i < fileList.length; i++) {
|
for (let i = 0; i < fileList.length; i++) {
|
||||||
@@ -2454,6 +2459,7 @@
|
|||||||
break;
|
break;
|
||||||
case 'jdwj':
|
case 'jdwj':
|
||||||
this.fileList=this.jdwjFileList
|
this.fileList=this.jdwjFileList
|
||||||
|
break;
|
||||||
case 'kwj':
|
case 'kwj':
|
||||||
this.fileList=this.kwjFileList
|
this.fileList=this.kwjFileList
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user