diff --git a/src/layout/callEmptyVehicle.vue b/src/layout/callEmptyVehicle.vue index ce8887c..d261a3a 100644 --- a/src/layout/callEmptyVehicle.vue +++ b/src/layout/callEmptyVehicle.vue @@ -104,7 +104,6 @@ export default { standId: store.getters.getStandId, displayGoods: false,// 是否显示料号输入 // displayVehicleType1Selection: false,// 是否显示料箱类型选择 - // timer: '', labelPosition: 'top', workFormRef: ref(), workFormEntity: reactive({ @@ -131,21 +130,9 @@ export default { ] } }, - mounted() { - // this.timer = setInterval(() => { - // // this.getAllTasks() - // }, 2000) - }, - beforeUnmount() { - // clearInterval(this.timer) - }, methods: { vehicleType2ChangeHandle() { - if (this.workFormEntity.vehicleType2 == '间接物料') { - this.displayGoods = true - } else { - this.displayGoods = false - } + this.displayGoods = this.workFormEntity.vehicleType2 === '间接物料'; }, resetForms() { this.workFormEntity = reactive({ @@ -156,7 +143,7 @@ export default { }) }, confirmTask() { - if (this.workFormEntity.vehicleType2 == '') { + if (this.workFormEntity.vehicleType2 === '') { errorBox('请选择物料种类') return } @@ -173,7 +160,7 @@ export default { } callEmptyVehicle(request).then(res => { const response = res.data - if (response.code == 0) { + if (response.code === 0) { ElMessage.success(response.message) this.resetForms() } else { diff --git a/src/layout/goods.vue b/src/layout/goods.vue index b05d86d..cd22077 100644 --- a/src/layout/goods.vue +++ b/src/layout/goods.vue @@ -5,6 +5,8 @@ + 搜索 重置 @@ -248,6 +250,7 @@ export default { pageSize: 10, total: 0, goodsIdQuery: '', + vehicleTypeQuery: '', loading: true, dialogVisible: false, uploadDialogVisible: false, @@ -255,7 +258,21 @@ export default { goodsFormEntity: reactive({}), labelPosition: 'top', goodsFormRef: ref(), - rules: reactive({}) + rules: reactive({}), + vehicleTypeOptions: [ + { + value: "", + label: '全部' + }, + { + value: "直接物料", + label: '直接物料' + }, + { + value: "间接物料", + label: '间接物料' + } + ], } }, mounted() { @@ -282,6 +299,7 @@ export default { pageNo: this.currentPage, pageSize: this.pageSize, goodsId: this.goodsIdQuery.trim(), + goodsType: this.vehicleTypeQuery.trim(), userName: store.getters.getUserName } getGoodsInfoByPage(request).then(res => { diff --git a/src/layout/kateOrdersTable.vue b/src/layout/kateOrdersTable.vue index fd79860..643d632 100755 --- a/src/layout/kateOrdersTable.vue +++ b/src/layout/kateOrdersTable.vue @@ -1,406 +1,432 @@ \ No newline at end of file diff --git a/src/layout/vehicle.vue b/src/layout/vehicle.vue index 410c465..f418a1f 100644 --- a/src/layout/vehicle.vue +++ b/src/layout/vehicle.vue @@ -1,384 +1,395 @@ \ No newline at end of file