|
|
@@ -52,7 +52,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
- <template #slot-add-goods-btn>
|
|
|
+ <template #slot-add-item-btn>
|
|
|
<el-button type="primary" size="mini" @click="replaceBtnFn(0)">添加</el-button>
|
|
|
</template>
|
|
|
|
|
|
@@ -63,6 +63,15 @@
|
|
|
</el-radio-group>
|
|
|
</template>
|
|
|
|
|
|
+ <template #slot-more-do-btn>
|
|
|
+ <el-dropdown size="medium" split-button type="primary" @click="setCp" @command="doMore">
|
|
|
+ 产品归类
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
+ <el-dropdown-item command="delItem">全部删除</el-dropdown-item>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </el-dropdown>
|
|
|
+ </template>
|
|
|
+
|
|
|
</x-crud>
|
|
|
|
|
|
<el-dialog :title="`${currentItemId == 0 ? '添加' : '修改'}花材`" :visible.sync="addDialog" :close-on-click-modal="false" width="600px" >
|
|
|
@@ -239,6 +248,19 @@ export default {
|
|
|
},
|
|
|
computed: {},
|
|
|
methods: {
|
|
|
+ setCp(){
|
|
|
+ if (this.$util.isEmpty(this.selects.ids)) {
|
|
|
+ this.$message.error('请选择花材')
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ doMore(c){
|
|
|
+ if (this.$util.isEmpty(this.selects.ids)) {
|
|
|
+ this.$message.error('请选择花材')
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ this.$message.success(c)
|
|
|
+ },
|
|
|
changeCpClassStyle(e){
|
|
|
this.cpClassStyle = e
|
|
|
this.app.refresh({ classId: this.classId,cpId:this.cpId,cpClassStyle:this.cpClassStyle })
|
|
|
@@ -420,13 +442,13 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
prop: 'stockWarning',
|
|
|
- label: '库存预警值',
|
|
|
+ label: '库存预警',
|
|
|
align: 'center',
|
|
|
'min-width': 100,
|
|
|
},
|
|
|
{
|
|
|
prop: 'weight',
|
|
|
- label: '重量(公斤)',
|
|
|
+ label: '重量',
|
|
|
align: 'center',
|
|
|
'min-width': 100,
|
|
|
},
|
|
|
@@ -480,9 +502,9 @@ export default {
|
|
|
})
|
|
|
.set('layout', [
|
|
|
['slot-tabs'],
|
|
|
- ['slot-cpClassStyle','slot-cp-class','slot-item-class','search-key','flex1', 'refresh-btn'],
|
|
|
+ ['slot-cpClassStyle','slot-cp-class','slot-item-class','search-key','flex1','slot-add-item-btn', 'refresh-btn'],
|
|
|
['data-table'],
|
|
|
- ['flex1', 'pagination'],
|
|
|
+ ['slot-more-do-btn','flex1', 'pagination'],
|
|
|
])
|
|
|
.done();
|
|
|
app.refresh({ classId: this.classId,cpId:this.cpId,cpClassStyle:this.cpClassStyle })
|