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.
158 lines
5.7 KiB
158 lines
5.7 KiB
2 years ago
|
"use strict";
|
||
|
const common_vendor = require("../../../common/vendor.js");
|
||
|
const uni_modules_fantMiniPlus_components_hdCalendar_index = require("../../../uni_modules/fant-mini-plus/components/hd-calendar/index.js");
|
||
|
const uni_modules_fantMiniPlus_libs_utils_CommonUtil = require("../../../uni_modules/fant-mini-plus/libs/utils/CommonUtil.js");
|
||
|
const api_user = require("../../../api/user.js");
|
||
|
require("../../../uni_modules/fant-mini-plus/libs/functions/reg.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_u_icon2 = common_vendor.resolveComponent("u-icon");
|
||
|
const _component_tips = common_vendor.resolveComponent("tips");
|
||
|
const _easycom_hd_calendar2 = common_vendor.resolveComponent("hd-calendar");
|
||
|
(_easycom_u_navbar2 + _easycom_u_icon2 + _component_tips + _easycom_hd_calendar2)();
|
||
|
}
|
||
|
const _easycom_u_navbar = () => "../../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";
|
||
|
const _easycom_u_icon = () => "../../../uni_modules/uview-plus/components/u-icon/u-icon.js";
|
||
|
const _easycom_hd_calendar = () => "../../../uni_modules/fant-mini-plus/components/hd-calendar/hd-calendar.js";
|
||
|
if (!Math) {
|
||
|
(_easycom_u_navbar + _easycom_u_icon + _easycom_hd_calendar)();
|
||
|
}
|
||
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||
|
__name: "pickingScan",
|
||
|
setup(__props) {
|
||
|
let details = common_vendor.reactive({
|
||
|
datatime: "",
|
||
|
dataList: [1, 2, 3, 4, 5, 6],
|
||
|
show: false,
|
||
|
currentPage: 1,
|
||
|
size: 10,
|
||
|
stockupDate: "",
|
||
|
status: 0
|
||
|
});
|
||
|
let tip = common_vendor.ref(null);
|
||
|
const calendar = uni_modules_fantMiniPlus_components_hdCalendar_index.useCalendar();
|
||
|
const date = common_vendor.ref([]);
|
||
|
function showCalendar() {
|
||
|
calendar.showCalendar();
|
||
|
}
|
||
|
function onConfirm(e) {
|
||
|
date.value = uni_modules_fantMiniPlus_libs_utils_CommonUtil.CommonUtil.deepClone(e);
|
||
|
details.datatime = common_vendor.index.$u.timeFormat(date.value[0], "yyyy-mm-dd") + " 至 " + common_vendor.index.$u.timeFormat(date.value[1], "yyyy-mm-dd");
|
||
|
}
|
||
|
common_vendor.onLoad(() => {
|
||
|
details.currentPage = 1;
|
||
|
initpage();
|
||
|
});
|
||
|
async function initpage() {
|
||
|
let data = {
|
||
|
current: details.currentPage,
|
||
|
size: details.size,
|
||
|
stockupDate: details.stockupDate,
|
||
|
status: details.status
|
||
|
};
|
||
|
let response = await api_user.distributionStockuppageList(data);
|
||
|
details.dataList = response.data.records;
|
||
|
}
|
||
|
function gostockuplist(item) {
|
||
|
common_vendor.index.navigateTo({
|
||
|
url: "/pagesHome/pages/StockUplist/StockUplist?id=" + item.reservationId
|
||
|
});
|
||
|
}
|
||
|
function cleartime() {
|
||
|
console.log(1231211);
|
||
|
details.datatime = "";
|
||
|
}
|
||
|
function setstate(state) {
|
||
|
details.status = state;
|
||
|
initpage();
|
||
|
}
|
||
|
function submitsuccess() {
|
||
|
tip.value.setdetails({
|
||
|
title: "提示",
|
||
|
content: "确认备货完成?",
|
||
|
confirmTxt: "确认",
|
||
|
isshow: true,
|
||
|
isshowcancel: true,
|
||
|
success: () => {
|
||
|
tip.value.setisshow(false);
|
||
|
},
|
||
|
cancel: () => {
|
||
|
tip.value.setisshow(false);
|
||
|
},
|
||
|
close: () => {
|
||
|
tip.value.setisshow(false);
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
const { datatime, dataList, show, status } = 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.unref(datatime),
|
||
|
c: !common_vendor.unref(datatime)
|
||
|
}, !common_vendor.unref(datatime) ? {
|
||
|
d: common_vendor.o(showCalendar),
|
||
|
e: common_vendor.p({
|
||
|
name: "calendar",
|
||
|
color: "#999999",
|
||
|
size: "50"
|
||
|
})
|
||
|
} : {
|
||
|
f: common_vendor.o(cleartime),
|
||
|
g: common_vendor.p({
|
||
|
name: "close-circle",
|
||
|
color: "#999999",
|
||
|
size: "40"
|
||
|
})
|
||
|
}, {
|
||
|
h: common_vendor.o(() => {
|
||
|
}),
|
||
|
i: common_vendor.o(showCalendar),
|
||
|
j: common_vendor.n(common_vendor.unref(status) == 0 ? "xz" : ""),
|
||
|
k: common_vendor.o(($event) => setstate(0)),
|
||
|
l: common_vendor.n(common_vendor.unref(status) == 1 ? "xz" : ""),
|
||
|
m: common_vendor.o(($event) => setstate(1)),
|
||
|
n: common_vendor.f(common_vendor.unref(dataList), (item, k0, i0) => {
|
||
|
return {
|
||
|
a: common_vendor.t(item.typeServiceStr),
|
||
|
b: common_vendor.t(item.stockupStatusStr),
|
||
|
c: common_vendor.t(item.customer),
|
||
|
d: common_vendor.t(item.stockupArea),
|
||
|
e: common_vendor.t(item.warehouseArea),
|
||
|
f: common_vendor.t(item.trays),
|
||
|
g: common_vendor.t(item.orderNum),
|
||
|
h: common_vendor.t(item.planNum),
|
||
|
i: common_vendor.t(item.realNum),
|
||
|
j: common_vendor.o(($event) => gostockuplist(item))
|
||
|
};
|
||
|
}),
|
||
|
o: common_vendor.o(submitsuccess),
|
||
|
p: common_vendor.sr(tip, "7babdaae-3", {
|
||
|
"k": "tip"
|
||
|
}),
|
||
|
q: common_vendor.o(onConfirm),
|
||
|
r: common_vendor.p({
|
||
|
mode: "range",
|
||
|
color: "#D3832A",
|
||
|
minDate: "2023-01-01"
|
||
|
})
|
||
|
});
|
||
|
};
|
||
|
}
|
||
|
});
|
||
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "F:/物流/logPm/pagesHome/pages/pickingScan/pickingScan.vue"]]);
|
||
|
wx.createPage(MiniProgramPage);
|