Commit 69ca571c by xue_wengang

嫌疑人三面照提取

parent 01b6d646
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -1170,6 +1170,19 @@
item2.name.substring(0, 5)
}}提取</span
>
<i
class="iconfont icontiqu"
style="cursor: pointer; font-size: 20px"
title="提取"
@click="tqxyrZp()"
v-if="item2.name.indexOf('嫌疑人') != -1"
></i>
<span
style="font-size: 12px"
@click="tqxyrZp()"
v-if="item2.name.indexOf('嫌疑人') != -1"
>嫌疑人三面照提取</span
>
</span>
</span>
</div>
......@@ -3131,6 +3144,76 @@ export default {
self.initFields();
},
methods: {
tqxyrZp() {
let self = this;
Http.get(`${url.BaseURL}/asjxxtq/queryAndSaveRyzpByAsjbh`, {
params: { asjbh: self.modify_asjbh },
headers: {
"Content-Type": "application/x-www-form-urlencoded",
"blade-auth": sessionStorage.getItem("token"),
},
}).then((res) => {
if (res.data.code == 200) {
for (let i = 0; i < res.data.data.result.length; i++) {
let message =
res.data.data.result[i].xm +
res.data.data.result[i].data.successList.toString();
self
.$confirm(message, "温馨提示", {
confirmButtonText: "确定",
showCancelButton: false,
dangerouslyUseHTMLString: true,
showClose: false,
type: "success",
})
.then(() => {});
}
self.getRyzp(
self.formLabelAlign[
self.propFormField[4].data[0].childrenAsAdd[0].id
]
);
} else {
for (let i = 0; i < res.data.data.result.length; i++) {
let message =
res.data.data.result[i].xm +
res.data.data.result[i].data.repeatList.toString();
self
.$confirm(message, res.data.data.result[i].message, {
confirmButtonText: "确定",
showCancelButton: false,
dangerouslyUseHTMLString: true,
showClose: false,
type: "warning",
})
.then(() => {});
}
}
});
},
/* 嫌疑人三面照保存 */
saveXyrzp(ryzpList) {
let url = "/tbStRyZp/tbstryzp/saveGabZp";
let self = this;
let form = {
ryzpList,
};
self
.doQueryRequest(JSON.stringify(form), url)
.then((response) => {
if (response.data.success === true) {
self.count++;
} else {
self.count++;
self.saveLoading.close();
console.log(response.data.msg);
}
})
.catch((err) => {
self.saveLoading.close();
console.log(err);
});
},
toBIgChange(msg) {
this.filePreviewFlag = true;
if (msg == "left") {
......@@ -4079,7 +4162,18 @@ export default {
.then((res) => {
if (res.data.success == true) {
if (res.data.data.dataCount == "0") {
self.getRyckZp(arr, i);
if (arr[i].zhfzxyrAsjxgrybh) {
let index = arr[i].ryzpList.findIndex(
(item) => item.ryzpZplxdm == 1
);
if (index >= 0) {
self.ryzpHx(i, arr[i].ryzpList);
} else {
self.getRyckZp(arr, i, true);
}
} else {
self.getRyckZp(arr, i);
}
} else {
if (arr[i].bhrAsjxgrybh) {
res.data.data.datas.forEach((item2) => {
......@@ -5000,6 +5094,17 @@ export default {
}
if (arr[i].zhfzxyrCyzjZjhm != undefined) {
obj.src1 = response.data.data.xp;
if (flag) {
arr[i].ryzpList.forEach((item2) => {
if (item2.ryzpZplxdm == "2") {
obj.src2 = item2.ryzpDzwjnr;
obj.xxzjbh2 = item2.xxzjbh;
} else if (item2.ryzpZplxdm == "3") {
obj.src3 = item2.ryzpDzwjnr;
obj.xxzjbh3 = item2.xxzjbh;
}
});
}
self.$set(self.zpFileLists, i, obj);
self.$set(self.saveCkXX, self.saveCkXX.length, response.data.data);
self.saveCkXX[self.saveCkXX.length - 1]["asjxgrybh"] =
......@@ -5040,6 +5145,22 @@ export default {
});
// }
},
ryzpHx(i, arr) {
let obj = {};
arr.forEach((item2) => {
if (item2.ryzpZplxdm == "1") {
obj.src1 = item2.ryzpDzwjnr;
obj.xxzjbh1 = item2.xxzjbh;
} else if (item2.ryzpZplxdm == "2") {
obj.src2 = item2.ryzpDzwjnr;
obj.xxzjbh2 = item2.xxzjbh;
} else if (item2.ryzpZplxdm == "3") {
obj.src3 = item2.ryzpDzwjnr;
obj.xxzjbh3 = item2.xxzjbh;
}
});
this.$set(this.zpFileLists, i, obj);
},
showAllList(res, type) {
var result = res.data.data.data || res.data.data.asjxxList;
let n = 0,
......@@ -6396,6 +6517,7 @@ export default {
self.saveLoading.close();
console.log(err);
});
self.saveXyrzp(self.xyrXXAll[y].ryzpList);
}
}
// if (!self.modify_asjbh) {
......
......@@ -46,7 +46,7 @@
v-if="item.id == '3'"
></i>
<span
style="font-size: 12px;cursor: pointer;"
style="font-size: 12px; cursor: pointer"
@click="tqFlws"
v-if="item.id == '3'"
>法律文书提取</span
......@@ -1110,6 +1110,19 @@
@click="tqShuju(item3)"
>{{ item3.name.substring(0, 5) }}提取</span
>
<i
class="iconfont icontiqu"
style="cursor: pointer; font-size: 20px"
title="提取"
@click="tqxyrZp()"
v-if="item2.name.indexOf('嫌疑人') != -1"
></i>
<span
style="font-size: 12px"
@click="tqxyrZp()"
v-if="item2.name.indexOf('嫌疑人') != -1"
>嫌疑人三面照提取</span
>
<el-button
type="primary"
size="small"
......@@ -2038,6 +2051,76 @@ export default {
});
},
methods: {
tqxyrZp() {
let self = this;
Http.get(`${url.BaseURL}/asjxxtq/queryAndSaveRyzpByAsjbh`, {
params: { asjbh: self.modify_asjbh },
headers: {
"Content-Type": "application/x-www-form-urlencoded",
"blade-auth": sessionStorage.getItem("token"),
},
}).then((res) => {
if (res.data.code == 200) {
for (let i = 0; i < res.data.data.result.length; i++) {
let message =
res.data.data.result[i].xm +
res.data.data.result[i].data.successList.toString();
self
.$confirm(message, "温馨提示", {
confirmButtonText: "确定",
showCancelButton: false,
dangerouslyUseHTMLString: true,
showClose: false,
type: "success",
})
.then(() => {});
}
self.getRyzp(
self.formLabelAlign[
self.propFormField[4].data[0].childrenAsAdd[0].id
]
);
} else {
for (let i = 0; i < res.data.data.result.length; i++) {
let message =
res.data.data.result[i].xm +
res.data.data.result[i].data.repeatList.toString();
self
.$confirm(message, res.data.data.result[i].message, {
confirmButtonText: "确定",
showCancelButton: false,
dangerouslyUseHTMLString: true,
showClose: false,
type: "warning",
})
.then(() => {});
}
}
});
},
/* 嫌疑人三面照保存 */
saveXyrzp(ryzpList) {
let url = "/tbStRyZp/tbstryzp/saveGabZp";
let self = this;
let form = {
ryzpList,
};
self
.doQueryRequests(JSON.stringify(form), url)
.then((response) => {
if (response.data.success === true) {
self.count++;
} else {
self.count++;
self.saveLoading.close();
console.log(response.data.msg);
}
})
.catch((err) => {
self.saveLoading.close();
console.log(err);
});
},
tqFlws() {
let self = this;
self.qjLoading = this.$loading({
......@@ -2069,22 +2152,38 @@ export default {
}
});
}
let message = `<span style="color: red">${res.data.data.bccg.join('、')}</span>提取并保存成功!
${res.data.data.fail.length == 0 ? '' : '<span style="color: red">'+res.data.data.fail.join('、')+'</span>' + '提取失败!'}`
let message = `<span style="color: red">${res.data.data.bccg.join(
"、"
)}</span>提取并保存成功!
${
res.data.data.fail.length == 0
? ""
: '<span style="color: red">' +
res.data.data.fail.join("、") +
"</span>" +
"提取失败!"
}`;
self
.$confirm(message, "提示", {
confirmButtonText: "确定",
showCancelButton: false,
dangerouslyUseHTMLString: true,
showClose: false,
type: "warning"
type: "warning",
})
.then(() => {
self.qjLoading.close();
})
.catch(() => {});
} else {
let message = `${res.data.data.fail.length == 0 ? res.data.message : '<span style="color: red">'+res.data.data.fail.toString()+'</span>' + ',提取失败!'}`
let message = `${
res.data.data.fail.length == 0
? res.data.message
: '<span style="color: red">' +
res.data.data.fail.toString() +
"</span>" +
",提取失败!"
}`;
self
.$confirm(message, "温馨提示", {
confirmButtonText: "确定",
......@@ -2105,8 +2204,8 @@ export default {
});
},
clearFileList() {
let self = this
self.$set(self.fileLists, "050101", []);
let self = this;
self.$set(self.fileLists, "050101", []);
for (let i = 0; i < self.xyrXXAll.length; i++) {
self.propFormField[3].data[0].childrenAsAdd[i].list[0].name.forEach(
(item) => {
......@@ -2644,31 +2743,47 @@ export default {
)
.then(async (res) => {
if (res.data.success) {
res.data.data.datas.forEach((item2) => {
if (item2.ryzpZplxdm == "1") {
obj.src1 = item2.ryzpDzwjnr;
obj.xxzjbh1 = item2.xxzjbh;
} else if (item2.ryzpZplxdm == "2") {
obj.src2 = item2.ryzpDzwjnr;
obj.xxzjbh2 = item2.xxzjbh;
} else if (item2.ryzpZplxdm == "3") {
obj.src3 = item2.ryzpDzwjnr;
obj.xxzjbh3 = item2.xxzjbh;
if (res.data.data.dataCount == "0") {
let subindex = item.ryzpList.findIndex(
(subitem) => subitem.ryzpZplxdm == 1
);
if (subindex >= 0) {
self.ryzpHx(index, item.ryzpList);
} else {
if (item.ryzpList) {
item.ryzpList.forEach((item2) => {
if (item2.ryzpZplxdm == "2") {
obj.src2 = item2.ryzpDzwjnr;
obj.xxzjbh2 = item2.xxzjbh;
} else if (item2.ryzpZplxdm == "3") {
obj.src3 = item2.ryzpDzwjnr;
obj.xxzjbh3 = item2.xxzjbh;
}
});
}
let sfzh =
item.bhrCyzjZjhm != undefined
? item.bhrCyzjZjhm
: item.zhfzxyrCyzjZjhm;
let xp = await self.getRyckZp(sfzh, index);
obj.src1 = xp;
obj.xxzjbh1 = "";
self.$set(self.zpFileLists, index, obj);
self.$forceUpdate();
}
});
self.$set(self.zpFileLists, index, obj);
self.$forceUpdate();
let resData = res.data.data.datas.find((item) => {
return item.ryzpZplxdm == "1";
});
if (!resData) {
let sfzh =
item.bhrCyzjZjhm != undefined
? item.bhrCyzjZjhm
: item.zhfzxyrCyzjZjhm;
let xp = await self.getRyckZp(sfzh, index);
obj.src1 = xp;
obj.xxzjbh1 = "";
} else {
res.data.data.datas.forEach((item2) => {
if (item2.ryzpZplxdm == "1") {
obj.src1 = item2.ryzpDzwjnr;
obj.xxzjbh1 = item2.xxzjbh;
} else if (item2.ryzpZplxdm == "2") {
obj.src2 = item2.ryzpDzwjnr;
obj.xxzjbh2 = item2.xxzjbh;
} else if (item2.ryzpZplxdm == "3") {
obj.src3 = item2.ryzpDzwjnr;
obj.xxzjbh3 = item2.xxzjbh;
}
});
self.$set(self.zpFileLists, index, obj);
self.$forceUpdate();
}
......@@ -2691,6 +2806,22 @@ export default {
});
});
},
ryzpHx(i, arr) {
let obj = {};
arr.forEach((item2) => {
if (item2.ryzpZplxdm == "1") {
obj.src1 = item2.ryzpDzwjnr;
obj.xxzjbh1 = item2.xxzjbh;
} else if (item2.ryzpZplxdm == "2") {
obj.src2 = item2.ryzpDzwjnr;
obj.xxzjbh2 = item2.xxzjbh;
} else if (item2.ryzpZplxdm == "3") {
obj.src3 = item2.ryzpDzwjnr;
obj.xxzjbh3 = item2.xxzjbh;
}
});
this.$set(this.zpFileLists, i, obj);
},
closefilePreview() {
this.filePreview = "";
this.filePreviewFlag = false;
......@@ -3177,6 +3308,7 @@ export default {
self.count++;
}
});
self.saveXyrzp(self.xyrXXAll[y].ryzpList);
}
}
} else {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment