入库流程->标准体系弹出框->无法取消 同上一个提交

This commit is contained in:
zhaokaiyao@91isoft.com
2021-10-11 11:10:44 +08:00
parent 637b3e1bb4
commit a105a3e6fc
@@ -144,7 +144,7 @@
width = "800" width = "800"
:data="standSystemOptions" :data="standSystemOptions"
:defaultProps="defaultProps" :checkedKeys="defaultCheckedKeys" :defaultProps="defaultProps" :checkedKeys="defaultCheckedKeys"
:nodeKey="nodeKey" @popoverHide="popoverHide"></tree-select-new> :nodeKey="nodeKey" @popoverHide="popoverHide" @popoverHideCancel="popoverHideCancel"></tree-select-new>
</el-form-item> </el-form-item>
<el-form-item v-show="verifySarStandard && form.standInData === '1'" label="标签" prop="gxhbq" class="add-form-item form-item-disabled"> <el-form-item v-show="verifySarStandard && form.standInData === '1'" label="标签" prop="gxhbq" class="add-form-item form-item-disabled">
<el-input <el-input
@@ -2213,6 +2213,7 @@
}, },
// 导入标准数据成功后执行 // 导入标准数据成功后执行
importFileSuccess (response, file,fileList) { importFileSuccess (response, file,fileList) {
console.log("helloFIleSuccess")
// 上传成功后判断是否是两条数据是的话替换掉旧数据 // 上传成功后判断是否是两条数据是的话替换掉旧数据
// if (fileList.length > 1) { // if (fileList.length > 1) {
// this.fileList = fileList.splice(0, 1) // this.fileList = fileList.splice(0, 1)
@@ -2222,48 +2223,48 @@
// this.fileList = [] // this.fileList = []
if(this.fileType === 'fbgbjbd'){ if(this.fileType === 'fbgbjbd'){
this.FBGBJBDFileList=fileList; this.FBGBJBDFileList=fileList;
this.form.fbgbjbd = response.data.id; this.form.fbgbjbd += response.data.id+',';
this.form.fbgbjbdName = response.data.name; this.form.fbgbjbdName += response.data.name+',';
}else if(this.fileType === 'xgd'){ }else if(this.fileType === 'xgd'){
this.xgdFileList=fileList; this.xgdFileList=fileList;
this.form.xgd = response.data.id; this.form.xgd += response.data.id+',';
this.form.xgdName = response.data.name; this.form.xgdName += response.data.name+',';
}else if(this.fileType === 'bpg'){ }else if(this.fileType === 'bpg'){
this.bpgFileList=fileList; this.bpgFileList=fileList;
this.form.bpg = response.data.id; this.form.bpg += response.data.id+',';
this.form.bpgName = response.data.name; this.form.bpgName += response.data.name+',';
}else if(this.fileType === 'ssg'){ }else if(this.fileType === 'ssg'){
this.ssgFileList=fileList; this.ssgFileList=fileList;
this.form.ssg = response.data.id; this.form.ssg += response.data.id+',';
this.form.ssgName = response.data.name; this.form.ssgName += response.data.name+',';
}else if(this.fileType === 'zqyjg'){ }else if(this.fileType === 'zqyjg'){
this.zqyjgFileList=fileList; this.zqyjgFileList=fileList;
this.form.zqyjg = response.data.id; this.form.zqyjg += response.data.id+',';
this.form.zqyjgName = response.data.name; this.form.zqyjgName += response.data.name+',';
}else if(this.fileType === 'jdwj'){ }else if(this.fileType === 'jdwj'){
this.jdwjFileList=fileList; this.jdwjFileList=fileList;
this.form.jdwj = response.data.id; this.form.jdwj += response.data.id+',';
this.form.jdwjName = response.data.name; this.form.jdwjName += response.data.name+',';
}else if(this.fileType === 'kwj'){ }else if(this.fileType === 'kwj'){
this.kwjFileList=fileList; this.kwjFileList=fileList;
this.form.kwj = response.data.id; this.form.kwj += response.data.id+',';
this.form.kwjName = response.data.name; this.form.kwjName += response.data.name+',';
}else if(this.fileType === 'xgd'){ }else if(this.fileType === 'xgd'){
this.xgdFileList=fileList; this.xgdFileList=fileList;
this.form.xgd = response.data.id; this.form.xgd += response.data.id+',';
this.form.xgdName = response.data.name; this.form.xgdName += response.data.name+',';
}else if(this.fileType === 'glwj'){ }else if(this.fileType === 'glwj'){
this.qlwjFileList=fileList; this.qlwjFileList=fileList;
this.form.glwj = response.data.id; this.form.glwj += response.data.id+',';
this.form.glwjName = response.data.name; this.form.glwjName += response.data.name+',';
}else if(this.fileType === 'ca'){ }else if(this.fileType === 'ca'){
this.caFileList=fileList; this.caFileList=fileList;
this.form.ca = response.data.id; this.form.ca += response.data.id+',';
this.form.caName = response.data.name; this.form.caName += response.data.name+',';
}else if(this.fileType === 'zbjbd'){ }else if(this.fileType === 'zbjbd'){
this.zbjbdFileList=fileList; this.zbjbdFileList=fileList;
this.form.zbjbd = response.data.id; this.form.zbjbd += response.data.id+',';
this.form.zbjbdName = response.data.name; this.form.zbjbdName += response.data.name+',';
} }
this.$message({ this.$message({
showClose: true, showClose: true,
@@ -2304,13 +2305,17 @@
}, },
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) { popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) { if(checkedData) {
if(checkedData.length > 0){ if(checkedData.length > 0 && checkedData.length != 0){
this.form.standSystem = checkedData.map(item => item.menuName).join(",") this.form.standSystem = checkedData.map(item => item.menuName).join(",")
}else { }else {
this.form.standSystem = checkedData.menuName this.form.standSystem = checkedData.menuName
} }
this.modalShowFlag1 = false
} }
this.modalShowFlag1 = false
},
popoverHideCancel(){
this.modalShowFlag1 = false
}, },
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) { popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) { if(checkedData && checkedData.length != 0) {