|
@@ -26,7 +26,7 @@
|
|
|
<ProductBrand id="inventoryQueryList-productBrandSn" placeholder="请选择产品品牌" v-model="queryParam.productBrandSn"></ProductBrand>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
+ <a-col :md="4" :sm="24">
|
|
|
<a-form-model-item label="产品分类">
|
|
|
<ProductType id="inventoryQueryList-productType" placeholder="请选择产品分类" :isDealer="true" @change="changeType" v-model="productTypeSn"></ProductType>
|
|
|
</a-form-model-item>
|
|
@@ -60,8 +60,23 @@
|
|
|
</a-input-group>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
+ <a-col :md="4" :sm="24">
|
|
|
+ <a-form-item label="产品来源">
|
|
|
+ <a-select
|
|
|
+ placeholder="请选择产品来源"
|
|
|
+ v-model="queryParam.productSysFlag"
|
|
|
+ >
|
|
|
+ <a-select-option value="1">
|
|
|
+ 箭冠
|
|
|
+ </a-select-option>
|
|
|
+ <a-select-option value="0">
|
|
|
+ 自建
|
|
|
+ </a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
</template>
|
|
|
- <a-col :md="12" :sm="24">
|
|
|
+ <a-col :md="10" :sm="24">
|
|
|
<a-checkbox v-model="queryParam.zeroQtyFlag" id="inventoryQueryList-zeroQtyFlag">只查看有库存</a-checkbox>
|
|
|
<a-checkbox v-model="queryParam.enableFlag" :checked="queryParam.enableFlag" id="inventoryQueryList-enableFlag">包括禁用产品</a-checkbox>
|
|
|
<a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="inventoryQueryList-refresh">查询</a-button>
|
|
@@ -167,7 +182,8 @@ export default {
|
|
|
zeroQtyFlag: false, // 库存情况
|
|
|
enableFlag: true, // 显示禁用产品
|
|
|
minUnsalableDays: undefined, // 滞销天数最小值
|
|
|
- maxUnsalableDays: undefined // 滞销天数最大值
|
|
|
+ maxUnsalableDays: undefined, // 滞销天数最大值
|
|
|
+ productSysFlag: undefined
|
|
|
},
|
|
|
productTypeSn: [],
|
|
|
exportLoading: false, // 导出loading
|
|
@@ -199,6 +215,9 @@ export default {
|
|
|
const params = Object.assign(parameter, this.queryParam)
|
|
|
params.zeroQtyFlag = params.zeroQtyFlag ? '0' : ''
|
|
|
params.enableFlag = params.enableFlag ? '' : '1'
|
|
|
+ params.product = {
|
|
|
+ sysFlag: params.productSysFlag || undefined
|
|
|
+ }
|
|
|
return stockList(params).then(res => {
|
|
|
let data
|
|
|
if (res.status == 200) {
|
|
@@ -314,6 +333,7 @@ export default {
|
|
|
this.productTypeSn = []
|
|
|
this.queryParam.minUnsalableDays = undefined // 滞销天数最小值
|
|
|
this.queryParam.maxUnsalableDays = undefined // 滞销天数最大值
|
|
|
+ this.queryParam.productSysFlag = undefined
|
|
|
this.$refs.table.refresh(true)
|
|
|
},
|
|
|
// 合计
|