-
-
+
+
-
+
-
-
+
+
+
+
+
@@ -20,6 +25,13 @@
:clearInput="false" :showEmpty="true" />
+
+
+
+
+
+
+
@@ -298,6 +310,9 @@
打印标签
+
+ 数字钢卷
+
发货
@@ -680,7 +695,7 @@ export default {
type: Boolean,
default: false,
},
- hideType: {
+ showMaterialType: {
type: Boolean,
default: false,
},
@@ -762,6 +777,14 @@ export default {
type: Boolean,
default: false,
},
+ useWarehouseIds: {
+ type: Boolean,
+ default: false,
+ },
+ warehouseOptions: {
+ type: Array,
+ default: () => [],
+ },
},
data() {
return {
@@ -883,6 +906,7 @@ export default {
loading: false,
list: [],
},
+ warehouseIds: '',
__printOldTitle: document.title,
floatLayerConfig: {
columns: [
@@ -974,12 +998,21 @@ export default {
},
},
created() {
- this.getList();
if (this.showExportTime) {
this.getUserList();
}
+ if (this.useWarehouseIds) {
+ this.warehouseIds = this.warehouseOptions.map(item => item.value).join(',');
+ }
+ this.getList();
},
methods: {
+ // 进入数字钢卷页面
+ handleNumberCoilClick(row) {
+ this.$router.push({
+ path: '/wms/coil/' + row.coilId,
+ });
+ },
// 处理行点击事件
handleRowClick(row) {
this.currentCoilId = row.coilId;
@@ -1186,6 +1219,9 @@ export default {
}
// 如果没有设置itemType,则设置为raw_material
query.selectType = this.querys.materialType === '原料' ? 'raw_material' : 'product';
+ if (this.useWarehouseIds) {
+ query.warehouseIds = this.warehouseIds;
+ }
if (this.showWaybill) {
const { shipmentTime, ...query } = {
...this.queryParams,