feate:编辑套餐添加
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user