|
|
|
|
@ -63,7 +63,7 @@
|
|
|
|
|
</a-select> -->
|
|
|
|
|
|
|
|
|
|
<!-- v-if="isMaster && jobnameStatus !== 'jobname'" -->
|
|
|
|
|
<span @click="openModal" :style="{ color: '#ff4400', marginLeft: '10px', cursor: 'pointer'}">修改</span>
|
|
|
|
|
<span @click="openModal" :style="{ color: '#ff4400', marginLeft: '10px', cursor: 'pointer' }">修改</span>
|
|
|
|
|
</div>
|
|
|
|
|
</a-form-model-item>
|
|
|
|
|
|
|
|
|
|
@ -265,9 +265,9 @@
|
|
|
|
|
import { nationlist } from "../../utils/datalist";
|
|
|
|
|
// import recordbill from "@/components/FirstJob/components/recordbill.vue";
|
|
|
|
|
import moment from "moment";
|
|
|
|
|
import { isEmptyCheck, getAgeFromBirthday,disposeJobListData } from "../../utils/commonUtil";
|
|
|
|
|
import { isEmptyCheck, getAgeFromBirthday, disposeJobListData } from "../../utils/commonUtil";
|
|
|
|
|
import timepicker from "./components/timepicker.vue";
|
|
|
|
|
import { recordBillApi,recordBillApiDaotian, getProxyInfoApi, getStoreAliasApi, getStoreJobApi, getPolicyByJobIdApi,getPolicyByJobIdApiDaotian, getPolicyListByJobIdApi, getJobDetailApi } from "@/api/job";
|
|
|
|
|
import { recordBillApi, recordBillApiDaotian, getProxyInfoApi, getStoreAliasApi, getStoreJobApi, getPolicyByJobIdApi, getPolicyByJobIdApiDaotian, getPolicyListByJobIdApi, getJobDetailApi } from "@/api/job";
|
|
|
|
|
import request from "@/utils/request";
|
|
|
|
|
import qs from "qs";
|
|
|
|
|
// import axios from "axios";
|
|
|
|
|
@ -289,9 +289,9 @@ export default {
|
|
|
|
|
// 组件状态值
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
isModalVisible:false,
|
|
|
|
|
selectedJobId:"",
|
|
|
|
|
storeName:"",
|
|
|
|
|
isModalVisible: false,
|
|
|
|
|
selectedJobId: "",
|
|
|
|
|
storeName: "",
|
|
|
|
|
|
|
|
|
|
agencyName: "-",
|
|
|
|
|
jobClassify: "",
|
|
|
|
|
@ -459,12 +459,11 @@ export default {
|
|
|
|
|
this.getProxyInfo(this.proxyinfo.id);
|
|
|
|
|
this.getJob(this.firminfo);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(this.jobClassify == 1){
|
|
|
|
|
if (this.jobClassify == 1) {
|
|
|
|
|
this.getPolicyByJobId(this.firminfo.id).then(() => {
|
|
|
|
|
this.getJobDetail(this.firminfo.id);
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
this.getPolicyByJobIdDaotian(this.firminfo.id).then(() => {
|
|
|
|
|
this.getJobDetail(this.firminfo.id);
|
|
|
|
|
});
|
|
|
|
|
@ -489,25 +488,23 @@ export default {
|
|
|
|
|
// 可在此处加载或更新表格数据
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
getSelectedJobId(val){
|
|
|
|
|
getSelectedJobId(val) {
|
|
|
|
|
console.log(val);
|
|
|
|
|
this.selectedJobId = val;
|
|
|
|
|
this.jobClassify = val.jobClassify;
|
|
|
|
|
this.firminfo.id = val.jobId;
|
|
|
|
|
this.getJobDetail(val.jobId);
|
|
|
|
|
if(this.jobClassify == 1){
|
|
|
|
|
if (this.jobClassify == 1) {
|
|
|
|
|
this.getPolicyByJobId(val.jobId).then(() => {
|
|
|
|
|
this.getJobDetail(val.jobId);
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
this.getPolicyByJobIdDaotian(val.jobId).then(() => {
|
|
|
|
|
this.getJobDetail(val.jobId);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async getJob(value) {
|
|
|
|
|
try {
|
|
|
|
|
const { data } = await getStoreJobApi(value.id);
|
|
|
|
|
@ -573,7 +570,7 @@ export default {
|
|
|
|
|
this.firminfo = disposeJobListData(data.data.record);
|
|
|
|
|
if (this.jobClassify == 1) {
|
|
|
|
|
this.storeName = data.data.store.aliasName;
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
this.storeName = data.data.record.storeName;
|
|
|
|
|
}
|
|
|
|
|
this.form.policyNum = data.data.record.policyNum;
|
|
|
|
|
@ -643,7 +640,7 @@ export default {
|
|
|
|
|
return getPolicyByJobIdApiDaotian(value).then(({ data }) => {
|
|
|
|
|
console.log(data);
|
|
|
|
|
if (data.status === 200) {
|
|
|
|
|
this.form.policy ="员工薪资:\n" + data.data.salaryDetail + '\n\n' + '代理政策:\n' + data.data.agencyReturnFeeDesp;
|
|
|
|
|
this.form.policy = "员工薪资:\n" + data.data.salaryDetail + "\n\n" + "代理政策:\n" + data.data.agencyReturnFeeDesp;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
@ -705,15 +702,14 @@ export default {
|
|
|
|
|
// return;
|
|
|
|
|
let dataObj = {};
|
|
|
|
|
let data = {};
|
|
|
|
|
if(this.jobClassify == 2){
|
|
|
|
|
|
|
|
|
|
if (this.jobClassify == 2) {
|
|
|
|
|
console.log(this.form);
|
|
|
|
|
this.form["interviewTimeStr"] = that.form.interviewTime;
|
|
|
|
|
this.form["receptionTimeStr"] = that.form.receptionTime;
|
|
|
|
|
this.form["jobId"] = this.firminfo.id
|
|
|
|
|
this.form["customJobId"] = this.firminfo.id
|
|
|
|
|
this.form["applyUserId"] = this.proxyinfo.id
|
|
|
|
|
this.form["agencyUserId"] =this.proxyinfo.id
|
|
|
|
|
this.form["jobId"] = this.firminfo.id;
|
|
|
|
|
this.form["customJobId"] = this.firminfo.id;
|
|
|
|
|
this.form["applyUserId"] = this.proxyinfo.id;
|
|
|
|
|
this.form["agencyUserId"] = this.proxyinfo.id;
|
|
|
|
|
|
|
|
|
|
dataObj = qs.stringify({
|
|
|
|
|
...this.form,
|
|
|
|
|
@ -722,7 +718,7 @@ export default {
|
|
|
|
|
// policy: '',
|
|
|
|
|
});
|
|
|
|
|
data = await recordBillApiDaotian(dataObj);
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
dataObj = qs.stringify({
|
|
|
|
|
...this.form,
|
|
|
|
|
storeJobId: this.firminfo.id,
|
|
|
|
|
@ -732,14 +728,15 @@ export default {
|
|
|
|
|
|
|
|
|
|
data = await recordBillApi(dataObj);
|
|
|
|
|
}
|
|
|
|
|
if (data.status === 200) {
|
|
|
|
|
console.log("data handleOk", data);
|
|
|
|
|
if (data.data.status === 200) {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.confirmLoading = false;
|
|
|
|
|
|
|
|
|
|
this.$router.push("/recordsuccess");
|
|
|
|
|
}, 1000);
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(data.msg);
|
|
|
|
|
this.$message.error(data.data.msg);
|
|
|
|
|
}
|
|
|
|
|
this.confirmLoading = false;
|
|
|
|
|
|
|
|
|
|
|