diff --git a/password.txt b/password.txt
index b79b823d..e19b4386 100644
--- a/password.txt
+++ b/password.txt
@@ -1,2 +1,4 @@
别名:testalias
-密码: wms3.0
\ No newline at end of file
+密码: wms3.0
+包名:uni.UNI43932FE
+id:__UNI__C9CF4BF
\ No newline at end of file
diff --git a/src/mycomponents/button/comCheckAll.vue b/src/mycomponents/button/comCheckAll.vue
new file mode 100644
index 00000000..253a349a
--- /dev/null
+++ b/src/mycomponents/button/comCheckAll.vue
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+ 全选({{checkCount}}/{{allCount}})
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/mycomponents/job/jobFilter.vue b/src/mycomponents/job/jobFilter.vue
index feb2e9bf..33ce9716 100644
--- a/src/mycomponents/job/jobFilter.vue
+++ b/src/mycomponents/job/jobFilter.vue
@@ -46,6 +46,14 @@
+
+
+ 目标库位
+
+
+
@@ -127,6 +135,10 @@
type: Boolean,
default: false
},
+ isShowToLocationCode: {
+ type: Boolean,
+ default: false
+ },
isShowProductionLineCode: {
type: Boolean,
default: false
@@ -165,6 +177,7 @@
checkedWaitModel: false,
productionLineCode: '', // 生产线
fromLocationCode: '', // 来源库位
+ toLocationCode:"",//目标库位
fromAreaCode: '', // 来源库区
toAreaCode: '', // 到库区
itemCode: '', //物料代码
@@ -197,6 +210,7 @@
let params = {
productionLineCode: this.productionLineCode,
fromLocationCode: this.fromLocationCode,
+ toLocationCode:this.toLocationCode,
fromAreaCode: this.fromAreaCode, // 来源库区
toAreaCode: this.toAreaCode, // 到库区
itemCode: this.itemCode,
@@ -210,6 +224,7 @@
this.checkedWaitModel = false
this.productionLineCode = ''
this.fromLocationCode = ''
+ this.toLocationCode=""
this.fromAreaCode = '' // 来源库区
this.toAreaCode = '' // 到库区
this.itemCode = ''
diff --git a/src/pages/putaway/job/quantityPutawayJob.vue b/src/pages/putaway/job/quantityPutawayJob.vue
index 279ccb2b..2fa4016c 100644
--- a/src/pages/putaway/job/quantityPutawayJob.vue
+++ b/src/pages/putaway/job/quantityPutawayJob.vue
@@ -1,22 +1,34 @@
-
-
+
+
+
+
+ 当前第{{pageNo}}页,每页:{{ pageSize}}条 共计:{{ totalCount }}条
+
+
-
+
-
-
+
+
-
+
-
-
+
+
+
+ ({{index+1}})
+
+
+
+
+
+
+
@@ -26,13 +38,10 @@
-
-
@@ -49,6 +58,7 @@
cancleAllTakePutawayJob
} from '@/api/request2.js';
+
import {
goHome,
updateTitle
@@ -56,7 +66,6 @@
import {
getDetailOption,
-
getDetailGiveupOption
} from '@/common/array.js';
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
@@ -67,6 +76,9 @@
import putawayJobListPopup from '@/pages/putaway/coms/putawayJobListPopup.vue'
import putawayInfoPopup from '@/pages/putaway/coms/putawayInfoPopup.vue'
import winScanPackJob from "@/mycomponents/scan/winScanPackJob.vue"
+ import comCheckAll from "@/mycomponents/button/comCheckAll.vue"
+
+
import {
Exception
} from 'sass';
@@ -81,12 +93,14 @@
putawayInfoPopup,
winScanButton,
winScanPackJob,
- jobList
+ jobList,
+ comCheckAll
},
data() {
return {
jobList: [],
pageNo: 1,
+ currentPageNo: 1,
pageSize: 30,
totalCount: 0,
loadingType: "nomore",
@@ -98,7 +112,11 @@
detailGiveupOptions: [],
title: '',
scanMessage: "",
- jobNumberList:[],//全部承接参数
+ jobNumberList: [], //全部承接参数
+ creationTime: "",
+ itemCode: "",
+ toAreaCode: "",
+ toLocationCode: ""
};
},
@@ -146,7 +164,7 @@
},
methods: {
- getList(type,toAreaCode='') {
+ getList(type) {
let that = this;
uni.showLoading({
title: "加载中....",
@@ -159,49 +177,24 @@
this.jobList = [];
}
- var filters = []
- if (this.checkedToday) {
- filters.push({
- column: "create_time",
- action: "betweeen",
- value: this.todayTime
- })
- }
-
- filters.push({
- column: "status",
- action: "in",
- value: this.status
- })
- filters.push({
- column: "accept_user_id",
- action: "==",
- value: this.$store.state.user.id
- })
- if(this.toAreaCode){
- //到库区
- filters.push({
- column: "toAreaCode",
- action: "==",
- value: this.toAreaCode
- })
- }
+ var queryFiltersParams = this.setQueryParam()
var params = {
- filters: filters,
+ filters: queryFiltersParams,
pageNo: this.pageNo,
pageSize: this.pageSize,
}
-
+ this.currentPageNo = this.pageNo
getPutawayJobList(params).then(res => {
uni.hideLoading();
- // if (type === "refresh") {
- // uni.stopPullDownRefresh();
- // this.openScanPopup()
- // }
+ if (type === "refresh") {
+ uni.stopPullDownRefresh();
+ }
var list = res.data.list;
+ list.forEach(item=>{
+ item.checked=false;
+ })
this.totalCount = res.data.total
- console.log(333,this.totalCount)
updateTitle(this.title + "(" + this.totalCount + ")");
// this.loadingType = "loadmore";
// if (list == null || list.length == 0) {
@@ -209,7 +202,6 @@
// return;
// }
this.jobList = list
- this.jobNumberList = list.map(item=>item.number)
// this.pageNo++;
}).catch(error => {
@@ -230,6 +222,62 @@
this.scanMessage = ""
},
+ setQueryParam() {
+ var filterParams = []
+ var queryParams = {
+ status: this.status,
+ creationTime: this.creationTime,
+ itemCode: this.itemCode,
+ toAreaCode: this.toAreaCode,
+ toLocationCode: this.toLocationCode
+ }
+
+ //只看当天
+ if (queryParams.creationTime) {
+ filterParams.push({
+ column: "create_time",
+ action: "betweeen",
+ value: queryParams.creationTime
+ })
+ }
+ //只看待处理
+ if (queryParams.status) {
+ filterParams.push({
+ column: "status",
+ action: "in",
+ value: queryParams.status
+ })
+ }
+ //物料代码
+ if (queryParams.itemCode) {
+ filterParams.push({
+ column: "itemCode",
+ action: "like",
+ value: queryParams.itemCode
+ })
+ }
+
+ //到库区
+ if (queryParams.toAreaCode) {
+ filterParams.push({
+ column: "toAreaCode",
+ action: "==",
+ value: queryParams.toAreaCode
+ })
+ }
+
+ //目标库位
+ if (queryParams.toLocationCode) {
+ filterParams.push({
+ column: "toLocationCode",
+ action: "==",
+ value: queryParams.toLocationCode
+ })
+ }
+ return filterParams;
+
+ },
+
showItemList(itemList) {
this.$refs.scanList.openPopup(itemList);
},
@@ -270,72 +318,14 @@
})
},
- switchChangeToday(state, creationTime) {
- this.checkedToday = state;
- this.todayTime = creationTime;
- this.getList("refresh");
- },
-
- switchChangeWait(state, jobStatus) {
- this.checkedWaitTask = state;
- // this.status = jobStatus;
- this.getList("refresh");
- },
-
- getScanNumber(code) {
- this.getDataListByType(code)
- },
-
- getDataListByType(code) {
- let that = this;
- uni.showLoading({
- title: "加载中....",
- mask: true
- });
- var filters = []
- filters.push({
- column: "status",
- action: "in",
- value: '1'
- })
- filters.push({
- column: "number",
- action: "==",
- value: code
- })
-
- filters.push({
- column: "accept_user_id",
- action: "==",
- value: this.$store.state.user.id
- })
-
- var params = {
- filters: filters,
- pageNo: 1,
- pageSize: 100,
- }
- getPutawayJobList(params).then(res => {
- uni.hideLoading();
- if (res.data.list.length == 0) {
- that.showMessage('未查找到' + '【' + code + '】的收货任务');
- } else if (res.data.list.length == 1) {
- that.openJobDetail(res.data.list[0]);
- }
- }).catch(error => {
- uni.hideLoading();
- that.showMessage(error);
- })
- },
-
showMessage(message) {
- if(this.$refs.scanPopup){
+ if (this.$refs.scanPopup) {
this.$refs.scanPopup.packLoseFocus()
}
this.$refs.comMessage.showErrorMessage(message, res => {
if (res) {
- if(this.$refs.scanPopup){
+ if (this.$refs.scanPopup) {
this.$refs.scanPopup.packGetFocus()
}
}
@@ -356,121 +346,35 @@
});
this.scanMessage = ""
},
- getScanResult(result) {
- try {
- this.scanMessage = ""
- var filters = [{
- column: "packingNumber",
- action: "in",
- value: result.package.number + "," + result.package.parentNumber
- },
- {
- column: "batch",
- action: "==",
- value: result.package.batch
- },
- // {
- // column: "qty",
- // action: "==",
- // value: result.label.qty
- // },
- {
- column: "itemCode",
- action: "==",
- value: result.package.itemCode
- },
- {
- column: "status",
- action: "in",
- value: '1',
- },
- // {
- // column: "accept_user_id",
- // action: "==",
- // value: this.$store.state.user.id
- // }
- // {
- // column: "fromLocationCode",
- // action: "==",
- // value: result.label.fromLocationCode
- // },
- ]
- getPutawayJobList({
- filters: filters,
- pageNo: 1,
- pageSize: 100,
- }).then(res => {
- this.scanMessage = result.scanMessage
- let resultList = res.data.list;
- if (resultList.length > 0) {
- resultList.forEach(item => {
- item.title = item.number;
- item.selected = false
- })
- let list = []
- resultList.forEach(item => {
- if (!list.find(subItem => subItem.title == item.title)) {
- list.push(item)
- }
- })
- if (list.length == 1) {
- //待处理
- if (list[0].status == 1) {
- this.selectItem(list[0])
- } else if (list[0].status == 2) {
- //进行中
- if (list[0].acceptUserId == this.$store.state.user.id) {
- this.selectItem(list[0])
- } else {
- this.showMessage("该任务已经被[" + list[0].acceptUserName + "]承接" + "\n任务号[" +
- list[0].number + "]扫描[" + result.scanMessage + "]")
- }
- } else if (list[0].status == 3) {
- this.showMessage("该任务已经完成\n承接人[" + list[0].acceptUserName + "]\n任务号[" +
- list[0].number + "]扫描[" + result.scanMessage + "]")
- }
- } else {
- this.showMessage("查询到多条任务\n" + "扫描[" + result.scanMessage + "]")
- }
-
- } else {
- this.showMessage("未查找到任务\n" + "扫描[" + result.scanMessage + "]")
- }
- }).catch(error => {
- this.showMessage(error + "\n扫描[" + result.scanMessage + "]")
- })
-
- } catch (e) {
- this.showMessage(e + "\n扫描[" + result.scanMessage + "]")
- }
- },
getListByFilter(params) {
- console.log('getListByFilter',params)
+ console.log('getListByFilter', params)
+
let that = this;
uni.showLoading({
title: "加载中....",
mask: true
});
- this.status = "1"
- if(params.creationTime==""){
- this.checkedToday = false;
- }
- if (params.toAreaCode) {
- // 到库区
- this.toAreaCode = params.toAreaCode
- }else{
- this.toAreaCode = ''
- }
- this.getList('refresh',this.toAreaCode)
+ this.creationTime = params.creationTime
+ this.itemCode = params.itemCode
+ this.toAreaCode = params.toAreaCode
+ this.toLocationCode = params.toLocationCode
+ this.getList('refresh')
},
// 承接全部任务
- takeAllJob(){
+ takeAllJob() {
uni.showLoading({
title: "加载中....",
mask: true
});
+ this.jobNumberList =[]
+ this.jobList.forEach(item=>{
+ if(item.checked){
+ this.jobNumberList.push(item.number)
+ }
+ })
+
takeAllPutawayJob({
- jobNumberList:this.jobNumberList
+ jobNumberList: this.jobNumberList
}).then(res => {
if (res.data) {
this.executeAllJob()
@@ -483,62 +387,71 @@
this.showMessage(error)
})
},
- executeAllJob(){
+ executeAllJob() {
putawayJobAllExecute({
- jobNumberList:this.jobNumberList
+ jobNumberList: this.jobNumberList
}).then(res => {
if (res.data) {
uni.hideLoading()
- this.$refs.comMessage.showSuccessMessage( "执行任务成功", res => {
+ this.$refs.comMessage.showSuccessMessage("执行任务成功", res => {
if (res) {
- this.getList()
+ this.getList('refresh')
}
});
} else {
uni.hideLoading()
this.showMessage("执行任务失败")
this.cancleAllJob()
-
+
}
}).catch(error => {
uni.hideLoading()
this.showMessage(error)
this.cancleAllJob()
})
-
+
},
// 取消承接全部任务
- cancleAllJob(){
+ cancleAllJob() {
cancleAllTakePutawayJob({
- jobNumberList:this.jobNumberList
+ jobNumberList: this.jobNumberList
}).then(res => {
-
+
}).catch(error => {
uni.hideLoading()
this.showMessage(error)
})
},
- changePage(e){
+ changePage(e) {
console.log(e)
this.pageNo = e.current
this.status = 1
this.getList()
+ },
+ checkAllItems(checkAll){
+ console.log(checkAll)
+ },
+ cancleAll(){
+ this.jobList.forEach(res=>{
+ res.checked=false;
+ })
}
-
+
}
}
\ No newline at end of file
diff --git a/src/pages/putaway/record/putawayRecord.vue b/src/pages/putaway/record/putawayRecord.vue
index 318d6569..23d62c41 100644
--- a/src/pages/putaway/record/putawayRecord.vue
+++ b/src/pages/putaway/record/putawayRecord.vue
@@ -124,7 +124,7 @@
recommendLocationList: [], //推荐库位列表
fromWarehouseCode: '', //来源仓库
businessTypeCode: "PurchasePutaway",
- editItem:{}
+ editItem:{},
};
},
onLoad(option) {
@@ -208,9 +208,14 @@
newDetail.poNumber=poNumber;
newDetail.supplierCode=supplierCode;
newDetail.fromInventoryStatus = balance.inventoryStatus;
-
- item.subList.push(newDetail);
- calcHandleQty(this.detailSource);
+ if(item.subList&&item.subList.length>0){
+ if(item.subList[0].batch!=newDetail.batch){
+ this.showErrorMessage("扫描的批次是["+newDetail.batch+"],请扫描["+item.subList[0].batch+"的批次的箱码")
+ }
+ }else {
+ item.subList.push(newDetail);
+ calcHandleQty(this.detailSource);
+ }
});
} else {
if (detail.scaned == true) {
diff --git a/src/uni_modules/vk-uview-ui/components/u-checkbox/u-checkbox.vue b/src/uni_modules/vk-uview-ui/components/u-checkbox/u-checkbox.vue
index a0498fee..4dc06b1a 100644
--- a/src/uni_modules/vk-uview-ui/components/u-checkbox/u-checkbox.vue
+++ b/src/uni_modules/vk-uview-ui/components/u-checkbox/u-checkbox.vue
@@ -257,6 +257,7 @@ export default {
align-items: center;
overflow: hidden;
user-select: none;
+ margin-left: 10rpx;
line-height: 1.8;
&__icon-wrap {
@@ -309,8 +310,8 @@ export default {
&__label {
word-wrap: break-word;
- margin-left: 10rpx;
- margin-right: 24rpx;
+ // margin-left: 10rpx;
+ // margin-right: 24rpx;
color: $u-content-color;
font-size: 30rpx;