|
|
@@ -101,66 +101,72 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="营业执照:">
|
|
|
+ <el-form-item label="健康证照片:">
|
|
|
<el-upload
|
|
|
action="#"
|
|
|
class="avatar-uploader"
|
|
|
- :http-request="handleBusinessSuccess"
|
|
|
- :before-upload="beforeBusinessUpload"
|
|
|
+ :http-request="handlehealthSuccess"
|
|
|
+ :before-upload="beforehealthUpload"
|
|
|
:show-file-list="false"
|
|
|
>
|
|
|
<img
|
|
|
- v-if="jsInfos.businessLicense.length>51"
|
|
|
- :src="jsInfos.businessLicense"
|
|
|
+ v-if="jsInfos.healthCertificate.length > 51"
|
|
|
+ :src="jsInfos.healthCertificate"
|
|
|
class="avatar"
|
|
|
/>
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="无犯罪证明:">
|
|
|
+ <el-form-item label="资格证照片:">
|
|
|
<el-upload
|
|
|
action="#"
|
|
|
class="avatar-uploader"
|
|
|
- :http-request="handleNocrimeSuccess"
|
|
|
- :before-upload="beforeNocrimeUpload"
|
|
|
+ :http-request="handlecertificationSuccess"
|
|
|
+ :before-upload="beforecertificationUpload"
|
|
|
:show-file-list="false"
|
|
|
>
|
|
|
- <img v-if="jsInfos.noCrime.length>51" :src="jsInfos.noCrime" class="avatar" />
|
|
|
+ <img
|
|
|
+ v-if="jsInfos.certification.length > 51"
|
|
|
+ :src="jsInfos.certification"
|
|
|
+ class="avatar"
|
|
|
+ />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="健康证照片:">
|
|
|
+ <el-form-item label="营业执照:">
|
|
|
<el-upload
|
|
|
action="#"
|
|
|
class="avatar-uploader"
|
|
|
- :http-request="handlehealthSuccess"
|
|
|
- :before-upload="beforehealthUpload"
|
|
|
+ :http-request="handleBusinessSuccess"
|
|
|
+ :before-upload="beforeBusinessUpload"
|
|
|
:show-file-list="false"
|
|
|
>
|
|
|
<img
|
|
|
- v-if="jsInfos.healthCertificate.length>51"
|
|
|
- :src="jsInfos.healthCertificate"
|
|
|
+ v-if="jsInfos.businessLicense.length > 51"
|
|
|
+ :src="jsInfos.businessLicense"
|
|
|
class="avatar"
|
|
|
/>
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="资格证照片:">
|
|
|
+ <el-form-item label="无犯罪证明:">
|
|
|
<el-upload
|
|
|
action="#"
|
|
|
class="avatar-uploader"
|
|
|
- :http-request="handlecertificationSuccess"
|
|
|
- :before-upload="beforecertificationUpload"
|
|
|
+ :http-request="handleNocrimeSuccess"
|
|
|
+ :before-upload="beforeNocrimeUpload"
|
|
|
:show-file-list="false"
|
|
|
>
|
|
|
<img
|
|
|
- v-if="jsInfos.certification.length>51"
|
|
|
- :src="jsInfos.certification"
|
|
|
+ v-if="jsInfos.noCrime.length > 51"
|
|
|
+ :src="jsInfos.noCrime"
|
|
|
class="avatar"
|
|
|
/>
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
+
|
|
|
+
|
|
|
<el-form-item label="评分:">
|
|
|
<el-input v-model="jsInfos.nStar"></el-input>
|
|
|
</el-form-item>
|
|
|
@@ -201,9 +207,13 @@
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="地址:">
|
|
|
- <el-input v-model="jsInfos.address" ></el-input>
|
|
|
+ <el-input v-model="jsInfos.name"></el-input>
|
|
|
</el-form-item>
|
|
|
- <Map :newAddress="newAddress" :dataObj="addr" @uploadAddress="uploadAddressData" />
|
|
|
+ <Map
|
|
|
+ :newAddress="newAddress"
|
|
|
+ :dataObj="addr"
|
|
|
+ @uploadAddress="uploadAddressData"
|
|
|
+ />
|
|
|
<!-- <el-form-item label="是否带头像框:" prop="nB1">
|
|
|
<el-radio-group v-model="jsInfos.nB1">
|
|
|
<el-radio :label="0">否</el-radio>
|
|
|
@@ -224,15 +234,25 @@
|
|
|
</el-form-item> -->
|
|
|
|
|
|
<div style="text-align: justify; margin-top: 50px; margin-bottom: 20px">
|
|
|
- <el-button type="primary" @click="addComplaintShow(jsInfos.id,jsInfos)"
|
|
|
+ <el-button type="primary" @click="addComplaintShow(jsInfos.id, jsInfos)"
|
|
|
>添加评论</el-button
|
|
|
>
|
|
|
<el-button type="primary" @click="work" v-if="jsInfos.nStatus2 == -1"
|
|
|
>上 岗</el-button
|
|
|
>
|
|
|
<el-button type="primary" @click="work" v-else>下 岗</el-button>
|
|
|
- <el-button type="primary" @click="auditJs(jsInfos.id)" v-if="jsInfos.nTong == 0">审 核</el-button>
|
|
|
- <el-button type="primary" @click="returnJs(jsInfos.id)" v-if="jsInfos.nTong == 0">退 回</el-button>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="auditJs(jsInfos.id)"
|
|
|
+ v-if="jsInfos.nTong == 0"
|
|
|
+ >审 核</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="returnJs(jsInfos.id)"
|
|
|
+ v-if="jsInfos.nTong == 0"
|
|
|
+ >退 回</el-button
|
|
|
+ >
|
|
|
<el-button type="primary" @click="submitForm">修 改</el-button>
|
|
|
<el-button type="primary" @click="blacklist" v-if="jsInfos.nTong == 3"
|
|
|
>恢 复</el-button
|
|
|
@@ -266,8 +286,8 @@
|
|
|
<el-date-picker
|
|
|
v-model="complainForm.dTime"
|
|
|
type="datetime"
|
|
|
- placeholder="选择日期时间"
|
|
|
- default-time="12:00:00"
|
|
|
+ placeholder="选择日期时间"
|
|
|
+ :picker-options="pickerOptions"
|
|
|
>
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
@@ -296,13 +316,18 @@ import {
|
|
|
getDept,
|
|
|
} from "@/api/system/js";
|
|
|
import { upload } from "@/api/public";
|
|
|
-import Map from '@/components/map/map.vue';
|
|
|
+import Map from "@/components/map/map.vue";
|
|
|
export default {
|
|
|
components: {
|
|
|
- Map
|
|
|
+ Map,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ pickerOptions: {
|
|
|
+ disabledDate(time) {
|
|
|
+ return time.getTime() > Date.now()
|
|
|
+ },
|
|
|
+ },
|
|
|
options: [],
|
|
|
value: "",
|
|
|
dialogFormVisible: false,
|
|
|
@@ -321,7 +346,7 @@ export default {
|
|
|
headimg: "",
|
|
|
show: false,
|
|
|
addr: {},
|
|
|
- newAddress:'太原'
|
|
|
+ newAddress: "太原",
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
@@ -331,11 +356,10 @@ export default {
|
|
|
this.getDept();
|
|
|
},
|
|
|
methods: {
|
|
|
- uploadAddressData(payload){
|
|
|
- this.jsInfos.latitude =payload.latitude
|
|
|
- this.jsInfos.longitude =payload.longitude
|
|
|
- this.jsInfos.address =payload.addressName
|
|
|
-
|
|
|
+ uploadAddressData(payload) {
|
|
|
+ this.jsInfos.latitude = payload.latitude;
|
|
|
+ this.jsInfos.longitude = payload.longitude;
|
|
|
+ this.jsInfos.name = payload.addressName;
|
|
|
},
|
|
|
handleSelectionChange(val) {
|
|
|
this.jsInfos.deptId = val.deptId;
|
|
|
@@ -361,8 +385,8 @@ export default {
|
|
|
let cOpenId = { id: this.$route.query.id };
|
|
|
getJs(cOpenId).then((response) => {
|
|
|
this.jsInfos = response.data;
|
|
|
- this.addr.lat = response.data.latitude
|
|
|
- this.addr.lng = response.data.longitude
|
|
|
+ this.addr.lat = response.data.latitude;
|
|
|
+ this.addr.lng = response.data.longitude;
|
|
|
this.uploadInfos.projects = [];
|
|
|
this.uploadInfos.cPortrait = response.data.cPortrait;
|
|
|
this.uploadInfos.businessLicense = response.data.businessLicense;
|
|
|
@@ -386,9 +410,9 @@ export default {
|
|
|
: (this.jsInfos.businessLicense =
|
|
|
process.env.VUE_APP_BASE_API + response.data.businessLicense);
|
|
|
response.data.healthCertificate == ""
|
|
|
- ? this.jsInfos.healthCertificate = ""
|
|
|
- : this.jsInfos.healthCertificate =
|
|
|
- process.env.VUE_APP_BASE_API + response.data.healthCertificate;
|
|
|
+ ? (this.jsInfos.healthCertificate = "")
|
|
|
+ : (this.jsInfos.healthCertificate =
|
|
|
+ process.env.VUE_APP_BASE_API + response.data.healthCertificate);
|
|
|
response.data.certification == ""
|
|
|
? (this.jsInfos.certification = "")
|
|
|
: (this.jsInfos.certification =
|
|
|
@@ -407,7 +431,6 @@ export default {
|
|
|
element = process.env.VUE_APP_BASE_API + element;
|
|
|
imgs.push(element);
|
|
|
});
|
|
|
-
|
|
|
} else {
|
|
|
imgs = [];
|
|
|
}
|
|
|
@@ -556,9 +579,9 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
- addComplaintShow(id,jsInfos) {
|
|
|
- this.complainForm.name = jsInfos.cName
|
|
|
- this.complainForm.cId = jsInfos.cId
|
|
|
+ addComplaintShow(id, jsInfos) {
|
|
|
+ this.complainForm.name = jsInfos.cName;
|
|
|
+ this.complainForm.cId = jsInfos.cId;
|
|
|
this.dialogFormVisible = true;
|
|
|
},
|
|
|
// 上传身份证图片相关
|