"use strict"; const common_vendor = require("../../common/vendor.js"); const pages_yuangongindex_api = require("./api.js"); const pages_addstaff_api_addjigou = require("../addstaff/api/addjigou.js"); if (!Math) { model(); } const model = () => "../../compontent/public/model.js"; const _sfc_main = { __name: "workjoin", setup(__props) { common_vendor.ref(0); const workArray = common_vendor.ref([]); common_vendor.ref(false); common_vendor.onLoad((options) => { common_vendor.index.getStorage({ key: "openid", success: function(res) { pages_yuangongindex_api.getEmployeesOrgRela(res.data).then((res2) => { workArray.value = res2.result; }); } }); }); common_vendor.onPullDownRefresh(() => { common_vendor.index.getStorage({ key: "openid", success: function(res) { pages_yuangongindex_api.getEmployeesOrgRela(res.data).then((res2) => { workArray.value = res2.result; }); } }); common_vendor.index.stopPullDownRefresh(); }); const content = common_vendor.ref(""); const show = common_vendor.ref(false); const openLook = (res) => { if (res) { content.value = res; show.value = true; } }; const goBack = () => { common_vendor.index.navigateBack(); }; const again = (item) => { common_vendor.index.__f__("log", "at pages/yuangongindex/workjoin.vue:158", "click", item); common_vendor.index.navigateTo({ url: "/pages/yuangongindex/searchjigou" }); }; const jumpToAll = (element) => { pages_addstaff_api_addjigou.getMessageList().then((res) => { if (res.success) { common_vendor.index.navigateTo({ url: `/pages/addstaff/all?element=${JSON.stringify(res.result[0])}&applyStatus=${element.applyStatus}` }); } }); }; return (_ctx, _cache) => { return common_vendor.e({ a: common_vendor.o(($event) => show.value = false), b: common_vendor.p({ show: show.value, content: content.value }), c: common_vendor.o(goBack), d: `${common_vendor.index.getStorageSync("moveHeight") + 40}px`, e: `${common_vendor.index.getStorageSync("moveHeight") + 30}px`, f: workArray.value.length }, workArray.value.length ? {} : {}, { g: !workArray.value.length }, !workArray.value.length ? {} : {}, { h: common_vendor.f(workArray.value, (item, index, i0) => { return common_vendor.e({ a: common_vendor.t(item.departName), b: common_vendor.t(item.comLegalPerson), c: common_vendor.t(item.tel), d: item.applyStatus === `1` && item.applyType != `2` }, item.applyStatus === `1` && item.applyType != `2` ? { e: common_vendor.t(item.applyType == "0" ? `待确认` : `申请中`) } : {}, { f: item.applyStatus === `2` && item.applyType != `2` }, item.applyStatus === `2` && item.applyType != `2` ? { g: common_vendor.t(item.applyType == "0" ? `已接受` : `申请通过`) } : {}, { h: item.applyStatus === `3` && item.applyType != `2` }, item.applyStatus === `3` && item.applyType != `2` ? { i: common_vendor.t(item.applyType == "0" ? `已拒绝` : `申请驳回`) } : {}, { j: item.applyStatus === `1` && item.applyType == `2` }, item.applyStatus === `1` && item.applyType == `2` ? {} : {}, { k: item.applyStatus === `2` && item.applyType == `2` }, item.applyStatus === `2` && item.applyType == `2` ? {} : {}, { l: item.applyStatus === `3` && item.applyType == `2` }, item.applyStatus === `3` && item.applyType == `2` ? {} : {}, { m: common_vendor.t(item.comRegisterAddress), n: item.applyStatus != 1 && item.applyStatus != 2 && item.izHistory == `N` && item.applyType != `2` }, item.applyStatus != 1 && item.applyStatus != 2 && item.izHistory == `N` && item.applyType != `2` ? { o: common_vendor.o(($event) => again(item), index) } : {}, { p: item.applyStatus != 1 && item.applyStatus != 2 && item.applyType != "0" }, item.applyStatus != 1 && item.applyStatus != 2 && item.applyType != "0" ? { q: common_vendor.o(($event) => openLook(item.auditContent), index) } : {}, { r: common_vendor.o(jumpToAll, index), s: index }); }), i: common_vendor.s(!workArray.value.length ? { backgroundColor: `#F7F7F7` } : {}) }); }; } }; const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-9f30267b"]]); wx.createPage(MiniProgramPage); //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/yuangongindex/workjoin.js.map