@@ -137,7 +140,12 @@ export default {
}
},
- mounted() {},
+ activated() {
+ this.queryGoodsOrderIn();
+ },
+ mounted() {
+ //this.queryGoodsOrderIn();
+ },
methods: {
formatCellValueTime,
formatterOrderInEnum,
@@ -152,7 +160,11 @@ export default {
message: '查询成功',
type: 'success',
});
- this.goodsOrderInList = responseData['returnData'];
+ // 设置每条记录的 createPerson 为当前登录用户名
+ this.goodsOrderInList = responseData['returnData'].map(item => ({
+ ...item,
+ createPerson: this.$store.state.user.userName
+ }));
} else {
// 服务报错
ElMessageBox.alert(`服务器返回失败:${responseData.msg}`, '查询失败', {
@@ -170,6 +182,14 @@ export default {
})
})
},
+ loginToWcs() {
+ const wcsUrl = `https://wxperkinsasrs.ap.cat.com/wms/#/PDAview`;
+ window.location.href = wcsUrl; // 打开新窗口
+ },
+ login(){
+ const msg = new SpeechSynthesisUtterance('一号站台');
+ window.speechSynthesis.speak(msg);
+ },
// 删除入库单
deleteOrder(row) {
ElMessageBox.confirm('确定执行删除吗?','提示')
diff --git a/src/layout/goodsInForPDA.vue b/src/layout/goodsInForPDA.vue
index 8854fe3..8f4406e 100644
--- a/src/layout/goodsInForPDA.vue
+++ b/src/layout/goodsInForPDA.vue
@@ -2,44 +2,54 @@
- PDA界面
+ 通道三原材料盘点回库
-
+
-
+
- 重置数量
+ 返回菜单
+
+ 重置数据
+
+
+
+
- 确认修改
+ 确认回库
@@ -47,6 +57,7 @@
+
@@ -59,6 +70,7 @@ import { reactive, ref } from 'vue'
import {ElMessage, ElMessageBox} from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import UploadExcelPart from '@/excel/UploadExcelPart.vue'
+import BindingGoods from "@/components/BindingGoods.vue";
// const taskInRequestRef = ref()
// const bindingData = reactive({
// vehicleNo: '1',// 载具号
@@ -98,6 +110,8 @@ export default {
goodsNum: '',
rowId: ''
},
+ // 展示绑定物料的弹窗
+ showBindingGoods: false,
bindOrderInList: []
}
},
@@ -106,8 +120,18 @@ export default {
methods: {
test() {
console.log(this.bindingData);
+ },
+ checkGoods(){
+
},
updateGoodsInfo123(){
+ if(this.bindingData.vehicleNo === '') {
+ ElMessage({
+ message: '托盘号不能为空',
+ type: 'error',
+ });
+ return;
+ }
apiOrderIn.updateForInformation({vehicleNo:this.bindingData.vehicleNo,goodsId:this.bindingData.goodsId,goodsNum:this.bindingData.goodsNum,rowId:this.bindingData.rowId}).then(res => {
const responseData = res.data
if (responseData.code === 0) {
@@ -135,6 +159,20 @@ export default {
},
queryGoodsOrderIn() {
+ if(this.bindingData.vehicleNo === '') {
+ ElMessage({
+ message: '请输入托盘号!',
+ type: 'error',
+ });
+ return;
+ }
+ // if(this.bindingData.goodsId !== '' || this.bindingData.goodsNum !== '') {
+ // ElMessage({
+ // message: '查询时不允许输入物料号和数量!',
+ // type: 'error',
+ // });
+ // return;
+ // }
this.goodsOrderInList = [];
apiOrderIn.getOrderInWithVehicleNo(this.bindingData.vehicleNo).then(res => {
const responseData = res.data
@@ -151,7 +189,7 @@ export default {
this.goodsOrderInList = responseData['returnData'];
} else {
// 服务报错
- ElMessageBox.alert(`服务器返回失败:${responseData.msg}`, '查询失败', {
+ ElMessageBox.alert(`服务器返回失败:${responseData.message}`, '查询失败', {
type: 'warning',
confirmButtonText: '确定',
showClose: false
@@ -241,6 +279,10 @@ export default {
this.bindingData.goodsId = '';
this.bindingData.goodsNum = '';
},
+ loginToWcs() {
+ const wcsUrl = `https://wxperkinsasrs.ap.cat.com/wms/#/PDAview`;
+ window.location.href = wcsUrl; // 打开新窗口
+ },
// addTempTasks(formEl, formData) {// 生成入库任务
// if (!formEl) return
// formEl.validate((valid) => {
diff --git a/src/layout/goodsOut.vue b/src/layout/goodsOut.vue
index cd8669c..08745fc 100644
--- a/src/layout/goodsOut.vue
+++ b/src/layout/goodsOut.vue
@@ -4,11 +4,12 @@
-
+
+
-
-
+
+
@@ -16,9 +17,16 @@
查询出库单
- 手动下发出库
- 一键出库
+ 手动出库
+ 全部执行
+ 完成工单
+ 导出当前工单
+ 导出工单模板
+
+
+
+
@@ -29,17 +37,10 @@
-->
-
-
-
-
-
-
-
-
-
+
+
+
@@ -57,6 +58,11 @@
+
+
+
+
+
@@ -70,14 +76,17 @@