|
|
|
@ -418,14 +418,16 @@
|
|
|
|
:labelCol="{ span: 4 }"
|
|
|
|
:labelCol="{ span: 4 }"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<!-- <a-input v-model="form.policy" type='textarea'/> -->
|
|
|
|
<!-- <a-input v-model="form.policy" type='textarea'/> -->
|
|
|
|
<div class="policy" style="">{{ form.policy }}</div>
|
|
|
|
<div class="policy" style="min-height: 30px !important">
|
|
|
|
|
|
|
|
{{ form.policy }}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="openContral" v-if="isContainerShow">
|
|
|
|
<div class="openContral" v-if="isContainerShow">
|
|
|
|
<span v-if="isFold" @click="toFold(1)">展开</span
|
|
|
|
<span v-if="isFold" @click="toFold(1)">展开</span
|
|
|
|
><span v-else @click="toFold(2)">收起</span>
|
|
|
|
><span v-else @click="toFold(2)">收起</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-form-model-item>
|
|
|
|
<a-form-model-item
|
|
|
|
<a-form-model-item
|
|
|
|
ref="peoplecard"
|
|
|
|
ref="headerUploadRef"
|
|
|
|
label="附件"
|
|
|
|
label="附件"
|
|
|
|
prop="peoplecard"
|
|
|
|
prop="peoplecard"
|
|
|
|
:wrapperCol="{ span: 18 }"
|
|
|
|
:wrapperCol="{ span: 18 }"
|
|
|
|
@ -438,6 +440,11 @@
|
|
|
|
:default-file-list="fileList2"
|
|
|
|
:default-file-list="fileList2"
|
|
|
|
class="upload-list-inline"
|
|
|
|
class="upload-list-inline"
|
|
|
|
@change="handleChange2"
|
|
|
|
@change="handleChange2"
|
|
|
|
|
|
|
|
:remove="
|
|
|
|
|
|
|
|
(file) => {
|
|
|
|
|
|
|
|
removeFile(file, 'header');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
"
|
|
|
|
@preview="handlePreview"
|
|
|
|
@preview="handlePreview"
|
|
|
|
:beforeUpload="beforeUpload"
|
|
|
|
:beforeUpload="beforeUpload"
|
|
|
|
:data="dataObj"
|
|
|
|
:data="dataObj"
|
|
|
|
@ -517,24 +524,8 @@ export default {
|
|
|
|
// 组件状态值
|
|
|
|
// 组件状态值
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
fileList2: [
|
|
|
|
fileList2: [],
|
|
|
|
{
|
|
|
|
fileListT2: [],
|
|
|
|
uid: "-1",
|
|
|
|
|
|
|
|
name: "xxx.png",
|
|
|
|
|
|
|
|
status: "done",
|
|
|
|
|
|
|
|
url: "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png",
|
|
|
|
|
|
|
|
thumbUrl:
|
|
|
|
|
|
|
|
"https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
uid: "-2",
|
|
|
|
|
|
|
|
name: "yyy.png",
|
|
|
|
|
|
|
|
status: "done",
|
|
|
|
|
|
|
|
url: "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png",
|
|
|
|
|
|
|
|
thumbUrl:
|
|
|
|
|
|
|
|
"https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
// facetimedate: "",
|
|
|
|
// facetimedate: "",
|
|
|
|
previewVisible: false,
|
|
|
|
previewVisible: false,
|
|
|
|
proxyStatus: "", // 代理选择的控制
|
|
|
|
proxyStatus: "", // 代理选择的控制
|
|
|
|
@ -650,6 +641,7 @@ export default {
|
|
|
|
interviewTime: "", // 面试时间
|
|
|
|
interviewTime: "", // 面试时间
|
|
|
|
receptionTime: "", //接待时间
|
|
|
|
receptionTime: "", //接待时间
|
|
|
|
idCardImageUrl: "",
|
|
|
|
idCardImageUrl: "",
|
|
|
|
|
|
|
|
imgs: "",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
proxyinfo: {},
|
|
|
|
proxyinfo: {},
|
|
|
|
|
|
|
|
|
|
|
|
@ -757,6 +749,9 @@ export default {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleOk() {
|
|
|
|
handleOk() {
|
|
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
console.log(that.fileListT2);
|
|
|
|
|
|
|
|
|
|
|
|
this.$refs.ruleForm.validate(async (ispass, no) => {
|
|
|
|
this.$refs.ruleForm.validate(async (ispass, no) => {
|
|
|
|
console.log(this.form);
|
|
|
|
console.log(this.form);
|
|
|
|
console.log(ispass);
|
|
|
|
console.log(ispass);
|
|
|
|
@ -765,6 +760,8 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
if (ispass) {
|
|
|
|
if (ispass) {
|
|
|
|
console.log(this.form);
|
|
|
|
console.log(this.form);
|
|
|
|
|
|
|
|
this.form["imgs"] = that.fileListT2.toString();
|
|
|
|
|
|
|
|
|
|
|
|
const { data } = await recordBillApi({
|
|
|
|
const { data } = await recordBillApi({
|
|
|
|
...this.form,
|
|
|
|
...this.form,
|
|
|
|
storeJobId: this.firminfo.id,
|
|
|
|
storeJobId: this.firminfo.id,
|
|
|
|
@ -851,7 +848,8 @@ export default {
|
|
|
|
console.log(fileList[0]);
|
|
|
|
console.log(fileList[0]);
|
|
|
|
this.fileList = fileList;
|
|
|
|
this.fileList = fileList;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleChange2({ fileList }) {
|
|
|
|
handleChange2({ file, fileList }) {
|
|
|
|
|
|
|
|
console.log(file);
|
|
|
|
console.log(fileList);
|
|
|
|
console.log(fileList);
|
|
|
|
this.fileList2 = fileList;
|
|
|
|
this.fileList2 = fileList;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -1007,6 +1005,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
async customRequestFun2(file) {
|
|
|
|
async customRequestFun2(file) {
|
|
|
|
console.dir(file.onSuccess);
|
|
|
|
console.dir(file.onSuccess);
|
|
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
|
|
|
|
let _self = this;
|
|
|
|
let _self = this;
|
|
|
|
var formData = new FormData();
|
|
|
|
var formData = new FormData();
|
|
|
|
@ -1033,25 +1032,21 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
$.ajax({
|
|
|
|
type: "post",
|
|
|
|
type: "post",
|
|
|
|
url: "/imgs/uploadImage",
|
|
|
|
url: "http://matripe-cms.oss-cn-beijing.aliyuncs.com",
|
|
|
|
data: formData,
|
|
|
|
data: formData,
|
|
|
|
contentType: false, // 不设置Content-Type请求头
|
|
|
|
contentType: false, // 不设置Content-Type请求头
|
|
|
|
processData: false,
|
|
|
|
processData: false,
|
|
|
|
success: function (data) {
|
|
|
|
success: function (data) {
|
|
|
|
console.log(data);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
file.onSuccess();
|
|
|
|
file.onSuccess();
|
|
|
|
|
|
|
|
|
|
|
|
console.log(document.querySelector(".ant-upload-list-item-info"));
|
|
|
|
console.log(document.querySelector(".ant-upload-list-item-info"));
|
|
|
|
|
|
|
|
|
|
|
|
_self.uploadFileFlag = true;
|
|
|
|
|
|
|
|
console.log(data);
|
|
|
|
console.log(data);
|
|
|
|
var img =
|
|
|
|
var img =
|
|
|
|
_self.dataObj.host +
|
|
|
|
_self.dataObj.host +
|
|
|
|
"/" +
|
|
|
|
"/" +
|
|
|
|
_self.dataObj.key.replace("${filename}", file.file.name);
|
|
|
|
_self.dataObj.key.replace("${filename}", file.file.name);
|
|
|
|
_self.form.idCardImageUrl = img;
|
|
|
|
that.fileListT2.push(img);
|
|
|
|
console.log(_self.form.idCardImageUrl);
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
fail: function (err) {
|
|
|
|
fail: function (err) {
|
|
|
|
console.log(err);
|
|
|
|
console.log(err);
|
|
|
|
@ -1059,6 +1054,24 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
removeFile(file) {
|
|
|
|
|
|
|
|
// let fileList
|
|
|
|
|
|
|
|
// let _this = this
|
|
|
|
|
|
|
|
// fileList = this.$refs.headerUploadRef.$children[1].$children[0].items
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// console.log(this.$refs.headerUploadRef.$children[1].$children[0].items);
|
|
|
|
|
|
|
|
console.log(this.fileList2.indexOf(file));
|
|
|
|
|
|
|
|
let index = this.fileList2.indexOf(file);
|
|
|
|
|
|
|
|
this.fileListT2.splice(index, 1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log(this.fileListT2);
|
|
|
|
|
|
|
|
// fileList.forEach((item, index) => {
|
|
|
|
|
|
|
|
// if (item.uid === file.uid) {
|
|
|
|
|
|
|
|
// _this.headerFileList.splice(index, 1)
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
async handlePreview(file) {
|
|
|
|
async handlePreview(file) {
|
|
|
|
console.log(file);
|
|
|
|
console.log(file);
|
|
|
|
if (!file.url && !file.preview) {
|
|
|
|
if (!file.url && !file.preview) {
|
|
|
|
@ -1184,6 +1197,10 @@ export default {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<style scoped lang="less">
|
|
|
|
<style scoped lang="less">
|
|
|
|
|
|
|
|
/deep/ .policy {
|
|
|
|
|
|
|
|
min-height: 0 !important;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/deep/ .upload-list-inline .ant-upload-list-item {
|
|
|
|
/deep/ .upload-list-inline .ant-upload-list-item {
|
|
|
|
float: left;
|
|
|
|
float: left;
|
|
|
|
width: 220px;
|
|
|
|
width: 220px;
|
|
|
|
|