diff --git a/klp-ui/src/components/CoilSelector/index.vue b/klp-ui/src/components/CoilSelector/index.vue index ffd38724..65e765ae 100644 --- a/klp-ui/src/components/CoilSelector/index.vue +++ b/klp-ui/src/components/CoilSelector/index.vue @@ -35,23 +35,29 @@ - - + + + + + + + - + - + - + - + @@ -266,6 +272,10 @@ export default { orderId: { type: String, default: null + }, + defaultType: { + type: String, + default: 'product' } }, data() { @@ -287,7 +297,8 @@ export default { itemMaterial: null, itemManufacturer: null, actualWarehouseId: null, - selectType: 'product', + itemType: this.defaultType, + selectType: this.defaultType, status: 0, // 不包含已发货的钢卷 dataType: 1 // 只查询当前数据,不查询历史数据 }, @@ -485,6 +496,7 @@ export default { ...this.queryParams, ...this.filters, }; + queryPayload.selectType = queryPayload.itemType; // 处于销售视角,且my视图时,只查询当前用户的钢卷 console.log('this.salesRestricted', this.salesRestricted, this.currentTab, this.currentUserId); if (this.salesRestricted && this.currentTab === 'my') { @@ -536,7 +548,8 @@ export default { currentCoilNo: null, grade: null, dataType: 1, - selectType: 'raw_material', + itemType: this.defaultType, + selectType: this.defaultType, }; this.getList(); },