|
|
|
@ -33,7 +33,7 @@
|
|
|
|
|
:default-expand-all="isExpandAll"
|
|
|
|
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
|
<el-table-column label="序号" type="index" ref="dataForm"></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="name"
|
|
|
|
|
label="仓库名称"
|
|
|
|
@ -131,7 +131,7 @@
|
|
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
|
<el-form-item label="上级仓库" prop="parentCode">
|
|
|
|
|
<treeselect v-model="subData.parentCode" :options="invOptions" :normalizer="normalizer"
|
|
|
|
|
<treeselect v-model="subData.parentInvName" :options="invOptions" :normalizer="normalizer"
|
|
|
|
|
:disabled="isShow"
|
|
|
|
|
style="width: 80%"
|
|
|
|
|
placeholder="选择上级仓库"/>
|
|
|
|
@ -458,13 +458,25 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.sysSubList=null;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
hideForm() { // 新增,编辑---取消
|
|
|
|
|
this.formVisible = false;
|
|
|
|
|
this.subFormVisible = false;
|
|
|
|
|
this.resetForm();
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
// 刷新表单
|
|
|
|
|
resetForm() {
|
|
|
|
|
if (this.$refs["dataForm"]) {
|
|
|
|
|
// 清空验证信息表单
|
|
|
|
|
this.$refs["dataForm"].clearValidate();
|
|
|
|
|
// 刷新表单
|
|
|
|
|
this.$refs["dataForm"].resetFields();
|
|
|
|
|
this.getList();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
forInvSubmit() { // 新增,编辑---提交
|
|
|
|
|
this.$refs["dataForm"].validate(valid => {
|
|
|
|
|
if (valid) {
|
|
|
|
@ -567,6 +579,8 @@ export default {
|
|
|
|
|
hideThrWarehouseTable() {
|
|
|
|
|
this.thrWareHouseVisible = false;
|
|
|
|
|
this.thrSubWareHouseVisible = false;
|
|
|
|
|
//刷新表单
|
|
|
|
|
this.thirdSubQuery.name="";
|
|
|
|
|
},
|
|
|
|
|
//绑定第三方分库
|
|
|
|
|
bindSubThrWarehouse() {
|
|
|
|
|