|
|
|
@ -559,6 +559,7 @@ export default {
|
|
|
|
|
if (formName === "edit") {
|
|
|
|
|
this.subData = JSON.parse(JSON.stringify(data));
|
|
|
|
|
this.subData.advanceType = this.subData.advanceType.toString();
|
|
|
|
|
this.query.advanceType=1;
|
|
|
|
|
if (this.subData.parentCode != null && this.subData.parentCode != "") {
|
|
|
|
|
this.isAdvanceTypeShow = true;
|
|
|
|
|
this.isShow = false;
|
|
|
|
@ -612,6 +613,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
hideForm() { // 新增,编辑---取消
|
|
|
|
|
this.query.advanceType=null;
|
|
|
|
|
this.formVisible = false;
|
|
|
|
|
this.subFormVisible = false;
|
|
|
|
|
this.resetForm();
|
|
|
|
@ -628,6 +630,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
forInvSubmit() { // 新增,编辑---提交
|
|
|
|
|
this.subData.advanceType=1;
|
|
|
|
|
this.$refs["dataForm"].validate(valid => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
saveSubWarehouse(this.subData, this.formName).then((response) => {
|
|
|
|
|