|
|
@@ -307,7 +307,7 @@ export default {
|
|
|
let that = this
|
|
|
if (query !== '') {
|
|
|
this.loading = true;
|
|
|
- this.$service.ptCp.list({search:query}).then(res=>{
|
|
|
+ this.$service.ptCp.list({search:query,delStatus:0}).then(res=>{
|
|
|
that.loading = false
|
|
|
that.cpInfoList = res.list
|
|
|
})
|
|
|
@@ -376,7 +376,17 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
if(cmd == 'setSuggestItem'){
|
|
|
-
|
|
|
+ if (this.$util.isEmpty(this.selectedIds)) {
|
|
|
+ this.$message.error('请选花材')
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ if(this.suggestClassId == 0){
|
|
|
+ that.$message.error('请选择分类')
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ this.$service.ptItemCatRelate.batchSet({ids:JSON.stringify(this.selectedIds),classId:this.suggestClassId}).then(res=>{
|
|
|
+ that.$message.success('操作成功')
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
changeCpClassStyle(e){
|