|
|
|
@ -6,12 +6,14 @@
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="filterQuery.name"
|
|
|
|
|
placeholder="请输入单据类型名称"
|
|
|
|
|
clearable
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item class="query-form-item" label="单据类型代码:">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="filterQuery.originAction"
|
|
|
|
|
placeholder="请输入单据类型代码"
|
|
|
|
|
clearable
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
@ -128,10 +130,9 @@ export default {
|
|
|
|
|
loading: false,
|
|
|
|
|
formMap: {
|
|
|
|
|
add: "新增单据流转设置",
|
|
|
|
|
update: "编辑单据流转设置",
|
|
|
|
|
edit: "编辑单据流转设置",
|
|
|
|
|
},
|
|
|
|
|
formName: null,
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -178,7 +179,6 @@ export default {
|
|
|
|
|
this.filterQuery.page = val;
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
onAddSubmit() {
|
|
|
|
|
if (isBlank(this.inputQuery.originAction)) {
|
|
|
|
|
this.$message.error("原单据类型不能为空!");
|
|
|
|
@ -192,10 +192,10 @@ export default {
|
|
|
|
|
this.$message.error("目标所在仓库不能为空!")
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
// if (isBlank(this.inputQuery.defaultInvCode)) {
|
|
|
|
|
// this.$message.error("目标往来仓库不能为空");
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
if (!isBlank(this.inputQuery.beforeTime) && this.inputQuery.beforeTime < 0) {
|
|
|
|
|
this.$message.error("推移时间不能小于0!");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (this.formName === "add") {
|
|
|
|
|
let numRegExp = '^[0-9]*$';
|
|
|
|
@ -210,13 +210,8 @@ export default {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.cancelDialog();
|
|
|
|
|
this.getList();
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.$message.error(error.message);
|
|
|
|
|
this.cancelDialog();
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
updateBusTypePre(this.inputQuery).then((res) => {
|
|
|
|
@ -252,6 +247,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
handleModifyClick(row) {
|
|
|
|
|
this.formName = 'edit';
|
|
|
|
|
this.inputQuery = row;
|
|
|
|
|
this.modifyDialogVisible = true;
|
|
|
|
|
},
|
|
|
|
|