更新修改耗材信息提交数据格式

This commit is contained in:
YeMingfei666 2024-07-20 18:22:11 +08:00
parent 949a310c71
commit 000def6dc2
1 changed files with 4 additions and 1 deletions

View File

@ -304,6 +304,9 @@
:rules="rules"
class="demo-form-inline"
>
<!-- <el-form-item label="单位" prop="conUnit" >
<el-input v-model="ruleForm.conUnit" placeholder="请输入单位"></el-input>
</el-form-item> -->
<!-- <el-form-item label="单位" prop="conUnit" v-if="dialogtitle == '添加'">
<el-input v-model="ruleForm.conUnit" placeholder="请输入单位"></el-input>
</el-form-item>
@ -859,7 +862,7 @@ export default {
if (valid) {
this.ruleFormLoading = true;
if (this.dialogtitle == "编辑") {
await postapitbConsInfo(this.ruleForm);
await postapitbConsInfo([this.ruleForm]);
this.$message({ type: "success", message: "编辑成功" });
this.dialogshow = false;
} else {