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.
157 lines
5.5 KiB
157 lines
5.5 KiB
2 years ago
|
"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: "SelfPickupDetails",
|
||
|
setup(__props) {
|
||
|
let details = common_vendor.reactive({
|
||
|
schanvalue: "",
|
||
|
typearr: [
|
||
|
{
|
||
|
value: 1,
|
||
|
label: "齐套"
|
||
|
},
|
||
|
{
|
||
|
value: 2,
|
||
|
label: "部分扫"
|
||
|
},
|
||
|
{
|
||
|
value: 3,
|
||
|
label: "未扫"
|
||
|
}
|
||
|
],
|
||
|
dataList: [],
|
||
|
orderStatus: 0,
|
||
|
billLadingId: "",
|
||
|
orderSelfNumbering: "",
|
||
|
consignee: "",
|
||
|
pickUpPlate: "",
|
||
|
carTypeStr: "",
|
||
|
orderNum: "",
|
||
|
planNum: "",
|
||
|
completeNum: "",
|
||
|
signedNum: ""
|
||
|
});
|
||
|
common_vendor.onLoad((op) => {
|
||
|
details.billLadingId = op.billLadingId;
|
||
|
initpage();
|
||
|
});
|
||
|
async function initpage() {
|
||
|
let data = {
|
||
|
orderStatus: details.orderStatus,
|
||
|
billLadingId: details.billLadingId,
|
||
|
orderSelfNumbering: details.orderSelfNumbering
|
||
|
};
|
||
|
let response = await api_user.billLadingdetailList(data);
|
||
|
details.dataList = response.data.list;
|
||
|
details.consignee = response.data.consignee;
|
||
|
details.pickUpPlate = response.data.pickUpPlate;
|
||
|
details.carTypeStr = response.data.carTypeStr;
|
||
|
details.orderNum = response.data.orderNum;
|
||
|
details.planNum = response.data.planNum;
|
||
|
details.completeNum = response.data.completeNum;
|
||
|
details.signedNum = response.data.signedNum;
|
||
|
}
|
||
|
function checktype(e) {
|
||
|
if (e == "") {
|
||
|
details.schanvalue = "";
|
||
|
}
|
||
|
details.typearr.map((item) => {
|
||
|
if (item.value == e) {
|
||
|
details.schanvalue = item.label;
|
||
|
console.log(details.schanvalue);
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
const { schanvalue, typearr, 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.p({
|
||
|
width: "70",
|
||
|
align: "center"
|
||
|
}),
|
||
|
c: common_vendor.p({
|
||
|
align: "center"
|
||
|
}),
|
||
|
d: common_vendor.p({
|
||
|
align: "center"
|
||
|
}),
|
||
|
e: common_vendor.f([1, 2], (item, k0, i0) => {
|
||
|
return {
|
||
|
a: common_vendor.t(item == 1 ? "计划" : "完成"),
|
||
|
b: "e4b7b2b4-7-" + i0 + "," + ("e4b7b2b4-6-" + i0),
|
||
|
c: common_vendor.t(item == 1 ? common_vendor.unref(details).orderNum : common_vendor.unref(details).completeNum),
|
||
|
d: "e4b7b2b4-8-" + i0 + "," + ("e4b7b2b4-6-" + i0),
|
||
|
e: common_vendor.t(item == 1 ? common_vendor.unref(details).planNum : common_vendor.unref(details).signedNum),
|
||
|
f: "e4b7b2b4-9-" + i0 + "," + ("e4b7b2b4-6-" + i0),
|
||
|
g: "e4b7b2b4-6-" + i0 + ",e4b7b2b4-1"
|
||
|
};
|
||
|
}),
|
||
|
f: common_vendor.p({
|
||
|
align: "center"
|
||
|
}),
|
||
|
g: common_vendor.p({
|
||
|
align: "center"
|
||
|
}),
|
||
|
h: common_vendor.p({
|
||
|
align: "center"
|
||
|
}),
|
||
|
i: common_vendor.p({
|
||
|
loading: false,
|
||
|
emptyText: "暂无更多数据"
|
||
|
}),
|
||
|
j: common_vendor.o(checktype),
|
||
|
k: common_vendor.p({
|
||
|
data: common_vendor.unref(typearr),
|
||
|
value: common_vendor.unref(schanvalue),
|
||
|
placeholder: "全部",
|
||
|
arrLeft: 5,
|
||
|
size: "145",
|
||
|
clearable: true
|
||
|
}),
|
||
|
l: common_vendor.f(common_vendor.unref(dataList), (item, k0, i0) => {
|
||
|
return {
|
||
|
a: common_vendor.t(item.orderSelfNumbering),
|
||
|
b: common_vendor.t(item.packetBarCode),
|
||
|
c: common_vendor.t(item.scanStatus),
|
||
|
d: common_vendor.t(item.errorStatus)
|
||
|
};
|
||
|
})
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
});
|
||
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "F:/物流/logPm/pagesHome/pages/SelfPickupDetails/SelfPickupDetails.vue"]]);
|
||
|
wx.createPage(MiniProgramPage);
|