|
|
@@ -32,6 +32,10 @@
|
|
|
<span class="item-name" v-else style="color:#CCCCCC;">{{ scope.row.name }}</span>
|
|
|
</template>
|
|
|
|
|
|
+ <template #table-column-stock="{scope}">
|
|
|
+ <div style="cursor: pointer;" @click="changeStock(scope.row)">{{ scope.row.stock?parseFloat(scope.row.stock):0 }}</div>
|
|
|
+ </template>
|
|
|
+
|
|
|
<template #table-column-status="{scope}">
|
|
|
<span v-if="scope.row.status == 1">是</span>
|
|
|
<span v-else>-</span>
|
|
|
@@ -56,6 +60,7 @@
|
|
|
<span v-if="!stockWarningInput"><span>{{ scope.row.stockWarning}}</span></span>
|
|
|
<el-input style="width:80%;" ref="sort-input" focus size="mini" v-else placeholder="" v-model="scope.row.stockWarning" @blur="changeInputValue(scope.row, 'stockWarning')" ></el-input>
|
|
|
</template>
|
|
|
+
|
|
|
<template #table-header-stockWarning>
|
|
|
<div class="set-sort">
|
|
|
<span>库存预警</span>
|
|
|
@@ -170,32 +175,17 @@
|
|
|
</item-list-layer>
|
|
|
<el-dialog title="花材" :visible.sync="addDialog" :close-on-click-modal="false" width="600px" >
|
|
|
<div class="ad-modal-content">
|
|
|
- <el-form
|
|
|
- :model="replaceForm"
|
|
|
- :rules="replaceFormRules"
|
|
|
- ref="replaceForm"
|
|
|
- label-width="100px"
|
|
|
- class="demo-form"
|
|
|
- >
|
|
|
+ <el-form :model="replaceForm" :rules="replaceFormRules" ref="replaceForm" label-width="100px" class="demo-form" >
|
|
|
<el-form-item label="名称" prop="name">
|
|
|
- <el-input
|
|
|
- v-model="replaceForm.name"
|
|
|
- placeholder="请输入名称"
|
|
|
- @input="fillName($event)"
|
|
|
- size="small"
|
|
|
- ></el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="拼音缩写" prop="py">
|
|
|
- <el-input
|
|
|
- v-model="replaceForm.py"
|
|
|
- placeholder="拼音缩写"
|
|
|
- size="small"
|
|
|
- ></el-input>
|
|
|
- </el-form-item>
|
|
|
+ <el-input v-model="replaceForm.name" placeholder="请输入名称" @input="fillName($event)" size="small" ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="拼音缩写" prop="py">
|
|
|
+ <el-input v-model="replaceForm.py" placeholder="拼音缩写" size="small" ></el-input>
|
|
|
+ </el-form-item>
|
|
|
|
|
|
<el-form-item label="图片" prop="cover">
|
|
|
- <cl-upload v-model="replaceForm.cover" :successFun="uploadSuccess"></cl-upload>
|
|
|
- <p style="font-size: 14px; color: #cccccc">建议上传图片比例 400X400</p>
|
|
|
+ <cl-upload v-model="replaceForm.cover" :successFun="uploadSuccess"></cl-upload>
|
|
|
+ <p style="font-size: 14px; color: #cccccc">建议上传图片比例 400X400</p>
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="分类" prop="classId">
|
|
|
@@ -456,6 +446,9 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ changeStock(info){
|
|
|
+
|
|
|
+ },
|
|
|
getItemClass(e){
|
|
|
this.classId = e
|
|
|
this.refreshData()
|
|
|
@@ -1188,7 +1181,7 @@ export default {
|
|
|
})
|
|
|
this.dialogFormVisible = false;
|
|
|
},
|
|
|
- //批量改价
|
|
|
+ //改价改数
|
|
|
batchAlterNumFun(){
|
|
|
if(this.batchAlterNum==''){
|
|
|
return
|