|
|
@ -39,6 +39,7 @@ |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import { getPageList } from "@/api/wms-api" |
|
|
|
import { tableMixins } from "@/mixins/TableMixins" |
|
|
|
import { LoadingMixins } from "@/mixins/LoadingMixins" |
|
|
|
import { drawerMixins } from "@/mixins/drawerMixins" |
|
|
@ -68,6 +69,58 @@ export default { |
|
|
|
mounted () { |
|
|
|
this.paging(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
//渲染数据 |
|
|
|
paging(callback) { |
|
|
|
this.Loading.tableLoading = true; |
|
|
|
this.PageListParams.SkipCount = (this.oldSkipCount - 1) * this.PageListParams.MaxResultCount |
|
|
|
let _type25 = { |
|
|
|
"logic": "And", |
|
|
|
"column": "transType", |
|
|
|
"action": "!=", |
|
|
|
"value": "25" |
|
|
|
} |
|
|
|
let _type26 = { |
|
|
|
"logic": "And", |
|
|
|
"column": "transType", |
|
|
|
"action": "!=", |
|
|
|
"value": "26" |
|
|
|
} |
|
|
|
let _type35 = { |
|
|
|
"logic": "And", |
|
|
|
"column": "transType", |
|
|
|
"action": "!=", |
|
|
|
"value": "35" |
|
|
|
} |
|
|
|
// 默认事务类型不等于 结算出库、客户ASN、隔离 |
|
|
|
if(this.PageListParams.condition.filters.length <= 0){ |
|
|
|
this.PageListParams.condition.filters.push(_type25,_type26,_type35) |
|
|
|
}else{ |
|
|
|
let _number = [] |
|
|
|
this.PageListParams.condition.filters.forEach(element => { |
|
|
|
if(element.column == 'transType'){ |
|
|
|
_number.push(element.value) |
|
|
|
} |
|
|
|
}); |
|
|
|
if(_number.indexOf('25') < 0){ |
|
|
|
this.PageListParams.condition.filters.push(_type25) |
|
|
|
} |
|
|
|
if(_number.indexOf('26') < 0){ |
|
|
|
this.PageListParams.condition.filters.push(_type26) |
|
|
|
} |
|
|
|
if(_number.indexOf('35') < 0){ |
|
|
|
this.PageListParams.condition.filters.push(_type35) |
|
|
|
} |
|
|
|
} |
|
|
|
getPageList(this.PageListParams, this.URL).then(res => { |
|
|
|
this.tableData = res.items |
|
|
|
this.totalCount = res.totalCount |
|
|
|
this.pagingCallback(callback) |
|
|
|
}).catch(err => { |
|
|
|
this.Loading.tableLoading = false |
|
|
|
}) |
|
|
|
}, |
|
|
|
} |
|
|
|
}; |
|
|
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
|
|