|
@@ -309,17 +309,17 @@
|
|
|
</el-select>
|
|
|
<el-input
|
|
|
v-model="allEditObj.stock"
|
|
|
- placeholder="请输入库存(件)"
|
|
|
- class="sa-w-200 sa-m-r-10 sa-m-b-10"
|
|
|
+ placeholder="请输入库存"
|
|
|
+ class="sa-w-250 sa-m-r-10 sa-m-b-10"
|
|
|
>
|
|
|
- <template #prepend>库存(件)</template>
|
|
|
+ <template #prepend>库存</template>
|
|
|
</el-input>
|
|
|
<el-input
|
|
|
v-model="allEditObj.stockThreshold"
|
|
|
- placeholder="请输入库存预警值(件)"
|
|
|
- class="sa-w-200 sa-m-r-10 sa-m-b-10"
|
|
|
+ placeholder="请输入库存预警值"
|
|
|
+ class="sa-w-300 sa-m-r-10 sa-m-b-10"
|
|
|
>
|
|
|
- <template #prepend>库存预警值(件)</template>
|
|
|
+ <template #prepend>库存预警值</template>
|
|
|
</el-input>
|
|
|
<el-button type="primary" @click="batchEdit" class="sa-m-b-10"
|
|
|
>批量设置</el-button
|
|
@@ -480,6 +480,7 @@
|
|
|
import { CircleCheck, CircleCloseFilled, Edit, Loading } from '@element-plus/icons-vue';
|
|
|
|
|
|
import { api } from '../goods.service';
|
|
|
+ import { NIL } from 'uuid';
|
|
|
|
|
|
export default {
|
|
|
name: 'GoodsEditNew',
|
|
@@ -595,8 +596,8 @@
|
|
|
const allEditObj = ref({
|
|
|
price: null,
|
|
|
otPrice: null,
|
|
|
- stock: 0,
|
|
|
- stockThreshold: 0,
|
|
|
+ stock: null,
|
|
|
+ stockThreshold: null,
|
|
|
});
|
|
|
|
|
|
// 添加主规格
|
|
@@ -798,10 +799,10 @@
|
|
|
|
|
|
// 清空输入框
|
|
|
allEditObj.value = {
|
|
|
- price: 0,
|
|
|
- otPrice: 0,
|
|
|
- stock: 0,
|
|
|
- stockThreshold: 0,
|
|
|
+ price: null,
|
|
|
+ otPrice: null,
|
|
|
+ stock: null,
|
|
|
+ stockThreshold: null,
|
|
|
};
|
|
|
|
|
|
// 清空选择的规格
|