|
@@ -51,9 +51,6 @@
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="库存情况">
|
|
|
- <!-- <a-select placeholder="请选择库存情况" id="inventoryQueryList-zeroQtyFlag" allowClear v-model="queryParam.zeroQtyFlag">
|
|
|
- <a-select-option v-for="item in zeroQtyData" :key="item.id" :value="item.id">{{ item.name }}</a-select-option>
|
|
|
- </a-select> -->
|
|
|
<a-checkbox v-model="queryParam.zeroQtyFlag" id="inventoryQueryList-zeroQtyFlag">只查看有库存</a-checkbox>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
@@ -258,7 +255,12 @@ export default {
|
|
|
// 导出
|
|
|
handleExport () {
|
|
|
const _this = this
|
|
|
- const params = this.queryParam
|
|
|
+ const params = JSON.parse(JSON.stringify(this.queryParam))
|
|
|
+ if (params.zeroQtyFlag) {
|
|
|
+ params.zeroQtyFlag = '0'
|
|
|
+ } else {
|
|
|
+ params.zeroQtyFlag = ''
|
|
|
+ }
|
|
|
this.exportLoading = true
|
|
|
_this.spinning = true
|
|
|
stockExport(params).then(res => {
|