|
|
|
@ -169,7 +169,7 @@
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
|
<el-form-item label="寄售仓库" prop="advanceType" class="query-form-item">
|
|
|
|
|
<el-radio-group v-model="subData.advanceType">
|
|
|
|
|
<el-radio-group :disabled="isAdvanceTypeShow" v-model="subData.advanceType">
|
|
|
|
|
<el-radio :label="false">非寄售</el-radio>
|
|
|
|
|
<el-radio :label="true">寄售</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
@ -387,6 +387,7 @@ export default {
|
|
|
|
|
// page: 1,
|
|
|
|
|
// limit: 10,
|
|
|
|
|
},
|
|
|
|
|
isAdvanceTypeShow:false,
|
|
|
|
|
isShow:false,
|
|
|
|
|
loading: true,
|
|
|
|
|
list: [],
|
|
|
|
@ -485,17 +486,21 @@ export default {
|
|
|
|
|
if (formName === "edit") {
|
|
|
|
|
this.subData = JSON.parse(JSON.stringify(data));
|
|
|
|
|
if(this.subData.parentCode!=null && this.subData.parentCode!=""){
|
|
|
|
|
this.isAdvanceTypeShow=true;
|
|
|
|
|
this.isShow=false;
|
|
|
|
|
}else{
|
|
|
|
|
this.isAdvanceTypeShow=false;
|
|
|
|
|
this.isShow=true
|
|
|
|
|
this.subData.parentCode=null;
|
|
|
|
|
}
|
|
|
|
|
} else if (formName === "add") {
|
|
|
|
|
this.isShow=true
|
|
|
|
|
if(data==null){
|
|
|
|
|
this.isAdvanceTypeShow=false;
|
|
|
|
|
this.subData = {advanceType: false, spUse: false,parentCode:null};
|
|
|
|
|
}else{
|
|
|
|
|
this.subData = {advanceType: false, spUse: false,parentCode:data.code};
|
|
|
|
|
this.isAdvanceTypeShow=true;
|
|
|
|
|
this.subData = {advanceType: data.advanceType, spUse: false,parentCode:data.code};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.subFormVisible = true;
|
|
|
|
|