"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: "LoadingDetails", setup(__props) { let details = common_vendor.reactive({ schanvalue: "", typearr: [ { value: 2, label: "已扫" }, { value: 1, label: "未扫" } ], dataList: [], id: "", items: null, current: 1, size: 10, orderStatus: 1, scanStatus: "", orderCode: "" }); common_vendor.onLoad((op) => { details.items = JSON.parse(op.item); details.id = JSON.parse(op.item).id; }); common_vendor.onShow(() => { init(); }); function init() { details.current = 1; initpage(); } async function initpage() { details.dataList = []; let data = { current: details.current, size: details.size, id: details.id, scanStatus: details.scanStatus, orderCode: details.orderCode }; let response = null; if (details.orderStatus == 1) { response = await api_user.deliverywrap(data); } else if (details.orderStatus == 2) { response = await api_user.deliverywrapIn(data); } details.dataList = response.data.records; } function setorderStatus(state) { details.orderStatus = state; init(); } function checktype(e) { if (e == "") { details.schanvalue = ""; details.scanStatus = ""; } details.typearr.map((item) => { if (item.value == e) { details.schanvalue = item.label; details.scanStatus = item.value; console.log(details.schanvalue); } }); } const { orderCode, orderStatus, schanvalue, typearr, dataList, items } = common_vendor.toRefs(details); return (_ctx, _cache) => { var _a, _b, _c; return common_vendor.e({ a: common_vendor.p({ title: "配车明细列表", bgColor: "#D3832A", leftIconColor: "#ffffff", titleStyle: "color:#ffffff", placeholder: true, autoBack: true, leftIconSize: "35" }), b: common_vendor.t((_a = common_vendor.unref(items)) == null ? void 0 : _a.vehicleStatus_name), c: common_vendor.t((_b = common_vendor.unref(items)) == null ? void 0 : _b.vehicleName), d: common_vendor.t((_c = common_vendor.unref(items)) == null ? void 0 : _c.driverName), e: common_vendor.p({ width: "50", 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) => { var _a2, _b2, _c2, _d, _e, _f; return { a: common_vendor.t(item == 1 ? "计划" : "完成"), b: "521be830-8-" + i0 + "," + ("521be830-7-" + i0), c: common_vendor.t(item == 1 ? (_a2 = common_vendor.unref(items)) == null ? void 0 : _a2.customersNumber : (_b2 = common_vendor.unref(items)) == null ? void 0 : _b2.loadCusNub), d: "521be830-9-" + i0 + "," + ("521be830-7-" + i0), e: common_vendor.t(item == 1 ? (_c2 = common_vendor.unref(items)) == null ? void 0 : _c2.orderNumber : (_d = common_vendor.unref(items)) == null ? void 0 : _d.loadOrdNub), f: "521be830-10-" + i0 + "," + ("521be830-7-" + i0), g: common_vendor.t(item == 1 ? (_e = common_vendor.unref(items)) == null ? void 0 : _e.deliveryNumber : (_f = common_vendor.unref(items)) == null ? void 0 : _f.scannedNumber), h: "521be830-11-" + i0 + "," + ("521be830-7-" + i0), i: "521be830-7-" + i0 + ",521be830-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.unref(orderCode), r: common_vendor.o(($event) => common_vendor.isRef(orderCode) ? orderCode.value = $event.detail.value : null), s: common_vendor.o(initpage), t: common_vendor.n(common_vendor.unref(orderStatus) == 1 ? "xz" : ""), v: common_vendor.o(($event) => setorderStatus(1)), w: common_vendor.n(common_vendor.unref(orderStatus) == 2 ? "xz" : ""), x: common_vendor.o(($event) => setorderStatus(2)), y: common_vendor.unref(orderStatus) == 1 }, common_vendor.unref(orderStatus) == 1 ? { z: common_vendor.f(common_vendor.unref(dataList), (item, k0, i0) => { return { a: common_vendor.t(item.orderCode), b: common_vendor.t(item.orderPackageCode), c: common_vendor.t(item.scanStatus == 1 ? "未扫描" : item.scanStatus == "" ? "未扫描" : item.scanStatus == 4 ? "未扫描" : !item.scanStatus ? "未扫描" : "扫描") }; }) } : {}, { A: common_vendor.unref(orderStatus) == 2 }, common_vendor.unref(orderStatus) == 2 ? { B: common_vendor.f(common_vendor.unref(dataList), (item, k0, i0) => { return { a: common_vendor.t(item.sku), b: common_vendor.t(item.coding), c: common_vendor.t(item.descriptionGoods), d: common_vendor.t(item.specification), e: common_vendor.t(item.logpmUnit), f: common_vendor.t(item.scanStatus == 1 ? "未扫描" : item.scanStatus == "" ? "未扫描" : item.scanStatus == 4 ? "未扫描" : !item.scanStatus ? "未扫描" : "扫描") }; }) } : {}); }; } }); const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "F:/物流/logPm/pagesHome/pages/LoadingDetails/LoadingDetails.vue"]]); wx.createPage(MiniProgramPage);