70 lines
2.4 KiB
JavaScript
70 lines
2.4 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const pages_oldmanindex_api = require("./api.js");
|
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
__name: "simpleyaoqing",
|
|
setup(__props) {
|
|
const hulijigouArray = common_vendor.ref([]);
|
|
common_vendor.ref("");
|
|
common_vendor.ref(false);
|
|
const vipid = common_vendor.ref("");
|
|
common_vendor.onLoad((options) => {
|
|
vipid.value = JSON.parse(options.extend).dataId;
|
|
search();
|
|
});
|
|
const goBack = () => {
|
|
common_vendor.index.navigateBack();
|
|
};
|
|
const search = () => {
|
|
pages_oldmanindex_api.getId(vipid.value).then((res) => {
|
|
if (res.success) {
|
|
hulijigouArray.value = res.result;
|
|
}
|
|
});
|
|
};
|
|
common_vendor.ref(false);
|
|
const changeStatus = (item, status) => {
|
|
let data = {
|
|
employeeId: item.employeesId,
|
|
status: status ? 2 : 3,
|
|
orgCode: item.orgCode
|
|
};
|
|
pages_oldmanindex_api.invitedConfirm(data).then((res) => {
|
|
if (res.success) {
|
|
search();
|
|
}
|
|
});
|
|
};
|
|
return (_ctx, _cache) => {
|
|
return common_vendor.e({
|
|
a: common_vendor.o(goBack),
|
|
b: !hulijigouArray.value.length
|
|
}, !hulijigouArray.value.length ? {} : {}, {
|
|
c: common_vendor.f(hulijigouArray.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.applyStatus === `1` ? {} : {}, {
|
|
e: item.applyStatus === `2`
|
|
}, item.applyStatus === `2` ? {} : {}, {
|
|
f: item.applyStatus === `3`
|
|
}, item.applyStatus === `3` ? {} : {}, {
|
|
g: common_vendor.t(item.comRegisterAddress),
|
|
h: item.applyStatus === `1`
|
|
}, item.applyStatus === `1` ? {
|
|
i: common_vendor.o(($event) => changeStatus(item, true), index),
|
|
j: common_vendor.o(($event) => changeStatus(item, false), index)
|
|
} : {}, {
|
|
k: index
|
|
});
|
|
})
|
|
});
|
|
};
|
|
}
|
|
});
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-e8dc1e47"]]);
|
|
wx.createPage(MiniProgramPage);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/oldmanindex/simpleyaoqing.js.map
|