|
|
|
@ -348,7 +348,7 @@ import { recordBillApi } from "@/api/job";
|
|
|
|
import request from "@/utils/request";
|
|
|
|
import request from "@/utils/request";
|
|
|
|
// import axios from "axios";
|
|
|
|
// import axios from "axios";
|
|
|
|
import $ from "jquery";
|
|
|
|
import $ from "jquery";
|
|
|
|
|
|
|
|
// import axiosUpload from "axios";
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
// 组件名称
|
|
|
|
// 组件名称
|
|
|
|
name: "recordBill",
|
|
|
|
name: "recordBill",
|
|
|
|
@ -595,9 +595,27 @@ export default {
|
|
|
|
this.form.interviewTime = "";
|
|
|
|
this.form.interviewTime = "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleChange({ fileList }) {
|
|
|
|
async handleChange({ fileList }) {
|
|
|
|
console.log(fileList);
|
|
|
|
console.log(fileList);
|
|
|
|
this.fileList = fileList;
|
|
|
|
this.fileList = fileList;
|
|
|
|
|
|
|
|
let formData = new FormData();
|
|
|
|
|
|
|
|
formData.append("uploadFile", fileList[0]); // 一定在最后
|
|
|
|
|
|
|
|
request({
|
|
|
|
|
|
|
|
method: "post",
|
|
|
|
|
|
|
|
url: "/yishoudan/commons/idCardOcrRecognize",
|
|
|
|
|
|
|
|
data: formData,
|
|
|
|
|
|
|
|
withCredentials: true,
|
|
|
|
|
|
|
|
// headers: {'Content-Type': 'application/x-www-form-urlencoded'}
|
|
|
|
|
|
|
|
}).then((request) => {
|
|
|
|
|
|
|
|
console.log(request);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// try {
|
|
|
|
|
|
|
|
// const { data } = await getIdCardInfoApi(formData);
|
|
|
|
|
|
|
|
// console.log(data);
|
|
|
|
|
|
|
|
// } catch (error) {
|
|
|
|
|
|
|
|
// console.log(error);
|
|
|
|
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// getBase64(file) {
|
|
|
|
// getBase64(file) {
|
|
|
|
// return new Promise((resolve, reject) => {
|
|
|
|
// return new Promise((resolve, reject) => {
|
|
|
|
|