Browse Source

修改消息提示

pda_nev
李俊城 11 months ago
parent
commit
12bf2c4ba2
  1. 4
      fe/PDA/api/index.js
  2. 27
      fe/PDA/pages/assemble/assembleTransfer.vue
  3. 69
      fe/PDA/pages/container/containerCall.vue
  4. 26
      fe/PDA/pages/cotaing/coatingTransfer.vue
  5. 40
      fe/PDA/pages/injection/injectionTransfer.vue
  6. 94
      fe/PDA/pages/message/index.vue
  7. 116
      fe/PDA/pages/task/countFgDetail.vue
  8. 75
      fe/PDA/pages/task/countRawDetail.vue
  9. 4
      fe/PDA/static/config.json
  10. 2
      fe/PDA/uni_modules/wz-select-popup/components/wz-select-popup/wz-list.vue
  11. 10
      fe/PDA/uni_modules/wz-select-popup/components/wz-select-popup/wz-select-popup.vue

4
fe/PDA/api/index.js

@ -202,8 +202,8 @@ export const getBalancesExpectByFilter = (params) => request(
data: params data: params
}); });
// ERP料号模糊匹配查询库存 // ERP料号模糊匹配查询库存
export const getBalancesByItemCode = (params) => request( export const getBalancesByItemCode = (params) => promise(
devUrl + "/api/pda/get-fuzzy-by-balances-request-many-parameter", { devUrl + "/api/pda/inventory/balances/get-fuzzy-by-balances-request-many-parameter", {
method: 'post', method: 'post',
data: params data: params
}); });

27
fe/PDA/pages/assemble/assembleTransfer.vue

@ -173,6 +173,13 @@
}); });
} }
}, },
remove(index) {
showConfirmMsg("确定移除?", res => {
if (res) {
this.itemList.splice(index, 1);
}
})
},
getScanResult(result) { getScanResult(result) {
let that = this; let that = this;
@ -201,7 +208,7 @@
stdPackQty: result.stdPackQty, stdPackQty: result.stdPackQty,
uom: result.uom, uom: result.uom,
qty: result.stdPackQty, qty: result.stdPackQty,
fromLocationCode: "ZPCP1", fromLocationCode: result.locationCode,
fromStatus: 2, fromStatus: 2,
toStatus:2 toStatus:2
} }
@ -240,16 +247,21 @@
}); });
let that = this; let that = this;
locations(code).then(res => { locations(code).then(res => {
if (res == null) { uni.hideLoading();
if (res) {
//
if (res.type == 1 || res.type == 6 || res.type == 13) {
that.showMessage("目标库位不可以是待检、隔离、在途库位类型");
} else {
that.toLocationCode = code;
that.toLocationErpCode = res.erpLocationCode;
}
} else {
that.toLocationCode = '' that.toLocationCode = ''
that.showMessage('目标库位【' + code + '】不存在'); that.showMessage('目标库位【' + code + '】不存在');
this.$refs.location.clearLocation() this.$refs.location.clearLocation()
this.locationGotFocus = true; this.locationGotFocus = true;
} else {
that.toLocationCode = code;
that.toLocationErpCode = res.erpLocationCode;
} }
uni.hideLoading();
}).catch(err => { }).catch(err => {
that.toLocationCode = '' that.toLocationCode = ''
this.locationGotFocus = true; this.locationGotFocus = true;
@ -322,7 +334,10 @@
that.showMessage(err.message); that.showMessage(err.message);
uni.hideLoading(); uni.hideLoading();
}); });
}else {
that.showMessage("库位[" + this.itemList[0].fromLocationCode + "]不存在");
} }
}) })
}, },

69
fe/PDA/pages/container/containerCall.vue

