|
@@ -118,18 +118,18 @@ export default {
|
|
|
this.classOptions = res.data[0].ttemclass
|
|
|
},
|
|
|
onSubmit () {
|
|
|
- let bool = false
|
|
|
+ let bool = true
|
|
|
if (this.itemname == '' && this.itemclassids.length == 0 && this.iteminfo == '' && this.agentinfo == '' && this.isonsale == '' && this.isonsale !== 0 ) {
|
|
|
- bool = true
|
|
|
+ bool = false
|
|
|
}
|
|
|
this.$refs['list'].param.content = {
|
|
|
- "iteminfo":this.iteminfo,
|
|
|
- "itemclassids":this.itemclassids.length == 0?[]:[this.itemclassids[this.itemclassids.length - 1]],
|
|
|
- "agentinfo":this.agentinfo,
|
|
|
- "pageSize":100,
|
|
|
- "all":bool,
|
|
|
"where":{
|
|
|
- 'isonsale':this.isonsale
|
|
|
+ 'isonsale':this.isonsale,
|
|
|
+ "iteminfo":this.iteminfo,
|
|
|
+ "itemclassids":this.itemclassids.length == 0?[]:[this.itemclassids[this.itemclassids.length - 1]],
|
|
|
+ "agentinfo":this.agentinfo,
|
|
|
+ "pageSize":100,
|
|
|
+ "all":bool,
|
|
|
}
|
|
|
}
|
|
|
this.$refs['list'].listData()
|
|
@@ -139,14 +139,16 @@ export default {
|
|
|
"id":"20230408091703",
|
|
|
"version":1,
|
|
|
"content":{
|
|
|
- "all":true,
|
|
|
- "itemclassids":[],
|
|
|
- "itemname":"",
|
|
|
- "agentinfo":"",
|
|
|
- "pageSize":100,
|
|
|
- "where":{},
|
|
|
- "itemno":"",
|
|
|
- "isExport":1
|
|
|
+ "where":{
|
|
|
+ "all":true,
|
|
|
+ "itemclassids":[],
|
|
|
+ "itemname":"",
|
|
|
+ "agentinfo":"",
|
|
|
+ "pageSize":100,
|
|
|
+ "itemno":"",
|
|
|
+ "isExport":1
|
|
|
+ },
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
window.open(res.data[0].url)
|