@@ -983,9 +987,19 @@ export default {
type: Boolean,
default: false,
},
+ isShipView: {
+ type: Boolean,
+ default: false,
+ },
},
data() {
return {
+ shipViewModel: {
+ status: 'all', // all, has, none
+ allCount: 0,
+ hasCount: 0,
+ noneCount: 0,
+ },
// 按钮loading
buttonLoading: false,
showProcessFlow: false,
@@ -1845,6 +1859,49 @@ export default {
return;
}
+ if (this.isShipView) {
+ // query.status = this.shipViewModel.status;
+ query.status = 1;
+ if (this.shipViewModel.status === 'all') {
+ listMaterialCoil(query).then(response => {
+ this.materialCoilList = response.rows
+ this.total = response.total;
+ this.loading = false;
+ });
+ getCoilStatisticsList(statisticQuery).then(res => {
+ this.statistics = res.data || [];
+ })
+ } else if (this.shipViewModel.status === 'has') {
+ listBoundCoil(query).then(res => {
+ this.materialCoilList = res.rows || [];
+ this.total = res.total;
+ this.loading = false;
+ })
+ getBoundCoilStatisticsList(query).then(res => {
+ this.statistics = res.data || [];
+ })
+ } else if (this.shipViewModel.status === 'none') {
+ query.excludeBound = true;
+ listMaterialCoil(query).then(response => {
+ this.materialCoilList = response.rows
+ this.total = response.total;
+ this.loading = false;
+ });
+ getCoilStatisticsList(statisticQuery).then(res => {
+ this.statistics = res.data || [];
+ })
+ }
+
+ listBoundCoil({ ...query, pageNum: 1, pageSize: 1 }).then(res => {
+ this.shipViewModel.hasCount = res.total;
+ })
+
+ listMaterialCoil({ ...query, pageNum: 1, pageSize: 1, excludeBound: true }).then(response => {
+ this.shipViewModel.noneCount = response.total;
+ });
+ return;
+ }
+
listMaterialCoil(query).then(response => {
this.materialCoilList = response.rows
this.total = response.total;
diff --git a/klp-ui/src/views/wms/coil/ship.vue b/klp-ui/src/views/wms/coil/ship.vue
index 9efb8c00..94185b2c 100644
--- a/klp-ui/src/views/wms/coil/ship.vue
+++ b/klp-ui/src/views/wms/coil/ship.vue
@@ -1,5 +1,13 @@
-
+