|
|
|
@ -4016,7 +4016,7 @@ if (uni.restoreGlobal) {
|
|
|
|
|
}; |
|
|
|
|
}; |
|
|
|
|
const base64 = new Base64(); |
|
|
|
|
const devhost = "http://192.168.10.48:8888/"; |
|
|
|
|
const devhost = "http://ht.h5u.huitongys.com/login/"; |
|
|
|
|
const imghost = ""; |
|
|
|
|
const host = devhost; |
|
|
|
|
const APPKEY = "h5u:h5u_secret"; |
|
|
|
@ -4312,7 +4312,7 @@ if (uni.restoreGlobal) {
|
|
|
|
|
header["Blade-Auth"] = `bearer ${Store.state.access_token}`; |
|
|
|
|
} else { |
|
|
|
|
if (!token && params.url.indexOf("oauth/token") == -1) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
uni.reLaunch({ |
|
|
|
|
url: "/pages/login/login" |
|
|
|
|
}); |
|
|
|
|
api.error("请登录"); |
|
|
|
@ -4373,9 +4373,12 @@ if (uni.restoreGlobal) {
|
|
|
|
|
utils.ttsspke("接口出错,请联系后端开发人员"); |
|
|
|
|
return; |
|
|
|
|
} else if (res.statusCode == 401) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
uni.reLaunch({ |
|
|
|
|
url: "/pages/login/login" |
|
|
|
|
}); |
|
|
|
|
uni.removeStorage({ |
|
|
|
|
key: "access_token" |
|
|
|
|
}); |
|
|
|
|
api.error("请登录"); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
@ -4383,7 +4386,7 @@ if (uni.restoreGlobal) {
|
|
|
|
|
utils.ttsspke("连接服务器失败"); |
|
|
|
|
} |
|
|
|
|
}).catch((err) => { |
|
|
|
|
formatAppLog("log", "at utils/request.js:132", err); |
|
|
|
|
formatAppLog("log", "at utils/request.js:135", err); |
|
|
|
|
api.error("请检查是否连接到无线网络"); |
|
|
|
|
utils.ttsspke("请检查是否连接到无线网络"); |
|
|
|
|
uni.hideLoading(); |
|
|
|
@ -5255,125 +5258,7 @@ if (uni.restoreGlobal) {
|
|
|
|
|
__name: "index", |
|
|
|
|
setup(__props) { |
|
|
|
|
const tip = vue.ref(null); |
|
|
|
|
let details = vue.reactive({ |
|
|
|
|
tablist: [ |
|
|
|
|
{ |
|
|
|
|
type: 1, |
|
|
|
|
name: "工作台", |
|
|
|
|
minilist: [ |
|
|
|
|
{ |
|
|
|
|
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png", |
|
|
|
|
name: "订单查询", |
|
|
|
|
router: "/pagesHome/pages/orderInquiry/orderInquiry" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png", |
|
|
|
|
name: "自提扫描", |
|
|
|
|
router: "/pagesHome/pages/SelfPickupScan/SelfPickupScan" |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: 1, |
|
|
|
|
name: "库内", |
|
|
|
|
minilist: [ |
|
|
|
|
{ |
|
|
|
|
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png", |
|
|
|
|
name: "订单分拣", |
|
|
|
|
router: "/pagesHome/pages/ordersorting/ordersorting" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png", |
|
|
|
|
name: "库存品分拣", |
|
|
|
|
router: "/pagesHome/pages/lnventorysorting/lnventorysorting" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png", |
|
|
|
|
name: "扫码上架", |
|
|
|
|
router: "/pagesHome/pages/ScanUpType/ScanUpType" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png", |
|
|
|
|
name: "手动上架", |
|
|
|
|
router: "/pagesHome/pages/PeopleScanUpType/PeopleScanUpType" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png", |
|
|
|
|
name: "移库", |
|
|
|
|
router: "/pagesHome/pages/RelocationType/RelocationType" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png", |
|
|
|
|
name: "滞留", |
|
|
|
|
router: "/pagesHome/pages/Retention/Retention" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png", |
|
|
|
|
name: "合托", |
|
|
|
|
router: "/pagesHome/pages/MergeTray/MergeTray" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png", |
|
|
|
|
name: "下架", |
|
|
|
|
router: "/pagesHome/pages/DownGoodsType/DownGoodsType" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png", |
|
|
|
|
name: "空置托盘", |
|
|
|
|
router: "/pagesHome/pages/RemoveTray/RemoveTray" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png", |
|
|
|
|
name: "复核", |
|
|
|
|
router: "/pagesHome/pages/Check/Check" |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: 1, |
|
|
|
|
name: "出库", |
|
|
|
|
minilist: [ |
|
|
|
|
{ |
|
|
|
|
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png", |
|
|
|
|
name: "拣货扫描", |
|
|
|
|
router: "/pagesHome/pages/pickingScan/pickingScan" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png", |
|
|
|
|
name: "自提扫描", |
|
|
|
|
router: "/pagesHome/pages/SelfPickupScan/SelfPickupScan" |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: 1, |
|
|
|
|
name: "配送", |
|
|
|
|
minilist: [ |
|
|
|
|
{ |
|
|
|
|
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png", |
|
|
|
|
name: "装车扫描", |
|
|
|
|
router: "/pagesHome/pages/LoadingScan/LoadingScan" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png", |
|
|
|
|
name: "签收扫描", |
|
|
|
|
router: "/pagesHome/pages/signinScan/signinScan" |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: 1, |
|
|
|
|
name: "离线上传", |
|
|
|
|
minilist: [ |
|
|
|
|
{ |
|
|
|
|
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png", |
|
|
|
|
name: "离线上传", |
|
|
|
|
router: "/pagesHome/pages/OfflineUpload/OfflineUpload" |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}); |
|
|
|
|
let details = vue.reactive({ tablist: [] }); |
|
|
|
|
function gopathpage(path) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: path |
|
|
|
@ -7550,7 +7435,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
} |
|
|
|
|
uni.removeStorageSync(item); |
|
|
|
|
}); |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
uni.reLaunch({ |
|
|
|
|
url: "/pages/login/login" |
|
|
|
|
}); |
|
|
|
|
formatAppLog("log", "at pages/user/user.vue:169", res.currentSize); |
|
|
|
@ -22130,6 +22015,18 @@ This will fail in production if not fixed.`);
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
onPullDownRefresh(() => { |
|
|
|
|
setTimeout(() => { |
|
|
|
|
details.scancode = ""; |
|
|
|
|
details.allocationId = ""; |
|
|
|
|
details.dtilobj = {}; |
|
|
|
|
details.obldate = {}; |
|
|
|
|
details.trayCode = ""; |
|
|
|
|
details.scanlist = []; |
|
|
|
|
details.isshowtot = false; |
|
|
|
|
uni.stopPullDownRefresh(); |
|
|
|
|
}, 1e3); |
|
|
|
|
}); |
|
|
|
|
function goorderdetail(item) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: "/pagesHome/pages/orderDetails/orderDetails?orderCode=" + item.orderCode |
|
|
|
@ -22150,7 +22047,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
details.scanlist.map((item) => { |
|
|
|
|
details.codenumer += item.shelfNum; |
|
|
|
|
}); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/Relocation/Relocation.vue:294", details.codenumer); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/Relocation/Relocation.vue:310", details.codenumer); |
|
|
|
|
}); |
|
|
|
|
async function scandata() { |
|
|
|
|
let res = null; |
|
|
|
@ -22174,7 +22071,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
if (res.code == 200) { |
|
|
|
|
details.trayCode = details.scancode; |
|
|
|
|
details.scanlist = res.data.list; |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/Relocation/Relocation.vue:319", "details.scanlist :>> ", details.scanlist); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/Relocation/Relocation.vue:335", "details.scanlist :>> ", details.scanlist); |
|
|
|
|
details.obldate = res.data; |
|
|
|
|
} |
|
|
|
|
} else if (details.pagetype == "2") { |
|
|
|
@ -22190,6 +22087,10 @@ This will fail in production if not fixed.`);
|
|
|
|
|
} |
|
|
|
|
async function uplist() { |
|
|
|
|
let res = null; |
|
|
|
|
uni.showLoading({ |
|
|
|
|
mask: true, |
|
|
|
|
title: "移库中" |
|
|
|
|
}); |
|
|
|
|
if (details.pagetype == "1") { |
|
|
|
|
let data = { |
|
|
|
|
allocationId: details.allocationId, |
|
|
|
@ -22203,7 +22104,12 @@ This will fail in production if not fixed.`);
|
|
|
|
|
}; |
|
|
|
|
res = await warehouseUpdownTypemoveAllocationPackageList(data); |
|
|
|
|
} |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
if (res.code == 200) { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: "移库成功", |
|
|
|
|
icon: "success" |
|
|
|
|
}); |
|
|
|
|
details.scancode = ""; |
|
|
|
|
details.allocationId = ""; |
|
|
|
|
details.dtilobj = {}; |
|
|
|
@ -22211,6 +22117,11 @@ This will fail in production if not fixed.`);
|
|
|
|
|
details.trayCode = ""; |
|
|
|
|
details.scanlist = []; |
|
|
|
|
details.isshowtot = false; |
|
|
|
|
} else { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: "移库失败", |
|
|
|
|
icon: "error" |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
function setstate(flg) { |
|
|
|
@ -22829,6 +22740,21 @@ This will fail in production if not fixed.`);
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
onPullDownRefresh(() => { |
|
|
|
|
setTimeout(() => { |
|
|
|
|
details.scancode = ""; |
|
|
|
|
details.allocationId = ""; |
|
|
|
|
details.datalist = []; |
|
|
|
|
details.reqobj = {}; |
|
|
|
|
details.uplistarr = []; |
|
|
|
|
details.waybillCode = ""; |
|
|
|
|
details.codelist = []; |
|
|
|
|
details.Marketlist = []; |
|
|
|
|
details.checkmakindex = 0; |
|
|
|
|
details.checkinarr = []; |
|
|
|
|
uni.stopPullDownRefresh(); |
|
|
|
|
}, 1e3); |
|
|
|
|
}); |
|
|
|
|
vue.watchEffect(() => { |
|
|
|
|
if (Number(details.upshelfScanType) == 1 || Number(details.upshelfScanType) == 2) { |
|
|
|
|
details.uplistarr = fn2(details.uplistarr, "orderCode"); |
|
|
|
@ -22882,7 +22808,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
warehouseCode: "LQ" |
|
|
|
|
}; |
|
|
|
|
let res = await warehouseTrayTypefindAllMarket(data); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/PeopleScanUp/PeopleScanUp.vue:395", res.data); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/PeopleScanUp/PeopleScanUp.vue:416", res.data); |
|
|
|
|
details.Marketlist = res.data; |
|
|
|
|
} |
|
|
|
|
async function scanlist() { |
|
|
|
@ -22902,7 +22828,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
}; |
|
|
|
|
response = await warehouseUpdownTypegetStockByParam(data); |
|
|
|
|
} |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/PeopleScanUp/PeopleScanUp.vue:416", response); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/PeopleScanUp/PeopleScanUp.vue:437", response); |
|
|
|
|
details.codelist = response.data; |
|
|
|
|
details.codelist.map((item) => { |
|
|
|
|
item["enterNum"] = 0; |
|
|
|
@ -22930,7 +22856,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
allocationId: details.scancode |
|
|
|
|
}; |
|
|
|
|
let res = await warehouseUpdownTypeupShelfScanAllocation(data); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/PeopleScanUp/PeopleScanUp.vue:455", res); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/PeopleScanUp/PeopleScanUp.vue:476", res); |
|
|
|
|
if (res.code == 200) { |
|
|
|
|
details.reqobj = res.data; |
|
|
|
|
details.allocationId = res.data.allocationId; |
|
|
|
@ -22975,6 +22901,10 @@ This will fail in production if not fixed.`);
|
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
uni.showLoading({ |
|
|
|
|
mask: true, |
|
|
|
|
title: "上架中" |
|
|
|
|
}); |
|
|
|
|
let res; |
|
|
|
|
details.uplistarr.map((item) => { |
|
|
|
|
if (item.enterNum > item.totalNumber) { |
|
|
|
@ -22994,6 +22924,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
}; |
|
|
|
|
res = await warehouseUpdownTypeupShelfStockList(data); |
|
|
|
|
} |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
if (res.code == 200) { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: "上架成功", |
|
|
|
@ -23003,6 +22934,11 @@ This will fail in production if not fixed.`);
|
|
|
|
|
details.scancode = details.allocationId; |
|
|
|
|
details.allocationId = ""; |
|
|
|
|
scandata(); |
|
|
|
|
} else { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: "上架失败", |
|
|
|
|
icon: "error" |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
tip.value.setisshow(false); |
|
|
|
|
}, |
|
|
|
@ -23473,36 +23409,31 @@ This will fail in production if not fixed.`);
|
|
|
|
|
256 |
|
|
|
|
/* UNKEYED_FRAGMENT */ |
|
|
|
|
)) : vue.createCommentVNode("v-if", true), |
|
|
|
|
vue.unref(checkstate) == 3 && vue.unref(reqobj).trayCode ? (vue.openBlock(), vue.createElementBlock( |
|
|
|
|
vue.Fragment, |
|
|
|
|
{ key: 2 }, |
|
|
|
|
vue.renderList([1], (item) => { |
|
|
|
|
return vue.createElementVNode("view", { class: "item1" }, [ |
|
|
|
|
vue.createElementVNode("view", null, [ |
|
|
|
|
vue.createElementVNode("image", { src: "/pagesHome/static/kuweiicon.png" }), |
|
|
|
|
vue.createElementVNode( |
|
|
|
|
"view", |
|
|
|
|
null, |
|
|
|
|
"托盘码:" + vue.toDisplayString(vue.unref(reqobj).trayCode), |
|
|
|
|
1 |
|
|
|
|
/* TEXT */ |
|
|
|
|
) |
|
|
|
|
]), |
|
|
|
|
vue.createElementVNode("view", null, [ |
|
|
|
|
vue.createElementVNode("image", { src: "/pagesHome/static/scanicon.png" }), |
|
|
|
|
vue.createElementVNode( |
|
|
|
|
"view", |
|
|
|
|
null, |
|
|
|
|
"扫码包数:" + vue.toDisplayString(vue.unref(reqobj).trayNum), |
|
|
|
|
1 |
|
|
|
|
/* TEXT */ |
|
|
|
|
) |
|
|
|
|
]) |
|
|
|
|
]); |
|
|
|
|
}), |
|
|
|
|
64 |
|
|
|
|
/* STABLE_FRAGMENT */ |
|
|
|
|
)) : vue.createCommentVNode("v-if", true) |
|
|
|
|
vue.unref(checkstate) == 3 && vue.unref(reqobj).trayCode ? (vue.openBlock(), vue.createElementBlock("view", { |
|
|
|
|
key: 2, |
|
|
|
|
class: "item1" |
|
|
|
|
}, [ |
|
|
|
|
vue.createElementVNode("view", null, [ |
|
|
|
|
vue.createElementVNode("image", { src: "/pagesHome/static/kuweiicon.png" }), |
|
|
|
|
vue.createElementVNode( |
|
|
|
|
"view", |
|
|
|
|
null, |
|
|
|
|
"托盘码:" + vue.toDisplayString(vue.unref(reqobj).trayCode), |
|
|
|
|
1 |
|
|
|
|
/* TEXT */ |
|
|
|
|
) |
|
|
|
|
]), |
|
|
|
|
vue.createElementVNode("view", null, [ |
|
|
|
|
vue.createElementVNode("image", { src: "/pagesHome/static/scanicon.png" }), |
|
|
|
|
vue.createElementVNode( |
|
|
|
|
"view", |
|
|
|
|
null, |
|
|
|
|
"扫码包数:" + vue.toDisplayString(vue.unref(reqobj).trayNum), |
|
|
|
|
1 |
|
|
|
|
/* TEXT */ |
|
|
|
|
) |
|
|
|
|
]) |
|
|
|
|
])) : vue.createCommentVNode("v-if", true) |
|
|
|
|
]) |
|
|
|
|
]) |
|
|
|
|
]), |
|
|
|
@ -24203,6 +24134,18 @@ This will fail in production if not fixed.`);
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
onPullDownRefresh(() => { |
|
|
|
|
setTimeout(() => { |
|
|
|
|
details.scantype = 1; |
|
|
|
|
details.beilist = {}; |
|
|
|
|
details.newbeilist = {}; |
|
|
|
|
details.scancode = ""; |
|
|
|
|
details.renderList = []; |
|
|
|
|
details.mergeTray = ""; |
|
|
|
|
details.newmergeTray = ""; |
|
|
|
|
uni.stopPullDownRefresh(); |
|
|
|
|
}, 1e3); |
|
|
|
|
}); |
|
|
|
|
function setstate(state) { |
|
|
|
|
details.scantype = state; |
|
|
|
|
} |
|
|
|
@ -24274,11 +24217,16 @@ This will fail in production if not fixed.`);
|
|
|
|
|
content: "是否确认合并?", |
|
|
|
|
confirmTxt: "合并", |
|
|
|
|
success: async () => { |
|
|
|
|
uni.showLoading({ |
|
|
|
|
mask: true, |
|
|
|
|
title: "合并中" |
|
|
|
|
}); |
|
|
|
|
let data = { |
|
|
|
|
sourceTrayCode: details.mergeTray, |
|
|
|
|
targetTrayCode: details.newmergeTray |
|
|
|
|
}; |
|
|
|
|
let res = await warehouseTrayTypemergeTray(data); |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
if (res.code == 200) { |
|
|
|
|
utils.ttsspke("合托成功"); |
|
|
|
|
uni.navigateTo({ |
|
|
|
@ -25056,6 +25004,11 @@ This will fail in production if not fixed.`);
|
|
|
|
|
details.scancode = ""; |
|
|
|
|
details.resdata = {}; |
|
|
|
|
details.isallcheck = false; |
|
|
|
|
} else { |
|
|
|
|
uni.showToast({ |
|
|
|
|
icon: "error", |
|
|
|
|
title: "下架失败" |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
} |
|
|
|
@ -26159,6 +26112,13 @@ This will fail in production if not fixed.`);
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
onPullDownRefresh(() => { |
|
|
|
|
setTimeout(() => { |
|
|
|
|
details.datalist = []; |
|
|
|
|
details.trayCodes = ""; |
|
|
|
|
uni.stopPullDownRefresh(); |
|
|
|
|
}, 1e3); |
|
|
|
|
}); |
|
|
|
|
async function scandata() { |
|
|
|
|
var _a, _b, _c, _d; |
|
|
|
|
let data = { |
|
|
|
@ -26166,7 +26126,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
}; |
|
|
|
|
let res = await warehouseTrayTypetrayToNullScanTrayCode(data); |
|
|
|
|
if (res.code == 200) { |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/RemoveTray/RemoveTray.vue:93", res); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/RemoveTray/RemoveTray.vue:103", res); |
|
|
|
|
details.datalist = (_a = res.data) == null ? void 0 : _a.list; |
|
|
|
|
details.statetype = (_b = res.data) == null ? void 0 : _b.type; |
|
|
|
|
if (((_d = (_c = res.data) == null ? void 0 : _c.list) == null ? void 0 : _d.length) > 0) { |
|
|
|
@ -26182,10 +26142,22 @@ This will fail in production if not fixed.`);
|
|
|
|
|
isshow: true, |
|
|
|
|
isshowcancel: true, |
|
|
|
|
success: async () => { |
|
|
|
|
if (!details.trayCodes) { |
|
|
|
|
tip.value.setisshow(false); |
|
|
|
|
return uni.showToast({ |
|
|
|
|
icon: "error", |
|
|
|
|
title: "托盘码为空" |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
let data = { |
|
|
|
|
trayCode: details.trayCodes |
|
|
|
|
}; |
|
|
|
|
uni.showLoading({ |
|
|
|
|
mask: true, |
|
|
|
|
title: "提交中" |
|
|
|
|
}); |
|
|
|
|
let res = await warehouseTrayTypetrayToNull(data); |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
if (res.code == 200) { |
|
|
|
|
tip.value.setdetails({ |
|
|
|
|
title: "提示", |
|
|
|
@ -26207,6 +26179,11 @@ This will fail in production if not fixed.`);
|
|
|
|
|
details.datalist = []; |
|
|
|
|
details.trayCodes = ""; |
|
|
|
|
tip.value.setisshow(false); |
|
|
|
|
} else { |
|
|
|
|
uni.showToast({ |
|
|
|
|
icon: "error", |
|
|
|
|
title: "空置失败" |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
cancel: () => { |
|
|
|
@ -27028,12 +27005,21 @@ This will fail in production if not fixed.`);
|
|
|
|
|
} |
|
|
|
|
async function uplist() { |
|
|
|
|
let res = null; |
|
|
|
|
uni.showLoading({ |
|
|
|
|
title: "移库中", |
|
|
|
|
mask: true |
|
|
|
|
}); |
|
|
|
|
let data = { |
|
|
|
|
allocationId: details.allocationId, |
|
|
|
|
targetAllocationId: details.targetAllocationId |
|
|
|
|
}; |
|
|
|
|
res = await warehouseUpdownTypemoveAllocationByAllocation(data); |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
if (res.code == 200) { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: "移库成功", |
|
|
|
|
icon: "success" |
|
|
|
|
}); |
|
|
|
|
details.scancode = ""; |
|
|
|
|
details.scancode1 = ""; |
|
|
|
|
details.allocationId = ""; |
|
|
|
@ -27043,6 +27029,11 @@ This will fail in production if not fixed.`);
|
|
|
|
|
details.trayCode = ""; |
|
|
|
|
details.scanlist = []; |
|
|
|
|
details.isshowtot = false; |
|
|
|
|
} else { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: "移库失败", |
|
|
|
|
icon: "error" |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
function setstate(flg) { |
|
|
|
|