259 lines
8.1 KiB
JavaScript
259 lines
8.1 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const common_assets = require("../../common/assets.js");
|
|
if (!Math) {
|
|
(info + plsbuy + calculator + shoppingCar + Drawer + shoppingCarSmall + goplsbuy + gobackhouse + ball)();
|
|
}
|
|
const Drawer = () => "../public/Drawer.js";
|
|
const shoppingCar = () => "./drawer/shoppingCar/index.js";
|
|
const shoppingCarSmall = () => "./drawer/shoppingCarSmall/index.js";
|
|
const gobackhouse = () => "./drawer/gobackhouse/index.js";
|
|
const goplsbuy = () => "./drawer/plsbuy/index.js";
|
|
const ball = () => "./components/ball.js";
|
|
const info = () => "./components/info.js";
|
|
const plsbuy = () => "./components/plsbuy.js";
|
|
const calculator = () => "./components/calculator.js";
|
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
__name: "index",
|
|
props: {
|
|
isShow: {
|
|
type: Boolean,
|
|
required: true
|
|
}
|
|
},
|
|
setup(__props) {
|
|
const props = __props;
|
|
const transition = common_vendor.ref(true);
|
|
const draweranther = common_vendor.ref(null);
|
|
const drawer = common_vendor.ref(null);
|
|
const gobackdrawer = common_vendor.ref(null);
|
|
const goshopdrawer = common_vendor.ref(null);
|
|
const cardsArray = common_vendor.ref([
|
|
{
|
|
name: "纸尿裤-拉拉裤",
|
|
type: 0
|
|
},
|
|
{
|
|
name: "纸尿裤-拉拉裤",
|
|
type: 0
|
|
},
|
|
{
|
|
name: "纸尿裤-拉拉裤",
|
|
type: 0
|
|
},
|
|
{
|
|
name: "纸尿裤-拉拉裤",
|
|
type: 0
|
|
},
|
|
{
|
|
name: "胃管(进口)",
|
|
type: 1
|
|
},
|
|
{
|
|
name: "胃管(进口)",
|
|
type: 1
|
|
},
|
|
{
|
|
name: "胃管(进口)",
|
|
type: 1
|
|
},
|
|
{
|
|
name: "胃管(进口)",
|
|
type: 1
|
|
},
|
|
{
|
|
name: "洗护用品",
|
|
type: 2
|
|
},
|
|
{
|
|
name: "洗护用品",
|
|
type: 2
|
|
},
|
|
{
|
|
name: "洗护用品",
|
|
type: 2
|
|
},
|
|
{
|
|
name: "洗护用品",
|
|
type: 2
|
|
},
|
|
{
|
|
name: "洗护用品",
|
|
type: 2
|
|
},
|
|
{
|
|
name: "洗护用品",
|
|
type: 2
|
|
}
|
|
]);
|
|
common_vendor.watch(
|
|
() => props.isShow,
|
|
(newVal, oldVal) => {
|
|
if (!oldVal && newVal) {
|
|
transition.value = false;
|
|
setTimeout(() => {
|
|
transition.value = true;
|
|
}, 50);
|
|
}
|
|
}
|
|
);
|
|
const detailisopen = common_vendor.ref(false);
|
|
const detailisopacity = common_vendor.ref(false);
|
|
const plsBuyIsopen = common_vendor.ref(false);
|
|
const plsBuyisopacity = common_vendor.ref(false);
|
|
const isWarning = common_vendor.ref(false);
|
|
const buttonList = common_vendor.ref([
|
|
// { url: '/static/index/Warehousing/zuoce.png', name: '请购单' },
|
|
{ url: "/static/index/Warehousing/sousuo.png", name: "查询" },
|
|
{ url: "/static/index/Warehousing/chongzhi.png", name: "重置" }
|
|
]);
|
|
const opendetail = () => {
|
|
detailisopen.value = true;
|
|
detailisopacity.value = false;
|
|
setTimeout(() => {
|
|
detailisopacity.value = true;
|
|
}, 100);
|
|
};
|
|
const openBuy = () => {
|
|
detailisopen.value = false;
|
|
plsBuyIsopen.value = true;
|
|
plsBuyisopacity.value = false;
|
|
setTimeout(() => {
|
|
plsBuyisopacity.value = true;
|
|
}, 100);
|
|
};
|
|
const clickBall = () => {
|
|
drawer.value.openDrawer();
|
|
};
|
|
const clickgoshop = () => {
|
|
goshopdrawer.value.openDrawer();
|
|
};
|
|
const clickgoback = () => {
|
|
detailisopen.value = false;
|
|
gobackdrawer.value.openDrawer();
|
|
};
|
|
const saveIndex = common_vendor.ref(-1);
|
|
const translateNumber = common_vendor.ref(0);
|
|
const rightCalShow = common_vendor.ref(false);
|
|
const doOnce = common_vendor.ref(0);
|
|
const openRight = (number, index) => {
|
|
saveIndex.value = index;
|
|
translateNumber.value = number;
|
|
rightCalShow.value = true;
|
|
doOnce.value++;
|
|
};
|
|
const closeRight = () => {
|
|
saveIndex.value = -1;
|
|
translateNumber.value = 0;
|
|
rightCalShow.value = false;
|
|
};
|
|
const changeNumber = common_vendor.ref(0);
|
|
const rightOk = (num) => {
|
|
rightCalShow.value = false;
|
|
changeNumber.value = num;
|
|
};
|
|
return (_ctx, _cache) => {
|
|
return {
|
|
a: common_assets._imports_0$6,
|
|
b: common_assets._imports_1$5,
|
|
c: common_vendor.t(`99+`),
|
|
d: !isWarning.value,
|
|
e: common_assets._imports_2$2,
|
|
f: common_vendor.n(!isWarning.value ? `third-bgc` : `bgc-white`),
|
|
g: common_vendor.o(($event) => isWarning.value = !isWarning.value),
|
|
h: common_assets._imports_3$1,
|
|
i: common_vendor.o(clickgoshop),
|
|
j: common_vendor.f(buttonList.value, (item, index, i0) => {
|
|
return {
|
|
a: item.url,
|
|
b: common_vendor.t(item.name),
|
|
c: index
|
|
};
|
|
}),
|
|
k: common_vendor.f(cardsArray.value, (item, index, i0) => {
|
|
return {
|
|
a: common_vendor.n(item.type === 0 ? "swiper-card-left-white-img-first" : item.type === 1 ? "swiper-card-left-white-img-second" : "swiper-card-left-white-img-third"),
|
|
b: common_vendor.o(opendetail, index),
|
|
c: common_vendor.t(item.name),
|
|
d: common_vendor.t(item.type === 0 ? "护理类" : item.type === 1 ? "医疗类" : "行政类"),
|
|
e: common_vendor.n(item.type === 0 ? "swiper-left-button-blue" : item.type === 1 ? "swiper-left-button-green" : "swiper-left-button-pouple"),
|
|
f: common_vendor.o(openBuy, index),
|
|
g: common_vendor.o(clickgoback, index),
|
|
h: common_vendor.s(item.type === 1 ? {
|
|
// backgroundColor: '#00D6A9',
|
|
background: "#00D6A9 url(/static/index/warehouseCard/bgcgreen.png) center/cover"
|
|
} : item.type === 2 ? {
|
|
// backgroundColor: '#BD9AF8',
|
|
background: "#BD9AF8 url(/static/index/warehouseCard/bgcpouple.png) center/cover"
|
|
} : {}),
|
|
i: index
|
|
};
|
|
}),
|
|
l: `/static/index/project3.png`,
|
|
m: isWarning.value,
|
|
n: isWarning.value,
|
|
o: __props.isShow,
|
|
p: common_vendor.s(transition.value ? {
|
|
opacity: `1`
|
|
} : {
|
|
opacity: `0`
|
|
}),
|
|
q: common_vendor.o(openBuy),
|
|
r: common_vendor.o(clickgoback),
|
|
s: detailisopacity.value ? 1 : 0,
|
|
t: common_vendor.o(() => {
|
|
}),
|
|
v: detailisopen.value && __props.isShow,
|
|
w: common_vendor.o(($event) => detailisopen.value = false),
|
|
x: common_vendor.o(($event) => plsBuyIsopen.value = false),
|
|
y: common_vendor.o(openRight),
|
|
z: common_vendor.o(closeRight),
|
|
A: common_vendor.p({
|
|
saveIndex: saveIndex.value,
|
|
changeNumber: changeNumber.value
|
|
}),
|
|
B: plsBuyisopacity.value ? 1 : 0,
|
|
C: common_vendor.o(() => {
|
|
}),
|
|
D: common_vendor.o(rightOk),
|
|
E: common_vendor.p({
|
|
doOnce: doOnce.value,
|
|
translateNumber: translateNumber.value
|
|
}),
|
|
F: rightCalShow.value,
|
|
G: plsBuyisopacity.value ? 1 : 0,
|
|
H: common_vendor.o(() => {
|
|
}),
|
|
I: plsBuyIsopen.value && __props.isShow,
|
|
J: common_vendor.o(($event) => plsBuyIsopen.value = false),
|
|
K: common_vendor.sr(drawer, "8856eb47-3", {
|
|
"k": "drawer"
|
|
}),
|
|
L: common_vendor.sr(draweranther, "8856eb47-5", {
|
|
"k": "draweranther"
|
|
}),
|
|
M: common_vendor.p({
|
|
widNumber: 45
|
|
}),
|
|
N: common_vendor.o(($event) => draweranther.value.openDrawer()),
|
|
O: common_vendor.sr(goshopdrawer, "8856eb47-7", {
|
|
"k": "goshopdrawer"
|
|
}),
|
|
P: common_vendor.sr(gobackdrawer, "8856eb47-9", {
|
|
"k": "gobackdrawer"
|
|
}),
|
|
Q: common_vendor.p({
|
|
widNumber: 45
|
|
}),
|
|
R: common_vendor.o(clickBall),
|
|
S: common_vendor.p({
|
|
isShow: __props.isShow && !detailisopen.value && !plsBuyIsopen.value
|
|
})
|
|
};
|
|
};
|
|
}
|
|
});
|
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-8856eb47"]]);
|
|
wx.createComponent(Component);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/component/storeroom/index.js.map
|