@ -13,22 +13,22 @@
</uni-section> </uni-section>
</view> </view>
--> -->
<view class="uni-list"> <view class="uni-list">
<view class="uni-list-cell" <view class="uni-list-cell"
style="padding-left: 15rpx; padding-top: 20rpx;padding-bottom:20rpx; padding-right: 15rpx; ; align-items: center; display: flex;"> style="padding-left: 15rpx; padding-top: 20rpx;padding-bottom:20rpx; padding-right: 15rpx; ; align-items: center; display: flex;">
<view class="" style="color: red; font-size: 40rpx; "> <view class="" style="color: red; font-size: 40rpx; ">
* *
</view> </view>
<view class="uni-list-cell-left" <view class="uni-list-cell-left"
style="font-size:35rpx; align-items: center;display: flex; text-align: center;font-weight: bold;"> style="font-size:35rpx; align-items: center;display: flex; text-align: center;font-weight: bold;">
目标库位 : 目标库位 :
</view> </view>
<view class="uni-list-cell-db" style="font-size:35rpx" @click="openScanLocation"> <view class="uni-list-cell-db" style="font-size:35rpx" @click="openScanLocation">
<text>{{locationCode}}</text> <text>{{locationCode}}</text>
<text v-if="locationName!=''">({{locationName}})</text> <text v-if="locationName!=''">({{locationName}})</text>
</view> </view>
</view> </view>
</view> </view>
<view class="uni-list"> <view class="uni-list">
<view class="uni-list-cell " style="padding:10rpx; "> <view class="uni-list-cell " style="padding:10rpx; ">
<view class="" style="color: red; font-size: 40rpx; "> <view class="" style="color: red; font-size: 40rpx; ">
@ -72,7 +72,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="new_btn_bot"> <view class="new_btn_bot">
<button class="new_save_btn" @click="submit()">提交</button> <button class="new_save_btn" @click="submit()">提交</button>
</view> </view>
@ -133,17 +133,28 @@
res.checked = false res.checked = false
}) })
item.checked = true; item.checked = true;
this.containerModelCode =item.code; this.containerModelCode = item.code;
}, },
getContainerModelList() { getContainerModelList() {
uni.showLoading({
title: '加载中...',
mask: true
});
getDictByCode("ContainerSpecificationsType").then(res => { getDictByCode("ContainerSpecificationsType").then(res => {
res.items.forEach(item => { uni.hideLoading();
item.value = item.code; if (res && res.items.length > 0) {
item.checked = false res.items.forEach(item => {
}) item.value = item.code;
this.containerModelList = res.items; item.checked = false
}).catch(error => { })
this.containerModelList = res.items;
} else {
this.showMessage('获取器具规格失败,请在字典中维护器具规格');
}
}).catch(error => {
uni.hideLoading();
this.showMessage('获取器具规格失败【' + error + '】');
}) })
}, },
openScanLocation() { openScanLocation() {
@ -183,7 +194,7 @@
afterClose() { afterClose() {
this.scanPopupGetFocus(); this.scanPopupGetFocus();
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
this.$refs.scanLocation.getfocus(); this.$refs.scanLocation.getfocus();
}, },
@ -192,7 +203,7 @@
}, },
clearData() { clearData() {
this.containerModelCode = "" this.containerModelCode = ""
this.containerModelList.forEach(res=>{ this.containerModelList.forEach(res => {
res.checked = false res.checked = false
}); });
}, },
@ -208,12 +219,12 @@
} }
return data; return data;
}, },
showCommitSuccess(message) { showCommitSuccess(message) {
this.$refs.comMessage.showCommitSuccess(message); this.$refs.comMessage.showCommitSuccess(message);
}, },
closeCommitMessage(){ closeCommitMessage() {
navigateBack(1) navigateBack(1)
}, },

26
fe/PDA/pages/cotaing/coatingTransfer.vue

