feat: 增加点歌配置列表页面,修复转桌报错导致页面无反应问题,去除添加耗材的库存数量以及弹窗关闭表单重置失败问题
This commit is contained in:
@@ -18,9 +18,9 @@
|
||||
<el-form-item label="耗材价格" prop="price">
|
||||
<el-input-number v-model="form.price" placeholder="请输入耗材价格"></el-input-number>
|
||||
</el-form-item>
|
||||
<el-form-item label="库存">
|
||||
<!-- <el-form-item label="库存">
|
||||
<el-input-number v-model="form.stockNumber" placeholder="请输入库存值"></el-input-number>
|
||||
</el-form-item>
|
||||
</el-form-item> -->
|
||||
<el-form-item label="状态">
|
||||
<el-switch v-model="form.status" :active-value="1" :inactive-value="0"></el-switch>
|
||||
</el-form-item>
|
||||
@@ -90,8 +90,8 @@ const basicForm = {
|
||||
conName: "",
|
||||
consGroupId: "",
|
||||
conUnit: "",
|
||||
price: "",
|
||||
conWarning: "",
|
||||
price: undefined,
|
||||
conWarning: undefined,
|
||||
};
|
||||
const forms = ref([{ ...basicForm }]);
|
||||
const form = reactive({
|
||||
@@ -167,7 +167,9 @@ async function submitForms() {
|
||||
}
|
||||
}
|
||||
function reset() {
|
||||
form.value = { ...basicForm };
|
||||
console.log("reset");
|
||||
Object.assign(form, basicForm);
|
||||
console.log(form);
|
||||
}
|
||||
defineExpose({
|
||||
open,
|
||||
|
||||
Reference in New Issue
Block a user