"use strict"; const common_vendor = require("../../common/vendor.js"); const common_assets = require("../../common/assets.js"); if (!Array) { const _component_arrowkeys = common_vendor.resolveComponent("arrowkeys"); const _component_donghua = common_vendor.resolveComponent("donghua"); (_component_arrowkeys + _component_donghua)(); } const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ __name: "procurement", setup(__props) { common_vendor.ref(""); const scrolltop = common_vendor.ref(0); const getblue = common_vendor.ref(false); const shyp = common_vendor.ref(false); const scroll = common_vendor.reactive({ scrolltop1: 0, scrolltop2: 0, scrolltop3: 0, act1: 0, act2: 0, act3: 0 }); const switchshyp = () => { shyp.value = shyp.value ? false : true; }; const typescroll = (e, i) => { scroll["act" + e] = i; scroll["scrolltop" + e] = (i - 2) * 50; common_vendor.index.__f__("log", "at pages/Warehouse/procurement.vue:138", scroll["scrolltop" + e]); common_vendor.index.__f__("log", "at pages/Warehouse/procurement.vue:139", scroll["act" + e]); }; const movecard = (type) => { common_vendor.index.__f__("log", "at pages/Warehouse/procurement.vue:142", type); switch (type) { case 0: break; case 1: break; case 2: break; case 3: break; case 4: break; case 5: common_vendor.index.navigateBack(); break; } }; function genPaths(base, prefix, count, ext = "png", startIndex = 0, pad = false) { return Array.from({ length: count }, (_, i) => { const idx = pad ? String(i + startIndex).padStart(2, "0") : i + startIndex; return `${base}/${prefix}${idx}.${ext}`; }); } const anmidex = common_vendor.ref(-1); const admiclick = (i) => { anmidex.value = i; }; const animArray = common_vendor.ref([ { url: genPaths( "/static/index/warehouse/procurement/store", "store0", 8, // 张数 "png", 1, // 起始索引为 1 false // 不补零 ), name: "库存预警", imgurl: "/static/index/warehouse/procurement/store/store01.png" }, { url: genPaths( "/static/index/warehouse/procurement/procure", "procure0", 7, // 张数 "png", 1, // 起始索引为 1 false // 不补零 ), name: "采 购", imgurl: "/static/index/warehouse/procurement/procure/procure01.png" }, { url: genPaths( "/static/index/warehouse/procurement/Purchase", "Purchase0", 9, // 张数 "png", 1, // 起始索引为 1 false // 不补零 ), name: "采购单", imgurl: "/static/index/warehouse/procurement/Purchase/Purchase01.png" }, { url: genPaths( "/static/index/warehouse/procurement/details", "details0", 7, // 张数 "png", 1, // 起始索引为 1 false // 不补零 ), name: "物料详情", imgurl: "/static/index/warehouse/procurement/details/details01.png" }, { url: genPaths( "/static/index/warehouse/procurement/bound", "bound0", 11, // 张数 "png", 1, // 起始索引为 1 false // 不补零 ), name: "出入库", imgurl: "/static/index/warehouse/procurement/bound/bound01.png" }, { url: genPaths( "/static/index/warehouse/procurement/Cart", "Cart0", 10, // 张数 "png", 1, // 起始索引为 1 false // 不补零 ), name: "购物车", imgurl: "/static/index/warehouse/procurement/Cart/Cart01.png" } ]); return (_ctx, _cache) => { return { a: common_vendor.f(66, (v, i, i0) => { return common_vendor.e({ a: i == 0 }, i == 0 ? { b: common_assets._imports_0$9 } : {}, { c: i == 1 }, i == 1 ? { d: common_assets._imports_1$4 } : {}, { e: i >= 2 }, i >= 2 ? { f: common_assets._imports_2$4 } : {}, { g: i == 0 ? 1 : "", h: i == 1 ? 1 : "", i: i >= 2 ? 1 : "", j: i, k: i == 1 ? 1 : "", l: i == 0 ? 1 : "" }); }), b: common_assets._imports_3$3, c: scrolltop.value, d: common_vendor.o( //@ts-ignore (...args) => _ctx.upper && _ctx.upper(...args) ), e: common_vendor.o( //@ts-ignore (...args) => _ctx.lower && _ctx.lower(...args) ), f: common_vendor.o(scroll), g: common_vendor.o(movecard), h: common_vendor.p({ getblue: getblue.value, moveleft: 45, rightbuttonname: "扫描" }), i: common_vendor.n(shyp.value ? "act" : ""), j: common_vendor.o(switchshyp), k: common_vendor.t(shyp.value ? "启用" : "停用"), l: common_assets._imports_4$2, m: common_vendor.f(["三", "二", "一"], (v, k0, i0) => { return { a: common_vendor.t(v + "级分类") }; }), n: common_vendor.f(["活血化瘀止痛类", "通络止痛类"], (v, i, i0) => { return { a: common_vendor.t(v), b: common_vendor.n(scroll.act3 == i ? "act" : ""), c: common_vendor.o(($event) => typescroll(3, i)) }; }), o: scroll.scrolltop3, p: common_vendor.f(["液体制剂", "中药制剂", "中医辩证"], (v, i, i0) => { return { a: common_vendor.t(v), b: common_vendor.n(scroll.act2 == i ? "act" : ""), c: common_vendor.o(($event) => typescroll(2, i)) }; }), q: scroll.scrolltop2, r: common_vendor.f(["中医中药", "生活用品", "医疗用品", "医疗器械", "耗材用品", "食材用品", "生活用品", "中医中药", "生活用品", "医疗用品", "医疗器械", "耗材用品", "食材用品", "生活用品"], (v, i, i0) => { return common_vendor.e({ a: scroll.act1 == i }, scroll.act1 == i ? { b: common_assets._imports_5$3 } : { c: common_assets._imports_6$2 }, { d: common_vendor.t(v), e: common_vendor.n(scroll.act1 == i ? "act" : ""), f: common_vendor.o(($event) => typescroll(1, i)) }); }), s: scroll.scrolltop1, t: common_vendor.f(animArray.value, (v, i, i0) => { return common_vendor.e({ a: anmidex.value != i }, anmidex.value != i ? { b: v.imgurl } : {}, { c: i === anmidex.value, d: "658c6280-1-" + i0, e: common_vendor.p({ width: "1.5vw", height: "1.5vw", links: v.url, playing: i === anmidex.value }), f: common_vendor.t(v.name), g: i, h: common_vendor.o(($event) => admiclick(i), i) }); }) }; }; } }); wx.createPage(_sfc_main); //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/Warehouse/procurement.js.map