From 0bbb9fe7dffb2b712c602446d7b8e42e0a057803 Mon Sep 17 00:00:00 2001 From: zhutianqi Date: Mon, 17 Jan 2022 18:48:01 +0800 Subject: [PATCH] commit --- .../pages/creatProcess/bzjd/step1-1.vue | 26 +++++++--- .../pages/creatProcess/bzjd/step1.vue | 24 +++++++--- .../pages/creatProcess/bzjd/step3.vue | 48 ++++++++++++------- .../pages/creatProcess/bzjd/step4.vue | 4 ++ .../pages/creatProcess/bzjd/step5.vue | 4 ++ .../pages/creatProcess/bzjd/step6.vue | 4 ++ 6 files changed, 80 insertions(+), 30 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/bzjd/step1-1.vue b/src/pages/processCenter/pages/creatProcess/bzjd/step1-1.vue index 2e198526f..8ba115491 100644 --- a/src/pages/processCenter/pages/creatProcess/bzjd/step1-1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzjd/step1-1.vue @@ -413,7 +413,11 @@ - +
+
+
无内容
+
+ { for (let a = 0; a < this.itemList.length; a++) { for (let b = 0; b < res.data.length; b++) { - if (this.itemList[a].targetStand === res.data[b].itemsDisplayNum) { - this.itemList[a].itemsId2 = res.data[b].itemsId + if (this.itemList[a].itemsDisplayNum === res.data[b].targetStand) { + this.itemList[a].itemsId = res.data[b].itemsId } } } @@ -686,6 +691,10 @@ newItemId: id2, flag: 1 } + if (!id || !id2) { + this.$message.warning('暂无找到相似的文本') + return + } this.$http.post('lawss/sarStandCompareHis/clauseComparison', itemsEoPage, { _this: this }, res => { @@ -701,6 +710,7 @@ }) }, itemEdit (row, type, index) { + this.itermsConditions = row.itermsConditions let itemsEoPage = { oldItemId: row.itemsId, newItemId: row.itemsId2, @@ -714,6 +724,8 @@ this.PLmodalTitle = '编辑' if (res.data.leftString === '' && res.data.rightString === '') { this.BDtext = true + } else if (!row.itemsId || !row.itemsId2) { + this.BDtext = true } else { this.BDtext = false this.leftData = res.data.leftString @@ -787,12 +799,12 @@ this.$http.get('lawss/sarStandCompareHis/page', { page: 1, pageSize: 9999, - newNumOrName: this.form.itemsNum + newNumOrName: this.form.itemsNum, + newFileType: this.form.fileType, }, { _this: this }, res => { this.standInfoList3 = res.data.list - console.log(res); }, e => { }) }, diff --git a/src/pages/processCenter/pages/creatProcess/bzjd/step1.vue b/src/pages/processCenter/pages/creatProcess/bzjd/step1.vue index 187e0cd02..691223d66 100644 --- a/src/pages/processCenter/pages/creatProcess/bzjd/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzjd/step1.vue @@ -421,6 +421,10 @@ +
+
+
无内容
+
{ for (let a = 0; a < this.itemList.length; a++) { for (let b = 0; b < res.data.length; b++) { if (this.itemList[a].itemsNum === res.data[b].itemsNum) { - this.itemList[a].itemsId = res.data[b].itemsId - this.itemList[a].targetStand = res.data[b].targetStand + this.itemList[a].itemsId2 = res.data[b].itemsId + this.itemList[a].itemsDisplayNum = res.data[b].itemsDisplayNum } } } this.$http.get('lawss/sarStandItemsCompareHis/getStandItemsCompareHisList', { standHisId: this.form.oldNumber, - leftOrRight: 'LEFT' + leftOrRight: 'RIGHT' }, { _this: this }, res => { for (let a = 0; a < this.itemList.length; a++) { for (let b = 0; b < res.data.length; b++) { - if (this.itemList[a].targetStand === res.data[b].itemsDisplayNum) { - this.itemList[a].itemsId2 = res.data[b].itemsId + if (this.itemList[a].itemsDisplayNum === res.data[b].targetStand) { + this.itemList[a].itemsId = res.data[b].itemsId } } } @@ -699,6 +704,10 @@ export default { newItemId: id2, flag: 1 } + if (!id || !id2) { + this.$message.warning('暂无找到相似的文本') + return + } this.$http.post('lawss/sarStandCompareHis/clauseComparison', itemsEoPage, { _this: this }, res => { @@ -714,6 +723,7 @@ export default { }) }, itemEdit (row, type, index) { + this.itermsConditions = row.itermsConditions let itemsEoPage = { oldItemId: row.itemsId, newItemId: row.itemsId2, @@ -727,6 +737,8 @@ export default { this.PLmodalTitle = '编辑' if (res.data.leftString === '' && res.data.rightString === '') { this.BDtext = true + } else if (!row.itemsId || !row.itemsId2) { + this.BDtext = true } else { this.BDtext = false this.leftData = res.data.leftString diff --git a/src/pages/processCenter/pages/creatProcess/bzjd/step3.vue b/src/pages/processCenter/pages/creatProcess/bzjd/step3.vue index 65d7db6e0..3b2fd60a6 100644 --- a/src/pages/processCenter/pages/creatProcess/bzjd/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/bzjd/step3.vue @@ -353,10 +353,10 @@ title="编辑" :visible.sync="modalshowflag2" :wrapperClosable="false" - :size="form.itemsNum1 ? '1200px' : '800px'"> + size="1200px">
-
+
无相似文本
比对条款: {{ editForm.itemsNum }}
@@ -367,6 +367,10 @@
+
+
+
无内容
+
{ - for (let a = 0; a < this.itemList.length; a++) { - for (let b = 0; b < res.data.length; b++) { - if (this.itemList[a].itemsNum === res.data[b].itemsNum) { - this.itemList[a].itemsId = res.data[b].itemsId - } - } - } - }, e => { - }) - this.$http.get('lawss/sarStandItemsCompareHis/getStandItemsCompareHisList', { - standHisId: this.oldNumber, - leftOrRight: 'RIGHT' - }, { - _this: this }, res => { for (let a = 0; a < this.itemList.length; a++) { for (let b = 0; b < res.data.length; b++) { if (this.itemList[a].itemsNum === res.data[b].itemsNum) { this.itemList[a].itemsId2 = res.data[b].itemsId + this.itemList[a].itemsDisplayNum = res.data[b].itemsDisplayNum } } } + this.$http.get('lawss/sarStandItemsCompareHis/getStandItemsCompareHisList', { + standHisId: this.oldNumber, + leftOrRight: 'RIGHT' + }, { + _this: this + }, res => { + for (let a = 0; a < this.itemList.length; a++) { + for (let b = 0; b < res.data.length; b++) { + if (this.itemList[a].itemsDisplayNum === res.data[b].targetStand) { + this.itemList[a].itemsId = res.data[b].itemsId + } + } + } + }, e => { + }) }, e => { }) }, @@ -585,6 +591,10 @@ newItemId: id2, flag: 1 } + if (!id || !id2) { + this.$message.warning('暂无找到相似的文本') + return + } this.$http.post('lawss/sarStandCompareHis/clauseComparison', itemsEoPage, { _this: this }, res => { @@ -600,6 +610,7 @@ }) }, itemEdit (row) { + this.itermsConditions = row.itermsConditions let itemsEoPage = { oldItemId: row.itemsId, newItemId: row.itemsId2, @@ -610,6 +621,8 @@ }, res => { if (res.data.leftString === '' && res.data.rightString === '') { this.BDtext = true + } else if (!row.itemsId || !row.itemsId2) { + this.BDtext = true } else { this.BDtext = false this.leftData = res.data.leftString @@ -899,6 +912,7 @@ }) this.getBDList() this.itemList = itemList + console.log(itemList); this.loading = false }).catch(e => { }) diff --git a/src/pages/processCenter/pages/creatProcess/bzjd/step4.vue b/src/pages/processCenter/pages/creatProcess/bzjd/step4.vue index 1c45c181f..a7527401d 100644 --- a/src/pages/processCenter/pages/creatProcess/bzjd/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/bzjd/step4.vue @@ -361,6 +361,10 @@ newItemId: id2, flag: 1 } + if (!id || !id2) { + this.$message.warning('暂无找到相似的文本') + return + } this.$http.post('lawss/sarStandCompareHis/clauseComparison', itemsEoPage, { _this: this }, res => { diff --git a/src/pages/processCenter/pages/creatProcess/bzjd/step5.vue b/src/pages/processCenter/pages/creatProcess/bzjd/step5.vue index cb0786668..6a1a4c682 100644 --- a/src/pages/processCenter/pages/creatProcess/bzjd/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/bzjd/step5.vue @@ -361,6 +361,10 @@ newItemId: id2, flag: 1 } + if (!id || !id2) { + this.$message.warning('暂无找到相似的文本') + return + } this.$http.post('lawss/sarStandCompareHis/clauseComparison', itemsEoPage, { _this: this }, res => { diff --git a/src/pages/processCenter/pages/creatProcess/bzjd/step6.vue b/src/pages/processCenter/pages/creatProcess/bzjd/step6.vue index c35fce237..62555ab9f 100644 --- a/src/pages/processCenter/pages/creatProcess/bzjd/step6.vue +++ b/src/pages/processCenter/pages/creatProcess/bzjd/step6.vue @@ -359,6 +359,10 @@ newItemId: id2, flag: 1 } + if (!id || !id2) { + this.$message.warning('暂无找到相似的文本') + return + } this.$http.post('lawss/sarStandCompareHis/clauseComparison', itemsEoPage, { _this: this }, res => {