入库流程->标准体系弹出框->无法取消 同上一个提交
This commit is contained in:
@@ -144,7 +144,7 @@
|
||||
width = "800"
|
||||
:data="standSystemOptions"
|
||||
: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 v-show="verifySarStandard && form.standInData === '1'" label="标签" prop="gxhbq" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
@@ -2213,6 +2213,7 @@
|
||||
},
|
||||
// 导入标准数据成功后执行
|
||||
importFileSuccess (response, file,fileList) {
|
||||
console.log("helloFIleSuccess")
|
||||
// 上传成功后判断是否是两条数据是的话替换掉旧数据
|
||||
// if (fileList.length > 1) {
|
||||
// this.fileList = fileList.splice(0, 1)
|
||||
@@ -2222,48 +2223,48 @@
|
||||
// this.fileList = []
|
||||
if(this.fileType === 'fbgbjbd'){
|
||||
this.FBGBJBDFileList=fileList;
|
||||
this.form.fbgbjbd = response.data.id;
|
||||
this.form.fbgbjbdName = response.data.name;
|
||||
this.form.fbgbjbd += response.data.id+',';
|
||||
this.form.fbgbjbdName += response.data.name+',';
|
||||
}else if(this.fileType === 'xgd'){
|
||||
this.xgdFileList=fileList;
|
||||
this.form.xgd = response.data.id;
|
||||
this.form.xgdName = response.data.name;
|
||||
this.form.xgd += response.data.id+',';
|
||||
this.form.xgdName += response.data.name+',';
|
||||
}else if(this.fileType === 'bpg'){
|
||||
this.bpgFileList=fileList;
|
||||
this.form.bpg = response.data.id;
|
||||
this.form.bpgName = response.data.name;
|
||||
this.form.bpg += response.data.id+',';
|
||||
this.form.bpgName += response.data.name+',';
|
||||
}else if(this.fileType === 'ssg'){
|
||||
this.ssgFileList=fileList;
|
||||
this.form.ssg = response.data.id;
|
||||
this.form.ssgName = response.data.name;
|
||||
this.form.ssg += response.data.id+',';
|
||||
this.form.ssgName += response.data.name+',';
|
||||
}else if(this.fileType === 'zqyjg'){
|
||||
this.zqyjgFileList=fileList;
|
||||
this.form.zqyjg = response.data.id;
|
||||
this.form.zqyjgName = response.data.name;
|
||||
this.form.zqyjg += response.data.id+',';
|
||||
this.form.zqyjgName += response.data.name+',';
|
||||
}else if(this.fileType === 'jdwj'){
|
||||
this.jdwjFileList=fileList;
|
||||
this.form.jdwj = response.data.id;
|
||||
this.form.jdwjName = response.data.name;
|
||||
this.form.jdwj += response.data.id+',';
|
||||
this.form.jdwjName += response.data.name+',';
|
||||
}else if(this.fileType === 'kwj'){
|
||||
this.kwjFileList=fileList;
|
||||
this.form.kwj = response.data.id;
|
||||
this.form.kwjName = response.data.name;
|
||||
this.form.kwj += response.data.id+',';
|
||||
this.form.kwjName += response.data.name+',';
|
||||
}else if(this.fileType === 'xgd'){
|
||||
this.xgdFileList=fileList;
|
||||
this.form.xgd = response.data.id;
|
||||
this.form.xgdName = response.data.name;
|
||||
this.form.xgd += response.data.id+',';
|
||||
this.form.xgdName += response.data.name+',';
|
||||
}else if(this.fileType === 'glwj'){
|
||||
this.qlwjFileList=fileList;
|
||||
this.form.glwj = response.data.id;
|
||||
this.form.glwjName = response.data.name;
|
||||
this.form.glwj += response.data.id+',';
|
||||
this.form.glwjName += response.data.name+',';
|
||||
}else if(this.fileType === 'ca'){
|
||||
this.caFileList=fileList;
|
||||
this.form.ca = response.data.id;
|
||||
this.form.caName = response.data.name;
|
||||
this.form.ca += response.data.id+',';
|
||||
this.form.caName += response.data.name+',';
|
||||
}else if(this.fileType === 'zbjbd'){
|
||||
this.zbjbdFileList=fileList;
|
||||
this.form.zbjbd = response.data.id;
|
||||
this.form.zbjbdName = response.data.name;
|
||||
this.form.zbjbd += response.data.id+',';
|
||||
this.form.zbjbdName += response.data.name+',';
|
||||
}
|
||||
this.$message({
|
||||
showClose: true,
|
||||
@@ -2304,13 +2305,17 @@
|
||||
},
|
||||
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||
if(checkedData) {
|
||||
if(checkedData.length > 0){
|
||||
if(checkedData.length > 0 && checkedData.length != 0){
|
||||
this.form.standSystem = checkedData.map(item => item.menuName).join(",")
|
||||
}else {
|
||||
this.form.standSystem = checkedData.menuName
|
||||
}
|
||||
this.modalShowFlag1 = false
|
||||
}
|
||||
this.modalShowFlag1 = false
|
||||
|
||||
},
|
||||
popoverHideCancel(){
|
||||
this.modalShowFlag1 = false
|
||||
},
|
||||
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||
if(checkedData && checkedData.length != 0) {
|
||||
|
||||
Reference in New Issue
Block a user