Commit 7eaf4efa by xws

up629

parent 72a37477
Showing with 111 additions and 71 deletions
...@@ -9,11 +9,13 @@ ...@@ -9,11 +9,13 @@
:after-read="afterRead5" :after-read="afterRead5"
:before-delete="afterDelete" :before-delete="afterDelete"
@oversize="oversize" @oversize="oversize"
:max-size="2 * 1024 * 1024 " :max-size="20 * 1024 * 1024 "
:max-count="1" :max-count="1"
preview-size="120" preview-size="120"
@click-preview="click_preview(hrefIdFront)" @click-preview="click_preview(hrefIdFront)"
preview-image preview-image
:disabled="flage"
:deletable="flag"
> >
<div class="upload-add"></div> <div class="upload-add"></div>
</van-uploader> </van-uploader>
...@@ -32,11 +34,13 @@ ...@@ -32,11 +34,13 @@
:after-read="afterRead6" :after-read="afterRead6"
:before-delete="afterDelete" :before-delete="afterDelete"
@oversize="oversize" @oversize="oversize"
:max-size="2 * 1024 * 1024 " :max-size="20 * 1024 * 1024 "
:max-count="1" :max-count="1"
preview-size="120" preview-size="120"
@click-preview="click_preview(hrefIdReverse)" @click-preview="click_preview(hrefIdReverse)"
preview-image preview-image
:disabled="flage"
:deletable="flag"
> >
<div class="upload-add"></div> <div class="upload-add"></div>
</van-uploader> </van-uploader>
...@@ -56,10 +60,12 @@ ...@@ -56,10 +60,12 @@
:before-delete="afterDelete" :before-delete="afterDelete"
:max-count="1" :max-count="1"
@oversize="oversize" @oversize="oversize"
:max-size="2 * 1024 * 1024 " :max-size="20 * 1024 * 1024 "
preview-size="120" preview-size="120"
@click-preview="click_preview(hrefDiploma)" @click-preview="click_preview(hrefDiploma)"
preview-image preview-image
:disabled="flage"
:deletable="flag"
> >
<div class="upload-add"></div> <div class="upload-add"></div>
</van-uploader> </van-uploader>
...@@ -78,10 +84,12 @@ ...@@ -78,10 +84,12 @@
:before-delete="afterDelete" :before-delete="afterDelete"
:max-count="1" :max-count="1"
@oversize="oversize" @oversize="oversize"
:max-size="2 * 1024 * 1024 " :max-size="20 * 1024 * 1024 "
preview-size="120" preview-size="120"
@click-preview="click_preview(hrefCertificate)" @click-preview="click_preview(hrefCertificate)"
preview-image preview-image
:disabled="flage"
:deletable="flag"
> >
<div class="upload-add"></div> <div class="upload-add"></div>
</van-uploader> </van-uploader>
...@@ -101,10 +109,12 @@ ...@@ -101,10 +109,12 @@
:before-delete="afterDelete" :before-delete="afterDelete"
:max-count="1" :max-count="1"
@oversize="oversize" @oversize="oversize"
:max-size="2 * 1024 * 1024 " :max-size="20 * 1024 * 1024 "
preview-size="120" preview-size="120"
@click-preview="click_preview(hrefResume)" @click-preview="click_preview(hrefResume)"
preview-image preview-image
:disabled="flage"
:deletable="flag"
> >
<div class="upload-add"></div> <div class="upload-add"></div>
</van-uploader> </van-uploader>
...@@ -124,10 +134,12 @@ ...@@ -124,10 +134,12 @@
:before-delete="afterDelete" :before-delete="afterDelete"
:max-count="1" :max-count="1"
@oversize="oversize" @oversize="oversize"
:max-size="2 * 1024 * 1024 " :max-size="20 * 1024 * 1024 "
preview-size="120" preview-size="120"
@click-preview="click_preview(hrefDimission)" @click-preview="click_preview(hrefDimission)"
preview-image preview-image
:disabled="flage"
:deletable="flag"
> >
<div class="upload-add"></div> <div class="upload-add"></div>
</van-uploader> </van-uploader>
...@@ -147,10 +159,12 @@ ...@@ -147,10 +159,12 @@
:before-delete="afterDelete" :before-delete="afterDelete"
:max-count="1" :max-count="1"
@oversize="oversize" @oversize="oversize"
:max-size="2 * 1024 * 1024 " :max-size="20 * 1024 * 1024 "
preview-size="120" preview-size="120"
@click-preview="click_preview(hrefRegistered)" @click-preview="click_preview(hrefRegistered)"
preview-image preview-image
:disabled="flage"
:deletable="flag"
> >
<div class="upload-add"></div> <div class="upload-add"></div>
</van-uploader> </van-uploader>
...@@ -170,10 +184,12 @@ ...@@ -170,10 +184,12 @@
:before-delete="afterDelete" :before-delete="afterDelete"
:max-count="1" :max-count="1"
@oversize="oversize" @oversize="oversize"
:max-size="2 * 1024 * 1024 " :max-size="20 * 1024 * 1024 "
preview-size="120" preview-size="120"
@click-preview="click_preview(hrefRegisteredSelf)" @click-preview="click_preview(hrefRegisteredSelf)"
preview-image preview-image
:disabled="flage"
:deletable="flag"
> >
<div class="upload-add"></div> <div class="upload-add"></div>
</van-uploader> </van-uploader>
...@@ -193,10 +209,12 @@ ...@@ -193,10 +209,12 @@
:before-delete="afterDelete" :before-delete="afterDelete"
:max-count="1" :max-count="1"
@oversize="oversize" @oversize="oversize"
:max-size="2 * 1024 * 1024 " :max-size="20 * 1024 * 1024 "
preview-size="120" preview-size="120"
@click-preview="click_preview(hrefentryRegister)" @click-preview="click_preview(hrefentryRegister)"
preview-image preview-image
:disabled="flage"
:deletable="flag"
> >
<div class="upload-add"></div> <div class="upload-add"></div>
</van-uploader> </van-uploader>
...@@ -216,10 +234,12 @@ ...@@ -216,10 +234,12 @@
:before-delete="afterDelete" :before-delete="afterDelete"
:max-count="1" :max-count="1"
@oversize="oversize" @oversize="oversize"
:max-size="2 * 1024 * 1024 " :max-size="20 * 1024 * 1024 "
preview-size="120" preview-size="120"
@click-preview="click_preview(hrefWageCard)" @click-preview="click_preview(hrefWageCard)"
preview-image preview-image
:disabled="flage"
:deletable="flag"
> >
<div class="upload-add"></div> <div class="upload-add"></div>
</van-uploader> </van-uploader>
...@@ -239,10 +259,12 @@ ...@@ -239,10 +259,12 @@
:before-delete="afterDelete" :before-delete="afterDelete"
:max-count="1" :max-count="1"
@oversize="oversize" @oversize="oversize"
:max-size="2 * 1024 * 1024 " :max-size="20 * 1024 * 1024 "
preview-size="120" preview-size="120"
@click-preview="click_preview(hrefEntryPhysical)" @click-preview="click_preview(hrefEntryPhysical)"
preview-image preview-image
:disabled="flage"
:deletable="flag"
> >
<div class="upload-add"></div> <div class="upload-add"></div>
</van-uploader> </van-uploader>
...@@ -262,10 +284,12 @@ ...@@ -262,10 +284,12 @@
:before-delete="afterDelete" :before-delete="afterDelete"
:max-count="1" :max-count="1"
@oversize="oversize" @oversize="oversize"
:max-size="2 * 1024 * 1024 " :max-size="20 * 1024 * 1024 "
preview-size="120" preview-size="120"
@click-preview="click_preview(hrefElse1)" @click-preview="click_preview(hrefElse1)"
preview-image preview-image
:disabled="flage"
:deletable="flag"
> >
<div class="upload-add"></div> <div class="upload-add"></div>
</van-uploader> </van-uploader>
...@@ -285,10 +309,12 @@ ...@@ -285,10 +309,12 @@
:before-delete="afterDelete" :before-delete="afterDelete"
:max-count="1" :max-count="1"
@oversize="oversize" @oversize="oversize"
:max-size="2 * 1024 * 1024 " :max-size="20 * 1024 * 1024 "
preview-size="120" preview-size="120"
@click-preview="click_preview(hrefElse2)" @click-preview="click_preview(hrefElse2)"
preview-image preview-image
:disabled="flage"
:deletable="flag"
> >
<div class="upload-add"></div> <div class="upload-add"></div>
</van-uploader> </van-uploader>
...@@ -308,10 +334,12 @@ ...@@ -308,10 +334,12 @@
:before-delete="afterDelete" :before-delete="afterDelete"
:max-count="1" :max-count="1"
@oversize="oversize" @oversize="oversize"
:max-size="2 * 1024 * 1024 " :max-size="20 * 1024 * 1024 "
preview-size="120" preview-size="120"
@click-preview="click_preview(hrefElse3)" @click-preview="click_preview(hrefElse3)"
preview-image preview-image
:disabled="flage"
:deletable="flag"
> >
<div class="upload-add"></div> <div class="upload-add"></div>
</van-uploader> </van-uploader>
...@@ -331,10 +359,12 @@ ...@@ -331,10 +359,12 @@
:before-delete="afterDelete" :before-delete="afterDelete"
:max-count="1" :max-count="1"
@oversize="oversize" @oversize="oversize"
:max-size="2 * 1024 * 1024 " :max-size="20 * 1024 * 1024 "
preview-size="120" preview-size="120"
@click-preview="click_preview(hrefElse4)" @click-preview="click_preview(hrefElse4)"
preview-image preview-image
:disabled="flage"
:deletable="flag"
> >
<div class="upload-add"></div> <div class="upload-add"></div>
</van-uploader> </van-uploader>
...@@ -354,10 +384,12 @@ ...@@ -354,10 +384,12 @@
:before-delete="afterDelete" :before-delete="afterDelete"
:max-count="1" :max-count="1"
@oversize="oversize" @oversize="oversize"
:max-size="2 * 1024 * 1024 " :max-size="20 * 1024 * 1024 "
preview-size="120" preview-size="120"
@click-preview="click_preview(hrefElse5)" @click-preview="click_preview(hrefElse5)"
preview-image preview-image
:disabled="flage"
:deletable="flag"
> >
<div class="upload-add"></div> <div class="upload-add"></div>
</van-uploader> </van-uploader>
...@@ -371,9 +403,9 @@ ...@@ -371,9 +403,9 @@
</div> </div>
</div> </div>
<!-- <div style="margin: 16px 0 0 0;"> <div style="margin: 16px 0 0 0;" v-if="this.isEdit==0 || this.isEdit==-1">
<van-button block type="primary" native-type="submit" @click="updateContactInfo_click">提交信息</van-button> <van-button :disabled="flage" block type="primary" native-type="submit" @click="updateContactInfo_click">提交信息</van-button>
</div>--> </div>
</van-form> </van-form>
</div> </div>
</template> </template>
...@@ -405,6 +437,9 @@ import { Component } from "vue-property-decorator"; ...@@ -405,6 +437,9 @@ import { Component } from "vue-property-decorator";
}) })
export default class Information extends Vue { export default class Information extends Vue {
private objs: any = {}; private objs: any = {};
private flag:any = true
private flage:any = false
private isEdit:any=""
// 16个下载 // 16个下载
private hrefIdFront: any = {}; // 身份证正面5 private hrefIdFront: any = {}; // 身份证正面5
...@@ -466,9 +501,7 @@ export default class Information extends Vue { ...@@ -466,9 +501,7 @@ export default class Information extends Vue {
}) })
.catch(error => {}); .catch(error => {});
}) })
.catch(error => { .catch(error => {});
});
} }
// 身份证反面6 // 身份证反面6
...@@ -495,9 +528,7 @@ export default class Information extends Vue { ...@@ -495,9 +528,7 @@ export default class Information extends Vue {
}) })
.catch(error => {}); .catch(error => {});
}) })
.catch(error => { .catch(error => {});
});
} }
// 毕业证照片7 // 毕业证照片7
...@@ -524,9 +555,7 @@ export default class Information extends Vue { ...@@ -524,9 +555,7 @@ export default class Information extends Vue {
}) })
.catch(error => {}); .catch(error => {});
}) })
.catch(error => { .catch(error => {});
});
} }
// 学位证照片8 // 学位证照片8
...@@ -553,9 +582,7 @@ export default class Information extends Vue { ...@@ -553,9 +582,7 @@ export default class Information extends Vue {
}) })
.catch(error => {}); .catch(error => {});
}) })
.catch(error => { .catch(error => {});
});
} }
// 个人简历9 // 个人简历9
...@@ -582,9 +609,7 @@ export default class Information extends Vue { ...@@ -582,9 +609,7 @@ export default class Information extends Vue {
}) })
.catch(error => {}); .catch(error => {});
}) })
.catch(error => { .catch(error => {});
});
} }
// 上家公司离职证明10 // 上家公司离职证明10
...@@ -611,9 +636,7 @@ export default class Information extends Vue { ...@@ -611,9 +636,7 @@ export default class Information extends Vue {
}) })
.catch(error => {}); .catch(error => {});
}) })
.catch(error => { .catch(error => {});
});
} }
// 户口首页11 // 户口首页11
...@@ -640,9 +663,7 @@ export default class Information extends Vue { ...@@ -640,9 +663,7 @@ export default class Information extends Vue {
}) })
.catch(error => {}); .catch(error => {});
}) })
.catch(error => { .catch(error => {});
});
} }
// 户口本人页12 // 户口本人页12
...@@ -669,9 +690,7 @@ export default class Information extends Vue { ...@@ -669,9 +690,7 @@ export default class Information extends Vue {
}) })
.catch(error => {}); .catch(error => {});
}) })
.catch(error => { .catch(error => {});
});
} }
// 入职登记表签字上传13 // 入职登记表签字上传13
...@@ -698,9 +717,7 @@ export default class Information extends Vue { ...@@ -698,9 +717,7 @@ export default class Information extends Vue {
}) })
.catch(error => {}); .catch(error => {});
}) })
.catch(error => { .catch(error => {});
});
} }
// 银行卡照片14 // 银行卡照片14
...@@ -727,9 +744,7 @@ export default class Information extends Vue { ...@@ -727,9 +744,7 @@ export default class Information extends Vue {
}) })
.catch(error => {}); .catch(error => {});
}) })
.catch(error => { .catch(error => {});
});
} }
// 入职体检表15 // 入职体检表15
...@@ -756,9 +771,7 @@ export default class Information extends Vue { ...@@ -756,9 +771,7 @@ export default class Information extends Vue {
}) })
.catch(error => {}); .catch(error => {});
}) })
.catch(error => { .catch(error => {});
});
} }
// 其他1 16 // 其他1 16
...@@ -785,9 +798,7 @@ export default class Information extends Vue { ...@@ -785,9 +798,7 @@ export default class Information extends Vue {
}) })
.catch(error => {}); .catch(error => {});
}) })
.catch(error => { .catch(error => {});
});
} }
// 其他2 17 // 其他2 17
...@@ -814,9 +825,7 @@ export default class Information extends Vue { ...@@ -814,9 +825,7 @@ export default class Information extends Vue {
}) })
.catch(error => {}); .catch(error => {});
}) })
.catch(error => { .catch(error => {});
});
} }
// 其他3 18 // 其他3 18
...@@ -843,9 +852,7 @@ export default class Information extends Vue { ...@@ -843,9 +852,7 @@ export default class Information extends Vue {
}) })
.catch(error => {}); .catch(error => {});
}) })
.catch(error => { .catch(error => {});
});
} }
// 其他4 19 // 其他4 19
...@@ -872,9 +879,7 @@ export default class Information extends Vue { ...@@ -872,9 +879,7 @@ export default class Information extends Vue {
}) })
.catch(error => {}); .catch(error => {});
}) })
.catch(error => { .catch(error => {});
});
} }
// 其他5 20 // 其他5 20
...@@ -901,9 +906,7 @@ export default class Information extends Vue { ...@@ -901,9 +906,7 @@ export default class Information extends Vue {
}) })
.catch(error => {}); .catch(error => {});
}) })
.catch(error => { .catch(error => {});
});
} }
// 删除文件 // 删除文件
...@@ -922,7 +925,7 @@ export default class Information extends Vue { ...@@ -922,7 +925,7 @@ export default class Information extends Vue {
//上传文件超出规定大小的提示 //上传文件超出规定大小的提示
private oversize() { private oversize() {
Toast.fail("上传文件大小不能超过2M"); Toast.fail("上传文件大小不能超过20M");
} }
// 点击下载 // 点击下载
...@@ -936,11 +939,26 @@ export default class Information extends Vue { ...@@ -936,11 +939,26 @@ export default class Information extends Vue {
// a.href ="http://file.qinqinxiaobao.com/1/20200612/6b3167ef-930f-4af7-8ded-3879a928341c.txt" // a.href ="http://file.qinqinxiaobao.com/1/20200612/6b3167ef-930f-4af7-8ded-3879a928341c.txt"
// a.click(); // a.click();
// } // }
// 底部提交按钮 // 底部提交按钮
// updateContactInfo_click() { updateContactInfo_click() {
// Toast.success("保存成功"); let params = {
// } edId: this.$route.query.ed_id
};
this.$server.EmployeeService.putFiles(params)
.then(res => {
console.log(res);
if(res==true){
Toast.success("保存成功");
window.location.reload();
}else{
Toast.success("保存失败");
}
})
.catch(error => {});
}
// 获取文件 // 获取文件
private getFiles(): void { private getFiles(): void {
...@@ -1127,8 +1145,30 @@ export default class Information extends Vue { ...@@ -1127,8 +1145,30 @@ export default class Information extends Vue {
.catch(error => {}); .catch(error => {});
} }
private handleInfo(): void{
let params = {
spId: this.$route.query.sp_id,
idNo: this.$route.query.id_no
};
this.$server.EmployeeService.getDispatchInfo(params).then(res => {
console.log(res.auditInfoStatus);
this.isEdit = res.auditInfoStatus;
if(this.isEdit == 0 || this.isEdit== -1){
this.flag = true
this.flage = false
}else{
this.flag = false
this.flage = true
}
});
}
created() { created() {
this.getFiles(); this.getFiles();
this.handleInfo();
} }
} }
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment