feate:编辑套餐添加
Build and Deploy Vue3 / build (push) Successful in 2m56s
Build and Deploy Vue3 / deploy (push) Successful in 1m25s

This commit is contained in:
2026-02-04 10:49:24 +08:00
parent 5a31de64b3
commit e96e9c4a7e
+7
View File
@@ -663,6 +663,9 @@
<el-empty v-if="extraSpecList.length === 0" description="所有参数已在参数配置中选择" :image-size="40" />
</div>
</el-form-item>
<el-form-item label="库存数量" prop="inventory">
<el-input-number v-model="planForm.inventory" :min="0" style="width: 100%" placeholder="库存数量" />
</el-form-item>
<el-form-item label="排序索引" prop="index">
<el-input-number v-model="planForm.index" :min="0" style="width: 100%" />
</el-form-item>
@@ -1607,6 +1610,7 @@ const planForm = reactive({
args: '',
extra_arg_ids: '',
extra_arg_ids_array: [],
inventory: 0,
index: 0,
disable: false
})
@@ -1962,6 +1966,7 @@ const handleAddPlan = async () => {
args: '',
extra_arg_ids: '',
extra_arg_ids_array: [],
inventory: 0,
index: 0,
disable: false
})
@@ -2002,6 +2007,7 @@ const handleEditPlan = async (row) => {
args: data.args || '',
extra_arg_ids: extraArgIdsArray.join(','),
extra_arg_ids_array: extraArgIdsArray,
inventory: data.inventory || 0,
index: data.index || 0,
disable: data.disable || false
})
@@ -2059,6 +2065,7 @@ const submitPlanForm = () => {
note: planForm.note || '',
args: planForm.args || '',
extra_arg_ids: planForm.extra_arg_ids || '',
inventory: Number(planForm.inventory) || 0,
index: Number(planForm.index) || 0
}