Merge branch 'main' of http://git.excellentkk.cn/mkm/OfficeApp
This commit is contained in:
commit
44d04c8a9f
@ -500,7 +500,8 @@
|
|||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
line-height: 30rpx;
|
line-height: 30rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
// justify-content: space-between;
|
justify-content: left;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cards_content {
|
.cards_content {
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<button @click.stop="click"
|
<button @click.stop="click"
|
||||||
:class="{'my_btn_new_btn': position, 'my_btn_no_positon': !position, 'my_btn_disabled': my_btn_disabled}">{{text}}</button>
|
class="button"
|
||||||
|
:class="{'my_btn_new_btn': position, 'my_btn_no_positon': !position, 'my_btn_disabled': my_btn_disabled}">
|
||||||
|
<slot></slot>
|
||||||
|
{{text}}
|
||||||
|
</button>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -35,6 +39,11 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.button{
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
.my_btn_new_btn {
|
.my_btn_new_btn {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
@ -282,7 +282,7 @@
|
|||||||
"path": "personnelDetails/personnelDetails",
|
"path": "personnelDetails/personnelDetails",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "人员详细信息",
|
"navigationBarTitleText": "人员详细信息",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarBackgroundColor": "#0122C7",
|
"navigationBarBackgroundColor": "#0122C7",
|
||||||
"navigationBarTextStyle": "white"
|
"navigationBarTextStyle": "white"
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 占位 -->
|
<!-- 占位 -->
|
||||||
<view style="height: 130rpx"></view>
|
<view style="height: 150rpx"></view>
|
||||||
<!-- 任务状态 -->
|
<!-- 任务状态 -->
|
||||||
<!-- <view class="task_panel">
|
<!-- <view class="task_panel">
|
||||||
<block v-for="(item,index) in assessData" :key="index">
|
<block v-for="(item,index) in assessData" :key="index">
|
||||||
|
@ -90,11 +90,13 @@
|
|||||||
|
|
||||||
<u-loadmore :status="loadConfig.status" :loading-text="loadConfig.loadingText"
|
<u-loadmore :status="loadConfig.status" :loading-text="loadConfig.loadingText"
|
||||||
:loadmore-text="loadConfig.loadmoreText" :nomore-text="loadConfig.nomoreText" />
|
:loadmore-text="loadConfig.loadmoreText" :nomore-text="loadConfig.nomoreText" />
|
||||||
<!-- <mybtn text="新建签约" @click="navTo('/subpkg/companyUnsign/companyUnsign')"></mybtn> -->
|
<mybtn text="新建签约" @click="navTo('/subpkg/companyUnsign/companyUnsign')">
|
||||||
<u-button class="btns" @click="navTo('/subpkg/companyUnsign/companyUnsign')">
|
<u-icon name="plus" color="white" size="18" style="margin-right: 10rpx;"></u-icon>
|
||||||
|
</mybtn>
|
||||||
|
<!-- <u-button class="btns" @click="navTo('/subpkg/companyUnsign/companyUnsign')">
|
||||||
<u-icon name="plus" color="white" size="18" style="margin-right: 10rpx;"></u-icon>
|
<u-icon name="plus" color="white" size="18" style="margin-right: 10rpx;"></u-icon>
|
||||||
新建签约
|
新建签约
|
||||||
</u-button>
|
</u-button> -->
|
||||||
<!-- <u-button class="btns" type="primary" icon="plus" text="新建签约"></u-button> -->
|
<!-- <u-button class="btns" type="primary" icon="plus" text="新建签约"></u-button> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="company_info" v-show="current==2">
|
<view class="company_info" v-show="current==2">
|
||||||
|
@ -266,7 +266,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<u-line color="#999999FF" style="margin: 31rpx 0"></u-line>
|
<u-line color="#999999FF" style="margin: 31rpx 0"></u-line>
|
||||||
<view class="bottom">
|
<view class="bottom">
|
||||||
<button class="send_btn" @click="addContract" v-if="timerCount == 0">
|
<button class="send_btn" @click="clickContract(2)" v-if="timerCount == 0">
|
||||||
发送合同
|
发送合同
|
||||||
</button>
|
</button>
|
||||||
<button class="send_btn tips_center" v-else>
|
<button class="send_btn tips_center" v-else>
|
||||||
@ -311,6 +311,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
|
<u-modal :show="modelShow" title="提醒" :content="modelType==1?'请检查信息无误后再生成合同':'请检查合同无误后再发送'" closeOnClickOverlay showCancelButton cancel-text="我再看看" confirm-text="确认无误" close="modelShow=false" @cancel="modelShow=false" @confirm="modelType==1?createContract():addContract();modelShow=false"></u-modal>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -357,7 +358,10 @@
|
|||||||
contract: {},
|
contract: {},
|
||||||
roles: {}
|
roles: {}
|
||||||
},
|
},
|
||||||
contractTypeList: []
|
contractTypeList: [],
|
||||||
|
modelShow: false,
|
||||||
|
modelType: 1,
|
||||||
|
nowContractType: -1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
@ -377,6 +381,11 @@
|
|||||||
return this.timerCount;
|
return this.timerCount;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onPullDownRefresh(){
|
||||||
|
this.loadUserDetail().then(()=>{
|
||||||
|
uni.stopPullDownRefresh()
|
||||||
|
});
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 查看合同
|
// 查看合同
|
||||||
naviToContract(contract_no) {
|
naviToContract(contract_no) {
|
||||||
@ -421,12 +430,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
changeType(e) {
|
changeType(e) {
|
||||||
// console.log(this.contractTypeList[e.detail.value]);
|
// console.log(this.contractTypeList[]);
|
||||||
this.createContract({
|
this.nowContractType = e.detail.value;
|
||||||
party_b: this.userInfo.id,
|
this.clickContract(1);
|
||||||
contract_type: this.contractTypeList[e.detail.value].id,
|
// this.createContract({
|
||||||
type: 2 //1-公司,2-个人
|
// party_b: this.userInfo.id,
|
||||||
})
|
// contract_type: this.contractTypeList[e.detail.value].id,
|
||||||
|
// type: 2 //1-公司,2-个人
|
||||||
|
// })
|
||||||
},
|
},
|
||||||
// 初始化合同类型
|
// 初始化合同类型
|
||||||
async initContractTypeList() {
|
async initContractTypeList() {
|
||||||
@ -438,61 +449,67 @@
|
|||||||
})
|
})
|
||||||
this.contractTypeList = res.data;
|
this.contractTypeList = res.data;
|
||||||
},
|
},
|
||||||
|
clickContract(e){
|
||||||
|
this.modelType = e;
|
||||||
|
this.modelShow = true;
|
||||||
|
},
|
||||||
// 生成合同
|
// 生成合同
|
||||||
createContract(data) {
|
async createContract() {
|
||||||
uni.showModal({
|
uni.showLoading({
|
||||||
content: '请检查信息无误后再生成合同',
|
title: '合同生成中',
|
||||||
confirmText: '确认无误',
|
mask: true
|
||||||
cancelText: '我再看看',
|
})
|
||||||
confirmColor: '#3175f9',
|
let res = await userInitiateContract({
|
||||||
success: async (e) => {
|
party_b: this.userInfo.id,
|
||||||
if (e.confirm) {
|
contract_type: this.contractTypeList[this.nowContractType].id,
|
||||||
uni.showLoading({
|
type: 2
|
||||||
title: '合同生成中',
|
})
|
||||||
mask: true
|
this.loadUserDetail();
|
||||||
})
|
uni.hideLoading();
|
||||||
let res = await userInitiateContract({
|
Toast('合同已生成');
|
||||||
party_b: data.party_b,
|
this.navTo('/subpkg/submit/submit?type=' + 1);
|
||||||
contract_type: data.contract_type,
|
// uni.showModal({
|
||||||
type: data.type
|
// content: '请检查信息无误后再生成合同',
|
||||||
})
|
// confirmText: '确认无误',
|
||||||
this.loadUserDetail();
|
// cancelText: '我再看看',
|
||||||
uni.hideLoading();
|
// confirmColor: '#3175f9',
|
||||||
Toast('合同已生成');
|
// success: async (e) => {
|
||||||
this.navTo('/subpkg/submit/submit?type=' + 1);
|
// if (e.confirm) {
|
||||||
}
|
|
||||||
}
|
// }
|
||||||
})
|
// }
|
||||||
|
// })
|
||||||
},
|
},
|
||||||
// 发送合同
|
// 发送合同
|
||||||
async addContract(data) {
|
async addContract() {
|
||||||
uni.showModal({
|
try {
|
||||||
content: '请检查合同无误后再发送',
|
uni.showLoading({
|
||||||
confirmText: '确认无误',
|
title: '合同发送中',
|
||||||
cancelText: '我再看看',
|
mask: true
|
||||||
confirmColor: '#3175f9',
|
})
|
||||||
success: async (e) => {
|
let res = await userDraftingcontracts({
|
||||||
if (e.confirm) {
|
id: this.userInfo.id
|
||||||
try {
|
});
|
||||||
uni.showLoading({
|
this.loadUserDetail();
|
||||||
title: '合同发送中',
|
this.startTimer();
|
||||||
mask: true
|
uni.hideLoading();
|
||||||
})
|
Toast('合同已发送');
|
||||||
let res = await userDraftingcontracts({
|
// this.navTo('/subpkg/submit/submit?type='+2);
|
||||||
id: this.userInfo.id
|
} catch (e) {
|
||||||
});
|
uni.hideLoading();
|
||||||
this.loadUserDetail();
|
Toast(e.msg || '合同发送失败');
|
||||||
this.startTimer();
|
}
|
||||||
uni.hideLoading();
|
// uni.showModal({
|
||||||
Toast('合同已发送');
|
// content: '请检查合同无误后再发送',
|
||||||
// this.navTo('/subpkg/submit/submit?type='+2);
|
// confirmText: '确认无误',
|
||||||
} catch (e) {
|
// cancelText: '我再看看',
|
||||||
uni.hideLoading();
|
// confirmColor: '#3175f9',
|
||||||
Toast(e.msg || '合同发送失败');
|
// success: async (e) => {
|
||||||
}
|
// if (e.confirm) {
|
||||||
}
|
|
||||||
}
|
// }
|
||||||
})
|
// }
|
||||||
|
// })
|
||||||
},
|
},
|
||||||
// 发送短信
|
// 发送短信
|
||||||
async getPostsms() {
|
async getPostsms() {
|
||||||
@ -526,14 +543,13 @@
|
|||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
},
|
},
|
||||||
loadUserDetail() {
|
async loadUserDetail() {
|
||||||
if (!this.id) return;
|
if (!this.id) return;
|
||||||
companyUserDetail({
|
let res = await companyUserDetail({
|
||||||
id: this.id
|
id: this.id
|
||||||
}).then(res => {
|
|
||||||
this.userInfo = res.data;
|
|
||||||
this.skeleton = false;
|
|
||||||
})
|
})
|
||||||
|
this.userInfo = res.data;
|
||||||
|
this.skeleton = false;
|
||||||
},
|
},
|
||||||
previewImg(urls, index = 0) {
|
previewImg(urls, index = 0) {
|
||||||
uni.previewImage({
|
uni.previewImage({
|
||||||
@ -541,9 +557,6 @@
|
|||||||
current: index
|
current: index
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
|
||||||
onPullDownRefresh() {
|
|
||||||
uni.stopPullDownRefresh()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user