Browse Source

更新部分内容

lmy
zhangsiyu 2 years ago
parent
commit
18f0d979be
  1. 12
      api/user.js
  2. 5
      interfaces/pagesHome/setbarcode.ts
  3. 9
      pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue
  4. 8
      pagesHome/pages/SetPrice/SetPrice.vue
  5. 65
      pagesHome/pages/StockUplist/StockUplist.vue
  6. 52
      pagesHome/pages/createAddServe/createAddServe.vue
  7. 30
      pagesHome/pages/inventoryenter/inventoryenter.vue
  8. 18
      pagesHome/pages/setbarcode/setbarcode.vue
  9. BIN
      unpackage/cache/apk/__UNI__EBBABA3_cm.apk
  10. 2
      unpackage/cache/apk/apkurl
  11. 2
      unpackage/cache/apk/cmManifestCache.json
  12. 2
      unpackage/cache/wgt/__UNI__EBBABA3/app-service.js
  13. 403
      unpackage/dist/dev/app-plus/app-service.js
  14. 8
      unpackage/dist/dev/mp-weixin/api/user.js
  15. 7
      unpackage/dist/dev/mp-weixin/pagesHome/pages/OrderSortingDetail/OrderSortingDetail.js
  16. 10
      unpackage/dist/dev/mp-weixin/pagesHome/pages/SetPrice/SetPrice.js
  17. 2
      unpackage/dist/dev/mp-weixin/pagesHome/pages/SetPrice/SetPrice.wxml
  18. 55
      unpackage/dist/dev/mp-weixin/pagesHome/pages/StockUplist/StockUplist.js
  19. 2
      unpackage/dist/dev/mp-weixin/pagesHome/pages/StockUplist/StockUplist.wxml
  20. 52
      unpackage/dist/dev/mp-weixin/pagesHome/pages/inventoryenter/inventoryenter.js
  21. 2
      unpackage/dist/dev/mp-weixin/pagesHome/pages/inventoryenter/inventoryenter.wxml
  22. 20
      unpackage/dist/dev/mp-weixin/pagesHome/pages/setbarcode/setbarcode.js

12
api/user.js

@ -1236,4 +1236,16 @@ export function addvalueupdateAddvalueInfo(data) {
method: "post",
data
});
}
/**
* 获取包条列表
* @param {Object} data
*/
export function distributionStockuplocationSelection(data) {
return request({
url: `logpm-distribution/app/distributionStockup/locationSelection`,
method: "post",
data
});
}

5
interfaces/pagesHome/setbarcode.ts

@ -29,4 +29,9 @@ export interface detailType{
/**
* */
deliveryAddress:string;
/**
* */
allocationId:string;
completeStact:boolean;
}

9
pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue

@ -217,12 +217,17 @@
let response=await warehouseTrayTypeorderScanOrderPackageCode(data)
console.log(response);
initlist()
utils.ttsspke('')
}
watchEffect(()=>{
if(details?.detauser?.trayNum){
utils.ttsspke((detauser?.trayNum||0)+'件')
}
})
function initpage(){
}
const { datelist,detauser }=toRefs(details)
const { datelist , detauser }=toRefs(details)
</script>
<style lang="scss">

8
pagesHome/pages/SetPrice/SetPrice.vue

