hldy_xcx/unpackage/dist/dev/mp-weixin/pages/yuangongindex/workjoin.js

113 lines
4.4 KiB
JavaScript

"use strict";
const common_vendor = require("../../common/vendor.js");
const pages_yuangongindex_api = require("./api.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.navigateTo({
url: "/pages/yuangongindex/searchjigou"
});
};
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: workArray.value.length
}, workArray.value.length ? {} : {}, {
e: !workArray.value.length
}, !workArray.value.length ? {} : {}, {
f: 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 == 1 && item.applyType != `2`
}, item.applyStatus != 1 && item.applyStatus != 2 && item.izHistory == 1 && item.applyType != `2` ? {
o: common_vendor.o(($event) => again(), 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.s(item.applyStatus != 1 && item.applyStatus != 2 ? {
height: `340rpx`
} : {
height: `280rpx`
}),
s: index
});
}),
g: 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