@ -173,6 +173,13 @@
}); });
} }
}, },
remove(index) {
showConfirmMsg("确定移除?", res => {
if (res) {
this.itemList.splice(index, 1);
}
})
},
getScanResult(result) { getScanResult(result) {
let that = this; let that = this;
@ -201,7 +208,7 @@
stdPackQty: result.stdPackQty, stdPackQty: result.stdPackQty,
uom: result.uom, uom: result.uom,
qty: result.stdPackQty, qty: result.stdPackQty,
fromLocationCode: "ZPCP1", fromLocationCode: result.locationCode,
fromStatus: 2, fromStatus: 2,
toStatus:2 toStatus:2
} }
@ -240,16 +247,21 @@
}); });
let that = this; let that = this;
locations(code).then(res => { locations(code).then(res => {
if (res == null) { uni.hideLoading();
if (res) {
//
if (res.type == 1 || res.type == 6 || res.type == 13) {
that.showMessage("目标库位不可以是待检、隔离、在途库位类型");
} else {
that.toLocationCode = code;
that.toLocationErpCode = res.erpLocationCode;
}
} else {
that.toLocationCode = '' that.toLocationCode = ''
that.showMessage('目标库位【' + code + '】不存在'); that.showMessage('目标库位【' + code + '】不存在');
this.$refs.location.clearLocation() this.$refs.location.clearLocation()
this.locationGotFocus = true; this.locationGotFocus = true;
} else {
that.toLocationCode = code;
that.toLocationErpCode = res.erpLocationCode;
} }
uni.hideLoading();
}).catch(err => { }).catch(err => {
that.toLocationCode = '' that.toLocationCode = ''
this.locationGotFocus = true; this.locationGotFocus = true;
@ -322,6 +334,8 @@
that.showMessage(err.message); that.showMessage(err.message);
uni.hideLoading(); uni.hideLoading();
}); });
}else {
that.showMessage("库位[" + this.itemList[0].fromLocationCode + "]不存在");
} }
}) })

40
fe/PDA/pages/injection/injectionTransfer.vue

@ -45,7 +45,7 @@
<view class=""> <view class="">
<button type="primary" size="mini" style="margin-left: 30rpx;" <button type="primary" size="mini" style="margin-left: 30rpx;"
@click="remove(item,index)">移除</button> @click="remove(index)">移除</button>
</view> </view>
</view> </view>
@ -130,7 +130,7 @@
locationErpCode: '', locationErpCode: '',
toLocationErpCode: '', toLocationErpCode: '',
locationGotFocus: false, locationGotFocus: false,
transferType:"Transfer_Injection" transferType: "Transfer_Injection"
}; };
}, },
props: { props: {
@ -174,6 +174,14 @@
} }
}, },
remove(index) {
showConfirmMsg("确定移除?", res => {
if (res) {
this.itemList.splice(index, 1);
}
})
},
getScanResult(result) { getScanResult(result) {
let that = this; let that = this;
let code = result.itemCode; let code = result.itemCode;
@ -203,7 +211,7 @@
qty: result.stdPackQty, qty: result.stdPackQty,
fromLocationCode: result.locationCode, fromLocationCode: result.locationCode,
fromStatus: 2, fromStatus: 2,
toStatus:2 toStatus: 2
} }
this.itemList.unshift(item); this.itemList.unshift(item);
@ -241,21 +249,21 @@
let that = this; let that = this;
locations(code).then(res => { locations(code).then(res => {
uni.hideLoading(); uni.hideLoading();
if(res){ if (res) {
// //
if(res.type==1||res.type==6||res.type==13){ if (res.type == 1 || res.type == 6 || res.type == 13) {
that.showMessage("目标库位不可以是待检、隔离、在途库位类型"); that.showMessage("目标库位不可以是待检、隔离、在途库位类型");
}else { } else {
that.toLocationCode = code; that.toLocationCode = code;
that.toLocationErpCode = res.erpLocationCode; that.toLocationErpCode = res.erpLocationCode;
} }
}else { } else {
that.toLocationCode = '' that.toLocationCode = ''
that.showMessage('目标库位【' + code + '】不存在'); that.showMessage('目标库位【' + code + '】不存在');
this.$refs.location.clearLocation() this.$refs.location.clearLocation()
this.locationGotFocus = true; this.locationGotFocus = true;
} }
}).catch(err => { }).catch(err => {
that.toLocationCode = '' that.toLocationCode = ''
this.locationGotFocus = true; this.locationGotFocus = true;
@ -300,17 +308,17 @@
this.itemList.forEach(r => { this.itemList.forEach(r => {
r.toLocationCode = that.toLocationCode; r.toLocationCode = that.toLocationCode;
r.toLocationErpCode = this.toLocationErpCode r.toLocationErpCode = this.toLocationErpCode
r.fromLot =""; r.fromLot = "";
r.fromLocationArea = this.fromLocationInfo.areaCode; r.fromLocationArea = this.fromLocationInfo.areaCode;
r.fromLocationGroup = this.fromLocationInfo.locationGroupCode; r.fromLocationGroup = this.fromLocationInfo.locationGroupCode;
r.fromLocationErpCode = this.fromLocationInfo.erpLocationCode; r.fromLocationErpCode = this.fromLocationInfo.erpLocationCode;
r.fromWarehouseCode = localStorage.warehouseCode; r.fromWarehouseCode = localStorage.warehouseCode;
r.toLot =""; r.toLot = "";
r.fromPackingCode=""; r.fromPackingCode = "";
r.toPackingCode = ""; r.toPackingCode = "";
r.toWarehouseCode =localStorage.warehouseCode; r.toWarehouseCode = localStorage.warehouseCode;
r.worker = localStorage.userName_CN == "" ? localStorage.userName : r.worker = localStorage.userName_CN == "" ? localStorage.userName :
localStorage.userName_CN localStorage.userName_CN
item.details.push(r); item.details.push(r);
@ -328,8 +336,8 @@
that.showMessage(err.message); that.showMessage(err.message);
uni.hideLoading(); uni.hideLoading();
}); });
}else { } else {
that.showMessage("库位["+this.itemList[0].fromLocationCode+"]不存在"); that.showMessage("库位[" + this.itemList[0].fromLocationCode + "]不存在");
} }
}) })

