|
|
|
"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("../../../config/host.js");
|
|
|
|
require("../../../utils/base64.js");
|
|
|
|
require("../../../utils/md5.js");
|
|
|
|
if (!Array) {
|
|
|
|
const _easycom_u_navbar2 = common_vendor.resolveComponent("u-navbar");
|
|
|
|
const _easycom_uni_th2 = common_vendor.resolveComponent("uni-th");
|
|
|
|
const _easycom_uni_tr2 = common_vendor.resolveComponent("uni-tr");
|
|
|
|
const _easycom_uni_td2 = common_vendor.resolveComponent("uni-td");
|
|
|
|
const _easycom_uni_table2 = common_vendor.resolveComponent("uni-table");
|
|
|
|
(_easycom_u_navbar2 + _easycom_uni_th2 + _easycom_uni_tr2 + _easycom_uni_td2 + _easycom_uni_table2)();
|
|
|
|
}
|
|
|
|
const _easycom_u_navbar = () => "../../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";
|
|
|
|
const _easycom_uni_th = () => "../../../uni_modules/uni-table/components/uni-th/uni-th.js";
|
|
|
|
const _easycom_uni_tr = () => "../../../uni_modules/uni-table/components/uni-tr/uni-tr.js";
|
|
|
|
const _easycom_uni_td = () => "../../../uni_modules/uni-table/components/uni-td/uni-td.js";
|
|
|
|
const _easycom_uni_table = () => "../../../uni_modules/uni-table/components/uni-table/uni-table.js";
|
|
|
|
if (!Math) {
|
|
|
|
(_easycom_u_navbar + _easycom_uni_th + _easycom_uni_tr + _easycom_uni_td + _easycom_uni_table + cusSelects)();
|
|
|
|
}
|
|
|
|
const cusSelects = () => "../../../compoment/cus-selects-fan/cus-selects-fan.js";
|
|
|
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
|
|
__name: "SignDetailScan",
|
|
|
|
setup(__props) {
|
|
|
|
let details = common_vendor.reactive({
|
|
|
|
schanvalue: "",
|
|
|
|
typearr: [
|
|
|
|
{
|
|
|
|
value: 1,
|
|
|
|
label: "齐套"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 2,
|
|
|
|
label: "部分扫"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 3,
|
|
|
|
label: "未扫"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
items: {},
|
|
|
|
id: "",
|
|
|
|
datalist: []
|
|
|
|
});
|
|
|
|
common_vendor.onLoad((op) => {
|
|
|
|
details.items = JSON.parse(op.item);
|
|
|
|
details.id = JSON.parse(op.item).id;
|
|
|
|
initpage();
|
|
|
|
});
|
|
|
|
async function initpage() {
|
|
|
|
let data = {
|
|
|
|
id: details.id
|
|
|
|
};
|
|
|
|
let res = await api_user.signforwrap(data);
|
|
|
|
console.log(res);
|
|
|
|
details.datalist = res.data.records;
|
|
|
|
}
|
|
|
|
function checktype(e) {
|
|
|
|
}
|
|
|
|
const { typearr, schanvalue, items, datalist } = common_vendor.toRefs(details);
|
|
|
|
return (_ctx, _cache) => {
|
|
|
|
return {
|
|
|
|
a: common_vendor.p({
|
|
|
|
title: "签收明细扫描",
|
|
|
|
placeholder: true,
|
|
|
|
border: "true",
|
|
|
|
autoBack: true,
|
|
|
|
leftIconSize: "35"
|
|
|
|
}),
|
|
|
|
b: common_vendor.t(common_vendor.unref(items).type_name),
|
|
|
|
c: common_vendor.t(common_vendor.unref(items).vehicleName),
|
|
|
|
d: common_vendor.t(common_vendor.unref(items).driverName),
|
|
|
|
e: common_vendor.p({
|
|
|
|
width: "60",
|
|
|
|
align: "center"
|
|
|
|
}),
|
|
|
|
f: common_vendor.p({
|
|
|
|
width: "70",
|
|
|
|
align: "center"
|
|
|
|
}),
|
|
|
|
g: common_vendor.p({
|
|
|
|
width: "70",
|
|
|
|
align: "center"
|
|
|
|
}),
|
|
|
|
h: common_vendor.p({
|
|
|
|
width: "70",
|
|
|
|
align: "center"
|
|
|
|
}),
|
|
|
|
i: common_vendor.f([1, 2], (item, k0, i0) => {
|
|
|
|
return {
|
|
|
|
a: common_vendor.t(item == 1 ? "计划" : "完成"),
|
|
|
|
b: "618f7990-8-" + i0 + "," + ("618f7990-7-" + i0),
|
|
|
|
c: common_vendor.t(item == 1 ? common_vendor.unref(items).customersNumber : common_vendor.unref(items).loadCusNub),
|
|
|
|
d: "618f7990-9-" + i0 + "," + ("618f7990-7-" + i0),
|
|
|
|
e: common_vendor.t(item == 1 ? common_vendor.unref(items).orderNumber : common_vendor.unref(items).loadOrdNub),
|
|
|
|
f: "618f7990-10-" + i0 + "," + ("618f7990-7-" + i0),
|
|
|
|
g: common_vendor.t(item == 1 ? common_vendor.unref(items).signNub : common_vendor.unref(items).signNubSr),
|
|
|
|
h: "618f7990-11-" + i0 + "," + ("618f7990-7-" + i0),
|
|
|
|
i: "618f7990-7-" + i0 + ",618f7990-1"
|
|
|
|
};
|
|
|
|
}),
|
|
|
|
j: common_vendor.p({
|
|
|
|
align: "center"
|
|
|
|
}),
|
|
|
|
k: common_vendor.p({
|
|
|
|
align: "center"
|
|
|
|
}),
|
|
|
|
l: common_vendor.p({
|
|
|
|
align: "center"
|
|
|
|
}),
|
|
|
|
m: common_vendor.p({
|
|
|
|
align: "center"
|
|
|
|
}),
|
|
|
|
n: common_vendor.p({
|
|
|
|
loading: false,
|
|
|
|
emptyText: "暂无更多数据"
|
|
|
|
}),
|
|
|
|
o: common_vendor.o(checktype),
|
|
|
|
p: common_vendor.p({
|
|
|
|
data: common_vendor.unref(typearr),
|
|
|
|
value: common_vendor.unref(schanvalue),
|
|
|
|
placeholder: "全部",
|
|
|
|
arrLeft: 5,
|
|
|
|
size: "145",
|
|
|
|
clearable: true
|
|
|
|
}),
|
|
|
|
q: common_vendor.o(checktype),
|
|
|
|
r: common_vendor.p({
|
|
|
|
data: common_vendor.unref(typearr),
|
|
|
|
value: common_vendor.unref(schanvalue),
|
|
|
|
placeholder: "全部",
|
|
|
|
arrLeft: 5,
|
|
|
|
size: "145",
|
|
|
|
clearable: true
|
|
|
|
}),
|
|
|
|
s: common_vendor.f(common_vendor.unref(datalist), (item, k0, i0) => {
|
|
|
|
return {
|
|
|
|
a: common_vendor.t(item.orderCode),
|
|
|
|
b: common_vendor.n(item == 3 ? "tis bf" : "tis"),
|
|
|
|
c: common_vendor.t(item.packetBarCode),
|
|
|
|
d: common_vendor.t(item.materialName),
|
|
|
|
e: common_vendor.t(item >= 2 ? "未扫码" : "已扫码"),
|
|
|
|
f: common_vendor.n(item >= 2 ? "scanstateerr" : "scanstatesucc")
|
|
|
|
};
|
|
|
|
})
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
});
|
|
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "F:/物流/logPm/pagesHome/pages/SignDetailScan/SignDetailScan.vue"]]);
|
|
|
|
wx.createPage(MiniProgramPage);
|