货无忧
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

106 lines
3.1 KiB

"use strict";
const common_vendor = require("../../../common/vendor.js");
const api_user = require("../../../api/user.js");
require("../../../utils/request.js");
require("../../../store/index.js");
require("../../../utils/functions.js");
require("../../../utils/IDCardVerification.js");
require("../../../utils/base64.js");
require("../../../config/host.js");
require("../../../utils/md5.js");
if (!Array) {
const _easycom_u_navbar2 = common_vendor.resolveComponent("u-navbar");
const _component_saomiao2 = common_vendor.resolveComponent("saomiao2");
(_easycom_u_navbar2 + _component_saomiao2)();
}
const _easycom_u_navbar = () => "../../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";
if (!Math) {
_easycom_u_navbar();
}
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "Retention",
setup(__props) {
const details = common_vendor.reactive({
scancode: "",
codelist: [],
pageNum: 1,
pageSize: 10
});
common_vendor.onLoad((op) => {
init();
common_vendor.index.$on("scancodedate", function(code) {
if (code) {
details.scancode = code;
scandata();
}
});
});
function init() {
details.pageNum = 1;
details.codelist = [];
initpage();
}
async function initpage() {
let data = {
pageNum: details.pageNum,
pageSize: details.pageSize
};
let res = await api_user.warehouseRetentionretentionPackageList(data);
if (res.code == 200) {
details.codelist = details.codelist.concat(res.data.records);
} else {
common_vendor.index.showToast({
title: res.msg,
icon: "none"
});
}
}
async function scandata() {
let data = {
orderPackageCode: details.scancode
};
let res = await api_user.warehouseRetentionretentionScanPackage(data);
if (res.code == 200) {
common_vendor.index.showToast({
title: "扫码成功",
icon: "none"
});
init();
} else {
common_vendor.index.showToast({
title: res.msg,
icon: "none"
});
}
}
const {
scancode,
codelist,
pageNum,
pageSize
} = common_vendor.toRefs(details);
return (_ctx, _cache) => {
return {
a: common_vendor.p({
title: "滞留",
bgColor: "#D3832A",
leftIconColor: "#ffffff",
titleStyle: "color:#ffffff",
placeholder: true,
autoBack: true,
leftIconSize: "35"
}),
b: common_vendor.f(common_vendor.unref(codelist), (item, index, i0) => {
return {
a: common_vendor.t(index + 1),
b: common_vendor.t(item.retentionCarNo),
c: common_vendor.t(item.orderCode),
d: common_vendor.t(item.packageCode)
};
})
};
};
}
});
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "F:/物流/logPm/pagesHome/pages/Retention/Retention.vue"]]);
wx.createPage(MiniProgramPage);