94
fe/PDA/pages/message/index.vue

@ -1,43 +1,69 @@
<template> <template>
<view class="body-view msg_body"> <view class="" style="width: 100%;height: 100%; background-color: #fff;">
<!-- 头部 --> <scroll-view scroll-y="" >
<scroll-view class="top-menu-view" scroll-x="true" :scroll-left="scrollLeft"> <scroll-view class="">
<block v-for="(menuTab,index) in menuTabs" :key="index"> <view class="" v-for="(menuTab,index) in menuTabs" :key="index">
<view class="menu-topic-view" v-bind:id="'tabNum'+index" @click="swichMenu(index)" clickable> <view class="" v-bind:id="'tabNum'+index" @click="swichMenu(index)" clickable>
<view :class="[currentTab==index ? 'menu-topic-act' : 'menu-topic']"> <view :class="[currentTab==index ? 'menu-topic-act' : 'menu-topic']">
<view class="menu-topic-txt">{{menuTab.name}} <view class="menu-topic-txt" style="font-size: 35rpx; margin-left: 10rpx;">{{menuTab.name}}
<text v-if="menuTab.name == '全部'"
:class="[unreadCount>0?'tipred':'' ]">{{Math.abs(unreadCount)>99?'99+':unreadCount==0?'':unreadCount}}</text> <text v-if="menuTab.name == '未读'">
({{Math.abs(unreadCount)>99?'99+':unreadCount==0?'':unreadCount}})</text>
</view>
<view class=""
style="width: 150rpx; height: 6rpx; margin: 10rpx; background-color: #5A7CF3">
</view>
</view> </view>
<view class="menu-topic-bottom"> </view>
<view class="menu-topic-bottom-color"></view> </view>
</scroll-view>
<uni-list class="list msg_list" style="margin-bottom: 200rpx;" >
<uni-list :border="true" v-for="(item ,index) in allMessageList" :key="item.id">
<view class="uni-flex" style="flex-direction: row; align-items: center;">
<view class="" style="margin-left: 10rpx;">
({{index+1}})
</view> </view>
<uni-list-chat :title="item.title" avatar="../../static/images/message.svg" clickable
:note="item.content" :time="item.sendTime" badge-positon="left"
:badge-text="item.hasRead === false?'dot':''" @click="jumpdetails(item)"
:class="item.hasRead === false?'':'hasread'">
</uni-list-chat>
</view>
</uni-list>
</uni-list>
<!-- <view class="uni-list">
<view class="uni_list_cell uni-flex">
<view class="image">
<image class="icon_normal" src="../../static/icons_msg_bell.svg"></image>
</view>
<view class="msg_info">
<strong>{{item.title}}</strong>
{{item.content}}
</view>
<view class="time">
{{item.sendTime}}
</view> </view>
</view> </view>
</block> </view> -->
</scroll-view> </scroll-view>
<!-- <view class="uni-list"> <!-- 头部 -->
<view class="uni_list_cell uni-flex">
<view class="image">
<image class="icon_normal" src="../../static/icons_msg_bell.svg"></image> <!-- <uni-list class="list msg_list">
</view>
<view class="msg_info">
<strong>{{item.title}}</strong>
{{item.content}}
</view>
<view class="time">
{{item.sendTime}}
</view>
</view>
</view> -->
<uni-list class="list msg_list">
<uni-list :border="true" v-for="item in allMessageList" :key="item.id"> <uni-list :border="true" v-for="item in allMessageList" :key="item.id">
<uni-list-chat :title="item.title" avatar="../../static/images/message.svg" clickable <uni-list-chat :title="item.title" avatar="../../static/images/message.svg" clickable
:note="item.content" :time="item.sendTime" badge-positon="left" :note="item.content" :time="item.sendTime" badge-positon="left"
:badge-text="item.hasRead === false?'dot':''" @click="jumpdetails(item)" :badge-text="item.hasRead === false?'dot':''" @click="jumpdetails(item)"
:class="item.hasRead === false?'':'hasread'"></uni-list-chat> :class="item.hasRead === false?'':'hasread'"></uni-list-chat>
</uni-list> </uni-list>
</uni-list> </uni-list> -->
<!-- 展示列表内容 --> <!-- 展示列表内容 -->
<!-- <uni-list class="list"> <!-- <uni-list class="list">
<uni-list :border="true" v-for="item in allMessageList" :key="item.id"> <uni-list :border="true" v-for="item in allMessageList" :key="item.id">
@ -74,7 +100,7 @@
currentTab: 0, currentTab: 0,
// Tab // Tab
menuTabs: [{ menuTabs: [{
name: '全部' name: '未读'
}, },
// { // {
// name: '' // name: ''
@ -90,7 +116,7 @@
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
if (e.index === 0) { if (e.index === 0) {
goHome(); goHome();
}else if(e.index === 1){ } else if (e.index === 1) {
window.location.reload(); window.location.reload();
} }
}, },
@ -180,7 +206,7 @@
font-family: iconfont; font-family: iconfont;
color: #909399; color: #909399;
} }
.top-menu-view { .top-menu-view {
display: flex; display: flex;
white-space: nowrap; white-space: nowrap;
@ -207,9 +233,11 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.uni-list--border:after{
.uni-list--border:after {
height: 0; height: 0;
} }
.top-menu-view .menu-topic-view .menu-topic:first-child { .top-menu-view .menu-topic-view .menu-topic:first-child {
margin-left: 30upx; margin-left: 30upx;
} }
@ -303,4 +331,4 @@
margin-left: 10upx; margin-left: 10upx;
font-size: 20upx; font-size: 20upx;
} }
</style> </style>

