优化耗材列表编辑
This commit is contained in:
parent
4d1029cd6e
commit
f6b0bcc5f1
|
|
@ -108,7 +108,8 @@
|
|||
</el-form-item>
|
||||
<el-form-item label="耗材类型" prop="conTypeId" v-if="dialogtitle == '添加'">
|
||||
<el-select v-model="ruleForm.conTypeId" placeholder="请选择">
|
||||
<el-option v-for="item in this.tableData.data" :key="item.conTypeId" :label="item.conTypeName" :value="item.id">
|
||||
<el-option v-for="item in this.tableData.data" :key="item.conTypeId" :label="item.conTypeName"
|
||||
:value="item.id">
|
||||
</el-option>
|
||||
</el-select>
|
||||
|
||||
|
|
@ -144,6 +145,9 @@
|
|||
<el-form-item label="预警值">
|
||||
<el-input v-model="ruleForm.conWarning" placeholder="请输入耗材预警值"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="状态" v-if="dialogtitle == '编辑'">
|
||||
<el-switch v-model="ruleForm.status" active-value="1" inactive-value="0"></el-switch>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="单位耗材值" prop="surplusStock">
|
||||
<el-input v-model="ruleForm.surplusStock" placeholder="请输入单位耗材值"></el-input>
|
||||
</el-form-item> -->
|
||||
|
|
@ -321,7 +325,8 @@ export default {
|
|||
// surplusStock: '',
|
||||
conUnit: "",
|
||||
conWarning: "999",
|
||||
shopId: localStorage.getItem("shopId")
|
||||
shopId: localStorage.getItem("shopId"),
|
||||
status: ''
|
||||
},
|
||||
rules: {
|
||||
conCode: [
|
||||
|
|
@ -500,7 +505,6 @@ export default {
|
|||
// this.ruleForm.surplusStock = item.surplusStock
|
||||
this.ruleForm.conWarning = item.conWarning;
|
||||
this.ruleForm.conUnit = item.conUnit;
|
||||
console.log(this.ruleForm, item);
|
||||
}
|
||||
this.dialogshow = true;
|
||||
},
|
||||
|
|
@ -514,7 +518,7 @@ export default {
|
|||
this.dialogshow = false;
|
||||
} else {
|
||||
//添加
|
||||
console.log(this.ruleForm,'调试')
|
||||
console.log(this.ruleForm, '调试')
|
||||
await posttbConsInfo({
|
||||
...this.ruleForm
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue