任务记录 手动识别 常驻1 批量添加

master
wanglei 1 year ago
parent abd0bba89a
commit 13f161d424

@ -17,6 +17,15 @@ export function getCzrkdj(id) {
})
}
// 新增常住人口登记1 批量添加
export function batchAdd(data) {
return request({
url: '/dangan/czrkdj/batchAdd',
method: 'post',
data: data
})
}
// 新增常住人口登记
export function addCzrkdj(data) {
return request({

@ -2048,19 +2048,39 @@
<!--常住人口登记表1-->
<el-row :gutter="10" v-if="form.ywType==='option1'">
<el-col :span="24">
<el-form-item label="户主或与户主关系" prop="relation" label-width="130px">
<el-input v-model="form.relation" placeholder="请输入户主或与户主关系" />
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="姓名" prop="name" label-width="130px">
<el-input v-model="form.name" placeholder="请输入姓名" />
</el-form-item>
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="addOption1"
>添加行</el-button>
</el-col>
<el-col :span="24">
<el-form-item label="出生年月日" prop="birthday" label-width="130px">
<el-input v-model="form.birthday" placeholder="请输入出生年月日" />
</el-form-item>
<el-col :span="24" style="margin-top: 10px;">
<el-row v-for="(item,index) in option1List" :key="index">
<el-col :span="8">
<el-form-item label="户主或与户主关系" label-width="130px">
<el-input v-model="item.relation" placeholder="请输入户主或与户主关系" />
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="姓名" label-width="60px">
<el-input v-model="item.name" placeholder="请输入姓名" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="出生年月日" label-width="100px">
<el-input v-model="item.birthday" placeholder="请输入出生年月日" />
</el-form-item>
</el-col>
<el-col :span="2" style="text-align: center">
<el-button type="danger" icon="el-icon-delete" circle @click="delOption1(index)"></el-button>
</el-col>
</el-row>
</el-col>
</el-row>
@ -2309,7 +2329,7 @@
</template>
<script>
import { listCzrkdj, getCzrkdj, delCzrkdj, addCzrkdj, updateCzrkdj } from "@/api/dangan/czrkdj";
import { listCzrkdj, getCzrkdj, delCzrkdj, addCzrkdj, updateCzrkdj, batchAdd } from "@/api/dangan/czrkdj";
import { listCatalog } from "@/api/dangan/catalog";
import { listPictureRecard } from "@/api/dangan/pictureRecard";
import { listByIds } from "@/api/dangan/task";
@ -2464,7 +2484,9 @@ export default {
pageSize: 10,
ids: null
}
}
},
// 1
option1List: []
};
},
created() {
@ -2632,7 +2654,8 @@ export default {
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.form.ywType = this.queryParams.ywType
this.form.ywType = this.queryParams.ywType;
this.option1List=[];
this.open_add = true;
},
/** 修改按钮操作 */
@ -2809,11 +2832,39 @@ export default {
this.form.auditStatus = '0';
this.form.errorCorrect = 2;
addCzrkdj(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open_add = false;
this.getList();
});
if(this.form.ywType==='option1'){
if(this.option1List.length<1){
this.$alert(`至少添加1条记录`, `提示`, {
type: 'warning'
});
}else {
let arr = [];
console.log(this.option1List);
this.option1List.forEach( item =>{
const obj = {...this.form};
obj.relation=item.relation;
obj.name=item.name;
obj.birthday=item.birthday;
arr.push(obj)
})
batchAdd(arr).then(response => {
this.$modal.msgSuccess("新增成功");
this.open_add = false;
this.getList();
});
}
}else {
addCzrkdj(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open_add = false;
this.getList();
});
}
}else {
this.$alert(`请先点击【选择档案记录】选择识别图片`, `提示`, {
type: 'warning'
@ -2861,6 +2912,23 @@ export default {
this.sbtp.loading = false;
});
},
//
addOption1(){
if(this.option1List.length>7){
this.$alert(`最多添加8条记录`, `提示`, {
type: 'warning'
});
}else {
this.option1List.push({
relation: null,
name: null,
birthday: null,
})
}
},
delOption1(index){
this.option1List.splice(index, 1)
}
}
};
</script>

@ -140,12 +140,20 @@
<el-table v-loading="xgtp.loading" :data="xgtp.list" border>
<el-table-column label="图片ID" align="center" prop="id" fixed min-width="90"/>
<el-table-column label="档案室密集柜路径" align="center" prop="wlsjPath" min-width="120" show-overflow-tooltip/>
<!-- <el-table-column label="上传时间" align="center" prop="createTime" min-width="100" show-overflow-tooltip/>-->
<el-table-column label="图片路径" align="center" prop="picUrl">
<template slot-scope="scope">
<image-preview :src="scope.row.picUrl" :width="50" :height="50"/>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" v-if="xgtp.title==='失败图片'">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
@click="onSdsb(scope.row)"
>手动识别</el-button>
</template>
</el-table-column>
</el-table>
<pagination
@ -253,12 +261,274 @@
</div>
</el-dialog>
<!-- 手动识别-->
<el-dialog title="手动识别" :visible.sync="shiBie.open" width="90%" append-to-body top="10px !important">
<div style="height: 86vh;">
<el-form ref="shiBieForm" :model="shiBie.form" label-width="60px">
<el-row :gutter="20">
<el-col :span="12">
<el-carousel height="calc(86vh - 100px)" :autoplay="false">
<el-carousel-item>
<div class="jc_sb_img" style="height:100%; overflow:auto; text-align:center; font-size:0">
<el-image style="height:100%;" :src="shiBie.form.pictures" fit="contain" :preview-src-list="[shiBie.form.pictures]"></el-image>
</div>
</el-carousel-item>
</el-carousel>
</el-col>
<!--常住人口登记表1-->
<el-col :span="12">
<el-row :gutter="10" v-if="shiBie.form.ywType==='option1'">
<el-col :span="24">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="addOption1"
>添加行</el-button>
</el-col>
<el-col :span="24" style="margin-top: 10px;">
<el-row v-for="(item,index) in option1List" :key="index">
<el-col :span="8">
<el-form-item label="户主或与户主关系" label-width="130px">
<el-input v-model="item.relation" placeholder="请输入户主或与户主关系" />
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="姓名" label-width="60px">
<el-input v-model="item.name" placeholder="请输入姓名" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="出生年月日" label-width="100px">
<el-input v-model="item.birthday" placeholder="请输入出生年月日" />
</el-form-item>
</el-col>
<el-col :span="2" style="text-align: center">
<el-button type="danger" icon="el-icon-delete" circle @click="delOption1(index)"></el-button>
</el-col>
</el-row>
</el-col>
</el-row>
</el-col>
<!--常住人口登记表2-->
<el-col :span="12" v-if="shiBie.form.ywType==='option3'">
<el-form-item label="户主姓名" prop="hzName" label-width="90px">
<el-input v-model="shiBie.form.hzName" placeholder="请输入户主姓名" />
</el-form-item>
<el-form-item label="姓名" prop="name" label-width="90px">
<el-input v-model="shiBie.form.name" placeholder="请输入姓名" />
</el-form-item>
<el-form-item label="出生日期" prop="birthday" label-width="90px">
<el-input v-model="shiBie.form.birthday" placeholder="请输入出生日期" />
</el-form-item>
<el-form-item label="身份证号" prop="cardId" label-width="90px">
<el-input v-model="shiBie.form.cardId" placeholder="请输入身份证号" />
</el-form-item>
</el-col>
<!--常住人口登记表3-->
<el-col :span="12" v-if="shiBie.form.ywType==='option9'">
<el-form-item label="户主姓名" prop="hzName" label-width="90px">
<el-input v-model="shiBie.form.hzName" placeholder="请输入户主姓名" />
</el-form-item>
<el-form-item label="姓名" prop="name" label-width="90px">
<el-input v-model="shiBie.form.name" placeholder="请输入姓名" />
</el-form-item>
<el-form-item label="出生日期" prop="birthday" label-width="90px">
<el-input v-model="shiBie.form.birthday" placeholder="请输入出生日期" />
</el-form-item>
<el-form-item label="监护人1" prop="jhr1" label-width="90px">
<el-input v-model="shiBie.form.jhr1" placeholder="请输入监护人1" />
</el-form-item>
<el-form-item label="监护人2" prop="jhr2" label-width="90px">
<el-input v-model="shiBie.form.jhr2" placeholder="请输入监护人2" />
</el-form-item>
<el-form-item label="监护关系1" prop="jhgx1" label-width="90px">
<el-input v-model="shiBie.form.jhgx1" placeholder="请输入监护关系1" />
</el-form-item>
<el-form-item label="监护关系2" prop="jhgx2" label-width="90px">
<el-input v-model="shiBie.form.jhgx2" placeholder="请输入监护关系2" />
</el-form-item>
<el-form-item label="身份证号" prop="cardId" label-width="90px">
<el-input v-model="shiBie.form.cardId" placeholder="请输入身份证号" />
</el-form-item>
</el-col>
<!--常住卡-->
<el-col :span="12" v-if="shiBie.form.ywType==='option2'">
<el-form-item label="户主姓名与户主关系" prop="relation" label-width="140px">
<el-input v-model="shiBie.form.relation" placeholder="请输入户主姓名与户主关系" />
</el-form-item>
<el-form-item label="姓名" prop="name" label-width="140px">
<el-input v-model="shiBie.form.name" placeholder="请输入姓名" />
</el-form-item>
<el-form-item label="出生日期" prop="birthday" label-width="140px">
<el-input v-model="shiBie.form.birthday" placeholder="请输入出生日期" />
</el-form-item>
</el-col>
<el-col :span="12" v-if="shiBie.form.ywType==='option4'">
<el-form-item label="婴儿姓名" prop="name" label-width="100px">
<el-input v-model="shiBie.form.name" placeholder="请输入婴儿姓名" />
</el-form-item>
<el-form-item label="出生时间" prop="birthday" label-width="100px">
<el-input v-model="shiBie.form.birthday" placeholder="请输入出生时间" />
</el-form-item>
<el-form-item label="母亲姓名" prop="mName" label-width="100px">
<el-input v-model="shiBie.form.mName" placeholder="请输入母亲姓名" />
</el-form-item>
<el-form-item label="母亲身份证号" prop="mCardId" label-width="100px">
<el-input v-model="shiBie.form.mCardId" placeholder="请输入母亲身份证号" />
</el-form-item>
<el-form-item label="父亲姓名" prop="fName" label-width="100px">
<el-input v-model="shiBie.form.fName" placeholder="请输入父亲姓名" />
</el-form-item>
<el-form-item label="父亲身份证号" prop="fCardId" label-width="100px">
<el-input v-model="shiBie.form.fCardId" placeholder="请输入父亲身份证号" />
</el-form-item>
</el-col>
<el-col :span="12" v-if="shiBie.form.ywType==='option5'">
<el-form-item label="姓名1" prop="name1" label-width="120px">
<el-input v-model="shiBie.form.name1" placeholder="请输入姓名1" />
</el-form-item>
<el-form-item label="居民身份证编号1" prop="cardId1" label-width="120px">
<el-input v-model="shiBie.form.cardId1" placeholder="请输入居民身份证编号1" />
</el-form-item>
<el-form-item label="姓名2" prop="name2" label-width="120px">
<el-input v-model="shiBie.form.name2" placeholder="请输入姓名2" />
</el-form-item>
<el-form-item label="居民身份证编号2" prop="cardId2" label-width="120px">
<el-input v-model="shiBie.form.cardId2" placeholder="请输入居民身份证编号2" />
</el-form-item>
<el-form-item label="姓名3" prop="name3" label-width="120px">
<el-input v-model="shiBie.form.name3" placeholder="请输入姓名3" />
</el-form-item>
<el-form-item label="居民身份证编号3" prop="cardId3" label-width="120px">
<el-input v-model="shiBie.form.cardId3" placeholder="请输入居民身份证编号3" />
</el-form-item>
<el-form-item label="姓名4" prop="name4" label-width="120px">
<el-input v-model="shiBie.form.name4" placeholder="请输入姓名4" />
</el-form-item>
<el-form-item label="居民身份证编号4" prop="cardId4" label-width="120px">
<el-input v-model="shiBie.form.cardId4" placeholder="请输入居民身份证编号4" />
</el-form-item>
</el-col>
<el-col :span="12" v-if="shiBie.form.ywType==='option6'">
<el-form-item label="姓名女" label-width="90px">
<el-input v-model="shiBie.form.wName" placeholder="请输入姓名女" />
</el-form-item>
<el-form-item label="身份证号女" label-width="90px">
<el-input v-model="shiBie.form.wCardId" placeholder="请输入身份证号女" />
</el-form-item>
<el-form-item label="姓名男" label-width="90px">
<el-input v-model="shiBie.form.mName" placeholder="请输入姓名男" />
</el-form-item>
<el-form-item label="身份证号男" label-width="90px">
<el-input v-model="shiBie.form.mCardId" placeholder="请输入身份证号男" />
</el-form-item>
<el-form-item label="出生日期" label-width="90px">
<el-input v-model="shiBie.form.birthday" placeholder="请输入出生日期" />
</el-form-item>
</el-col>
<el-col :span="12" v-if="shiBie.form.ywType==='option7'">
<el-form-item label="申请人姓名" prop="name" label-width="90px">
<el-input v-model="shiBie.form.name" placeholder="请输入申请人姓名" />
</el-form-item>
<el-form-item label="姓名1" prop="name1" label-width="90px">
<el-input v-model="shiBie.form.name1" placeholder="请输入姓名1" />
</el-form-item>
<el-form-item label="姓名2" prop="name2" label-width="90px">
<el-input v-model="shiBie.form.name2" placeholder="请输入姓名2" />
</el-form-item>
<el-form-item label="姓名3" prop="name3" label-width="90px">
<el-input v-model="shiBie.form.name3" placeholder="请输入姓名3" />
</el-form-item>
<el-form-item label="姓名4" prop="name4" label-width="90px">
<el-input v-model="shiBie.form.name4" placeholder="请输入姓名4" />
</el-form-item>
<el-form-item label="姓名5" prop="name5" label-width="90px">
<el-input v-model="shiBie.form.name5" placeholder="请输入姓名5" />
</el-form-item>
</el-col>
<el-col :span="12" class="jc_sb" v-if="shiBie.form.ywType==='option8'">
<el-form-item label="申请人姓名" prop="name" label-width="90px">
<el-input v-model="shiBie.form.name" placeholder="请输入申请人姓名" />
</el-form-item>
<el-form-item label="身份证号" prop="cardId" label-width="90px">
<el-input v-model="shiBie.form.cardId" placeholder="请输入身份证号" />
</el-form-item>
<el-form-item label="姓名1" prop="name1" label-width="90px">
<el-input v-model="shiBie.form.name1" placeholder="请输入姓名1" />
</el-form-item>
<el-form-item label="出生日期1" prop="birthDate1" label-width="90px">
<el-input v-model="shiBie.form.birthDate1" placeholder="请输入出生日期1" />
</el-form-item>
<el-form-item label="身份证号1" prop="cardId1" label-width="90px">
<el-input v-model="shiBie.form.cardId1" placeholder="请输入身份证号1" />
</el-form-item>
<el-form-item label="姓名2" prop="name2" label-width="90px">
<el-input v-model="shiBie.form.name2" placeholder="请输入姓名2" />
</el-form-item>
<el-form-item label="出生日期2" prop="birthDate2" label-width="90px">
<el-input v-model="shiBie.form.birthDate2" placeholder="请输入出生日期2" />
</el-form-item>
<el-form-item label="身份证号2" prop="cardId2" label-width="90px">
<el-input v-model="shiBie.form.cardId2" placeholder="请输入身份证号2" />
</el-form-item>
<el-form-item label="姓名3" prop="name3" label-width="90px">
<el-input v-model="shiBie.form.name3" placeholder="请输入姓名3" />
</el-form-item>
<el-form-item label="出生日期3" prop="birthDate3" label-width="90px">
<el-input v-model="shiBie.form.birthDate3" placeholder="请输入出生日期3" />
</el-form-item>
<el-form-item label="身份证号3" prop="cardId3" label-width="90px">
<el-input v-model="shiBie.form.cardId3" placeholder="请输入身份证号3" />
</el-form-item>
<el-form-item label="姓名4" prop="name4" label-width="90px">
<el-input v-model="shiBie.form.name4" placeholder="请输入姓名4" />
</el-form-item>
<el-form-item label="出生日期4" prop="birthDate4" label-width="90px">
<el-input v-model="shiBie.form.birthDate4" placeholder="请输入出生日期4" />
</el-form-item>
<el-form-item label="身份证号4" prop="cardId4" label-width="90px">
<el-input v-model="shiBie.form.cardId4" placeholder="请输入身份证号4" />
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer" style="text-align:right; margin-top: 30px;">
<el-button type="primary" @click="shiBieSubmit"> </el-button>
<el-button @click="shiBieCancel"> </el-button>
</div>
</div>
</el-dialog>
</div>
</template>
<script>
import { listTask, listByIds, getTask } from "@/api/dangan/task";
import { reRecongnize } from "@/api/dangan/collection";
import { addCzrkdj, batchAdd } from "@/api/dangan/czrkdj";
import { addBirthDJ } from "@/api/dangan/birthDJ";
import { addYtzm } from "@/api/dangan/ytzm";
import { addQyz } from "@/api/dangan/qyz";
import { addZqz } from "@/api/dangan/zqz";
import { addZfnyhkcg } from "@/api/dangan/zfnyhkcg";
import axios from "axios";
export default {
@ -333,7 +603,13 @@
pageSize: 10,
ids: null
}
}
},
shiBie: {
open: false,
form: {}
},
// 1
option1List: []
};
},
created() {
@ -484,6 +760,423 @@
this.percentage = 0
})
},
//
onSdsb(row){
console.log(4545, row);
this.option1List=[];
if(this.form.ywType==='option1'||this.form.ywType==='option3'||this.form.ywType==='option9'||this.form.ywType==='option2'){
this.shiBie.form = {
id: null,
ywType: null,
taskId: null,
muId: null,
muPath: null,
relation: null,
name: null,
otherName: null,
usedName: null,
sex: null,
jhr1: null,
jhgx1: null,
jhr2: null,
jhgx2: null,
gmcszqfrq: null,
birthday: null,
address: null,
yj: null,
nation: null,
zjxy: null,
whcd: null,
hyzk: null,
zyjfwcs: null,
bxsqtzz: null,
gmzdhhmqfjgjrq: null,
hsyhdqlbxshsdjhk: null,
hsybxshcqlhsdjhk: null,
hshyqwhd: null,
zxhkrq: null,
zxhkyy: null,
hkdjsxbgjznrsjjblrz1: null,
hkdjsxbgjznrsjjblrz2: null,
jiguan: null,
xzz: null,
hzName: null,
hb: null,
djrq: null,
byzk: null,
height: null,
blood: null,
zy: null,
slReason: null,
sljmsfzqm: null,
qfyj: null,
yxrq: null,
cardId: null,
picIds: null,
pictures: null,
allPicIds: null,
allPics: null,
errorCorrect: null,
auditStatus: null,
auditName: null,
auditResult: null,
auditReason: null,
remark: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null
}
}
if(this.form.ywType==='option4'){
this.shiBie.form = {
id: null,
ywType: 'option4',
taskId: null,
muId: null,
muPath: null,
birthNum: null,
name: null,
birthday: null,
sex: null,
bornAddress: null,
mName: null,
mAge: null,
mGj: null,
mNation: null,
mCardId: null,
fName: null,
fAge: null,
fGj: null,
fNation: null,
fCardId: null,
homeAddress: null,
momSign: null,
jsrySign: null,
jsUnit: null,
djType: null,
picIds: null,
pictures: null,
allPicIds: null,
allPics: null,
errorCorrect: null,
auditStatus: null,
auditName: null,
auditResult: null,
auditReason: null,
remark: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null
}
}
if(this.form.ywType==='option5'){
this.shiBie.form = {
id: null,
ywType: 'option5',
taskId: null,
muId: null,
muPath: null,
fwUnit: null,
wjXh: null,
name1: null,
sex1: null,
cardId1: null,
name2: null,
sex2: null,
cardId2: null,
name3: null,
sex3: null,
cardId3: null,
name4: null,
sex4: null,
cardId4: null,
qyReason: null,
yAddress: null,
qwAddress: null,
sDate: null,
eDate: null,
cbr: null,
picIds: null,
pictures: null,
allPicIds: null,
allPics: null,
errorCorrect: null,
auditStatus: null,
auditName: null,
auditResult: null,
auditReason: null,
remark: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null
}
}
if(this.form.ywType==='option6'){
this.shiBie.form = {
id: null,
ywType: 'option6',
taskId: null,
muId: null,
muPath: null,
year: null,
xh: null,
wName: null,
wUnit: null,
wCardId: null,
mName: null,
mUnit: null,
mCardId: null,
syzh: null,
birthday: null,
hospital: null,
babySex: null,
suggest: null,
pcsAddress: null,
tbDate1: null,
tbDate2: null,
picIds: null,
pictures: null,
allPicIds: null,
allPics: null,
errorCorrect: null,
auditStatus: null,
auditName: null,
auditResult: null,
auditReason: null,
remark: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null
}
}
if(this.form.ywType==='option7'){
this.shiBie.form = {
id: null,
ywType: 'option6',
taskId: null,
muId: null,
muPath: null,
num: null,
name: null,
address: null,
relation1: null,
name1: null,
sex1: null,
relation2: null,
name2: null,
sex2: null,
relation3: null,
name3: null,
sex3: null,
relation4: null,
name4: null,
sex4: null,
relation5: null,
name5: null,
sex5: null,
jg1: null,
jg2: null,
cbr: null,
cbDate: null,
picIds: null,
pictures: null,
allPicIds: null,
allPics: null,
errorCorrect: null,
auditStatus: null,
auditName: null,
auditResult: null,
auditReason: null,
remark: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null
}
}
if(this.form.ywType==='option8'){
this.shiBie.form = {
id: null,
ywType: 'option8',
taskId: null,
muId: null,
muPath: null,
num: null,
name: null,
cardId: null,
address: null,
djJg: null,
relation1: null,
name1: null,
sex1: null,
birthDate1: null,
cardId1: null,
relation2: null,
name2: null,
sex2: null,
birthDate2: null,
cardId2: null,
relation3: null,
name3: null,
birthDate3: null,
sex3: null,
cardId3: null,
relation4: null,
name4: null,
sex4: null,
birthDate4: null,
cardId4: null,
fwdw: null,
qrAddress: null,
zqReason: null,
pzjg: null,
cbr: null,
qfDate: null,
picIds: null,
pictures: null,
allPicIds: null,
allPics: null,
errorCorrect: null,
auditStatus: null,
auditName: null,
auditResult: null,
auditReason: null,
remark: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null
}
}
this.shiBie.form.ywType = this.form.ywType;
this.shiBie.form.taskId = this.form.id;
this.shiBie.form.muId = this.form.muId;
this.shiBie.form.muPath = this.form.muPath;
this.shiBie.form.picIds = row.id;
this.shiBie.form.pictures = row.picUrl;
this.shiBie.form.allPicIds = row.id;
this.shiBie.form.allPics = row.picUrl;
this.shiBie.form.auditStatus = '0';
this.shiBie.form.errorCorrect = 2;
console.log(6666, this.shiBie.form);
this.shiBie.open = true;
},
shiBieSubmit(){
this.$refs["shiBieForm"].validate(valid => {
if (valid) {
if(this.shiBie.form.ywType==='option1'){
if(this.option1List.length<1){
this.$alert(`至少添加1条记录`, `提示`, {
type: 'warning'
});
}else {
let arr = [];
console.log(this.option1List);
this.option1List.forEach( item =>{
const obj = {...this.shiBie.form};
obj.relation=item.relation;
obj.name=item.name;
obj.birthday=item.birthday;
arr.push(obj)
})
batchAdd(arr).then(response => {
this.$modal.msgSuccess("手动识别成功");
this.shiBie.open= false;
this.xgtp.open= false;
this.open= false;
this.getList();
});
}
}
if(this.shiBie.form.ywType==='option3'||this.shiBie.form.ywType==='option9'||this.shiBie.form.ywType==='option2'){
addCzrkdj(this.shiBie.form).then(response => {
this.$modal.msgSuccess("手动识别成功");
this.shiBie.open= false;
this.xgtp.open= false;
this.open= false;
this.getList();
});
}
if(this.shiBie.form.ywType==='option4'){
addBirthDJ(this.shiBie.form).then(response => {
this.$modal.msgSuccess("手动识别成功");
this.shiBie.open= false;
this.xgtp.open= false;
this.open= false;
this.getList();
});
}
if(this.shiBie.form.ywType==='option5'){
addQyz(this.shiBie.form).then(response => {
this.$modal.msgSuccess("手动识别成功");
this.shiBie.open= false;
this.xgtp.open= false;
this.open= false;
this.getList();
});
}
if(this.shiBie.form.ywType==='option6'){
addYtzm(this.shiBie.form).then(response => {
this.$modal.msgSuccess("手动识别成功");
this.shiBie.open= false;
this.xgtp.open= false;
this.open= false;
this.getList();
});
}
if(this.shiBie.form.ywType==='option7'){
addZfnyhkcg(this.shiBie.form).then(response => {
this.$modal.msgSuccess("手动识别成功");
this.shiBie.open= false;
this.xgtp.open= false;
this.open= false;
this.getList();
});
}
if(this.shiBie.form.ywType==='option8'){
addZqz(this.shiBie.form).then(response => {
this.$modal.msgSuccess("手动识别成功");
this.shiBie.open= false;
this.xgtp.open= false;
this.open= false;
this.getList();
});
}
}
});
},
shiBieCancel(){
this.shiBie.open = false;
},
//
addOption1(){
if(this.option1List.length>3){
this.$alert(`最多添加4条记录`, `提示`, {
type: 'warning'
});
}else {
this.option1List.push({
relation: null,
name: null,
birthday: null,
})
}
},
delOption1(index){
this.option1List.splice(index, 1)
}
}
};
</script>
@ -509,4 +1202,27 @@
}
}
.el-carousel__item{
background-color: #b5c2d2;
}
.jc_sb{
.el-form-item {
margin-bottom: 10px;
}
}
.jc_sb_img::-webkit-scrollbar{
width: 10px;
height: 10px;
}
.jc_sb_img::-webkit-scrollbar-thumb{
background-color: #54b5ba;
}
.jc_sb_img::-webkit-scrollbar-track{
background-color: #cccccc;
}
</style>

Loading…
Cancel
Save