116
fe/PDA/pages/task/countFgDetail.vue

@ -4,9 +4,13 @@
<view class="" style="display:flex;flex-direction: column;"> <view class="" style="display:flex;flex-direction: column;">
<view class="top_card"> <view class="top_card">
<com-count-scan-detail :jobContent="datacontent" :allCount="allCount" :scanCount="scanCount" <com-count-scan-detail :jobContent="datacontent" :allCount="allCount" :scanCount="scanCount"
:newCount="newCount" :location="location"> :newCount="newCount" :location="location" :countOrder="datacontent.inventoryStage">
</com-count-scan-detail> </com-count-scan-detail>
</view> </view>
<view class="" style="margin: 20rpx;">
<button type="primary" @click="queryItemCode">ERP料号查询</button>
</view>
<scroll-view scroll-y="true" style="margin-bottom: 50rpx;"> <scroll-view scroll-y="true" style="margin-bottom: 50rpx;">
<view v-for="(item ,index) in showList" :key="index"> <view v-for="(item ,index) in showList" :key="index">
<view class="detail-content common_card"> <view class="detail-content common_card">
@ -135,6 +139,7 @@
<com-easy-input-count ref="countPopup" @confirm='closeEditCount'></com-easy-input-count> <com-easy-input-count ref="countPopup" @confirm='closeEditCount'></com-easy-input-count>
<win-inventory-status ref="statusPopup"></win-inventory-status> <win-inventory-status ref="statusPopup"></win-inventory-status>
<!-- com-message必须放在最下层 --> <!-- com-message必须放在最下层 -->
<wz-select-popup ref="wzSelectPopup" @select="selectCheckbox" />
<com-message ref="comMessage" @afterCloseCommitMessage='closeCommitMessage()'></com-message> <com-message ref="comMessage" @afterCloseCommitMessage='closeCommitMessage()'></com-message>
<!-- <uni-load-more :status="loadingType" v-if="details.length>0"></uni-load-more> --> <!-- <uni-load-more :status="loadingType" v-if="details.length>0"></uni-load-more> -->
@ -150,6 +155,7 @@
getBalancesByFilterAsync, getBalancesByFilterAsync,
getitems, getitems,
locationsAsync, locationsAsync,
getBalancesByItemCode
} from '@/api/index.js'; } from '@/api/index.js';
import { import {
@ -237,7 +243,12 @@
pageSize: 20, pageSize: 20,
jobStatus: "", jobStatus: "",
index: 0, index: 0,
showList: [] showList: [],
userForm: {
names: [],
values: [],
origin: []
}
} }
}, },
props: {}, props: {},
@ -339,6 +350,87 @@
this.loadingType = ""; this.loadingType = "";
this.showList = this.getDataPage(this.index, this.pageSize) this.showList = this.getDataPage(this.index, this.pageSize)
}, },
queryItemCode(){
this.$refs.wzSelectPopup.open({
mode: 'radio', //radio checkbox
// dataList:[], //dataList使proxyConfig
selected: this.userForm.values, //
proxyConfig: { //
reqFun: this.reqGetList, //,Promise.resolve([])
localPaging: false //
},
search: {
type: 'remote', //local | remote
},
fields: {
label: 'name',
value: 'code'
}
})
},
selectCheckbox(mode, resultData) {
console.log(mode, resultData)
var result = resultData
var itemCode = result.itemCode;
var itemScan = this.scanAllDetails.filter(r =>
r.itemCode == itemCode&&
r.inventoryStage==this.datacontent.inventoryStage&&
r.isDelete==false)
// if(itemScan.length == 0){
// let detail = this.creatDetail(result);
// this.setDetailNoBalance(detail, result)
// detail.inventoryQty=result.qty
// detail.countQty =result.qty
// this.scanAllDetails.unshift(detail);
// this.initList();
// this.calcScanCount();
// this.$forceUpdate();
// }else if (itemScan.length == 1){
// setTimeout(res => {
// showConfirmMsg("" + itemCode + ",", res => {
// if (res) {
// this.setQty(itemScan[0], itemScan[0].inventoryQty, false);
// }
// })
// }, 100)
// }
if (itemScan.length > 0) {
setTimeout(res => {
showConfirmMsg("物料【" + itemCode + "】已经扫描,是否覆盖已经扫描的信息", res => {
if (res) {
this.setQty(itemScan[0], itemScan[0].inventoryQty, false);
}
})
}, 100)
return;
}
let items = this.originalDetails.filter(r =>
r.itemCode === itemCode&&r.inventoryStage==this.datacontent.inventoryStage)
//
if (items.length == 0) {
this.addNewDetail(result)
} else if (items.length == 1) {
var item = items[0];
item.isNew =true;
this.setQty(item, item.inventoryQty, true);
} else {
this.showMessage('盘点数量异常,箱码【' + packingCode + '】的出现多条数据');
}
},
reqGetList(data) {
let params = {
pageSize: data.pageSize,
pageIndex: data.pageIndex,
itemCode: data.searchValue,
locationCode:this.datacontent.locationCode
};
return getBalancesByItemCode(params);
},
getDetail() { getDetail() {
uni.showLoading({ uni.showLoading({
title: '加载中...', title: '加载中...',
@ -390,8 +482,16 @@
var itemCode =result.itemCode; var itemCode =result.itemCode;
this.getitem(itemCode,res=>{ this.getitem(itemCode,res=>{
var result = res; var result = res;
result.itemCode = result.code;
result.itemName = result.name;
result.itemDesc1 = result.desc1;
result.itemDesc2 = result.desc2;
result.uom =result.basicUom
var itemScan = this.scanAllDetails.filter(r => var itemScan = this.scanAllDetails.filter(r =>
r.itemCode == itemCode&&r.inventoryStage==this.datacontent.inventoryStage) r.itemCode == itemCode&&
r.inventoryStage==this.datacontent.inventoryStage&&
r.isDelete==false
)
if (itemScan.length > 0) { if (itemScan.length > 0) {
setTimeout(res => { setTimeout(res => {
showConfirmMsg("物料【" + itemCode + "】已经扫描,是否覆盖已经扫描的信息", res => { showConfirmMsg("物料【" + itemCode + "】已经扫描,是否覆盖已经扫描的信息", res => {
@ -517,10 +617,10 @@
packingCode: "", packingCode: "",
lot: "", lot: "",
itemCode: result.code, itemCode: result.itemCode,
itemName: result.name, itemName: result.itemName,
itemDesc1: result.desc1, itemDesc1: result.itemDesc1,
itemDesc2: result.desc2, itemDesc2: result.itemDesc2,
locationCode: this.location.code, locationCode: this.location.code,
locationGroup: this.location.locationGroupCode, locationGroup: this.location.locationGroupCode,
@ -553,7 +653,7 @@
detail.inventoryQty = 0; detail.inventoryQty = 0;
detail.countQty = 1; detail.countQty = 1;
detail.status = 2; detail.status = 2;
detail.uom =result.basicUom detail.uom =result.uom
return detail; return detail;
}, },

75
fe/PDA/pages/task/countRawDetail.vue

@ -7,7 +7,6 @@
:newCount="newCount" :location="location" :countOrder="datacontent.inventoryStage"> :newCount="newCount" :location="location" :countOrder="datacontent.inventoryStage">
</com-count-scan-detail> </com-count-scan-detail>
</view> </view>
<button @click="open">打开</button>
<scroll-view scroll-y="true" style="margin-bottom: 50rpx;"> <scroll-view scroll-y="true" style="margin-bottom: 50rpx;">
<view v-for="(item ,index) in showList" :key="index"> <view v-for="(item ,index) in showList" :key="index">
<view class="detail-content common_card"> <view class="detail-content common_card">
@ -345,80 +344,6 @@
}) })
}, },
methods: { methods: {
open() {
this.$refs.wzSelectPopup.open({
mode: 'radio', //radio checkbox
// dataList:[], //dataList使proxyConfig
selected: this.userForm.values, //
proxyConfig: { //
reqFun: this.reqGetList, //,Promise.resolve([])
localPaging: false //
},
search: {
type: 'remote', //local | remote
},
fields: {
label: 'name',
value: 'code'
}
})
},
selectCheckbox(mode, data) {
console.log(mode, data)
var result={
data:data
} ;
var itemCode = data.itemCode;
var itemScan = this.scanAllDetails.filter(r =>
r.itemCode == itemCode&&r.inventoryStage==this.datacontent.inventoryStage)
if (itemScan.length > 0) {
setTimeout(res => {
showConfirmMsg("物料【" + itemCode + "】已经扫描,是否覆盖已经扫描的信息", res => {
if (res) {
this.setQty(itemScan[0], itemScan[0].countQty, false);
}
})
}, 100)
return;
}
let items = this.originalDetails.filter(r =>
r.itemCode === itemCode&&r.inventoryStage==this.datacontent.inventoryStage)
if(items.length == 0){
let detail = this.creatDetail(result);
this.setDetailNoBalance(detail, result)
detail.inventoryQty=result.data.qty
this.scanAllDetails.unshift(detail);
this.initList();
this.calcScanCount();
this.$forceUpdate();
}else if (items.length == 1){
setTimeout(res => {
showConfirmMsg("物料【" + itemCode + "】已经扫描,是否覆盖已经扫描的信息", res => {
if (res) {
this.setQty(items[0], items[0].inventoryQty, false);
}
})
}, 100)
}
},
reqGetList(data) {
let params = {
pageSize: data.pageSize,
pageIndex: data.pageIndex,
itemCode: data.searchValue
};
return getBalancesByFilterAsync(params);
// return simulationReqGetList({
// pageIndex: data.pageIndex,
// pageSize: data.pageSize,
// name: data.searchValue
// })
},
initList() { initList() {
this.index = 1; this.index = 1;
this.showList = [] this.showList = []

4
fe/PDA/static/config.json

@ -4,7 +4,7 @@
"value": "DongYang" "value": "DongYang"
}, { }, {
"name": "仓库代码", "name": "仓库代码",
"value": "T8" "value": "T9"
}, },
{ {
"name": "服务地址", "name": "服务地址",
@ -22,7 +22,7 @@
"params": { "params": {
"companyCode": "DongYang", "companyCode": "DongYang",
"warehouseCode": "T8", "warehouseCode": "T9",
"putawayLocationTypes": "1,2,3,4", "putawayLocationTypes": "1,2,3,4",
"putawayInventoryStatus": "2", "putawayInventoryStatus": "2",
"dev": "http://dev.ccwin-in.com:60099", "dev": "http://dev.ccwin-in.com:60099",

2
fe/PDA/uni_modules/wz-select-popup/components/wz-select-popup/wz-list.vue

@ -9,7 +9,7 @@
({{index+1}}) ({{index+1}})
<view class="uni-flex" style="flex-direction: column; font-size: 32rpx;"> <view class="uni-flex" style="flex-direction: column; font-size: 32rpx;">
<view class="list-item-text">代码 : {{item.itemCode}}</view> <view class="list-item-text">ERP料号 : {{item.itemCode}}</view>
<view class="list-item-text">名称 : {{item.itemName}}</view> <view class="list-item-text">名称 : {{item.itemName}}</view>
<view class="list-item-text">描述 : {{item.itemDesc1}}</view> <view class="list-item-text">描述 : {{item.itemDesc1}}</view>
</view> </view>

10
fe/PDA/uni_modules/wz-select-popup/components/wz-select-popup/wz-select-popup.vue

@ -1,6 +1,6 @@
<template> <template>
<view> <view>
<u-popup ref="popup" v-model="showPopup" border-radius="15" mode="center"> <u-popup ref="popup" v-model="showPopup" border-radius="15" style="width: 100%;" mode="center">
<view class="select-popup-content"> <view class="select-popup-content">
<view class="uni-flex" style="display: flex; width: 100%;justify-content: center; "> <view class="uni-flex" style="display: flex; width: 100%;justify-content: center; ">
<view class="" style=" font-size: 35rpx; margin: 20rpx; font-weight: bold;"> <view class="" style=" font-size: 35rpx; margin: 20rpx; font-weight: bold;">
@ -161,12 +161,14 @@
if (config) { if (config) {
this.popConfig = deepMerge(this.popConfig, config) this.popConfig = deepMerge(this.popConfig, config)
} }
this.dataList=[]
this.searchValue=""
this.listInit(dataList) this.listInit(dataList)
this.showPopup =true; this.showPopup =true;
}, },
/**列表数据初始化*/ /**列表数据初始化*/
listInit(dataList) { listInit(dataList) {
this.pageStatus.loading = 'loading' this.pageStatus.loading = 'loading'
//dataListproxyConfig.reqFun //dataListproxyConfig.reqFun
if (dataList && dataList instanceof Array) { if (dataList && dataList instanceof Array) {
@ -186,11 +188,13 @@
}, },
/**组件代理请求*/ /**组件代理请求*/
proxyRequest() { proxyRequest() {
console.log("请求proxyRequest")
const { const {
proxyConfig, proxyConfig,
page page
} = this.popConfig } = this.popConfig
this.pageStatus.loading = 'loading' this.pageStatus.loading = 'loading'
proxyConfig.reqFun({ proxyConfig.reqFun({
...page, ...page,
searchValue: this.searchValue searchValue: this.searchValue
@ -274,7 +278,7 @@
}) })
this.$emit('select', mode, { this.$emit('select', mode, {
...data, ...data,
origin: list origin: list,
}) })
this.close() this.close()
}, },

Loading…
Cancel
Save