货无忧
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.
 
 
 
 
 

209 lines
7.4 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 _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({
orderCodevalue: "",
signforStatevalue: "",
signforStatearr: [
{
value: 1,
label: "齐套"
},
{
value: 2,
label: "部分扫"
},
{
value: 3,
label: "未扫"
}
],
statearr: [
{
value: 1,
label: "齐套"
},
{
value: 2,
label: "部分扫"
},
{
value: 3,
label: "未扫"
}
],
items: {},
id: "",
datalist: [],
orderStatus: 1,
signforState: ""
});
common_vendor.onLoad((op) => {
details.items = JSON.parse(op.item);
details.id = JSON.parse(op.item).id;
initpage();
});
function setorderStatus(state) {
details.orderStatus = state;
initpage();
}
async function initpage() {
details.datalist = [];
let data = {
id: details.id,
signforState: details.signforState
};
if (details.orderStatus == 1) {
let res = await api_user.signforwrap(data);
console.log(res);
details.datalist = res.data.records;
} else if (details.orderStatus == 2) {
let res = await api_user.signforwrapIn(data);
console.log(res);
details.datalist = res.data.records;
}
}
function checktype(type, e) {
console.log(type, e);
if (type == 1) {
if (e == "") {
details.signforStatevalue = "";
details.signforState = "";
}
details.signforStatearr.map((item) => {
if (item.value == e) {
details.signforStatevalue = item.label;
details.signforState = item.value;
console.log(details.signforStatevalue);
}
});
initpage();
}
}
const { orderStatus, signforStatearr, signforStatevalue, items, datalist } = common_vendor.toRefs(details);
return (_ctx, _cache) => {
return common_vendor.e({
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(($event) => checktype(1, $event)),
p: common_vendor.p({
data: common_vendor.unref(signforStatearr),
value: common_vendor.unref(signforStatevalue),
placeholder: "全部",
arrLeft: 5,
size: "145",
clearable: true
}),
q: common_vendor.o(initpage),
r: common_vendor.n(common_vendor.unref(orderStatus) == 1 ? "xz" : ""),
s: common_vendor.o(($event) => setorderStatus(1)),
t: common_vendor.n(common_vendor.unref(orderStatus) == 2 ? "xz" : ""),
v: common_vendor.o(($event) => setorderStatus(2)),
w: common_vendor.unref(orderStatus) == 1
}, common_vendor.unref(orderStatus) == 1 ? {
x: common_vendor.f(common_vendor.unref(datalist), (item, k0, i0) => {
return {
a: common_vendor.t(item.orderCode),
b: common_vendor.t(item.packetBarCode),
c: common_vendor.t(item.materialName),
d: common_vendor.t(item.signforState == 1 ? "未扫码" : "已扫码"),
e: common_vendor.n(item.signforState == 1 ? "scanstateerr" : "scanstatesucc")
};
})
} : {}, {
y: common_vendor.unref(orderStatus) == 2
}, common_vendor.unref(orderStatus) == 2 ? {
z: common_vendor.f(common_vendor.unref(datalist), (item, k0, i0) => {
return {
a: common_vendor.t(item.sku),
b: common_vendor.t(item.descriptionGoods),
c: common_vendor.t(item.specification),
d: common_vendor.t(item.logpmUnit)
};
})
} : {});
};
}
});
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "F:/物流/logPm/pagesHome/pages/SignDetailScan/SignDetailScan.vue"]]);
wx.createPage(MiniProgramPage);