1.开放单据生成功能的类型选项

prod
x_z 2 years ago
parent fbfa8f4cf3
commit 2e83449998

@ -119,6 +119,7 @@ export default {
targetAction: null,
name: null,
enable: null,
type: null,
remark: null
},
enableMap: {
@ -131,6 +132,7 @@ export default {
1: "耗材领用",
2: "产品申购",
3: "采购计划",
4: "盘点转单"
},
formMap: {
add: "新增单据生成设置",
@ -186,11 +188,11 @@ export default {
onAddSubmit() {
if (isBlank(this.inputQuery.originName)) {
this.$message.error("单类型名称不能为空!")
this.$message.error("类型名称不能为空!")
return;
}
if (isBlank(this.inputQuery.originAction)) {
this.$message.error("单类型代码不能为空!");
this.$message.error("类型代码不能为空!");
return;
}
if (isBlank(this.inputQuery.targetAction)) {
@ -198,7 +200,11 @@ export default {
return;
}
if (isBlank(this.inputQuery.enable)) {
this.$message.error("请选择启用状态!")
this.$message.error("请选择启用状态!");
return;
}
if (isBlank(this.inputQuery.type)) {
this.$message.error("请选择类型!");
return;
}
@ -209,10 +215,10 @@ export default {
this.$message.error("单据类型名称不得为纯数字类型!");
return;
}
this.inputQuery.type = 1; //
addBusTypeChange(this.inputQuery).then((res) => {
if (res.code === 20000) {
this.cancelDialog();
this.loading = false;
this.getList();
}

@ -15,7 +15,6 @@
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11">
<el-form-item label="目标单据类型" prop="targetAction">
@ -48,6 +47,24 @@
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11">
<el-form-item label="类型">
<el-select v-model="inputQuery.type"
size="small"
placeholder="类型"
style="width: 90%"
clearable
>
<el-option label="耗材领用" :value="1"></el-option>
<el-option label="产品申购" :value="2"></el-option>
<el-option label="采购计划" :value="3"></el-option>
<el-option label="盘点转单" :value="4"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="23" type="flex">
<el-form-item prop="comments">
@ -87,14 +104,14 @@ export default {
originName: [
{
required: true,
message: "单类型名称不能为空",
message: "类型名称不能为空",
trigger: "blur"
}
],
originAction: [
{
required: true,
message: "单类型代码不能为空",
message: "类型代码不能为空",
trigger: "blur"
}
],
@ -112,6 +129,19 @@ export default {
trigger: "blur"
}
],
type: [
{
required: true,
message: "请选择类型",
trigger: "blur"
}
],
},
typeMap: {
1: "耗材领用",
2: "产品申购",
3: "采购计划",
4: "盘点转单"
},
}
},

Loading…
Cancel
Save