From 7285c160d2bab2545993f9bee2dd6a8520638287 Mon Sep 17 00:00:00 2001 From: shenyanpei Date: Wed, 29 Dec 2021 09:36:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=86=E5=88=86=E5=B1=9E=E6=80=A7=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E4=B8=8E=E7=BC=96=E8=BE=91=E6=A1=86=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../standAutoSplit/pages/itemSplitInfo.vue | 215 +++++++++++++++--- 1 file changed, 179 insertions(+), 36 deletions(-) diff --git a/src/pages/localTool/standAutoSplit/pages/itemSplitInfo.vue b/src/pages/localTool/standAutoSplit/pages/itemSplitInfo.vue index 7291d830e..e996b9f6f 100644 --- a/src/pages/localTool/standAutoSplit/pages/itemSplitInfo.vue +++ b/src/pages/localTool/standAutoSplit/pages/itemSplitInfo.vue @@ -319,7 +319,7 @@ @close="showItemInfoModal = false" class="demo-drawer" > -
+ +
+ --> +
+ + + + + + + + + + 内容简介 +
+
+ + + + + + +
+ +
{{item.itemContent}}
+
+
+ +
+ +
+
+
+
+
+
+
+
@@ -1873,35 +1989,6 @@ export default { }) } }, - // 获取关联文件名称 - getFileName (row) { - this.referanceStandList = [] - if (row.referenceStand != null && row.referenceStand !== '') { - this.referanceStandList = row.referenceStand.split(',') - } - if (row.relevanceFile === null) { - this.standItemEO.FileNameList = [] - this.showItemInfoModal = true - return false - } else { - this.$http.get('att/attFile/getMultiFileInfos', { - fileIds: row.relevanceFile - }, { - _this: this - }, res => { - // let fileNameList = [] - // this.standItemEO.relevanceFileName = '' - // res.data.map((item) => { - // fileNameList.push(item.oldFileName) - // }) - // this.standItemEO.relevanceFileName = fileNameList.join(';') - this.standItemEO.FileNameList = res.data - this.showItemInfoModal = true - }, e => { - this.showItemInfoModal = true - }) - } - }, addSpecialRequest (item, index) { let specialObj = { description: '', @@ -2084,7 +2171,7 @@ export default { // this.clause(command[0]) // break case '属性': - this.attribute(command[0]) + this.attribute(command[2], command[0]) break case '编辑': this.editLawsInfo(command[2], command[0]) @@ -2154,9 +2241,65 @@ export default { this.showItemRequestDetails() }, // 点击表格 属性按钮事件 - attribute (row) { - this.getFileName(row) - this.showItemInfoEO = JSON.parse(JSON.stringify(row)) + attribute (index, row) { + this.isSubmit = false + this.standItemEO.id = row.id + this.showItemInfoModal = true + this.saveEditItemIndex = index + this.standItemEO = JSON.parse(JSON.stringify(row)) + if (this.standItemEO.applyArctic && !(this.standItemEO.applyArctic instanceof Array)) { + let a = this.standItemEO.applyArctic.split(',') + this.standItemEO.applyArctic = a // 适用车型 + } + if (this.standItemEO.newcarPutTime != null && this.standItemEO.newcarPutTime !== '') { + this.standItemEO.newcarPutTime = this.standItemEO.newcarPutTime.replace(new RegExp(/-/gm), '/') + this.standItemEO.newcarPutTime = new Date(this.standItemEO.newcarPutTime) + } + if (this.standItemEO.productPutTime != null && this.standItemEO.productPutTime !== '') { + this.standItemEO.productPutTime = this.standItemEO.productPutTime.replace(new RegExp(/-/gm), '/') + this.standItemEO.productPutTime = new Date(this.standItemEO.productPutTime) + } + if (this.standItemEO.paramsList == null || this.standItemEO.paramsList.length < 1) { + let specialObj = { + description: '', + figure: '' + } + this.standItemEO.paramsList.push(specialObj) + } + this.standItemEO.ZRBM = this.standItemEO.responsibleUnit + this.saveItemId = row.id + this.showUpdateItemInfo() + // this.getFileName(row) + // this.showItemInfoEO = JSON.parse(JSON.stringify(row)) + }, + // 获取关联文件名称 + getFileName (row) { + this.referanceStandList = [] + if (row.referenceStand != null && row.referenceStand !== '') { + this.referanceStandList = row.referenceStand.split(',') + } + if (row.relevanceFile === null) { + this.standItemEO.FileNameList = [] + this.showItemInfoModal = true + return false + } else { + this.$http.get('att/attFile/getMultiFileInfos', { + fileIds: row.relevanceFile + }, { + _this: this + }, res => { + // let fileNameList = [] + // this.standItemEO.relevanceFileName = '' + // res.data.map((item) => { + // fileNameList.push(item.oldFileName) + // }) + // this.standItemEO.relevanceFileName = fileNameList.join(';') + this.standItemEO.FileNameList = res.data + this.showItemInfoModal = true + }, e => { + this.showItemInfoModal = true + }) + } }, getDicTypeName(opt, type) { const _type = type ? type.split(',') : []