diff --git a/components/base/kefu.vue b/components/base/kefu.vue new file mode 100644 index 0000000..2b026b3 --- /dev/null +++ b/components/base/kefu.vue @@ -0,0 +1,85 @@ + + + + + diff --git a/components/list/workList/workItem.vue b/components/list/workList/workItem.vue index fff3312..ff2c61e 100644 --- a/components/list/workList/workItem.vue +++ b/components/list/workList/workItem.vue @@ -1,6 +1,7 @@ diff --git a/pages_order/auth/certification.vue b/pages_order/auth/certification.vue index 99e5270..8e9c180 100644 --- a/pages_order/auth/certification.vue +++ b/pages_order/auth/certification.vue @@ -59,6 +59,7 @@ width="690rpx" height="280rpx" multiple + name="fileList" @afterRead="afterRead" @delete="deleteImage"> @@ -77,6 +78,25 @@ (确保文字清晰、可辨、避免遮挡、不全、反光) + + + + 授权书(选填) + + + + + + + @@ -126,6 +146,7 @@ checkboxValue : [], form : {}, fileList: [], + authFileList : [], sub:0 } }, @@ -147,18 +168,23 @@ url } }) : [] + + this.authFileList = this.form.authorizationBook ? this.form.authorizationBook.split(',').map(url => { + return { + url + } + }) : [] } }) }, deleteImage(e){ - this.fileList.splice(e.index, 1) + this[e.name].splice(e.index, 1) }, afterRead(e){ let self = this e.file.forEach(file => { self.$Oss.ossUpload(file.url).then(url => { - console.log(url); - self.fileList.push({ + self[e.name].push({ url }) }) @@ -177,7 +203,7 @@ name:'请输入姓名', cerNo:'请输入身份证号码', phone:'请输入电话号码', - image:'身份证照片不能为空', + // image:'身份证照片不能为空', })) { return } diff --git a/pages_order/auth/certificationEnterprise.vue b/pages_order/auth/certificationEnterprise.vue index 6b5e84d..f3a7b45 100644 --- a/pages_order/auth/certificationEnterprise.vue +++ b/pages_order/auth/certificationEnterprise.vue @@ -79,6 +79,7 @@ width="690rpx" height="280rpx" multiple + name="fileList" @afterRead="afterRead" @delete="deleteImage"> @@ -97,6 +98,25 @@ (确保文字清晰、可辨、避免遮挡、不全、反光) + + + + 授权书(选填) + + + + + + + @@ -151,6 +171,7 @@ }, fileList: [], status : 0, + authFileList : [], } }, onLoad() { @@ -172,17 +193,23 @@ url } }) : [] + + this.authFileList = this.form.authorizationBook ? this.form.authorizationBook.split(',').map(url => { + return { + url + } + }) : [] } }) }, deleteImage(e){ - this.fileList.splice(e.index, 1) + this[e.name].splice(e.index, 1) }, afterRead(e){ let self = this e.file.forEach(file => { self.$Oss.ossUpload(file.url).then(url => { - self.fileList.push({ + self[e.name].push({ url }) }) diff --git a/pages_order/contract/contract.vue b/pages_order/contract/contract.vue index 9d5caf0..10ba91c 100644 --- a/pages_order/contract/contract.vue +++ b/pages_order/contract/contract.vue @@ -44,7 +44,7 @@ - + 签署 @@ -83,23 +83,54 @@ }, onLoad() { this.queryParams.role = this.role ? 1 : 0 - this.queryParams.status = 0 }, methods: { clickTabs({index}) { this.type = index - this.queryParams.status = index this.getData() }, showPDF(item){ - uni.downloadFile({ - url : item.contract, - success : res => { - uni.openDocument({ - filePath: res.tempFilePath, - }) - } - }) + + // this.$utils. + // navigateTo('/pages_order/contract/contractDetail?id=' + // + item.id) + + // 只能查看内容的时候 + if(this.role && item.bossStatus != 0 || + item.employeeStatus != 0 && !this.role + ){ + uni.downloadFile({ + url : item.contract, + success : res => { + uni.openDocument({ + filePath: res.tempFilePath, + }) + } + }) + return + } + + uni.showModal({ + title: '您希望的操作是?!', + cancelText: '签署合同', + confirmText: '查看内容', + success : e => { + if(e.confirm){ + uni.downloadFile({ + url : item.contract, + success : res => { + uni.openDocument({ + filePath: res.tempFilePath, + }) + } + }) + }else{ + this.$utils. + navigateTo('/pages_order/contract/electronicSignature?id=' + + item.id) + } + } + }) }, } } @@ -184,4 +215,3 @@ } } - diff --git a/pages_order/work/jobPosting.vue b/pages_order/work/jobPosting.vue index c547f03..9a3348b 100644 --- a/pages_order/work/jobPosting.vue +++ b/pages_order/work/jobPosting.vue @@ -57,6 +57,14 @@ isLink > + +