|
|
|
@ -63,11 +63,11 @@
|
|
|
|
</a-select> -->
|
|
|
|
</a-select> -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- v-if="isMaster && jobnameStatus !== 'jobname'" -->
|
|
|
|
<!-- 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>
|
|
|
|
</div>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-form-model-item>
|
|
|
|
|
|
|
|
|
|
|
|
<recordBillTable :isModalVisible.sync="isModalVisible" @getSelectedJobId="getSelectedJobId"></recordBillTable>
|
|
|
|
<recordBillTable :isModalVisible.sync="isModalVisible" @getSelectedJobId="getSelectedJobId"></recordBillTable>
|
|
|
|
|
|
|
|
|
|
|
|
<a-form-model-item ref="username" label="报名企业" prop="username" :wrapperCol="{ span: 18 }" :labelCol="{ span: 4 }" style="height: 30px; margin-bottom: 18px">
|
|
|
|
<a-form-model-item ref="username" label="报名企业" prop="username" :wrapperCol="{ span: 18 }" :labelCol="{ span: 4 }" style="height: 30px; margin-bottom: 18px">
|
|
|
|
<!-- <a-input :value="firminfo.aliasName" :disabled="true" /> -->
|
|
|
|
<!-- <a-input :value="firminfo.aliasName" :disabled="true" /> -->
|
|
|
|
@ -265,9 +265,9 @@
|
|
|
|
import { nationlist } from "../../utils/datalist";
|
|
|
|
import { nationlist } from "../../utils/datalist";
|
|
|
|
// import recordbill from "@/components/FirstJob/components/recordbill.vue";
|
|
|
|
// import recordbill from "@/components/FirstJob/components/recordbill.vue";
|
|
|
|
import moment from "moment";
|
|
|
|
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 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 request from "@/utils/request";
|
|
|
|
import qs from "qs";
|
|
|
|
import qs from "qs";
|
|
|
|
// import axios from "axios";
|
|
|
|
// import axios from "axios";
|
|
|
|
@ -280,7 +280,7 @@ export default {
|
|
|
|
name: "recordBill",
|
|
|
|
name: "recordBill",
|
|
|
|
// 局部注册的组件
|
|
|
|
// 局部注册的组件
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
|
recordBillTable,
|
|
|
|
recordBillTable,
|
|
|
|
// recordbill,
|
|
|
|
// recordbill,
|
|
|
|
timepicker,
|
|
|
|
timepicker,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -289,10 +289,10 @@ export default {
|
|
|
|
// 组件状态值
|
|
|
|
// 组件状态值
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
isModalVisible:false,
|
|
|
|
isModalVisible: false,
|
|
|
|
selectedJobId:"",
|
|
|
|
selectedJobId: "",
|
|
|
|
storeName:"",
|
|
|
|
storeName: "",
|
|
|
|
|
|
|
|
|
|
|
|
agencyName: "-",
|
|
|
|
agencyName: "-",
|
|
|
|
jobClassify: "",
|
|
|
|
jobClassify: "",
|
|
|
|
fileList2: [],
|
|
|
|
fileList2: [],
|
|
|
|
@ -459,16 +459,15 @@ export default {
|
|
|
|
this.getProxyInfo(this.proxyinfo.id);
|
|
|
|
this.getProxyInfo(this.proxyinfo.id);
|
|
|
|
this.getJob(this.firminfo);
|
|
|
|
this.getJob(this.firminfo);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.jobClassify == 1) {
|
|
|
|
if(this.jobClassify == 1){
|
|
|
|
this.getPolicyByJobId(this.firminfo.id).then(() => {
|
|
|
|
this.getPolicyByJobId(this.firminfo.id).then(() => {
|
|
|
|
this.getJobDetail(this.firminfo.id);
|
|
|
|
this.getJobDetail(this.firminfo.id);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
}else{
|
|
|
|
this.getPolicyByJobIdDaotian(this.firminfo.id).then(() => {
|
|
|
|
this.getPolicyByJobIdDaotian(this.firminfo.id).then(() => {
|
|
|
|
this.getJobDetail(this.firminfo.id);
|
|
|
|
this.getJobDetail(this.firminfo.id);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// this.getPolicyByJobId(this.firminfo.id || "").then(() => {
|
|
|
|
// this.getPolicyByJobId(this.firminfo.id || "").then(() => {
|
|
|
|
// this.getJobDetail(this.firminfo.id || "");
|
|
|
|
// this.getJobDetail(this.firminfo.id || "");
|
|
|
|
@ -484,30 +483,28 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 组件方法
|
|
|
|
// 组件方法
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
openModal() {
|
|
|
|
openModal() {
|
|
|
|
this.isModalVisible = true;
|
|
|
|
this.isModalVisible = true;
|
|
|
|
// 可在此处加载或更新表格数据
|
|
|
|
// 可在此处加载或更新表格数据
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
getSelectedJobId(val){
|
|
|
|
getSelectedJobId(val) {
|
|
|
|
console.log(val);
|
|
|
|
console.log(val);
|
|
|
|
this.selectedJobId = val;
|
|
|
|
this.selectedJobId = val;
|
|
|
|
this.jobClassify = val.jobClassify;
|
|
|
|
this.jobClassify = val.jobClassify;
|
|
|
|
this.firminfo.id = val.jobId;
|
|
|
|
this.firminfo.id = val.jobId;
|
|
|
|
this.getJobDetail(val.jobId);
|
|
|
|
this.getJobDetail(val.jobId);
|
|
|
|
if(this.jobClassify == 1){
|
|
|
|
if (this.jobClassify == 1) {
|
|
|
|
this.getPolicyByJobId(val.jobId).then(() => {
|
|
|
|
this.getPolicyByJobId(val.jobId).then(() => {
|
|
|
|
this.getJobDetail(val.jobId);
|
|
|
|
this.getJobDetail(val.jobId);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}else{
|
|
|
|
} else {
|
|
|
|
this.getPolicyByJobIdDaotian(val.jobId).then(() => {
|
|
|
|
this.getPolicyByJobIdDaotian(val.jobId).then(() => {
|
|
|
|
this.getJobDetail(val.jobId);
|
|
|
|
this.getJobDetail(val.jobId);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async getJob(value) {
|
|
|
|
async getJob(value) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
const { data } = await getStoreJobApi(value.id);
|
|
|
|
const { data } = await getStoreJobApi(value.id);
|
|
|
|
@ -570,12 +567,12 @@ export default {
|
|
|
|
console.log(data);
|
|
|
|
console.log(data);
|
|
|
|
if (data.status === 200) {
|
|
|
|
if (data.status === 200) {
|
|
|
|
this.agencyName = data.data.agency.agencyName;
|
|
|
|
this.agencyName = data.data.agency.agencyName;
|
|
|
|
this.firminfo = disposeJobListData(data.data.record);
|
|
|
|
this.firminfo = disposeJobListData(data.data.record);
|
|
|
|
if (this.jobClassify == 1) {
|
|
|
|
if (this.jobClassify == 1) {
|
|
|
|
this.storeName = data.data.store.aliasName;
|
|
|
|
this.storeName = data.data.store.aliasName;
|
|
|
|
}else{
|
|
|
|
} else {
|
|
|
|
this.storeName = data.data.record.storeName;
|
|
|
|
this.storeName = data.data.record.storeName;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.form.policyNum = data.data.record.policyNum;
|
|
|
|
this.form.policyNum = data.data.record.policyNum;
|
|
|
|
console.log(this.form.policyNum);
|
|
|
|
console.log(this.form.policyNum);
|
|
|
|
if (this.form.policyNum == "" && this.form.policy != "") {
|
|
|
|
if (this.form.policyNum == "" && this.form.policy != "") {
|
|
|
|
@ -643,7 +640,7 @@ export default {
|
|
|
|
return getPolicyByJobIdApiDaotian(value).then(({ data }) => {
|
|
|
|
return getPolicyByJobIdApiDaotian(value).then(({ data }) => {
|
|
|
|
console.log(data);
|
|
|
|
console.log(data);
|
|
|
|
if (data.status === 200) {
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -700,46 +697,46 @@ export default {
|
|
|
|
this.confirmLoading = false;
|
|
|
|
this.confirmLoading = false;
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// console.log(dataObj);
|
|
|
|
// console.log(dataObj);
|
|
|
|
// return;
|
|
|
|
// return;
|
|
|
|
let dataObj = {};
|
|
|
|
let dataObj = {};
|
|
|
|
let data = {};
|
|
|
|
let data = {};
|
|
|
|
if(this.jobClassify == 2){
|
|
|
|
if (this.jobClassify == 2) {
|
|
|
|
|
|
|
|
console.log(this.form);
|
|
|
|
console.log(this.form);
|
|
|
|
this.form["interviewTimeStr"] = that.form.interviewTime;
|
|
|
|
this.form["interviewTimeStr"] = that.form.interviewTime;
|
|
|
|
this.form["receptionTimeStr"] = that.form.receptionTime;
|
|
|
|
this.form["receptionTimeStr"] = that.form.receptionTime;
|
|
|
|
this.form["jobId"] = this.firminfo.id;
|
|
|
|
this.form["jobId"] = this.firminfo.id
|
|
|
|
this.form["customJobId"] = this.firminfo.id;
|
|
|
|
this.form["customJobId"] = this.firminfo.id
|
|
|
|
this.form["applyUserId"] = this.proxyinfo.id;
|
|
|
|
this.form["applyUserId"] = this.proxyinfo.id
|
|
|
|
this.form["agencyUserId"] = this.proxyinfo.id;
|
|
|
|
this.form["agencyUserId"] =this.proxyinfo.id
|
|
|
|
|
|
|
|
|
|
|
|
dataObj = qs.stringify({
|
|
|
|
dataObj = qs.stringify({
|
|
|
|
...this.form,
|
|
|
|
...this.form,
|
|
|
|
storeJobId: this.firminfo.id,
|
|
|
|
storeJobId: this.firminfo.id,
|
|
|
|
policyIdx: this.currentPolicy,
|
|
|
|
policyIdx: this.currentPolicy,
|
|
|
|
// policy: '',
|
|
|
|
// policy: '',
|
|
|
|
});
|
|
|
|
});
|
|
|
|
data = await recordBillApiDaotian(dataObj);
|
|
|
|
data = await recordBillApiDaotian(dataObj);
|
|
|
|
} else {
|
|
|
|
}else{
|
|
|
|
dataObj = qs.stringify({
|
|
|
|
dataObj = qs.stringify({
|
|
|
|
...this.form,
|
|
|
|
...this.form,
|
|
|
|
storeJobId: this.firminfo.id,
|
|
|
|
storeJobId: this.firminfo.id,
|
|
|
|
policyIdx: this.currentPolicy,
|
|
|
|
policyIdx: this.currentPolicy,
|
|
|
|
// policy: '',
|
|
|
|
// policy: '',
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data = await recordBillApi(dataObj);
|
|
|
|
data = await recordBillApi(dataObj);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (data.status === 200) {
|
|
|
|
console.log("data handleOk", data);
|
|
|
|
|
|
|
|
if (data.data.status === 200) {
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
this.confirmLoading = false;
|
|
|
|
this.confirmLoading = false;
|
|
|
|
|
|
|
|
|
|
|
|
this.$router.push("/recordsuccess");
|
|
|
|
this.$router.push("/recordsuccess");
|
|
|
|
}, 1000);
|
|
|
|
}, 1000);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(data.msg);
|
|
|
|
this.$message.error(data.data.msg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.confirmLoading = false;
|
|
|
|
this.confirmLoading = false;
|
|
|
|
|
|
|
|
|
|
|
|
@ -1176,7 +1173,7 @@ export default {
|
|
|
|
// this.$message.warning("请先选择企业");
|
|
|
|
// this.$message.warning("请先选择企业");
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
toList() {
|
|
|
|
toList() {
|
|
|
|
this.$router.push({
|
|
|
|
this.$router.push({
|
|
|
|
path: `/list`,
|
|
|
|
path: `/list`,
|
|
|
|
|