|
|
|
"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_tiplist = common_vendor.resolveComponent("tiplist");
|
|
|
|
const _component_saomiao = common_vendor.resolveComponent("saomiao");
|
|
|
|
const _component_saomiao1 = common_vendor.resolveComponent("saomiao1");
|
|
|
|
const _component_saomiao2 = common_vendor.resolveComponent("saomiao2");
|
|
|
|
const _component_saomiao3 = common_vendor.resolveComponent("saomiao3");
|
|
|
|
const _component_saomiao4 = common_vendor.resolveComponent("saomiao4");
|
|
|
|
const _component_tips = common_vendor.resolveComponent("tips");
|
|
|
|
(_easycom_u_navbar2 + _component_tiplist + _component_saomiao + _component_saomiao1 + _component_saomiao2 + _component_saomiao3 + _component_saomiao4 + _component_tips)();
|
|
|
|
}
|
|
|
|
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: "DeliveryCustomerScan",
|
|
|
|
setup(__props) {
|
|
|
|
let details = common_vendor.reactive({
|
|
|
|
id: "",
|
|
|
|
datalist: [],
|
|
|
|
items: {},
|
|
|
|
scancode: ""
|
|
|
|
});
|
|
|
|
const tip = common_vendor.ref(null);
|
|
|
|
const tiplists = common_vendor.ref(null);
|
|
|
|
common_vendor.onLoad((op) => {
|
|
|
|
details.id = op.id;
|
|
|
|
details.items = JSON.parse(op.item);
|
|
|
|
common_vendor.index.$on("scancodedate", function(code) {
|
|
|
|
if (code) {
|
|
|
|
console.log(code);
|
|
|
|
details.scancode = code;
|
|
|
|
scandata();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
common_vendor.onShow(() => {
|
|
|
|
initpage();
|
|
|
|
});
|
|
|
|
function showsdqs() {
|
|
|
|
tiplists.value.setdetails({
|
|
|
|
isshow: true,
|
|
|
|
tipstate: 1,
|
|
|
|
title: "请输入签收的包条",
|
|
|
|
placeholder: "请输入签收的包条",
|
|
|
|
inputtext: "",
|
|
|
|
success: (detail) => {
|
|
|
|
details.scancode = detail.inputtext;
|
|
|
|
scandata();
|
|
|
|
tiplists.value.setdetails({ isshow: false });
|
|
|
|
},
|
|
|
|
cancel: () => {
|
|
|
|
tiplists.value.setdetails({ isshow: false });
|
|
|
|
},
|
|
|
|
close: () => {
|
|
|
|
tiplists.value.setdetails({ isshow: false });
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
async function ckoneloading(item) {
|
|
|
|
tip.value.setdetails({
|
|
|
|
title: "提示",
|
|
|
|
content: "确认一键装车?",
|
|
|
|
confirmTxt: "确认",
|
|
|
|
isshow: true,
|
|
|
|
isshowcancel: true,
|
|
|
|
success: async () => {
|
|
|
|
let loadingId = common_vendor.index.getStorageSync("checkvehicle").id;
|
|
|
|
let data = {
|
|
|
|
reservationId: item.id,
|
|
|
|
loadingId
|
|
|
|
};
|
|
|
|
let response = await api_user.deliveryoneloading(data);
|
|
|
|
if (response.code == 200)
|
|
|
|
;
|
|
|
|
tip.value.setisshow(false);
|
|
|
|
},
|
|
|
|
cancel: () => {
|
|
|
|
tip.value.setisshow(false);
|
|
|
|
},
|
|
|
|
close: () => {
|
|
|
|
tip.value.setisshow(false);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
async function scandata() {
|
|
|
|
let loadingId = common_vendor.index.getStorageSync("checkvehicle").id;
|
|
|
|
let data = {
|
|
|
|
deliveryId: details.id,
|
|
|
|
loadingId,
|
|
|
|
type: 1,
|
|
|
|
barcode: details.scancode
|
|
|
|
};
|
|
|
|
let res = await api_user.deliveryloadingscan(data);
|
|
|
|
console.log(res);
|
|
|
|
}
|
|
|
|
async function initpage() {
|
|
|
|
let data = {
|
|
|
|
id: details.id
|
|
|
|
};
|
|
|
|
let response = await api_user.deliverycustom(data);
|
|
|
|
details.datalist = response.data.records;
|
|
|
|
}
|
|
|
|
function goCustomerOrdersDetails(item) {
|
|
|
|
common_vendor.index.navigateTo({
|
|
|
|
url: "/pagesHome/pages/CustomerOrdersDetails/CustomerOrdersDetails?item=" + JSON.stringify(item) + "&id=" + details.id
|
|
|
|
});
|
|
|
|
}
|
|
|
|
const { 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).vehicleStatus_name),
|
|
|
|
d: common_vendor.t(common_vendor.unref(items).vehicleName),
|
|
|
|
e: common_vendor.t(common_vendor.unref(items).driverName),
|
|
|
|
f: common_vendor.t(common_vendor.unref(items).loadingTeamName),
|
|
|
|
g: common_vendor.t(common_vendor.unref(items).isstock),
|
|
|
|
h: common_vendor.t(common_vendor.unref(items).customersNumber),
|
|
|
|
i: common_vendor.t(common_vendor.unref(items).orderNumber),
|
|
|
|
j: common_vendor.t(common_vendor.unref(items).deliveryNumber),
|
|
|
|
k: common_vendor.t(common_vendor.unref(items).scannedNumber),
|
|
|
|
l: common_vendor.f(common_vendor.unref(datalist), (item, k0, i0) => {
|
|
|
|
return {
|
|
|
|
a: common_vendor.t(item.consignee),
|
|
|
|
b: common_vendor.t(item.isstock),
|
|
|
|
c: common_vendor.t(item.isload),
|
|
|
|
d: common_vendor.t(item.ordNub),
|
|
|
|
e: common_vendor.o(($event) => goCustomerOrdersDetails(item)),
|
|
|
|
f: common_vendor.t(item.reservationNum),
|
|
|
|
g: common_vendor.t(item.loadingNub),
|
|
|
|
h: common_vendor.o(($event) => ckoneloading(item))
|
|
|
|
};
|
|
|
|
}),
|
|
|
|
m: common_vendor.o(() => {
|
|
|
|
}),
|
|
|
|
n: common_vendor.o(showsdqs),
|
|
|
|
o: common_vendor.sr(tiplists, "69b5a390-1", {
|
|
|
|
"k": "tiplists"
|
|
|
|
}),
|
|
|
|
p: common_vendor.sr(tip, "69b5a390-7", {
|
|
|
|
"k": "tip"
|
|
|
|
})
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
});
|
|
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "F:/物流/logPm/pagesHome/pages/DeliveryCustomerScan/DeliveryCustomerScan.vue"]]);
|
|
|
|
wx.createPage(MiniProgramPage);
|