@ -39,7 +39,7 @@
<view>{{item.floolNum?item.floolNum+' 楼':item.distance&&item.addvalueId=='2'?item.distance+' km':item.distance+' m'}}</view>
<view>{{item.fee||'0'}}</view>
</view>
<image @click="goValueaddedServicePage" src="/pagesHome/static/editorder.png"></image>
<image @click="goValueaddedServicePage(item)" src="/pagesHome/static/editorder.png"></image>
</view>
<view class="titlor">
订单列表
@ -98,10 +98,12 @@
let res=await addvalueaddvalueInfo(data)
details.priceList=res.data
}
function goValueaddedServicePage(){
function goValueaddedServicePage(item:any){
uni.navigateTo({
url:'/pagesHome/pages/createAddServe/createAddServe?reservationId='+details.items.id
url:'/pagesHome/pages/createAddServe/createAddServe?reservationId='
+details.items.id
+'&deliveryId='+details.reservationId
+'&editId='+item.addvalueDetailId
})
}
function goaddserve(){

65
pagesHome/pages/StockUplist/StockUplist.vue

@ -90,6 +90,7 @@
</view>
</view>
</scroll-view>
<tiplist ref="tiplists"></tiplist>
</template>
<script lang="ts" setup>
@ -104,9 +105,11 @@
} from '@/interfaces/pagesHome/StockUplist'
import {
distributionStockuporderList,
distributionStockupscanningCode
distributionStockupscanningCode,
distributionStockuplocationSelection
} from '@/api/user.js'
import { reactive, toRefs } from "vue";
import { reactive, toRefs,ref } from "vue";
const tiplists=ref(null)
let details=reactive<detailType>({
reservationId:'',
orderList:[],
@ -175,12 +178,58 @@
details.orderStatus=state
initpage()
}
function goBarCode(item:any){
uni.navigateTo({
url:'/pagesHome/pages/setbarcode/setbarcode?item='+JSON.stringify(item)
+'&reservationId='+details.reservationId
+'&goodsAreaName='+details.user.goodsAreaName
+'&stockupId='+details.stockupId
async function goBarCode(item:any){
let data={
deliveryDetailsId:item.deliveryDetailsId
}
let res=await distributionStockuplocationSelection(data)
let list=[]
res.data.map(item=>{
list.push(item.positionCode)
})
if(list.length==1){
uni.navigateTo({
url:'/pagesHome/pages/setbarcode/setbarcode?item='+JSON.stringify(item)
+'&reservationId='+details.reservationId
+'&goodsAreaName='+details.user.goodsAreaName
+'&stockupId='+details.stockupId
+'&allocationId='+res.data[0].allocationId
+'&completeStact='+item.completeStact
})
}
tiplists.value.setdetails({
title:'请选择货位',
isshow:true,
tipstate:2,
list,
checklist:[],
inputtext:'',
confirmTxt:'确认选择',
isonecheck:false,
success:(deta)=>{
if(deta.checklist.length==0){
uni.showToast({
title:'请选择货位',
icon:'none'
})
return
}
uni.navigateTo({
url:'/pagesHome/pages/setbarcode/setbarcode?item='+JSON.stringify(item)
+'&reservationId='+details.reservationId
+'&goodsAreaName='+details.user.goodsAreaName
+'&stockupId='+details.stockupId
+'&allocationId='+res.data[deta.checklist[0]].allocationId
+'&completeStact='+item.completeStact
})
tiplists.value.setdetails({isshow:false})
},
cancel:(details)=>{
tiplists.value.setdetails({isshow:false})
},
close:(details)=>{
tiplists.value.setdetails({isshow:false})
}
})
}
const { user,orderList,orderStatus,stockList }=toRefs(details)

52
pagesHome/pages/createAddServe/createAddServe.vue

@ -29,7 +29,7 @@
<input placeholder="请输入" v-model="distance"/>
</view>
</view>
<view class="inputtext">
<view class="inputtext" v-if="typestate==2">
<view>录入包条码</view>
<view>
<input placeholder="请输入" v-model="scancode"/>
@ -94,7 +94,9 @@
<script lang="ts" setup>
import {
addvaluegetAllPackageList, addvaluesaveAddvalueInfo, addvaluescanAddvaluePackage
addvaluegetAllPackageList,
addvaluesaveAddvalueInfo,
addvaluescanAddvaluePackage
} from '@/api/user.js'
import {
onLoad,
@ -123,10 +125,12 @@
distance:'',
scancode:'',
deliveryId:'',
editId:''
})
onLoad((op)=>{
details.reservationId=op.reservationId
details.deliveryId=op.deliveryId
details.editId=op.editId
// details.reservationId='1704046446615171074'
getallpack()
})
@ -190,12 +194,20 @@
}
function removeitem(index:number){
details.scanpack.splice(index,1)
if(details.typestate==1){
details.allpack.splice(index,1)
}else if(details.typestate==2){
details.scanpack.splice(index,1)
}
}
function setdetails<T>(uname: string, value: T): void {
details[uname]=value
}
async function submitpackge(){
if(details.editId){
return
}
if(details.typestate==1){
if((details.checkserve==2||details.checkserve==3)&&!details.distance){
uni.showToast({
@ -212,20 +224,44 @@
}
let data={
addvalueType:details.checkserve,
floolNum:details.floor,
distance:details.distance,
floolNum:details.checkserve==1?details.floor:'',
distance:details.checkserve!=1?details.distance:'',
num:details.allpack.length,
reservationId:details.reservationId,
packageEntityList:details.allpack,
}
let response=await addvaluesaveAddvalueInfo(data)
console.log(response);
if(response.code==200){
uni.navigateBack()
}
}else if(details.typestate==2){
if((details.checkserve==2||details.checkserve==3)&&!details.distance){
uni.showToast({
title:'请输入距离',
icon:'none'
})
return
}else if(details.checkserve==1&&!details.floor){
uni.showToast({
title:'请输入楼层数',
icon:'none'
})
return
}
let data={
addvalueType:details.checkserve,
floolNum:details.checkserve==1?details.floor:'',
distance:details.checkserve!=1?details.distance:'',
num:details.allpack.length,
reservationId:details.reservationId,
packageEntityList:details.scanpack,
}
let response=await addvaluesaveAddvalueInfo(data)
console.log(response);
if(response.code==200){
uni.navigateBack()
}
}
}
function showlist(){

30
pagesHome/pages/inventoryenter/inventoryenter.vue

@ -135,7 +135,7 @@
<view class="rksu" @click.stop.prevent>
<view>
<view>数量</view>
<input placeholder="请输入数量" v-model="maknumber"/>
<input placeholder="请输入数量" v-model="item.maknumber"/>
</view>
</view>
<view class="lisbite" v-if="checkinarr.indexOf(index)!=-1">
@ -297,15 +297,25 @@
})
return
}
let data={
trayType:details.trayType,
trayCode:details.trayCode,
num:details.maknumber,
marketId:details.Marketlist[details.checkmakindex].marketId,
materialCode:details.materialCode,
incomingBatch:details.scanlist[0].incomingBatch
}
let res=await warehouseTrayTypeenterStockNoDataMaterialCode(data)
details.scanlist.map(async (item,index)=>{
if(item.maknumber){
let data={
trayType:details.trayType,
trayCode:details.trayCode,
num:item.maknumber,
marketId:details.Marketlist[details.checkmakindex].marketId,
materialCode:item.sku,
incomingBatch:item.incomingBatch
}
let res=await warehouseTrayTypeenterStockNoDataMaterialCode(data)
if(index==details.scanlist.length-1){
setshowstate(0)
initpage()
details.scanlist=[]
details.materialCode=''
}
}
})
setshowstate(0)
initpage()
details.scanlist=[]

18
pagesHome/pages/setbarcode/setbarcode.vue

@ -63,10 +63,12 @@
printlist:[],
packageNum:0,
goodsAreaName:'',
allocationId:'',
stockupId:'',
stockPrint:1,
customer:'',
deliveryAddress:'',
completeStact:false
})
const tips=ref(null)
// const tiplists=ref(null)
@ -75,6 +77,10 @@
details.items=JSON.parse(op.item)
details.reservationId=op.reservationId
details.goodsAreaName=op.goodsAreaName
details.allocationId=op.allocationId
if(op.completeStact=='true'){
details.completeStact=true
}
// scandata('1231')
uni.$on('scancodedate', function(code) {
if (code) {
@ -118,7 +124,9 @@
orderStatus:2,
reservationId:details.reservationId,
stockListId:details.items.stockListId,
stockupId:details.stockupId
stockupId:details.stockupId,
allocationId:details.allocationId,
status:details.completeStact?1:0
}
let response=await distributionStockuporderInfo(data)
details.codelist=response.data.stockList
@ -157,7 +165,9 @@
let data={
reservationId:details.reservationId,
stockListId:details.items.stockListId,
packageNum:details.packageNum
packageNum:details.packageNum,
allocationId:details.allocationId,
status:details.completeStact?1:0
}
let response=await distributionStockupstockupStockListPackageCode(data)
console.log(response);
@ -239,7 +249,9 @@
stockupArea:details.goodsAreaName,
reservationId:details.reservationId,
stockupId:details.stockupId,
stockPrint:details.stockPrint
stockPrint:details.stockPrint,
allocationId:details.allocationId,
status:details.completeStact?1:0
}
// utils.ttsspke('stockPrint'+details.stockPrint)
let res=await distributionStockupstockupScan(data)

BIN
unpackage/cache/apk/__UNI__EBBABA3_cm.apk vendored

Binary file not shown.

2
unpackage/cache/apk/apkurl vendored

@ -1 +1 @@
https://ide.dcloud.net.cn/build/download/67627100-5754-11ee-9bd4-05d6867aa237
https://ide.dcloud.net.cn/build/download/efcbd570-579b-11ee-901e-65e3bc798f61

2
unpackage/cache/apk/cmManifestCache.json vendored

File diff suppressed because one or more lines are too long

2
unpackage/cache/wgt/__UNI__EBBABA3/app-service.js vendored

File diff suppressed because one or more lines are too long

403
unpackage/dist/dev/app-plus/app-service.js vendored

@ -5051,6 +5051,13 @@ if (uni.restoreGlobal) {
data
});
}
function addvaluescanAddvaluePackage(data) {
return service({
url: `logpm-distribution/app/addvalue/scanAddvaluePackage`,
method: "post",
data
});
}
function addvaluegetAllPackageList(data) {
return service({
url: `logpm-distribution/app/addvalue/getAllPackageList`,
@ -5058,6 +5065,13 @@ if (uni.restoreGlobal) {
data
});
}
function distributionStockuplocationSelection(data) {
return service({
url: `logpm-distribution/app/distributionStockup/locationSelection`,
method: "post",
data
});
}
function getImageCache(filePath, fileMd51) {
return new Promise((resolve, reject) => {
let fileMd5 = "";
@ -8813,6 +8827,7 @@ if (uni.restoreGlobal) {
const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
__name: "StockUplist",
setup(__props) {
const tiplists = vue.ref(null);
let details = vue.reactive({
reservationId: "",
orderList: [],
@ -8837,7 +8852,7 @@ if (uni.restoreGlobal) {
});
async function initpage() {
var _a, _b, _c, _d, _e, _f;
formatAppLog("log", "at pagesHome/pages/StockUplist/StockUplist.vue:135", details.items);
formatAppLog("log", "at pagesHome/pages/StockUplist/StockUplist.vue:138", details.items);
let data = {
orderStatus: details.orderStatus,
reservationId: details.reservationId,
@ -8846,7 +8861,7 @@ if (uni.restoreGlobal) {
};
details.orderList = [];
let response = await distributionStockuporderList(data);
formatAppLog("log", "at pagesHome/pages/StockUplist/StockUplist.vue:144", response);
formatAppLog("log", "at pagesHome/pages/StockUplist/StockUplist.vue:147", response);
details.user.consignee = (_a = response.data) == null ? void 0 : _a.consignee;
details.user.goodsAreaName = (_b = response.data) == null ? void 0 : _b.goodsAreaName;
details.user.planNum = (_c = response.data) == null ? void 0 : _c.planNum;
@ -8871,14 +8886,54 @@ if (uni.restoreGlobal) {
details.orderStatus = state;
initpage();
}
function goBarCode(item) {
uni.navigateTo({
url: "/pagesHome/pages/setbarcode/setbarcode?item=" + JSON.stringify(item) + "&reservationId=" + details.reservationId + "&goodsAreaName=" + details.user.goodsAreaName + "&stockupId=" + details.stockupId
async function goBarCode(item) {
let data = {
deliveryDetailsId: item.deliveryDetailsId
};
let res = await distributionStockuplocationSelection(data);
let list = [];
res.data.map((item2) => {
list.push(item2.positionCode);
});
if (list.length == 1) {
uni.navigateTo({
url: "/pagesHome/pages/setbarcode/setbarcode?item=" + JSON.stringify(item) + "&reservationId=" + details.reservationId + "&goodsAreaName=" + details.user.goodsAreaName + "&stockupId=" + details.stockupId + "&allocationId=" + res.data[0].allocationId + "&completeStact=" + item.completeStact
});
}
tiplists.value.setdetails({
title: "请选择货位",
isshow: true,
tipstate: 2,
list,
checklist: [],
inputtext: "",
confirmTxt: "确认选择",
isonecheck: false,
success: (deta) => {
if (deta.checklist.length == 0) {
uni.showToast({
title: "请选择货位",
icon: "none"
});
return;
}
uni.navigateTo({
url: "/pagesHome/pages/setbarcode/setbarcode?item=" + JSON.stringify(item) + "&reservationId=" + details.reservationId + "&goodsAreaName=" + details.user.goodsAreaName + "&stockupId=" + details.stockupId + "&allocationId=" + res.data[deta.checklist[0]].allocationId + "&completeStact=" + item.completeStact
});
tiplists.value.setdetails({ isshow: false });
},
cancel: (details2) => {
tiplists.value.setdetails({ isshow: false });
},
close: (details2) => {
tiplists.value.setdetails({ isshow: false });
}
});
}
const { user, orderList, orderStatus, stockList } = vue.toRefs(details);
return (_ctx, _cache) => {
const _component_u_navbar = resolveEasycom(vue.resolveDynamicComponent("u-navbar"), __easycom_0);
const _component_tiplist = vue.resolveComponent("tiplist");
return vue.openBlock(), vue.createElementBlock(
vue.Fragment,
null,
@ -9113,7 +9168,17 @@ if (uni.restoreGlobal) {
/* UNKEYED_FRAGMENT */
)) : vue.createCommentVNode("v-if", true)
])
])
]),
vue.createVNode(
_component_tiplist,
{
ref_key: "tiplists",
ref: tiplists
},
null,
512
/* NEED_PATCH */
)
],
64
/* STABLE_FRAGMENT */
@ -14374,10 +14439,12 @@ if (uni.restoreGlobal) {
printlist: [],
packageNum: 0,
goodsAreaName: "",
allocationId: "",
stockupId: "",
stockPrint: 1,
customer: "",
deliveryAddress: ""
deliveryAddress: "",
completeStact: false
});
const tips2 = vue.ref(null);
onLoad((op) => {
@ -14385,9 +14452,13 @@ if (uni.restoreGlobal) {
details.items = JSON.parse(op.item);
details.reservationId = op.reservationId;
details.goodsAreaName = op.goodsAreaName;
details.allocationId = op.allocationId;
if (op.completeStact == "true") {
details.completeStact = true;
}
uni.$on("scancodedate", function(code2) {
if (code2) {
formatAppLog("log", "at pagesHome/pages/setbarcode/setbarcode.vue:81", code2);
formatAppLog("log", "at pagesHome/pages/setbarcode/setbarcode.vue:87", code2);
scandata(code2);
}
});
@ -14406,7 +14477,9 @@ if (uni.restoreGlobal) {
orderStatus: 2,
reservationId: details.reservationId,
stockListId: details.items.stockListId,
stockupId: details.stockupId
stockupId: details.stockupId,
allocationId: details.allocationId,
status: details.completeStact ? 1 : 0
};
let response = await distributionStockuporderInfo(data);
details.codelist = response.data.stockList;
@ -14420,7 +14493,7 @@ if (uni.restoreGlobal) {
tipstate: 1,
placeholder: "请输入需要生成的包条码数量",
success: (deta) => {
formatAppLog("log", "at pagesHome/pages/setbarcode/setbarcode.vue:135", deta);
formatAppLog("log", "at pagesHome/pages/setbarcode/setbarcode.vue:143", deta);
details.packageNum = deta.inputtext;
if (Number(details.packageNum) > Number(details.items.planNum)) {
uni.showToast({
@ -14444,10 +14517,12 @@ if (uni.restoreGlobal) {
let data = {
reservationId: details.reservationId,
stockListId: details.items.stockListId,
packageNum: details.packageNum
packageNum: details.packageNum,
allocationId: details.allocationId,
status: details.completeStact ? 1 : 0
};
let response = await distributionStockupstockupStockListPackageCode(data);
formatAppLog("log", "at pagesHome/pages/setbarcode/setbarcode.vue:163", response);
formatAppLog("log", "at pagesHome/pages/setbarcode/setbarcode.vue:173", response);
details.printlist = response.data;
tips2.value.setdetails({
title: "请选择要打印的包条",
@ -14504,9 +14579,9 @@ if (uni.restoreGlobal) {
text += "ENDQR\r\n";
text += "PRINT\r\n";
let sylist = utils2.initbl();
formatAppLog("log", "at pagesHome/pages/setbarcode/setbarcode.vue:225", sylist);
formatAppLog("log", "at pagesHome/pages/setbarcode/setbarcode.vue:235", sylist);
sylist.map((item2) => {
formatAppLog("log", "at pagesHome/pages/setbarcode/setbarcode.vue:227", item2);
formatAppLog("log", "at pagesHome/pages/setbarcode/setbarcode.vue:237", item2);
if (item2.uuids) {
utils2.getbl(item2, text);
}
@ -14520,10 +14595,12 @@ if (uni.restoreGlobal) {
stockupArea: details.goodsAreaName,
reservationId: details.reservationId,
stockupId: details.stockupId,
stockPrint: details.stockPrint
stockPrint: details.stockPrint,
allocationId: details.allocationId,
status: details.completeStact ? 1 : 0
};
let res = await distributionStockupstockupScan(data);
formatAppLog("log", "at pagesHome/pages/setbarcode/setbarcode.vue:246", res);
formatAppLog("log", "at pagesHome/pages/setbarcode/setbarcode.vue:258", res);
if (res.code == 200) {
initpage();
}
@ -15590,7 +15667,14 @@ if (uni.restoreGlobal) {
let response = await warehouseTrayTypeorderScanOrderPackageCode(data);
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:218", response);
initlist();
utils.ttsspke("");
}
vue.watchEffect(() => {
var _a;
if ((_a = details == null ? void 0 : details.detauser) == null ? void 0 : _a.trayNum) {
utils.ttsspke(((detauser == null ? void 0 : detauser.trayNum) || 0) + "件");
}
});
const { datelist, detauser } = vue.toRefs(details);
return (_ctx, _cache) => {
var _a, _b, _c, _d, _e;
@ -17041,15 +17125,25 @@ if (uni.restoreGlobal) {
});
return;
}
let data = {
trayType: details.trayType,
trayCode: details.trayCode,
num: details.maknumber,
marketId: details.Marketlist[details.checkmakindex].marketId,
materialCode: details.materialCode,
incomingBatch: details.scanlist[0].incomingBatch
};
await warehouseTrayTypeenterStockNoDataMaterialCode(data);
details.scanlist.map(async (item, index2) => {
if (item.maknumber) {
let data = {
trayType: details.trayType,
trayCode: details.trayCode,
num: item.maknumber,
marketId: details.Marketlist[details.checkmakindex].marketId,
materialCode: item.sku,
incomingBatch: item.incomingBatch
};
await warehouseTrayTypeenterStockNoDataMaterialCode(data);
if (index2 == details.scanlist.length - 1) {
setshowstate(0);
initpage();
details.scanlist = [];
details.materialCode = "";
}
}
});
setshowstate(0);
initpage();
details.scanlist = [];
@ -17264,11 +17358,11 @@ if (uni.restoreGlobal) {
vue.unref(showstate) != 0 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "tanchuangbg",
onClick: _cache[6] || (_cache[6] = ($event) => setshowstate(0))
onClick: _cache[5] || (_cache[5] = ($event) => setshowstate(0))
}, [
vue.createElementVNode("view", {
class: "inputbox",
onClick: _cache[5] || (_cache[5] = vue.withModifiers(() => {
onClick: _cache[4] || (_cache[4] = vue.withModifiers(() => {
}, ["stop", "prevent"]))
}, [
vue.createElementVNode("view", { class: "inputscan" }, [
@ -17384,22 +17478,16 @@ if (uni.restoreGlobal) {
]),
vue.createElementVNode("view", {
class: "rksu",
onClick: _cache[3] || (_cache[3] = vue.withModifiers(() => {
onClick: _cache[2] || (_cache[2] = vue.withModifiers(() => {
}, ["stop", "prevent"]))
}, [
vue.createElementVNode("view", null, [
vue.createElementVNode("view", null, "数量:"),
vue.withDirectives(vue.createElementVNode(
"input",
{
placeholder: "请输入数量",
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(maknumber) ? maknumber.value = $event : null)
},
null,
512
/* NEED_PATCH */
), [
[vue.vModelText, vue.unref(maknumber)]
vue.withDirectives(vue.createElementVNode("input", {
placeholder: "请输入数量",
"onUpdate:modelValue": ($event) => item.maknumber = $event
}, null, 8, ["onUpdate:modelValue"]), [
[vue.vModelText, item.maknumber]
])
])
]),
@ -17449,7 +17537,7 @@ if (uni.restoreGlobal) {
vue.createElementVNode("view", { class: "btx" }, [
vue.createElementVNode("view", {
class: "cancel",
onClick: _cache[4] || (_cache[4] = ($event) => setshowstate(0))
onClick: _cache[3] || (_cache[3] = ($event) => setshowstate(0))
}, "取消"),
vue.createElementVNode("view", {
class: "confirm",
@ -22545,7 +22633,8 @@ if (uni.restoreGlobal) {
{ typename: "搬运", type: 4 },
{ typename: "分拣入户", type: 5 },
{ typename: "专车", type: 6 }
]
],
priceList: []
});
onLoad((op) => {
details.reservationId = op.reservationId;
@ -22558,16 +22647,17 @@ if (uni.restoreGlobal) {
let data = {
reservationId: details.items.id
};
await addvalueaddvalueInfo(data);
let res = await addvalueaddvalueInfo(data);
details.priceList = res.data;
}
function goValueaddedServicePage() {
function goValueaddedServicePage(item) {
uni.navigateTo({
url: "/pagesHome/pages/createAddServe/createAddServe?reservationId=" + details.items.id
url: "/pagesHome/pages/createAddServe/createAddServe?reservationId=" + details.items.id + "&deliveryId=" + details.reservationId + "&editId=" + item.addvalueDetailId
});
}
function goaddserve() {
uni.navigateTo({
url: "/pagesHome/pages/createAddServe/createAddServe?reservationId=" + details.items.id
url: "/pagesHome/pages/createAddServe/createAddServe?reservationId=" + details.items.id + "&deliveryId=" + details.reservationId
});
}
return (_ctx, _cache) => {
@ -22647,51 +22737,87 @@ if (uni.restoreGlobal) {
class: "scvs"
}, [
vue.createElementVNode("view", { class: "maboxsw" }, [
(vue.openBlock(), vue.createElementBlock(
(vue.openBlock(true), vue.createElementBlock(
vue.Fragment,
null,
vue.renderList(3, (item) => {
return vue.createElementVNode("view", { class: "itemboxs" }, [
vue.renderList(vue.unref(details).priceList, (item) => {
return vue.openBlock(), vue.createElementBlock("view", { class: "itemboxs" }, [
vue.createElementVNode("view", { class: "topdivs" }, [
vue.createElementVNode("view", null, [
vue.createElementVNode("view", null, "超区"),
vue.createElementVNode("view", null, "145km"),
vue.createElementVNode("view", null, "126元")
vue.createElementVNode(
"view",
null,
vue.toDisplayString(vue.unref(details).priceType[Number(item.addvalueId) - 1].typename),
1
/* TEXT */
),
vue.createElementVNode(
"view",
null,
vue.toDisplayString(item.floolNum ? item.floolNum + " 楼" : item.distance && item.addvalueId == "2" ? item.distance + " km" : item.distance + " m"),
1
/* TEXT */
),
vue.createElementVNode(
"view",
null,
vue.toDisplayString(item.fee || "0") + "元",
1
/* TEXT */
)
]),
vue.createElementVNode("image", {
onClick: goValueaddedServicePage,
onClick: ($event) => goValueaddedServicePage(item),
src: "/pagesHome/static/editorder.png"
})
}, null, 8, ["onClick"])
]),
vue.createElementVNode("view", { class: "titlor" }, " 订单列表 "),
vue.createElementVNode("view", { class: "orderlists" }, [
(vue.openBlock(), vue.createElementBlock(
(vue.openBlock(true), vue.createElementBlock(
vue.Fragment,
null,
vue.renderList(3, (item2) => {
return vue.createElementVNode("view", { class: "minitem" }, [
vue.renderList(item.packageEntityList, (ite) => {
return vue.openBlock(), vue.createElementBlock("view", { class: "minitem" }, [
vue.createElementVNode("view", null, [
vue.createTextVNode("货物名称:"),
vue.createElementVNode("text", { style: { "color": "#8D97A3" } }, "HTLQ洗衣机C201")
vue.createElementVNode(
"text",
{ style: { "color": "#8D97A3" } },
vue.toDisplayString(ite.materialName),
1
/* TEXT */
)
]),
vue.createElementVNode("view", null, [
vue.createTextVNode("订单号:"),
vue.createElementVNode("text", { style: { "color": "#8D97A3" } }, "HTLQ北碚区20230931001")
vue.createElementVNode(
"text",
{ style: { "color": "#8D97A3" } },
vue.toDisplayString(ite.orderCode),
1
/* TEXT */
)
]),
vue.createElementVNode("view", null, [
vue.createTextVNode("订单号:"),
vue.createElementVNode("text", { style: { "color": "#8D97A3" } }, "HTLQ北碚区20230931001")
vue.createTextVNode("包条码:"),
vue.createElementVNode(
"text",
{ style: { "color": "#8D97A3" } },
vue.toDisplayString(ite.orderPackageCode),
1
/* TEXT */
)
])
]);
}),
64
/* STABLE_FRAGMENT */
256
/* UNKEYED_FRAGMENT */
))
])
]);
}),
64
/* STABLE_FRAGMENT */
256
/* UNKEYED_FRAGMENT */
))
])
]),
@ -22984,15 +23110,81 @@ if (uni.restoreGlobal) {
scanpack: [],
reservationId: "",
floor: "",
distance: ""
distance: "",
scancode: "",
deliveryId: "",
editId: ""
});
onLoad((op) => {
details.reservationId = op.reservationId;
details.deliveryId = op.deliveryId;
details.editId = op.editId;
getallpack();
});
onShow(() => {
uni.$on("scancodedate", function(code2) {
if (code2) {
details.scancode = code2;
scandata();
}
});
});
onHide(() => {
uni.$off("scancodedate");
});
vue.watchEffect(() => {
details.checkserve = details.priceType[details.checkserveindex].type;
});
async function scandata(isManual) {
if (isManual) {
if (details.typestate == 1)
;
else if (details.typestate == 2) {
let list = [];
details.scanpack.map((item) => {
list.push(item.id);
});
let data = {
reservationId: details.reservationId,
barcode: details.scancode,
packageListIds: list,
isManual: 2,
deliveryId: details.deliveryId
};
let response = await addvaluescanAddvaluePackage(data);
if (response.code == 200) {
details.scanpack = details.scanpack.concat(response.obj);
}
}
} else {
if (details.typestate == 1)
;
else if (details.typestate == 2) {
let list = [];
details.scanpack.map((item) => {
list.push(item.id);
});
let data = {
reservationId: details.reservationId,
barcode: details.scancode,
packageListIds: [],
isManual: 1,
deliveryId: details.deliveryId
};
let response = await addvaluescanAddvaluePackage(data);
if (response.code == 200) {
details.scanpack = details.scanpack.concat(response.obj);
}
}
}
}
function removeitem(index2) {
if (details.typestate == 1) {
details.allpack.splice(index2, 1);
} else if (details.typestate == 2) {
details.scanpack.splice(index2, 1);
}
}
function setdetails(uname, value) {
details[uname] = value;
}
@ -23013,18 +23205,45 @@ if (uni.restoreGlobal) {
}
let data = {
addvalueType: details.checkserve,
floolNum: details.floor,
distance: details.distance,
floolNum: details.checkserve == 1 ? details.floor : "",
distance: details.checkserve != 1 ? details.distance : "",
num: details.allpack.length,
reservationId: details.reservationId,
packageEntityList: details.allpack
};
let response = await addvaluesaveAddvalueInfo(data);
formatAppLog("log", "at pagesHome/pages/createAddServe/createAddServe.vue:153", response);
if (response.code == 200)
;
} else if (details.typestate == 2)
;
formatAppLog("log", "at pagesHome/pages/createAddServe/createAddServe.vue:230", response);
if (response.code == 200) {
uni.navigateBack();
}
} else if (details.typestate == 2) {
if ((details.checkserve == 2 || details.checkserve == 3) && !details.distance) {
uni.showToast({
title: "请输入距离",
icon: "none"
});
return;
} else if (details.checkserve == 1 && !details.floor) {
uni.showToast({
title: "请输入楼层数",
icon: "none"
});
return;
}
let data = {
addvalueType: details.checkserve,
floolNum: details.checkserve == 1 ? details.floor : "",
distance: details.checkserve != 1 ? details.distance : "",
num: details.allpack.length,
reservationId: details.reservationId,
packageEntityList: details.scanpack
};
let response = await addvaluesaveAddvalueInfo(data);
formatAppLog("log", "at pagesHome/pages/createAddServe/createAddServe.vue:257", response);
if (response.code == 200) {
uni.navigateBack();
}
}
}
function showlist() {
let list = [];
@ -23049,6 +23268,9 @@ if (uni.restoreGlobal) {
return;
}
details.checkserveindex = deta.checklist[0];
if (details.checkserveindex == 1 || details.checkserveindex == 5) {
details.typestate = 1;
}
tiplists.value.setdetails({ isshow: false });
},
cancel: (details2) => {
@ -23068,6 +23290,7 @@ if (uni.restoreGlobal) {
details.allpack = response.data;
}
const {
scancode,
distance,
floor,
allpack,
@ -23080,6 +23303,7 @@ if (uni.restoreGlobal) {
return (_ctx, _cache) => {
const _component_u_navbar = resolveEasycom(vue.resolveDynamicComponent("u-navbar"), __easycom_0);
const _component_tiplist = vue.resolveComponent("tiplist");
const _component_saomiao2 = vue.resolveComponent("saomiao2");
return vue.openBlock(), vue.createElementBlock(
vue.Fragment,
null,
@ -23167,6 +23391,30 @@ if (uni.restoreGlobal) {
])
])
])) : vue.createCommentVNode("v-if", true),
vue.unref(typestate) == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 3,
class: "inputtext"
}, [
vue.createElementVNode("view", null, "录入包条码"),
vue.createElementVNode("view", null, [
vue.withDirectives(vue.createElementVNode(
"input",
{
placeholder: "请输入",
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(scancode) ? scancode.value = $event : null)
},
null,
512
/* NEED_PATCH */
), [
[vue.vModelText, vue.unref(scancode)]
]),
vue.createElementVNode("view", {
onClick: _cache[4] || (_cache[4] = ($event) => scandata(true)),
class: ""
}, "确认")
])
])) : vue.createCommentVNode("v-if", true),
vue.createCommentVNode(' <view class="selectlist">\r\n <view>楼层</view>\r\n <view>\r\n <view>请选择</view>\r\n <image src="/static/rigthview.png"></image>\r\n </view>\r\n </view> '),
vue.createElementVNode("view", { class: "checktype" }, [
vue.createElementVNode("view", null, "包件类型"),
@ -23174,7 +23422,7 @@ if (uni.restoreGlobal) {
vue.createElementVNode(
"view",
{
onClick: _cache[3] || (_cache[3] = ($event) => setdetails("typestate", 1)),
onClick: _cache[5] || (_cache[5] = ($event) => setdetails("typestate", 1)),
class: vue.normalizeClass(vue.unref(typestate) == 1 ? "xz" : "")
},
[
@ -23190,7 +23438,7 @@ if (uni.restoreGlobal) {
"view",
{
key: 0,
onClick: _cache[4] || (_cache[4] = ($event) => setdetails("typestate", 2)),
onClick: _cache[6] || (_cache[6] = ($event) => setdetails("typestate", 2)),
class: vue.normalizeClass(vue.unref(typestate) == 2 ? "xz" : "")
},
[
@ -23262,7 +23510,9 @@ if (uni.restoreGlobal) {
1
/* TEXT */
),
vue.createElementVNode("view", null, "移除")
vue.createElementVNode("view", {
onClick: ($event) => removeitem(index2)
}, "移除", 8, ["onClick"])
]),
vue.createElementVNode("view", { class: "types2" }, [
vue.createElementVNode("image", { src: "/pagesHome/static/scanicon1.png" }),
@ -23303,7 +23553,8 @@ if (uni.restoreGlobal) {
null,
512
/* NEED_PATCH */
)
),
vue.createVNode(_component_saomiao2)
],
64
/* STABLE_FRAGMENT */

8
unpackage/dist/dev/mp-weixin/api/user.js vendored

@ -686,6 +686,13 @@ function addvaluegetAllPackageList(data) {
data
});
}
function distributionStockuplocationSelection(data) {
return utils_request.service({
url: `logpm-distribution/app/distributionStockup/locationSelection`,
method: "post",
data
});
}
exports.AppPdaversiondetail = AppPdaversiondetail;
exports.addvalueaddvalueInfo = addvalueaddvalueInfo;
exports.addvaluegetAllPackageList = addvaluegetAllPackageList;
@ -710,6 +717,7 @@ exports.deliveryvehicle = deliveryvehicle;
exports.deliverywrap = deliverywrap;
exports.deliverywrapIn = deliverywrapIn;
exports.distributionStockupgetStockupArea = distributionStockupgetStockupArea;
exports.distributionStockuplocationSelection = distributionStockuplocationSelection;
exports.distributionStockuporderInfo = distributionStockuporderInfo;
exports.distributionStockuporderList = distributionStockuporderList;
exports.distributionStockuppageList = distributionStockuppageList;

7
unpackage/dist/dev/mp-weixin/pagesHome/pages/OrderSortingDetail/OrderSortingDetail.js vendored

@ -115,7 +115,14 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
let response = await api_user.warehouseTrayTypeorderScanOrderPackageCode(data);
console.log(response);
initlist();
utils_utils.utils.ttsspke("");
}
common_vendor.watchEffect(() => {
var _a;
if ((_a = details == null ? void 0 : details.detauser) == null ? void 0 : _a.trayNum) {
utils_utils.utils.ttsspke(((detauser == null ? void 0 : detauser.trayNum) || 0) + "件");
}
});
const { datelist, detauser } = common_vendor.toRefs(details);
return (_ctx, _cache) => {
var _a, _b, _c, _d, _e;

10
unpackage/dist/dev/mp-weixin/pagesHome/pages/SetPrice/SetPrice.js vendored

@ -46,9 +46,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
let res = await api_user.addvalueaddvalueInfo(data);
details.priceList = res.data;
}
function goValueaddedServicePage() {
function goValueaddedServicePage(item) {
common_vendor.index.navigateTo({
url: "/pagesHome/pages/createAddServe/createAddServe?reservationId=" + details.items.id + "&deliveryId=" + details.reservationId
url: "/pagesHome/pages/createAddServe/createAddServe?reservationId=" + details.items.id + "&deliveryId=" + details.reservationId + "&editId=" + item.addvalueDetailId
});
}
function goaddserve() {
@ -77,7 +77,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
a: common_vendor.t(common_vendor.unref(details).priceType[Number(item.addvalueId) - 1].typename),
b: common_vendor.t(item.floolNum ? item.floolNum + " 楼" : item.distance && item.addvalueId == "2" ? item.distance + " km" : item.distance + " m"),
c: common_vendor.t(item.fee || "0"),
d: common_vendor.f(item.packageEntityList, (ite, k1, i1) => {
d: common_vendor.o(($event) => goValueaddedServicePage(item)),
e: common_vendor.f(item.packageEntityList, (ite, k1, i1) => {
return {
a: common_vendor.t(ite.materialName),
b: common_vendor.t(ite.orderCode),
@ -86,8 +87,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
})
};
}),
h: common_vendor.o(goValueaddedServicePage),
i: common_vendor.o(goaddserve)
h: common_vendor.o(goaddserve)
};
};
}

2
unpackage/dist/dev/mp-weixin/pagesHome/pages/SetPrice/SetPrice.wxml vendored

@ -1 +1 @@
<u-navbar wx:if="{{a}}" u-i="e45ab4e0-0" bind:__l="__l" u-p="{{a}}"></u-navbar><view class="bgcolo"></view><view class="card_use"><view class="card_top"><view><view>客户</view><view>{{b}}</view></view><view><view>签收状态</view><view style="color:#0086F1">{{c}}</view></view></view><view class="card-content"><view><view>订单总数</view><view>{{d}}</view></view><view><view>配送件数</view><view>{{e}}</view></view><view><view>扫描件数</view><view>{{f}}</view></view></view></view><scroll-view scroll-y="true" class="scvs"><view class="maboxsw"><view wx:for="{{g}}" wx:for-item="item" class="itemboxs"><view class="topdivs"><view><view>{{item.a}}</view><view>{{item.b}}</view><view>{{item.c}}元</view></view><image bindtap="{{h}}" src="/pagesHome/static/editorder.png"></image></view><view class="titlor"> 订单列表 </view><view class="orderlists"><view wx:for="{{item.d}}" wx:for-item="ite" class="minitem"><view>货物名称:<text style="color:#8D97A3">{{ite.a}}</text></view><view>订单号:<text style="color:#8D97A3">{{ite.b}}</text></view><view>包条码:<text style="color:#8D97A3">{{ite.c}}</text></view></view></view></view></view></scroll-view><view class="butadd" bindtap="{{i}}"> 增加增值服务 </view>
<u-navbar wx:if="{{a}}" u-i="e45ab4e0-0" bind:__l="__l" u-p="{{a}}"></u-navbar><view class="bgcolo"></view><view class="card_use"><view class="card_top"><view><view>客户</view><view>{{b}}</view></view><view><view>签收状态</view><view style="color:#0086F1">{{c}}</view></view></view><view class="card-content"><view><view>订单总数</view><view>{{d}}</view></view><view><view>配送件数</view><view>{{e}}</view></view><view><view>扫描件数</view><view>{{f}}</view></view></view></view><scroll-view scroll-y="true" class="scvs"><view class="maboxsw"><view wx:for="{{g}}" wx:for-item="item" class="itemboxs"><view class="topdivs"><view><view>{{item.a}}</view><view>{{item.b}}</view><view>{{item.c}}元</view></view><image bindtap="{{item.d}}" src="/pagesHome/static/editorder.png"></image></view><view class="titlor"> 订单列表 </view><view class="orderlists"><view wx:for="{{item.e}}" wx:for-item="ite" class="minitem"><view>货物名称:<text style="color:#8D97A3">{{ite.a}}</text></view><view>订单号:<text style="color:#8D97A3">{{ite.b}}</text></view><view>包条码:<text style="color:#8D97A3">{{ite.c}}</text></view></view></view></view></view></scroll-view><view class="butadd" bindtap="{{h}}"> 增加增值服务 </view>

55
unpackage/dist/dev/mp-weixin/pagesHome/pages/StockUplist/StockUplist.js vendored

@ -10,7 +10,8 @@ require("../../../config/host.js");
require("../../../utils/md5.js");
if (!Array) {
const _easycom_u_navbar2 = common_vendor.resolveComponent("u-navbar");
_easycom_u_navbar2();
const _component_tiplist = common_vendor.resolveComponent("tiplist");
(_easycom_u_navbar2 + _component_tiplist)();
}
const _easycom_u_navbar = () => "../../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";
if (!Math) {
@ -19,6 +20,7 @@ if (!Math) {
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "StockUplist",
setup(__props) {
const tiplists = common_vendor.ref(null);
let details = common_vendor.reactive({
reservationId: "",
orderList: [],
@ -77,9 +79,48 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
details.orderStatus = state;
initpage();
}
function goBarCode(item) {
common_vendor.index.navigateTo({
url: "/pagesHome/pages/setbarcode/setbarcode?item=" + JSON.stringify(item) + "&reservationId=" + details.reservationId + "&goodsAreaName=" + details.user.goodsAreaName + "&stockupId=" + details.stockupId
async function goBarCode(item) {
let data = {
deliveryDetailsId: item.deliveryDetailsId
};
let res = await api_user.distributionStockuplocationSelection(data);
let list = [];
res.data.map((item2) => {
list.push(item2.positionCode);
});
if (list.length == 1) {
common_vendor.index.navigateTo({
url: "/pagesHome/pages/setbarcode/setbarcode?item=" + JSON.stringify(item) + "&reservationId=" + details.reservationId + "&goodsAreaName=" + details.user.goodsAreaName + "&stockupId=" + details.stockupId + "&allocationId=" + res.data[0].allocationId + "&completeStact=" + item.completeStact
});
}
tiplists.value.setdetails({
title: "请选择货位",
isshow: true,
tipstate: 2,
list,
checklist: [],
inputtext: "",
confirmTxt: "确认选择",
isonecheck: false,
success: (deta) => {
if (deta.checklist.length == 0) {
common_vendor.index.showToast({
title: "请选择货位",
icon: "none"
});
return;
}
common_vendor.index.navigateTo({
url: "/pagesHome/pages/setbarcode/setbarcode?item=" + JSON.stringify(item) + "&reservationId=" + details.reservationId + "&goodsAreaName=" + details.user.goodsAreaName + "&stockupId=" + details.stockupId + "&allocationId=" + res.data[deta.checklist[0]].allocationId + "&completeStact=" + item.completeStact
});
tiplists.value.setdetails({ isshow: false });
},
cancel: (details2) => {
tiplists.value.setdetails({ isshow: false });
},
close: (details2) => {
tiplists.value.setdetails({ isshow: false });
}
});
}
const { user, orderList, orderStatus, stockList } = common_vendor.toRefs(details);
@ -133,7 +174,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
g: common_vendor.o(($event) => goBarCode(item))
};
})
} : {});
} : {}, {
n: common_vendor.sr(tiplists, "28ffa760-1", {
"k": "tiplists"
})
});
};
}
});

2
unpackage/dist/dev/mp-weixin/pagesHome/pages/StockUplist/StockUplist.wxml vendored

@ -1 +1 @@
<u-navbar wx:if="{{a}}" u-i="28ffa760-0" bind:__l="__l" u-p="{{a}}"></u-navbar><view class="head"><view class="type1"><view>客户:{{b}}</view><view>备货区域:{{c}}</view></view><view class="type1"><view>计划件数:{{d}}</view><view>扫码件数:{{e}}</view></view></view><view class="tabtip"><view bindtap="{{g}}"><view class="{{f}}">定制品</view></view><view bindtap="{{i}}"><view class="{{h}}">库存品</view></view></view><scroll-view scroll-y="true" class="scvew"><view class="mabx"><block wx:if="{{j}}"><view wx:for="{{k}}" wx:for-item="item" class="item"><view class="toptitl"><view class="toplft"> 库位号:{{item.a}}</view><view class="tis bf"> 按件扫描 </view></view><view class="boxcontt"><view><view><text style="color:#90A0AF">托盘号:</text>{{item.b}}</view><view><text style="color:#90A0AF">订单自编码:</text>{{item.c}}</view></view><view><view><text style="color:#90A0AF">计划件数:</text>{{item.d}}</view><view><text style="color:#90A0AF">扫描件数:</text>{{item.e}}</view></view></view><view class="buttts"><view wx:if="{{item.f}}" class="antu" bindtap="{{item.g}}"> 整托备货扫码 </view><view class="anj" bindtap="{{item.i}}">{{item.h}}</view></view></view></block><block wx:if="{{l}}"><view wx:for="{{m}}" wx:for-item="item" class="item"><view class="boxcontt"><view><view><text style="color:#90A0AF">货位:</text>{{item.a}}</view><view><text style="color:#90A0AF">物品:</text>{{item.b}}</view></view><view><view><text style="color:#90A0AF">SKU:</text>{{item.c}}</view><view><text style="color:#90A0AF">规格:</text>{{item.d}}</view></view><view><view><text style="color:#90A0AF">计划数量:</text>{{item.e}}</view><view><text style="color:#90A0AF">单位:</text>{{item.f}}</view></view></view><view class="buttts"><view class="anj" bindtap="{{item.g}}"> 配置包条码 </view></view></view></block></view></scroll-view>
<u-navbar wx:if="{{a}}" u-i="28ffa760-0" bind:__l="__l" u-p="{{a}}"></u-navbar><view class="head"><view class="type1"><view>客户:{{b}}</view><view>备货区域:{{c}}</view></view><view class="type1"><view>计划件数:{{d}}</view><view>扫码件数:{{e}}</view></view></view><view class="tabtip"><view bindtap="{{g}}"><view class="{{f}}">定制品</view></view><view bindtap="{{i}}"><view class="{{h}}">库存品</view></view></view><scroll-view scroll-y="true" class="scvew"><view class="mabx"><block wx:if="{{j}}"><view wx:for="{{k}}" wx:for-item="item" class="item"><view class="toptitl"><view class="toplft"> 库位号:{{item.a}}</view><view class="tis bf"> 按件扫描 </view></view><view class="boxcontt"><view><view><text style="color:#90A0AF">托盘号:</text>{{item.b}}</view><view><text style="color:#90A0AF">订单自编码:</text>{{item.c}}</view></view><view><view><text style="color:#90A0AF">计划件数:</text>{{item.d}}</view><view><text style="color:#90A0AF">扫描件数:</text>{{item.e}}</view></view></view><view class="buttts"><view wx:if="{{item.f}}" class="antu" bindtap="{{item.g}}"> 整托备货扫码 </view><view class="anj" bindtap="{{item.i}}">{{item.h}}</view></view></view></block><block wx:if="{{l}}"><view wx:for="{{m}}" wx:for-item="item" class="item"><view class="boxcontt"><view><view><text style="color:#90A0AF">货位:</text>{{item.a}}</view><view><text style="color:#90A0AF">物品:</text>{{item.b}}</view></view><view><view><text style="color:#90A0AF">SKU:</text>{{item.c}}</view><view><text style="color:#90A0AF">规格:</text>{{item.d}}</view></view><view><view><text style="color:#90A0AF">计划数量:</text>{{item.e}}</view><view><text style="color:#90A0AF">单位:</text>{{item.f}}</view></view></view><view class="buttts"><view class="anj" bindtap="{{item.g}}"> 配置包条码 </view></view></view></block></view></scroll-view><tiplist class="r" u-r="tiplists" u-i="28ffa760-1" bind:__l="__l"></tiplist>

52
unpackage/dist/dev/mp-weixin/pagesHome/pages/inventoryenter/inventoryenter.js vendored

@ -140,15 +140,25 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
});
return;
}
let data = {
trayType: details.trayType,
trayCode: details.trayCode,
num: details.maknumber,
marketId: details.Marketlist[details.checkmakindex].marketId,
materialCode: details.materialCode,
incomingBatch: details.scanlist[0].incomingBatch
};
await api_user.warehouseTrayTypeenterStockNoDataMaterialCode(data);
details.scanlist.map(async (item, index) => {
if (item.maknumber) {
let data = {
trayType: details.trayType,
trayCode: details.trayCode,
num: item.maknumber,
marketId: details.Marketlist[details.checkmakindex].marketId,
materialCode: item.sku,
incomingBatch: item.incomingBatch
};
await api_user.warehouseTrayTypeenterStockNoDataMaterialCode(data);
if (index == details.scanlist.length - 1) {
setshowstate(0);
initpage();
details.scanlist = [];
details.materialCode = "";
}
}
});
setshowstate(0);
initpage();
details.scanlist = [];
@ -230,9 +240,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
f: common_vendor.t(item.quantityStock),
g: common_vendor.t(item.cargoUnit),
h: common_vendor.t(item.sku),
i: common_vendor.unref(checkinarr).indexOf(index) != -1
i: item.maknumber,
j: common_vendor.o(($event) => item.maknumber = $event.detail.value),
k: common_vendor.unref(checkinarr).indexOf(index) != -1
}, common_vendor.unref(checkinarr).indexOf(index) != -1 ? {
j: common_vendor.f(item.positionList, (ite, k1, i1) => {
l: common_vendor.f(item.positionList, (ite, k1, i1) => {
return common_vendor.e({
a: ite.areaName || ite.allocationName
}, ite.areaName || ite.allocationName ? {
@ -243,23 +255,21 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
});
})
} : {}, {
k: common_vendor.o(($event) => setchecl(index))
m: common_vendor.o(($event) => setchecl(index))
});
}),
n: common_vendor.unref(maknumber),
o: common_vendor.o(($event) => common_vendor.isRef(maknumber) ? maknumber.value = $event.detail.value : null),
p: common_vendor.o(() => {
n: common_vendor.o(() => {
}),
q: common_vendor.o(($event) => setshowstate(0)),
r: common_vendor.o(confirmlur),
s: common_vendor.o(() => {
o: common_vendor.o(($event) => setshowstate(0)),
p: common_vendor.o(confirmlur),
q: common_vendor.o(() => {
}),
t: common_vendor.o(($event) => setshowstate(0))
r: common_vendor.o(($event) => setshowstate(0))
} : {}, {
v: common_vendor.sr(tip, "33d02520-1", {
s: common_vendor.sr(tip, "33d02520-1", {
"k": "tip"
}),
w: common_vendor.sr(tiplists, "33d02520-2", {
t: common_vendor.sr(tiplists, "33d02520-2", {
"k": "tiplists"
})
});

2
unpackage/dist/dev/mp-weixin/pagesHome/pages/inventoryenter/inventoryenter.wxml vendored

@ -1 +1 @@
<u-navbar wx:if="{{a}}" u-i="33d02520-0" bind:__l="__l" u-p="{{a}}"></u-navbar><image mode="widthFix" class="bgimg" src="/pagesHome/static/bgby.png"></image><view class="mabxtop"><view class="types1"><view><view>{{b}}</view><view>托盘码</view></view><view><view>{{c}}</view><view>托盘件数</view></view></view><view class="types1"><view bindtap="{{e}}"><view class="borinut">{{d}}</view><view>商场名称</view></view><view><view>{{f}}</view><view>打托方式</view></view></view><view class="types2"><view bindtap="{{g}}"> 录入库存品 </view></view></view><scroll-view class="scvmabx" scroll-y="true"><view class="maxboxs"><view wx:for="{{h}}" wx:for-item="item" class="items"><view class="tophd1"><view><image src="/pagesHome/static/topicons.png"></image><view>{{item.a}}</view></view><image bindtap="{{item.b}}" src="/pagesHome/static/removeitem.png"></image></view><view class="tophd"><image src="/pagesHome/static/uname.png"></image><view>物料名称:</view><view>{{item.c}}</view></view><view class="tophd"><image src="/pagesHome/static/uname.png"></image><view>批次号:</view><view>{{item.d}}</view></view><view class="tophd"><image src="/pagesHome/static/uname.png"></image><view>SKU:</view><view>{{item.e}}</view></view><view class="tophd"><image src="/pagesHome/static/uname.png"></image><view>物料单位:</view><view>{{item.f}}</view></view><view class="numbxvie"><view><view class="zhon">{{item.g}}</view><view>在库数</view></view><view><view class="yish">{{item.h}}</view><view>已扫</view></view></view></view></view></scroll-view><view wx:if="{{i}}" class="tanchuangbg" bindtap="{{t}}"><view class="inputbox" catchtap="{{s}}"><view class="inputscan"><input placeholder="输入物料编码" value="{{j}}" bindinput="{{k}}"/><view class="scanbt" bindtap="{{l}}">搜索</view></view><scroll-view scroll-y="true" class="scvbw"><view class="scboxitem"><view wx:for="{{m}}" wx:for-item="item" class="items" bindtap="{{item.k}}"><view class="type1s"><view><view>物料编码:</view><view>{{item.a}}</view></view></view><view class="type1s"><view><view>物料名称:</view><view>{{item.b}}</view></view></view><view class="type1s"><view><view>订单编号:</view><view>{{item.c}}</view></view></view><view class="type1s"><view><view>物料单位:</view><view>{{item.d}}</view></view><view><view>包装数量:</view><view>{{item.e}}</view></view></view><view class="type1s"><view><view>在库数:</view><view>{{item.f}}{{item.g}}</view></view><view><view>SKU:</view><view>{{item.h}}</view></view></view><view class="rksu" catchtap="{{p}}"><view><view>数量:</view><input placeholder="请输入数量" value="{{n}}" bindinput="{{o}}"/></view></view><view wx:if="{{item.i}}" class="lisbite"><view wx:for="{{item.j}}" wx:for-item="ite" class="itembox"><view wx:if="{{ite.a}}">库位:{{ite.b}}</view><view>托盘码:{{ite.c}}</view><view>数量:{{ite.d}}</view></view></view></view></view></scroll-view><view class="btx"><view class="cancel" bindtap="{{q}}">取消</view><view class="confirm" bindtap="{{r}}">确认</view></view></view></view><tips class="r" u-r="tip" u-i="33d02520-1" bind:__l="__l"></tips><tiplist class="r" u-r="tiplists" u-i="33d02520-2" bind:__l="__l"></tiplist>
<u-navbar wx:if="{{a}}" u-i="33d02520-0" bind:__l="__l" u-p="{{a}}"></u-navbar><image mode="widthFix" class="bgimg" src="/pagesHome/static/bgby.png"></image><view class="mabxtop"><view class="types1"><view><view>{{b}}</view><view>托盘码</view></view><view><view>{{c}}</view><view>托盘件数</view></view></view><view class="types1"><view bindtap="{{e}}"><view class="borinut">{{d}}</view><view>商场名称</view></view><view><view>{{f}}</view><view>打托方式</view></view></view><view class="types2"><view bindtap="{{g}}"> 录入库存品 </view></view></view><scroll-view class="scvmabx" scroll-y="true"><view class="maxboxs"><view wx:for="{{h}}" wx:for-item="item" class="items"><view class="tophd1"><view><image src="/pagesHome/static/topicons.png"></image><view>{{item.a}}</view></view><image bindtap="{{item.b}}" src="/pagesHome/static/removeitem.png"></image></view><view class="tophd"><image src="/pagesHome/static/uname.png"></image><view>物料名称:</view><view>{{item.c}}</view></view><view class="tophd"><image src="/pagesHome/static/uname.png"></image><view>批次号:</view><view>{{item.d}}</view></view><view class="tophd"><image src="/pagesHome/static/uname.png"></image><view>SKU:</view><view>{{item.e}}</view></view><view class="tophd"><image src="/pagesHome/static/uname.png"></image><view>物料单位:</view><view>{{item.f}}</view></view><view class="numbxvie"><view><view class="zhon">{{item.g}}</view><view>在库数</view></view><view><view class="yish">{{item.h}}</view><view>已扫</view></view></view></view></view></scroll-view><view wx:if="{{i}}" class="tanchuangbg" bindtap="{{r}}"><view class="inputbox" catchtap="{{q}}"><view class="inputscan"><input placeholder="输入物料编码" value="{{j}}" bindinput="{{k}}"/><view class="scanbt" bindtap="{{l}}">搜索</view></view><scroll-view scroll-y="true" class="scvbw"><view class="scboxitem"><view wx:for="{{m}}" wx:for-item="item" class="items" bindtap="{{item.m}}"><view class="type1s"><view><view>物料编码:</view><view>{{item.a}}</view></view></view><view class="type1s"><view><view>物料名称:</view><view>{{item.b}}</view></view></view><view class="type1s"><view><view>订单编号:</view><view>{{item.c}}</view></view></view><view class="type1s"><view><view>物料单位:</view><view>{{item.d}}</view></view><view><view>包装数量:</view><view>{{item.e}}</view></view></view><view class="type1s"><view><view>在库数:</view><view>{{item.f}}{{item.g}}</view></view><view><view>SKU:</view><view>{{item.h}}</view></view></view><view class="rksu" catchtap="{{n}}"><view><view>数量:</view><input placeholder="请输入数量" value="{{item.i}}" bindinput="{{item.j}}"/></view></view><view wx:if="{{item.k}}" class="lisbite"><view wx:for="{{item.l}}" wx:for-item="ite" class="itembox"><view wx:if="{{ite.a}}">库位:{{ite.b}}</view><view>托盘码:{{ite.c}}</view><view>数量:{{ite.d}}</view></view></view></view></view></scroll-view><view class="btx"><view class="cancel" bindtap="{{o}}">取消</view><view class="confirm" bindtap="{{p}}">确认</view></view></view></view><tips class="r" u-r="tip" u-i="33d02520-1" bind:__l="__l"></tips><tiplist class="r" u-r="tiplists" u-i="33d02520-2" bind:__l="__l"></tiplist>

20
unpackage/dist/dev/mp-weixin/pagesHome/pages/setbarcode/setbarcode.js vendored

@ -29,10 +29,12 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
printlist: [],
packageNum: 0,
goodsAreaName: "",
allocationId: "",
stockupId: "",
stockPrint: 1,
customer: "",
deliveryAddress: ""
deliveryAddress: "",
completeStact: false
});
const tips = common_vendor.ref(null);
common_vendor.onLoad((op) => {
@ -40,6 +42,10 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
details.items = JSON.parse(op.item);
details.reservationId = op.reservationId;
details.goodsAreaName = op.goodsAreaName;
details.allocationId = op.allocationId;
if (op.completeStact == "true") {
details.completeStact = true;
}
common_vendor.index.$on("scancodedate", function(code) {
if (code) {
console.log(code);
@ -61,7 +67,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
orderStatus: 2,
reservationId: details.reservationId,
stockListId: details.items.stockListId,
stockupId: details.stockupId
stockupId: details.stockupId,
allocationId: details.allocationId,
status: details.completeStact ? 1 : 0
};
let response = await api_user.distributionStockuporderInfo(data);
details.codelist = response.data.stockList;
@ -99,7 +107,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
let data = {
reservationId: details.reservationId,
stockListId: details.items.stockListId,
packageNum: details.packageNum
packageNum: details.packageNum,
allocationId: details.allocationId,
status: details.completeStact ? 1 : 0
};
let response = await api_user.distributionStockupstockupStockListPackageCode(data);
console.log(response);
@ -142,7 +152,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
stockupArea: details.goodsAreaName,
reservationId: details.reservationId,
stockupId: details.stockupId,
stockPrint: details.stockPrint
stockPrint: details.stockPrint,
allocationId: details.allocationId,
status: details.completeStact ? 1 : 0
};
let res = await api_user.distributionStockupstockupScan(data);
console.log(res);

Loading…
Cancel
Save