This commit is contained in:
parent
51181a325c
commit
5e8cb4fc72
|
|
@ -42,7 +42,7 @@
|
||||||
<view class="white-photo" @click="getMessage(headImge)">
|
<view class="white-photo" @click="getMessage(headImge)">
|
||||||
<view class="photo-left">
|
<view class="photo-left">
|
||||||
<view class="photo-weight">人像面</view>
|
<view class="photo-weight">人像面</view>
|
||||||
<!-- <view class="photo-font">请上传身份证人像面</view> -->
|
<view class="photo-font">请上传身份证人像面</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="position: relative;">
|
<view style="position: relative;">
|
||||||
<image class="photo"
|
<image class="photo"
|
||||||
|
|
@ -56,7 +56,7 @@
|
||||||
<view class="white-photo" style="margin-top: 30rpx;" @click="getMessage(backImge)">
|
<view class="white-photo" style="margin-top: 30rpx;" @click="getMessage(backImge)">
|
||||||
<view class="photo-left">
|
<view class="photo-left">
|
||||||
<view class="photo-weight">国徽面</view>
|
<view class="photo-weight">国徽面</view>
|
||||||
<!-- <view class="photo-font">请上传身份证国徽面</view> -->
|
<view class="photo-font">请上传身份证国徽面</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="position: relative;">
|
<view style="position: relative;">
|
||||||
<image class="photo"
|
<image class="photo"
|
||||||
|
|
@ -201,7 +201,7 @@
|
||||||
const nameArray0 = ["企业名称", "注册地址", "信用代码", "法人"];
|
const nameArray0 = ["企业名称", "注册地址", "信用代码", "法人"];
|
||||||
const textArray0 = reactive(["", "", "", "", "", "", ""]);
|
const textArray0 = reactive(["", "", "", "", "", "", ""]);
|
||||||
|
|
||||||
const nameArray1 = ["机构位置","详细地址","机构负责人", "机构负责人电话", "房屋性质","建筑面积"];
|
const nameArray1 = ["机构位置","详细地址","机构负责人", "负责人电话", "房屋性质","建筑面积"];
|
||||||
const textArray1 = reactive([ "","", "", "", "", ""]);
|
const textArray1 = reactive([ "","", "", "", "", ""]);
|
||||||
|
|
||||||
const backImge = ref("");
|
const backImge = ref("");
|
||||||
|
|
@ -438,7 +438,6 @@
|
||||||
.photo-font {
|
.photo-font {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
margin-top: 10rpx;
|
margin-top: 10rpx;
|
||||||
color: #666;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
<view class="white-photo" @click="selectphoto(0)">
|
<view class="white-photo" @click="selectphoto(0)">
|
||||||
<view class="photo-left">
|
<view class="photo-left">
|
||||||
<view class="photo-weight">人像面</view>
|
<view class="photo-weight">人像面</view>
|
||||||
<!-- <view class="photo-font">请上传身份证人像面</view> -->
|
<view class="photo-font">请上传身份证人像面</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="position: relative;">
|
<view style="position: relative;">
|
||||||
<image class="photo"
|
<image class="photo"
|
||||||
|
|
@ -38,7 +38,7 @@
|
||||||
<view class="white-photo" style="margin-top: 30rpx;" @click="selectphoto(1)">
|
<view class="white-photo" style="margin-top: 30rpx;" @click="selectphoto(1)">
|
||||||
<view class="photo-left">
|
<view class="photo-left">
|
||||||
<view class="photo-weight">国徽面</view>
|
<view class="photo-weight">国徽面</view>
|
||||||
<!-- <view class="photo-font">请上传身份证国徽面</view> -->
|
<view class="photo-font">请上传身份证国徽面</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="position: relative;">
|
<view style="position: relative;">
|
||||||
<!-- <image class="photo"
|
<!-- <image class="photo"
|
||||||
|
|
@ -575,7 +575,6 @@
|
||||||
.photo-font {
|
.photo-font {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
margin-top: 10rpx;
|
margin-top: 10rpx;
|
||||||
color: #666;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
<view class="white-photo" @click="selectphoto()">
|
<view class="white-photo" @click="selectphoto()">
|
||||||
<view class="photo-left">
|
<view class="photo-left">
|
||||||
<view class="photo-weight">人像面</view>
|
<view class="photo-weight">人像面</view>
|
||||||
<!-- <view class="photo-font">请上传身份证人像面</view> -->
|
<view class="photo-font">请上传身份证人像面</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="position: relative;">
|
<view style="position: relative;">
|
||||||
<image class="photo"
|
<image class="photo"
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
<view class="white-photo" @click="selectphoto(2)">
|
<view class="white-photo" @click="selectphoto(2)">
|
||||||
<view class="photo-left">
|
<view class="photo-left">
|
||||||
<view class="photo-weight">人像面</view>
|
<view class="photo-weight">人像面</view>
|
||||||
<!-- <view class="photo-font">请上传身份证人像面</view> -->
|
<view class="photo-font">请上传身份证人像面</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="position: relative;">
|
<view style="position: relative;">
|
||||||
<image class="photo"
|
<image class="photo"
|
||||||
|
|
@ -75,7 +75,7 @@
|
||||||
<view class="white-photo" @click="selectphoto(0)">
|
<view class="white-photo" @click="selectphoto(0)">
|
||||||
<view class="photo-left">
|
<view class="photo-left">
|
||||||
<view class="photo-weight">人像面</view>
|
<view class="photo-weight">人像面</view>
|
||||||
<!-- <view class="photo-font">请上传身份证人像面</view> -->
|
<view class="photo-font">请上传身份证人像面</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="position: relative;">
|
<view style="position: relative;">
|
||||||
<image class="photo"
|
<image class="photo"
|
||||||
|
|
@ -984,7 +984,6 @@
|
||||||
.photo-font {
|
.photo-font {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
margin-top: 10rpx;
|
margin-top: 10rpx;
|
||||||
color: #666;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@
|
||||||
<view style="display: flex;">
|
<view style="display: flex;">
|
||||||
<view class="shu"></view>
|
<view class="shu"></view>
|
||||||
<view class="content-weight" style="margin-top: -2rpx;">个人信息</view>
|
<view class="content-weight" style="margin-top: -2rpx;">个人信息</view>
|
||||||
<view class="small-blue" @click="changeMessage" v-if="alldata.applyStatus&&alldata.applyStatus!=1&&alldata.applyStatus!=4&&code<0">
|
<view class="small-blue" @click="changeMessage" v-if="alldata.applyStatus&&alldata.applyStatus!=1&&alldata.applyStatus!=4&&code==1">
|
||||||
编辑
|
编辑
|
||||||
</view>
|
</view>
|
||||||
<image class="shu-img" v-else
|
<image class="shu-img" v-else
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,12 @@ export function queryEmployeeInfoById(id){
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function queryEmployeeInfoByOrgId(id){
|
||||||
|
return request({
|
||||||
|
url: `/api/employeesAdvisiory/queryEmployeeInfoByOrgId?id=${id}`,
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
//向机构申请
|
//向机构申请
|
||||||
export function Apply(data){
|
export function Apply(data){
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@
|
||||||
src="https://www.focusnu.com/media/directive/index/oldmanphoto/time.png"
|
src="https://www.focusnu.com/media/directive/index/oldmanphoto/time.png"
|
||||||
mode="widthFix" lazy-load="false" />
|
mode="widthFix" lazy-load="false" />
|
||||||
</view>
|
</view>
|
||||||
<view style="display: flex;margin-left: 5rpx;">
|
<view style="display: flex;margin-left: 5rpx;font-size: 24rpx;">
|
||||||
{{ dateText }}
|
{{ dateText }}
|
||||||
<view style="margin-left: 20rpx;">
|
<view style="margin-left: 20rpx;">
|
||||||
{{ weekdayText }}
|
{{ weekdayText }}
|
||||||
|
|
@ -53,7 +53,7 @@
|
||||||
<view style="font-size: 32rpx;font-weight: 600;margin-bottom: 8rpx;">
|
<view style="font-size: 32rpx;font-weight: 600;margin-bottom: 8rpx;">
|
||||||
{{ (item.elderInfo && item.elderInfo.name) }}
|
{{ (item.elderInfo && item.elderInfo.name) }}
|
||||||
</view>
|
</view>
|
||||||
<view style="margin-left: 5rpx;font-size: 20rpx;display: flex;">
|
<view style="margin-left: 5rpx;font-size: 23rpx;display: flex;">
|
||||||
<view>
|
<view>
|
||||||
{{ item.elderInfo?.sex }}
|
{{ item.elderInfo?.sex }}
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -77,14 +77,31 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="right-top-card"
|
<view class="right-top-card"
|
||||||
style="margin-top: 20rpx;padding: 0 30rpx;font-size: 25rpx;">
|
style="margin-top: 20rpx;padding: 0 30rpx;font-size: 25rpx;">
|
||||||
|
<view
|
||||||
|
style="display: flex;flex-direction: column;width: 50%;padding-left: 15rpx;">
|
||||||
|
<!-- <image style="width: 45rpx;height: 45rpx;margin-bottom: 5rpx;"
|
||||||
|
src="https://www.focusnu.com/media/directive/index/oldmanphoto/wen.png"
|
||||||
|
mode="widthFix" lazy-load="false" /> -->
|
||||||
|
<image style="width: 45rpx;height: 45rpx;margin-bottom: 5rpx;"
|
||||||
|
src="https://www.focusnu.com/media/directive/index/oldmanmenu/wendu.png"
|
||||||
|
mode="widthFix" lazy-load="false" />
|
||||||
|
|
||||||
|
<view style="display: flex;">
|
||||||
|
<view style="font-size: 25rpx;margin-right: 15rpx;">
|
||||||
|
温度
|
||||||
|
</view>
|
||||||
|
<view style="font-size: 25rpx;">
|
||||||
|
{{ (item.humidDeviceList && item.humidDeviceList[0] && item.humidDeviceList[0].temperature !== undefined && item.humidDeviceList[0].temperature !== null) ? item.humidDeviceList[0].temperature : '—' }}℃
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view
|
<view
|
||||||
style="display: flex;flex-direction: column;width: 50%;padding-left: 15rpx;">
|
style="display: flex;flex-direction: column;width: 50%;padding-left: 15rpx;">
|
||||||
<image style="width: 45rpx;height: 45rpx;margin-bottom: 5rpx;"
|
<image style="width: 45rpx;height: 45rpx;margin-bottom: 5rpx;"
|
||||||
src="https://www.focusnu.com/media/directive/index/oldmanphoto/shi.png"
|
src="https://www.focusnu.com/media/directive/index/oldmanphoto/shi.png"
|
||||||
mode="widthFix" lazy-load="false" />
|
mode="widthFix" lazy-load="false" />
|
||||||
<view style="display: flex;">
|
<view style="display: flex;">
|
||||||
<view style="font-size: 23rpx;margin-right: 15rpx;">
|
<view style="font-size: 25rpx;margin-right: 15rpx;">
|
||||||
湿度
|
湿度
|
||||||
</view>
|
</view>
|
||||||
<view style="font-size: 25rpx;">
|
<view style="font-size: 25rpx;">
|
||||||
|
|
@ -94,20 +111,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view
|
|
||||||
style="display: flex;flex-direction: column;width: 50%;padding-left: 15rpx;">
|
|
||||||
<image style="width: 45rpx;height: 45rpx;margin-bottom: 5rpx;"
|
|
||||||
src="https://www.focusnu.com/media/directive/index/oldmanphoto/wen.png"
|
|
||||||
mode="widthFix" lazy-load="false" />
|
|
||||||
<view style="display: flex;">
|
|
||||||
<view style="font-size: 23rpx;margin-right: 15rpx;">
|
|
||||||
温度
|
|
||||||
</view>
|
|
||||||
<view style="font-size: 25rpx;">
|
|
||||||
{{ (item.humidDeviceList && item.humidDeviceList[0] && item.humidDeviceList[0].temperature !== undefined && item.humidDeviceList[0].temperature !== null) ? item.humidDeviceList[0].temperature : '—' }}℃
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -525,39 +529,10 @@
|
||||||
url: `/pages/addjigou/name`
|
url: `/pages/addjigou/name`
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// const jumpToAll = (element) => {
|
|
||||||
// console.log("????",element.applyStatus)
|
|
||||||
// uni.getStorage({
|
|
||||||
// key: 'openid',
|
|
||||||
// success: function(res) {
|
|
||||||
// getMessageList(res.data).then(res => {
|
|
||||||
// if (res.success) {
|
|
||||||
// uni.navigateTo({
|
|
||||||
// url: `/pages/addstaff/all?element=${JSON.stringify(res.result[0])}&applyStatus=${element.applyStatus}`
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
const look = (element) => {
|
const look = (element) => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/yuangongindex/workjoin`
|
url: `/pages/yuangongindex/workjoin`
|
||||||
});
|
});
|
||||||
// uni.getStorage({
|
|
||||||
// key: 'openid',
|
|
||||||
// success: function(res) {
|
|
||||||
// getMessageList(res.data).then(res => {
|
|
||||||
// if (res.success) {
|
|
||||||
// uni.navigateTo({
|
|
||||||
// url: `/pages/addstaff/all?element=${JSON.stringify(res.result[0])}&applyStatus=${element.applyStatus}`
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const jumptolist = (res) => {
|
const jumptolist = (res) => {
|
||||||
|
|
@ -1228,7 +1203,7 @@
|
||||||
.left-card-view {
|
.left-card-view {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
margin-top: 10rpx;
|
margin-top: 10rpx;
|
||||||
color: black;
|
color: black;
|
||||||
.left-card-imge{
|
.left-card-imge{
|
||||||
|
|
|
||||||
|
|
@ -81,35 +81,7 @@
|
||||||
<view style="margin-top: 20rpx;color: #999999;font-size: 30rpx;">
|
<view style="margin-top: 20rpx;color: #999999;font-size: 30rpx;">
|
||||||
{{ item.departName }}
|
{{ item.departName }}
|
||||||
</view>
|
</view>
|
||||||
<!-- <image style="height: 90rpx;width: 90rpx;"
|
|
||||||
src="https://www.focusnu.com/media/directive/index/touxiang.png" />
|
|
||||||
<view class="">
|
|
||||||
<view style="display: flex;margin-left: 20rpx;align-items: center;">
|
|
||||||
<view style="color: black;font-size: 32rpx;">
|
|
||||||
{{ item.name }}
|
|
||||||
</view>
|
|
||||||
<view style="margin-left: 20rpx;">
|
|
||||||
{{ item.sex }}
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view style="display: flex;margin-left: 20rpx;align-items: center;margin-top: 10rpx;">
|
|
||||||
<view style="color: black;font-size: 28rpx;">
|
|
||||||
NUID
|
|
||||||
</view>
|
|
||||||
<view style="margin-left: 10rpx;">
|
|
||||||
{{ item.nuId }}
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view style="position: absolute;right: 20rpx;top: 60rpx;display: flex;align-items: center;">
|
|
||||||
<image style="height: 30rpx;width: 30rpx;"
|
|
||||||
src="https://www.focusnu.com/media/directive/index/infotime.png" />
|
|
||||||
<view style="margin-left: 20rpx;">
|
|
||||||
{{ item.createTime.slice(0, 10) }}
|
|
||||||
</view>
|
|
||||||
<image style="height: 30rpx;width: 30rpx;margin-left: 10rpx;"
|
|
||||||
src="https://www.focusnu.com/media/directive/index/more.png" />
|
|
||||||
</view> -->
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -171,62 +143,7 @@
|
||||||
const goBack = () => {
|
const goBack = () => {
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
}
|
}
|
||||||
// const changeoldman = (item) => {
|
|
||||||
// console.log("????",item)
|
|
||||||
// uni.setStorageSync("baddata", item)
|
|
||||||
// uni.setStorageSync('specicalid', item.id);
|
|
||||||
// uni.setStorageSync("backhuancun", {})
|
|
||||||
// let data = {
|
|
||||||
// nuId : item.nuId,
|
|
||||||
// orgCode : item.orgCode
|
|
||||||
// }
|
|
||||||
// uni.setStorageSync('oldman', data);
|
|
||||||
// uni.navigateTo({
|
|
||||||
// url: "/pages/addoldman/oldIDcard"
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
// const again = (item) => {
|
|
||||||
// uni.navigateTo({
|
|
||||||
// url: "/pages/yuangongindex/searchjigou"
|
|
||||||
// })
|
|
||||||
// // uni.getStorage({
|
|
||||||
// // key: 'openid',
|
|
||||||
// // success: function(res) {
|
|
||||||
// // getMessageList(res.data).then(res => {
|
|
||||||
// // if (res.success) {
|
|
||||||
// // uni.setStorageSync("baddata", res.result[0])
|
|
||||||
// // uni.setStorageSync('specicalid', res.result[0].id);
|
|
||||||
// // uni.setStorageSync("backhuancun", {})
|
|
||||||
// // uni.navigateTo({
|
|
||||||
// // url: `/pages/addstaff/information`
|
|
||||||
// // });
|
|
||||||
// // }
|
|
||||||
|
|
||||||
// // })
|
|
||||||
// // }
|
|
||||||
// // });
|
|
||||||
|
|
||||||
// }
|
|
||||||
|
|
||||||
// const jumpToAll = (element) => {
|
|
||||||
// console.log("????", element.applyStatus)
|
|
||||||
// // uni.getStorage({
|
|
||||||
// // key: 'openid',
|
|
||||||
// // success: function(res) {
|
|
||||||
// // getMessageList(res.data).then(res => {
|
|
||||||
// // if (res.success) {
|
|
||||||
// // uni.navigateTo({
|
|
||||||
// // url: `/pages/addstaff/all?element=${JSON.stringify(res.result[0])}&applyStatus=${element.applyStatus}`
|
|
||||||
// // });
|
|
||||||
// // }
|
|
||||||
|
|
||||||
// // })
|
|
||||||
// // }
|
|
||||||
// // });
|
|
||||||
// // uni.navigateTo({
|
|
||||||
// // url: `/pages/yuangongindex/company?element=${JSON.stringify(element)}`
|
|
||||||
// // });
|
|
||||||
// }
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
|
||||||
|
|
@ -157,14 +157,14 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="right-button">
|
<view class="right-button">
|
||||||
<view class="right-button-one" @click="clickButton(item,1)">
|
<view class="right-button-one" @click="clickButton(item,0)">
|
||||||
<image class="right-button-img"
|
<image class="right-button-img"
|
||||||
:src="`https://www.focusnu.com/media/directive/index/addstaff/jineng.png`" />
|
:src="`https://www.focusnu.com/media/directive/index/addstaff/jineng.png`" />
|
||||||
<view class="">
|
<view class="">
|
||||||
员工信息
|
员工信息
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="right-button-one" @click="clickButton(item,-1)">
|
<view class="right-button-one" @click="clickButton(item,1)">
|
||||||
<image class="right-button-img"
|
<image class="right-button-img"
|
||||||
:src="`https://www.focusnu.com/media/directive/index/addstaff/yuangong.png`" />
|
:src="`https://www.focusnu.com/media/directive/index/addstaff/yuangong.png`" />
|
||||||
<view class="">
|
<view class="">
|
||||||
|
|
@ -262,6 +262,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
|
<exit :show="exitshow" @close="go(0)" :cont="conts" @go="go(1)"/>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -290,8 +291,9 @@
|
||||||
import request from '@/request/index.js'
|
import request from '@/request/index.js'
|
||||||
import downMenu from '@/compontent/public/yuangongdownmenu.vue'
|
import downMenu from '@/compontent/public/yuangongdownmenu.vue'
|
||||||
import model from "@/compontent/public/model.vue"
|
import model from "@/compontent/public/model.vue"
|
||||||
|
import exit from "@/compontent/public/exit.vue"
|
||||||
const show = ref(false);
|
const show = ref(false);
|
||||||
|
const exitshow = ref(false);
|
||||||
|
|
||||||
const content = ref("");
|
const content = ref("");
|
||||||
|
|
||||||
|
|
@ -363,7 +365,7 @@
|
||||||
uni.setStorageSync("changeyuangongorgCode", item.orgCode)
|
uni.setStorageSync("changeyuangongorgCode", item.orgCode)
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/addstaff/all?element=${JSON.stringify(res.result[0])}&auditContent=${item.auditContent}`
|
url: `/pages/addstaff/all?element=${JSON.stringify(res.result[0])}&auditContent=${item.auditContent}&code=1`
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
@ -494,32 +496,35 @@
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const hong = ref(0);
|
const hong = ref(0);
|
||||||
const changeStatus = (item, status) => {
|
const go = (e) =>{
|
||||||
uni.showModal({
|
if(e==1){
|
||||||
title: '提示',
|
|
||||||
content: status?'是否接受邀请':'是否拒绝邀请',
|
|
||||||
success: function (res) {
|
|
||||||
if (res.confirm) {
|
|
||||||
let data = {
|
let data = {
|
||||||
employeeId: item.employeesId,
|
employeeId: orgCodes.value.employeesId,
|
||||||
status: status ? 2 : 3,
|
status: conts.value == '是否接受邀请' ? 2 : 3,
|
||||||
orgCode: item.orgCode
|
orgCode: orgCodes.value.orgCode
|
||||||
}
|
}
|
||||||
invitedConfirm(data).then(res => {
|
invitedConfirm(data).then(res => {
|
||||||
|
exitshow.value = false;
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
loadingData()
|
loadingData()
|
||||||
|
}else{
|
||||||
|
uni.showToast({
|
||||||
|
icon:'none',
|
||||||
|
title:res.message
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
exitshow.value = false;
|
||||||
} else if (res.cancel) {
|
|
||||||
console.log('用户点击取消');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
const conts = ref('')
|
||||||
|
const orgCodes = ref({})
|
||||||
|
const changeStatus = (item, status) => {
|
||||||
|
conts.value = status?'是否接受邀请':'是否拒绝邀请';
|
||||||
|
orgCodes.value = item;
|
||||||
|
exitshow.value = true;
|
||||||
}
|
}
|
||||||
const clickButton = (item, index) => {
|
const clickButton = (item, index) => {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,8 @@
|
||||||
getEmployeesOrgRela,
|
getEmployeesOrgRela,
|
||||||
} from './api.js'
|
} from './api.js'
|
||||||
import {
|
import {
|
||||||
queryEmployeeInfoById
|
queryEmployeeInfoById,
|
||||||
|
queryEmployeeInfoByOrgId
|
||||||
} from '@/pages/addstaff/api/addjigou.js'
|
} from '@/pages/addstaff/api/addjigou.js'
|
||||||
import model from "@/compontent/public/model.vue"
|
import model from "@/compontent/public/model.vue"
|
||||||
|
|
||||||
|
|
@ -182,9 +183,9 @@
|
||||||
|
|
||||||
const jumpToAll = (element) => {
|
const jumpToAll = (element) => {
|
||||||
|
|
||||||
queryEmployeeInfoById(element.id).then(res => {
|
queryEmployeeInfoByOrgId(element.id).then(res => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/addstaff/all?element=${JSON.stringify(res.result)}&applyStatus=${element.applyStatus}&code=1`
|
url: `/pages/addstaff/all?element=${JSON.stringify(res.result)}&applyStatus=${element.applyStatus}&code=0`
|
||||||
});
|
});
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue