diff --git a/pages.json b/pages.json index 750c200..c51cf2b 100644 --- a/pages.json +++ b/pages.json @@ -329,7 +329,7 @@ { //人员库-详情 "path": "pages/realName/workbench/peopleLibrary/detail", - "style": { + "style": { "navigationStyle": "custom" } },{ @@ -347,6 +347,13 @@ "navigationStyle": "custom" } }, + { + //合同见证-pdf + "path": "pages/realName/workbench/contractWitness/contractPdf", + "style": { + "navigationStyle": "custom" + } + }, //工资卡见证 { //工资卡见证-首页 @@ -371,6 +378,13 @@ } }, //电子合同 + { + //电子合同-提醒 + "path": "pages/realName/workbench/electronicContract/contractTip", + "style": { + "navigationStyle": "custom" + } + }, { //电子合同-视频 "path": "pages/realName/workbench/electronicContract/contractVideo", diff --git a/pages/realName/index/pages/personList.vue b/pages/realName/index/pages/personList.vue index 213faef..7731391 100644 --- a/pages/realName/index/pages/personList.vue +++ b/pages/realName/index/pages/personList.vue @@ -510,6 +510,8 @@ export default { this.queryParams.params.workerType = '' this.activeIndex4 = 0 this.queryParams.params.ageType = '' + this.queryParams.params.startAge = '0' + this.queryParams.params.endAge = '99' this.activeIndex5 = 0 this.queryParams.params.sex = '' this.activeIndex6 = 0 diff --git a/pages/realName/index/pages/teamList.vue b/pages/realName/index/pages/teamList.vue index 55d57c4..3397b1c 100644 --- a/pages/realName/index/pages/teamList.vue +++ b/pages/realName/index/pages/teamList.vue @@ -54,7 +54,7 @@ 临时 {{item.temporaryPersonNum}} - + 今日考勤 {{item.attPersonNum}} @@ -274,6 +274,9 @@ export default { goTempPersonListPage(row) { uni.navigateTo({ url: `/pages/realName/index/pages/personList?teamId=${row.teamId}&workerType=0` }) }, + goAttPersonListPage(row) { + uni.navigateTo({ url: `/pages/realName/index/pages/personList?teamId=${row.teamId}&isAtt=0` }) + }, /* 点击跳转人员-灯 */ goLightPersonListPage(row,type) {//绿2 黄1 红0 uni.navigateTo({ url: `/pages/realName/index/pages/personList?teamId=${row.teamId}&lightStatus=${type}` }) diff --git a/pages/realName/workbench/contractWitness/contractPdf.vue b/pages/realName/workbench/contractWitness/contractPdf.vue new file mode 100644 index 0000000..8948b8e --- /dev/null +++ b/pages/realName/workbench/contractWitness/contractPdf.vue @@ -0,0 +1,85 @@ + + + + + diff --git a/pages/realName/workbench/contractWitness/index.vue b/pages/realName/workbench/contractWitness/index.vue index c71de30..6929b0f 100644 --- a/pages/realName/workbench/contractWitness/index.vue +++ b/pages/realName/workbench/contractWitness/index.vue @@ -13,9 +13,12 @@ - + + + + @@ -52,9 +55,9 @@ 合同期限类型 - - - + + + @@ -165,7 +168,13 @@ - + + + + + + + @@ -179,7 +188,9 @@ export default { data() { return { showPopup:false, + showImgPopup:false, imgUrl:'', + pdfUrl:'', faceData:{}, proName:"xxx工程", proId:uni.getStorageSync('realNameUser').proId, @@ -317,6 +328,9 @@ export default { }, open(){this.showPopup=true;}, close(){this.showPopup=false;}, + openImg(){this.showImgPopup=true;}, + closeImg(){this.showImgPopup=false;}, + // 拍照录入 openPhotograph() { this.showPopup = false @@ -374,7 +388,8 @@ export default { console.log(e) console.log(e.data[0].tempFilePath) if(e.type=="choose"){ - uni.uploadFile({ + if(e.data[0].type.split("/")[1]=="pdf"){ + uni.uploadFile({ url: config.realFileUrl+`file/upload`, //服务器地址 // fileType:"image",//ZFB必填,不然报错 filePath: e.data[0].tempFilePath,//这个就是我们上面拍照返回或者先中照片返回的数组 @@ -386,13 +401,17 @@ export default { console.log(uploadFileRes); if(uploadFileRes.statusCode==200){ this.entryContractBean.witnessPath=JSON.parse(uploadFileRes.data).data.url; - this.imgUrl="../../../../static/realName/pdf.png" + this.pdfUrl = e.data[0].tempFilePath uni.$u.toast('上传成功'); }else{ uni.$u.toast('上传失败'); } } }); + }else{ + uni.$u.toast('只能上传Pdf文件!'); + } + } // e.type: ['choose', 'success', 'warning'] // choose 是options没有传入url,返回临时链接时触发 @@ -400,13 +419,15 @@ export default { // warning 上传或者选择文件失败触发 // ...... }, - chooseFiles(){ this.showPopup = false this.$refs.XeUpload.upload('file', {}); - // chooseFile((path)=>{ - // console.log('111111111',path); - + }, + openPdf(){ + console.log("pdf") + uni.navigateTo({ + url: `/pages/realName/workbench/contractWitness/contractPdf?pdfUrl=${this.pdfUrl}` + }) }, sumbit(){ this.entryContractBean.id=this.uuid() diff --git a/pages/realName/workbench/electronicContract/contractTip.vue b/pages/realName/workbench/electronicContract/contractTip.vue new file mode 100644 index 0000000..ad5c15f --- /dev/null +++ b/pages/realName/workbench/electronicContract/contractTip.vue @@ -0,0 +1,163 @@ + + + + + diff --git a/pages/realName/workbench/electronicContract/contractVideo.vue b/pages/realName/workbench/electronicContract/contractVideo.vue index e01b210..1910dc7 100644 --- a/pages/realName/workbench/electronicContract/contractVideo.vue +++ b/pages/realName/workbench/electronicContract/contractVideo.vue @@ -21,9 +21,9 @@ - - 电子合同 - + + 电子合同 + 电子劳动合同是指用人单位与劳动者按照《中华人民共和国劳动合同法》《中华人民共和国民法典》《中华人民共和国电子签名法》等法律法规规定,经协商一致,以可视为书面形式的数据电文为载体,使用可靠的电子签名订立的劳动合同。 @@ -37,7 +37,7 @@ 注:可按上班满5天,允许补卡一天的原则进行调整。 - 确 认 + 确认({{timeNum}}) @@ -52,6 +52,8 @@ import config from '@/config'; export default { data() { return { + timme:null, + timeNum:15, videoSrc:"", videoUrl:"", autoPlay:false, @@ -60,11 +62,23 @@ export default { }, onLoad() { console.log('?? ~ mounted ~ mounted-index:') - this.showPopup=true; + this.chooseVideo() + // this.Time();//定时器 + // this.showPopup=true; }, onShow() { }, methods: { + // 定时器 + Time() { + this.timme = setInterval(() => { + if(this.timeNum>0){ + this.timeNum=this.timeNum-1 + }else{ + clearInterval(this.timme); + } + }, 1000); + }, chooseVideo(){ uni.chooseVideo({ count: 1, @@ -115,6 +129,9 @@ export default { }); } }, + destroyed() { + clearInterval(this.timme); + } } @@ -167,8 +184,9 @@ export default { background-color: #fff; } .popup-content{ - width: 100%; - height: 50vh; + width: 94%; + margin: 0 auto; + height: 70vh; background-color: #fff; } .popup-submit-box { diff --git a/pages/realName/workbench/index.vue b/pages/realName/workbench/index.vue index b2137d7..647f8b9 100644 --- a/pages/realName/workbench/index.vue +++ b/pages/realName/workbench/index.vue @@ -128,7 +128,7 @@ }) }else if(name=='电子合同'){ uni.navigateTo({ - url: `/pages/realName/workbench/electronicContract/contractVideo` + url: `/pages/realName/workbench/electronicContract/contractTip` }) }else if(name=='电子合同签署'){ uni.navigateTo({ diff --git a/pages/realName/workbench/wageWitness/index.vue b/pages/realName/workbench/wageWitness/index.vue index 09d5eb5..d450218 100644 --- a/pages/realName/workbench/wageWitness/index.vue +++ b/pages/realName/workbench/wageWitness/index.vue @@ -13,7 +13,7 @@ - + @@ -75,16 +75,26 @@ + + + + + + + + + +