From 7b811ef5e3d5021f65f75d5395d9a14aed1fdcc3 Mon Sep 17 00:00:00 2001
From: niantianya <2290907227@qq.com>
Date: Fri, 19 Jul 2024 10:37:29 +0800
Subject: [PATCH] cy
---
common/http.api.js | 2 +
pages/AvgCarry/index.vue | 151 +++++++++++-------
pages/AvgOrderPkg/index.vue | 6 +-
pages/checkAccept/checkHomework.vue | 28 +++-
pages/checkAccept/checkHomeworks.vue | 8 +-
pages/checkAccept/index.vue | 48 +++---
pages/index/index.vue | 4 +-
pages/payInto/index.vue | 8 +-
pages/queryPoint/index.vue | 36 +++--
pages/receive/index.vue | 18 ++-
.../receiveHomeWork/receiveHomeWork.vue | 8 +-
.../receiveHomeWorks/receiveHomeWork.vue | 2 +-
pages/release/index.vue | 6 +-
.../components/select-lay/select-lay.vue | 5 +-
14 files changed, 200 insertions(+), 130 deletions(-)
diff --git a/common/http.api.js b/common/http.api.js
index 7e0a52d..1134c95 100644
--- a/common/http.api.js
+++ b/common/http.api.js
@@ -232,6 +232,8 @@ const install = (Vue, vm) => {
getTaskNumber: (params = {}) => vm.$u.get('/system/dict/data/type/once_pick_task_number'),
// 获取盘点类型的字典
getInvType: (params = {}) => vm.$u.get('/system/dict/data/type/inv_type_dict'),
+ // 订单类型
+ orderTypeDict: (params = {}) => vm.$u.get('/system/dict/data/type/order_type_dict'),
//获取AGV点位的字典
getCarry:(params = {}) => vm.$u.get('/system/dict/data/type/agv_move_location'),
//获取托盘状态字典
diff --git a/pages/AvgCarry/index.vue b/pages/AvgCarry/index.vue
index 04defec..5793f93 100644
--- a/pages/AvgCarry/index.vue
+++ b/pages/AvgCarry/index.vue
@@ -4,16 +4,17 @@
扫描托盘条码:
+ style="background-color: #ffffff;margin-bottom: 20px;margin-top: 20rpx;" placeholder="请扫描或输入要搬运的托盘条码"
+ :focus="focusFlag" @input="changeCode()">
搬运起始点位:
-
-
-
-
+ -->
+
@@ -21,10 +22,14 @@
搬运目标点位:
-
-
+ -->
+
+
@@ -73,7 +73,7 @@
-
+
@@ -195,31 +195,32 @@
}
},
changeFilm(item){
- if(item.extend3 == 0 ){
- item.extend3 = 1
- }else if(item.extend3 == 1 ){
- item.extend3 = 0
- }else if(item.extend3 == "" ){
- item.extend3 = 1
+ if(item.isWrap == 0 ){
+ item.isWrap = 1
+ }else if(item.isWrap == 1 ){
+ item.isWrap = 0
+ }else if(item.isWrap == "" || item.isWrap == undefined || item.isWrap == 'undefined' || item.isWrap == 0 ){
+ item.isWrap = 1
}
this.orderNoList.forEach(item1=>{
if(item1.orderNo === item.orderNo){
- item1.extend3 = item.extend3
+ item1.isWrap = item.isWrap
}
})
+
},
changeWeight(item){
- if(item.extend4 == 0 ){
- item.extend4 = 1
- }else if(item.extend4 == 1 ){
- item.extend4 = 0
- }else if(item.extend4 == "" ){
- item.extend4 = 1
+ if(item.isVerWeight == 0 ){
+ item.isVerWeight = '1'
+ }else if(item.isVerWeight == 1 ){
+ item.isVerWeight = '0'
+ }else if(item.isVerWeight == "" || item.isVerWeight == undefined || item.isVerWeight == 'undefined' || item.isVerWeight == 0 ){
+ item.isVerWeight = '1'
}
this.orderNoList.forEach(item1=>{
if(item1.orderNo === item.orderNo){
- item1.extend4 = item.extend4
+ item1.isVerWeight = item.isVerWeight
}
})
@@ -234,7 +235,6 @@
handleOrderNoOne(item){
let _ = this;
let detailIds = [];
- console.log(item.extend3,item.extend4);
detailIds.push(item.id);
let tempData = {
orderNo: item.orderNo,
@@ -243,13 +243,12 @@
detailIds:detailIds,
goodNo:item.goodNo,
bgGoodName:item.bgGoodName,
- extend3:item.extend3,
- extend4:item.extend4,
+ isWrap:item.isWrap,
+ isVerWeight:item.isVerWeight,
actualQty:item.ableQty,
packageQty:0
};
_.orderNoList.push(tempData);
- console.log(_.orderNoList);
},
//增加时多个选择
handleOrderNoMulti(item){
@@ -367,15 +366,16 @@
});
this.$u.toast("数据列表已刷新");
},
- goodDetail(sid, did,extend3,extend4) {
+ goodDetail(sid, did,isWrap,isVerWeight,ableQty) {
this.$u.route({
url: 'pages/checkAccept/checkHomework',
type: 'navigateTo',
params: {
sid,
did,
- extend3,
- extend4
+ isWrap,
+ isVerWeight,
+ ableQty,
}
})
},
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 58d1ff5..3fa388b 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -23,10 +23,10 @@
出库分拣
-
+
库存查询
diff --git a/pages/payInto/index.vue b/pages/payInto/index.vue
index 962f7fd..79f88a6 100644
--- a/pages/payInto/index.vue
+++ b/pages/payInto/index.vue
@@ -5,10 +5,10 @@
- 台车编号:托盘编号:
+ type="text" placeholder="请扫描托盘编号" :border="true" />
选择物料:
@@ -90,7 +90,7 @@
- 台车编号:
+ 托盘编号:
{{item.containerCode}}
@@ -271,7 +271,7 @@
e.text = 111
this.$u.api.mouldStorage.callEmptyContainer().then(res => {
if (res.code == 200) {
- this.$u.toast("已呼叫台车");
+ this.$u.toast("已呼叫托盘");
}
})
diff --git a/pages/queryPoint/index.vue b/pages/queryPoint/index.vue
index 22c12f6..439f4ab 100644
--- a/pages/queryPoint/index.vue
+++ b/pages/queryPoint/index.vue
@@ -105,6 +105,12 @@
// this.typeList = res.data
// })
// this.loadList();
+
+ // this.$u.api.AvgCarry.getPointList(this.dataForm).then(res=>{
+ // if(res.code == '200'){
+ // this.dataList = res.rows
+ // }
+ // })
this.$u.api.AvgCarry.getPointList({...this.dataForm,pageSize: 9999}).then(res=>{
this.nextDataList=[]
if(res.code == '200'){
@@ -122,21 +128,21 @@
},
//上拉刷新(当数据距离底部100时触发,距离在pages.json配置)
- onReachBottom() {
- this.loadStatus = "loading";
- setTimeout(() => {
- this.dataForm.pageNum += 1;
- this.loadList();
- }, 100);
- },
- onPullDownRefresh () {
- this.list = []
- //调用获取数据方法
- setTimeout(() => {
- //结束下拉刷新
- uni.stopPullDownRefresh ();
- }, 1000);
- },
+ // onReachBottom() {
+ // this.loadStatus = "loading";
+ // setTimeout(() => {
+ // this.dataForm.pageNum += 1;
+ // this.loadList();
+ // }, 100);
+ // },
+ // onPullDownRefresh () {
+ // this.list = []
+ // //调用获取数据方法
+ // setTimeout(() => {
+ // //结束下拉刷新
+ // uni.stopPullDownRefresh ();
+ // }, 1000);
+ // },
methods: {
//点击变色
btn(index,item){
diff --git a/pages/receive/index.vue b/pages/receive/index.vue
index 70f72f4..a30dc9f 100644
--- a/pages/receive/index.vue
+++ b/pages/receive/index.vue
@@ -3,7 +3,7 @@
-
@@ -26,7 +26,7 @@
单据编号
- {{item.sourceOrderNo}}
+ {{item.orderNo}}
@@ -41,6 +41,12 @@
{{item.companyName}}
+
+
+ 订单类型
+ {{ orderTypeObj[item.orderType] }}
+
+
@@ -131,10 +137,18 @@ import { nextTick } from "vue";
bgSpecificationsList:[],
loadStatus: 'loadmore',
detailIds:[],
+ orderTypeList:[],
+ orderTypeObj:{},
}
},
onLoad() {
this.loadList();
+ this.$u.api.orderTypeDict().then(res=>{
+ // console.log(res.data);
+ res.data.forEach(item=>{
+ this.orderTypeObj[item.dictValue] = item.dictLabel
+ })
+ })
},
//上拉刷新(当数据距离底部100时触发,距离在pages.json配置)
onReachBottom() {
diff --git a/pages/receive/receiveHomeWork/receiveHomeWork.vue b/pages/receive/receiveHomeWork/receiveHomeWork.vue
index 1925ba3..cb84405 100644
--- a/pages/receive/receiveHomeWork/receiveHomeWork.vue
+++ b/pages/receive/receiveHomeWork/receiveHomeWork.vue
@@ -423,10 +423,10 @@
}).then((res) => {
if (res.code === 200) {
this.$u.toast('收货成功!');
- this.$u.route({
- url: 'pages/receive/index',
- type: 'navigateTo'
- })
+ this.$u.route({
+ url: 'pages/receive/index',
+ type: 'navigateBack'
+ })
} else {
this.$u.toast(res.msg);
}
diff --git a/pages/receive/receiveHomeWorks/receiveHomeWork.vue b/pages/receive/receiveHomeWorks/receiveHomeWork.vue
index e780881..ee9c63e 100644
--- a/pages/receive/receiveHomeWorks/receiveHomeWork.vue
+++ b/pages/receive/receiveHomeWorks/receiveHomeWork.vue
@@ -298,7 +298,7 @@
setTimeout(() => {
this.$u.route({
url: 'pages/receive/index',
- type: 'navigateTo'
+ type: 'navigateBack'
})
}, 500)
} else {
diff --git a/pages/release/index.vue b/pages/release/index.vue
index 19d509e..e120e3a 100644
--- a/pages/release/index.vue
+++ b/pages/release/index.vue
@@ -121,8 +121,8 @@
let dataArry = res.rows;
for (var i = 0; i < dataArry.length; i++) {
var obj = {
- value: dataArry[i].pointNo,
- label: dataArry[i].pointName,
+ value: dataArry[i].pointNo ,
+ label: dataArry[i].pointName +'----'+ (dataArry[i].isOccupy=='1'?'占用':(dataArry[i].isOccupy=='2'?'已分配':'未占用')) ,
};
this.pointList.push(obj);
}
@@ -160,7 +160,7 @@
methods: {
pickUp(){
this.$u.api.release.releasePoint({pointNo:this.dataForm.pointNo}).then(res=>{
- this.$u.toast(res.msg);
+ this.$u.toast(res.msg+'请确认托盘已取走');
this.dataForm.pointNo = ''
})
},
diff --git a/uni_modules/select-lay/components/select-lay/select-lay.vue b/uni_modules/select-lay/components/select-lay/select-lay.vue
index 0379570..67bc1af 100644
--- a/uni_modules/select-lay/components/select-lay/select-lay.vue
+++ b/uni_modules/select-lay/components/select-lay/select-lay.vue
@@ -107,8 +107,9 @@
watch: {
//pointNoChild
pointNoChild(){
- // console.log(this.pointNoChild);
- if(this.pointNoChild === ''){
+ if(this.pointNoChild === '' || this.pointNoChild === null || this.pointNoChild == undefined){
+ this.changevalue =this.pointNoChild
+ }else{
this.changevalue =this.pointNoChild
}
},