Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
@@ -434,7 +434,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
logo () {
|
logo () {
|
||||||
return this.isCollapse ? require('assets/images/shangqi/img/logo-isCollapse.png') : require('assets/images/shangqi/img/logo2.png')
|
return this.isCollapse ? require('assets/images/shangqi/img/logo4.png') : require('assets/images/shangqi/img/logo2.png')
|
||||||
},
|
},
|
||||||
...mapGetters(['getDynamicTotal', 'isCollapse'])
|
...mapGetters(['getDynamicTotal', 'isCollapse'])
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -117,16 +117,6 @@
|
|||||||
}}</span>
|
}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column
|
|
||||||
prop="applicationScope"
|
|
||||||
label="适用领域"
|
|
||||||
align="center">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<span
|
|
||||||
v-if="scope.row.applicationScope != null && scope.row.applicationScope !== ''">{{ scope.row.applicationScope
|
|
||||||
}}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>-->
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="updateTime"
|
prop="updateTime"
|
||||||
label="更新时间"
|
label="更新时间"
|
||||||
|
|||||||
@@ -1168,19 +1168,19 @@ export default {
|
|||||||
this.selectedAccInfoSearchList.map(item => {
|
this.selectedAccInfoSearchList.map(item => {
|
||||||
let addList;
|
let addList;
|
||||||
addList = this.sarAccessInfoList.findIndex(items => {
|
addList = this.sarAccessInfoList.findIndex(items => {
|
||||||
return items.id == item.id
|
return items.id == item.id
|
||||||
})
|
})
|
||||||
if(addList > -1){
|
if(addList > -1){
|
||||||
this.$message.warning('请勿添加重复数据')
|
this.$message.warning('请勿添加重复数据')
|
||||||
this.$refs.accessTypeSelect.clearSelection()
|
// this.$refs.accessTypeSelect.clearSelection()
|
||||||
this.$refs.entryTable.clearSelection()
|
this.$refs.entryTable.clearSelection()
|
||||||
this.$refs.searchTable.clearSelection()
|
this.$refs.searchTable.clearSelection()
|
||||||
} else{
|
} else{
|
||||||
this.sarAccessInfoList.push(item)
|
this.sarAccessInfoList.push(item)
|
||||||
this.$refs.accessTypeSelect.clearSelection()
|
// this.$refs.accessTypeSelect.clearSelection()
|
||||||
this.$refs.entryTable.clearSelection()
|
this.$refs.entryTable.clearSelection()
|
||||||
this.$refs.searchTable.clearSelection()
|
this.$refs.searchTable.clearSelection()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message.error('请选中需要添加到 清单条目 的(标准号/政策编号)')
|
this.$message.error('请选中需要添加到 清单条目 的(标准号/政策编号)')
|
||||||
@@ -1329,12 +1329,16 @@ export default {
|
|||||||
_this: this,
|
_this: this,
|
||||||
loading: 'loadData'
|
loading: 'loadData'
|
||||||
}, res => {
|
}, res => {
|
||||||
if (res.ok) {
|
if (this.sarAccessInfoList.length !== 0) {
|
||||||
this.$message.success('新增成功')
|
if (res.ok) {
|
||||||
this.isNext = true
|
this.$message.success('新增成功')
|
||||||
this.$router.push({
|
this.isNext = true
|
||||||
name: 'AccessStandardsAndRegulations'
|
this.$router.push({
|
||||||
})
|
name: 'AccessStandardsAndRegulations'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.$message.error('请选中需要添加到 清单条目 的(标准号/政策编号)')
|
||||||
}
|
}
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
@@ -1363,6 +1367,7 @@ export default {
|
|||||||
selectLawsStands () {
|
selectLawsStands () {
|
||||||
if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') {
|
if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') {
|
||||||
this.sarAccessInfoSearch.dataSource = 'INLAND_STAND'
|
this.sarAccessInfoSearch.dataSource = 'INLAND_STAND'
|
||||||
|
this.sarAccessInfoSearch.standType = ''
|
||||||
} else {
|
} else {
|
||||||
this.sarAccessInfoSearch.standType = 'FOREIGN'
|
this.sarAccessInfoSearch.standType = 'FOREIGN'
|
||||||
}
|
}
|
||||||
@@ -1374,16 +1379,29 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
|
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
|
||||||
}
|
}
|
||||||
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
|
if (item.attrInfoMap === null) {
|
||||||
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
|
this.$set(item, 'zccssrqgj', '')
|
||||||
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
this.$set(item, 'xcxssrqgj', '')
|
||||||
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
this.$set(item, 'sycpx', '')
|
||||||
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
this.$set(item, 'typeApplicable', '')
|
||||||
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
this.$set(item, 'nylx', '')
|
||||||
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
this.$set(item, 'zrbm', '')
|
||||||
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
this.$set(item, 'cycvppsbm', '')
|
||||||
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
this.$set(item, 'cycvppscn', '')
|
||||||
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
this.$set(item, 'kccvppsbm', '')
|
||||||
|
this.$set(item, 'kccvppscn', '')
|
||||||
|
}else {
|
||||||
|
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
|
||||||
|
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
|
||||||
|
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
||||||
|
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
||||||
|
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
||||||
|
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
||||||
|
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
||||||
|
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
||||||
|
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
||||||
|
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
this.drawerTotal = res.data.list.length
|
this.drawerTotal = res.data.list.length
|
||||||
}, e => {
|
}, e => {
|
||||||
@@ -1403,16 +1421,29 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
|
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
|
||||||
}
|
}
|
||||||
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
|
if (item.attrInfoMap === null) {
|
||||||
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
|
this.$set(item, 'zccssrqgj', '')
|
||||||
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
this.$set(item, 'xcxssrqgj', '')
|
||||||
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
this.$set(item, 'sycpx', '')
|
||||||
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
this.$set(item, 'typeApplicable', '')
|
||||||
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
this.$set(item, 'nylx', '')
|
||||||
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
this.$set(item, 'zrbm', '')
|
||||||
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
this.$set(item, 'cycvppsbm', '')
|
||||||
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
this.$set(item, 'cycvppscn', '')
|
||||||
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
this.$set(item, 'kccvppsbm', '')
|
||||||
|
this.$set(item, 'kccvppscn', '')
|
||||||
|
}else {
|
||||||
|
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
|
||||||
|
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
|
||||||
|
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
||||||
|
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
||||||
|
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
||||||
|
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
||||||
|
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
||||||
|
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
||||||
|
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
||||||
|
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
this.drawerTotal = res.data.list.length
|
this.drawerTotal = res.data.list.length
|
||||||
}, e => {
|
}, e => {
|
||||||
@@ -1426,16 +1457,29 @@ export default {
|
|||||||
sarAccessInfoSearchSelect (val) {
|
sarAccessInfoSearchSelect (val) {
|
||||||
this.selectedAccInfoSearchList = val
|
this.selectedAccInfoSearchList = val
|
||||||
this.selectedAccInfoSearchList.forEach(item => {
|
this.selectedAccInfoSearchList.forEach(item => {
|
||||||
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
|
if (item.attrInfoMap === null) {
|
||||||
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
|
this.$set(item, 'zccssrqgj', '')
|
||||||
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
this.$set(item, 'xcxssrqgj', '')
|
||||||
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
this.$set(item, 'sycpx', '')
|
||||||
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
this.$set(item, 'typeApplicable', '')
|
||||||
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
this.$set(item, 'nylx', '')
|
||||||
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
this.$set(item, 'zrbm', '')
|
||||||
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
this.$set(item, 'cycvppsbm', '')
|
||||||
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
this.$set(item, 'cycvppscn', '')
|
||||||
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
this.$set(item, 'kccvppsbm', '')
|
||||||
|
this.$set(item, 'kccvppscn', '')
|
||||||
|
}else {
|
||||||
|
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
|
||||||
|
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
|
||||||
|
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
||||||
|
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
||||||
|
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
||||||
|
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
||||||
|
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
||||||
|
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
||||||
|
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
||||||
|
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
this.selectedAccInfoSearchList.forEach(item => {
|
this.selectedAccInfoSearchList.forEach(item => {
|
||||||
// 责任部门转换
|
// 责任部门转换
|
||||||
@@ -1947,6 +1991,29 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
|
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
|
||||||
}
|
}
|
||||||
|
if (item.attrInfoMap === null) {
|
||||||
|
this.$set(item, 'zccssrqgj', '')
|
||||||
|
this.$set(item, 'xcxssrqgj', '')
|
||||||
|
this.$set(item, 'sycpx', '')
|
||||||
|
this.$set(item, 'typeApplicable', '')
|
||||||
|
this.$set(item, 'nylx', '')
|
||||||
|
this.$set(item, 'zrbm', '')
|
||||||
|
this.$set(item, 'cycvppsbm', '')
|
||||||
|
this.$set(item, 'cycvppscn', '')
|
||||||
|
this.$set(item, 'kccvppsbm', '')
|
||||||
|
this.$set(item, 'kccvppscn', '')
|
||||||
|
}else {
|
||||||
|
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
|
||||||
|
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
|
||||||
|
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
||||||
|
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
||||||
|
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
||||||
|
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
||||||
|
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
||||||
|
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
||||||
|
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
||||||
|
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
@@ -2020,8 +2087,8 @@ export default {
|
|||||||
this.sarAccessEO.remark = accessRow.remark || ''
|
this.sarAccessEO.remark = accessRow.remark || ''
|
||||||
this.sarAccessEO.relateFile = accessRow.relateFile
|
this.sarAccessEO.relateFile = accessRow.relateFile
|
||||||
this.sarAccessInfoSearch.validFlag = 0
|
this.sarAccessInfoSearch.validFlag = 0
|
||||||
this.getFileInfo()
|
|
||||||
this.getData()
|
this.getData()
|
||||||
|
this.getFileInfo()
|
||||||
this.selectLawsStands()
|
this.selectLawsStands()
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
+253
-41
@@ -346,7 +346,7 @@
|
|||||||
width="210px"
|
width="210px"
|
||||||
label="卡车VPPS中文名称">
|
label="卡车VPPS中文名称">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column width="150" align="center" label="操作">
|
<el-table-column width="240" align="center" label="操作">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
class="common-button-default"
|
class="common-button-default"
|
||||||
@@ -360,6 +360,12 @@
|
|||||||
size="small" @click="moveDown(scope.$index, scope.row)"
|
size="small" @click="moveDown(scope.$index, scope.row)"
|
||||||
v-if="!disabledFlag"
|
v-if="!disabledFlag"
|
||||||
>下移</el-button>
|
>下移</el-button>
|
||||||
|
<el-button
|
||||||
|
size="small"
|
||||||
|
@click="editTghisRow(scope.row)"
|
||||||
|
class="common-button-default"
|
||||||
|
type="warning"
|
||||||
|
>编辑</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -396,6 +402,90 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
<!--编辑-->
|
||||||
|
<el-drawer
|
||||||
|
title="编辑清单条目"
|
||||||
|
:visible.sync="drawerEdit"
|
||||||
|
:wrapperClosable="false"
|
||||||
|
size="800px"
|
||||||
|
>
|
||||||
|
<el-form :modal="editRowData" label-position="left" ref="editRowData" label-width="150px" style="margin: 20px">
|
||||||
|
<el-form-item label="标准号">
|
||||||
|
<el-input v-model.trim="editRowData.standNumber" :disabled="true"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准名称" prop="standName">
|
||||||
|
<el-input v-model.trim="editRowData.standName" :disabled="true"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="英文名称" prop="standEnName">
|
||||||
|
<el-input v-model.trim="editRowData.standEnName" :disabled="true"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="适用车型" prop="typeApplicable">
|
||||||
|
<el-input v-model.trim="editRowData.typeApplicable" :disabled="true"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="能源类型" prop="nylx">
|
||||||
|
<el-input v-model.trim="editRowData.nylx" :disabled="true"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准实施日期" prop="putTime">
|
||||||
|
<el-date-picker
|
||||||
|
v-model.trim="editRowData.putTime"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="选择日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="在产车实施日期" prop="zccssrqgj">
|
||||||
|
<el-date-picker
|
||||||
|
v-model.trim="editRowData.zccssrqgj"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="选择日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="新车型实施日期" prop="xcxssrqgj">
|
||||||
|
<el-date-picker
|
||||||
|
v-model.trim="editRowData.xcxssrqgj"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="选择日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="责任部门" prop="zrbm">
|
||||||
|
<el-input v-model.trim="editRowData.zrbm" :disabled="true"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="适用产品线" prop="sycpx">
|
||||||
|
<el-input v-model.trim="editRowData.sycpx" :disabled="true"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="乘用车VPPS编码" prop="cycvppsbm">
|
||||||
|
<el-input v-model.trim="editRowData.cycvppsbm" :disabled="true"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="乘用车VPPS中文名称" prop="cycvppscn">
|
||||||
|
<el-input v-model.trim="editRowData.cycvppscn" :disabled="true"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="卡车VPPS编码" prop="kccvppsbm">
|
||||||
|
<el-input v-model.trim="editRowData.kccvppsbm" :disabled="true"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="卡车VPPS中文名称" prop="kccvppscn">
|
||||||
|
<el-input v-model.trim="editRowData.kccvppscn" :disabled="true"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div class="demo-drawer-footer">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
class="common-button-primary"
|
||||||
|
size="mini"
|
||||||
|
icon="el-icon-check"
|
||||||
|
@click="saveInfo"
|
||||||
|
>提交</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
icon="el-icon-close"
|
||||||
|
class="common-button-default"
|
||||||
|
@click="cancelInfo"
|
||||||
|
>取消</el-button
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</el-drawer>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -451,6 +541,26 @@ export default {
|
|||||||
zrbmMap: {},
|
zrbmMap: {},
|
||||||
sycpxMap: {},
|
sycpxMap: {},
|
||||||
selectSearch : [],
|
selectSearch : [],
|
||||||
|
// 编辑抽屉状态
|
||||||
|
drawerEdit: false,
|
||||||
|
// 编辑框数据
|
||||||
|
editRowData: {
|
||||||
|
id: '',
|
||||||
|
standName: '',
|
||||||
|
standSortShow:'',
|
||||||
|
standEnName: '',
|
||||||
|
typeApplicable: '',
|
||||||
|
nylx: '',
|
||||||
|
putTime: '',
|
||||||
|
zccssrqgj: '',
|
||||||
|
xcxssrqgj: '',
|
||||||
|
zrbm: '',
|
||||||
|
sycpx: '',
|
||||||
|
cycvppsbm: '',
|
||||||
|
cycvppscn: '',
|
||||||
|
kccvppsbm: '',
|
||||||
|
kccvppscn: ''
|
||||||
|
},
|
||||||
// 新增、编辑 基础信息字段
|
// 新增、编辑 基础信息字段
|
||||||
sarAccessEO: {
|
sarAccessEO: {
|
||||||
id: '',
|
id: '',
|
||||||
@@ -1022,17 +1132,18 @@ export default {
|
|||||||
// 追加字段
|
// 追加字段
|
||||||
this.selectedAccInfoSearchList.map(item => {
|
this.selectedAccInfoSearchList.map(item => {
|
||||||
let addList;
|
let addList;
|
||||||
|
|
||||||
addList = this.sarAccessInfoList.findIndex(items => {
|
addList = this.sarAccessInfoList.findIndex(items => {
|
||||||
return items.id == item.id
|
return items.id == item.id
|
||||||
})
|
})
|
||||||
if(addList > -1){
|
if(addList > -1){
|
||||||
this.$message.warning('请勿添加重复数据')
|
this.$message.warning('请勿添加重复数据')
|
||||||
this.$refs.accessTypeSelect.clearSelection()
|
// this.$refs.accessTypeSelect.clearSelection()
|
||||||
this.$refs.entryTable.clearSelection()
|
this.$refs.entryTable.clearSelection()
|
||||||
this.$refs.searchTable.clearSelection()
|
this.$refs.searchTable.clearSelection()
|
||||||
} else{
|
} else{
|
||||||
this.sarAccessInfoList.push(item)
|
this.sarAccessInfoList.push(item)
|
||||||
this.$refs.accessTypeSelect.clearSelection()
|
// this.$refs.accessTypeSelect.clearSelection()
|
||||||
this.$refs.entryTable.clearSelection()
|
this.$refs.entryTable.clearSelection()
|
||||||
this.$refs.searchTable.clearSelection()
|
this.$refs.searchTable.clearSelection()
|
||||||
}
|
}
|
||||||
@@ -1069,6 +1180,22 @@ export default {
|
|||||||
this.$set(this.sarAccessInfoList, index, i)
|
this.$set(this.sarAccessInfoList, index, i)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 编辑按钮
|
||||||
|
editTghisRow(row) {
|
||||||
|
this.rowList = row
|
||||||
|
this.editRowData = this.rowList
|
||||||
|
this.editRowData.standNumber = this.rowList.standNumber
|
||||||
|
this.drawerEdit = true
|
||||||
|
},
|
||||||
|
// 抽屉取消按钮
|
||||||
|
cancelInfo() {
|
||||||
|
this.drawerEdit = false
|
||||||
|
},
|
||||||
|
// 抽屉提交按钮
|
||||||
|
saveInfo() {
|
||||||
|
this.rowList = this.editRowData
|
||||||
|
this.drawerEdit = false
|
||||||
|
},
|
||||||
// 点击清单条目导入按钮事件
|
// 点击清单条目导入按钮事件
|
||||||
importmodalFlags () {
|
importmodalFlags () {
|
||||||
this.importmodalFlag = true
|
this.importmodalFlag = true
|
||||||
@@ -1126,12 +1253,30 @@ export default {
|
|||||||
this.$refs['sarAccessForm'].validate((valid) => {
|
this.$refs['sarAccessForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
let rowlist = []
|
let rowlist = []
|
||||||
|
let rowlist1 = []
|
||||||
|
let rowlist2 = []
|
||||||
|
let rowlist3 = []
|
||||||
for (let i = 0; i < this.sarAccessInfoList.length; i++) {
|
for (let i = 0; i < this.sarAccessInfoList.length; i++) {
|
||||||
rowlist.push(this.sarAccessInfoList[i].id)
|
rowlist.push(this.sarAccessInfoList[i].id)
|
||||||
|
if (this.sarAccessInfoList[i].putTime === null || this.sarAccessInfoList[i].zccssrqgj === null || this.sarAccessInfoList[i].xcxssrqgj === null) {
|
||||||
|
rowlist1.push(this.sarAccessInfoList[i].putTime)
|
||||||
|
rowlist2.push(this.sarAccessInfoList[i].zccssrqgj)
|
||||||
|
rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj)
|
||||||
|
}else {
|
||||||
|
rowlist1.push(this.sarAccessInfoList[i].putTime.toString())
|
||||||
|
rowlist2.push(this.sarAccessInfoList[i].zccssrqgj.toString())
|
||||||
|
rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj.toString())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
rowlist = rowlist.join(',')
|
rowlist = rowlist.join(',')
|
||||||
|
rowlist1 = rowlist1.join(',')
|
||||||
|
rowlist2 = rowlist2.join(',')
|
||||||
|
rowlist3 = rowlist3.join(',')
|
||||||
let sarAccessEO = JSON.parse(JSON.stringify(this.sarAccessEO))
|
let sarAccessEO = JSON.parse(JSON.stringify(this.sarAccessEO))
|
||||||
sarAccessEO.inforlist = JSON.stringify(rowlist)
|
sarAccessEO.inforlist = JSON.stringify(rowlist)
|
||||||
|
sarAccessEO.inforlist1 = JSON.stringify(rowlist1)
|
||||||
|
sarAccessEO.inforlist2 = JSON.stringify(rowlist2)
|
||||||
|
sarAccessEO.inforlist3 = JSON.stringify(rowlist3)
|
||||||
// sarAccessEO.countryArea = sarAccessEO.countryArea.join(',')
|
// sarAccessEO.countryArea = sarAccessEO.countryArea.join(',')
|
||||||
// sarAccessEO.applicationScope = sarAccessEO.applicationScope.join(',')
|
// sarAccessEO.applicationScope = sarAccessEO.applicationScope.join(',')
|
||||||
// 判断是否有附件
|
// 判断是否有附件
|
||||||
@@ -1150,12 +1295,16 @@ export default {
|
|||||||
_this: this,
|
_this: this,
|
||||||
loading: 'loadData'
|
loading: 'loadData'
|
||||||
}, res => {
|
}, res => {
|
||||||
if (res.ok) {
|
if (this.sarAccessInfoList.length !== 0) {
|
||||||
this.$message.success('新增成功')
|
if (res.ok) {
|
||||||
this.isNext = true
|
this.$message.success('新增成功')
|
||||||
this.$router.push({
|
this.isNext = true
|
||||||
name: 'AccessStandardsAndRegulations'
|
this.$router.push({
|
||||||
})
|
name: 'AccessStandardsAndRegulations'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
this.$message.error('请选中需要添加到 清单条目 的(标准号/政策编号)')
|
||||||
}
|
}
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
@@ -1184,6 +1333,7 @@ export default {
|
|||||||
selectLawsStands () {
|
selectLawsStands () {
|
||||||
if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') {
|
if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') {
|
||||||
this.sarAccessInfoSearch.dataSource = 'INLAND_STAND'
|
this.sarAccessInfoSearch.dataSource = 'INLAND_STAND'
|
||||||
|
this.sarAccessInfoSearch.standType = ''
|
||||||
} else {
|
} else {
|
||||||
this.sarAccessInfoSearch.standType = 'FOREIGN'
|
this.sarAccessInfoSearch.standType = 'FOREIGN'
|
||||||
}
|
}
|
||||||
@@ -1195,16 +1345,29 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
|
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
|
||||||
}
|
}
|
||||||
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
|
if (item.attrInfoMap === null) {
|
||||||
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
|
this.$set(item, 'zccssrqgj', '')
|
||||||
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
this.$set(item, 'xcxssrqgj', '')
|
||||||
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
this.$set(item, 'sycpx', '')
|
||||||
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
this.$set(item, 'typeApplicable', '')
|
||||||
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
this.$set(item, 'nylx', '')
|
||||||
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
this.$set(item, 'zrbm', '')
|
||||||
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
this.$set(item, 'cycvppsbm', '')
|
||||||
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
this.$set(item, 'cycvppscn', '')
|
||||||
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
this.$set(item, 'kccvppsbm', '')
|
||||||
|
this.$set(item, 'kccvppscn', '')
|
||||||
|
}else {
|
||||||
|
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
|
||||||
|
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
|
||||||
|
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
||||||
|
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
||||||
|
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
||||||
|
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
||||||
|
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
||||||
|
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
||||||
|
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
||||||
|
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
this.drawerTotal = res.data.list.length
|
this.drawerTotal = res.data.list.length
|
||||||
}, e => {
|
}, e => {
|
||||||
@@ -1225,16 +1388,29 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
|
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
|
||||||
}
|
}
|
||||||
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
|
if (item.attrInfoMap === null) {
|
||||||
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
|
this.$set(item, 'zccssrqgj', '')
|
||||||
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
this.$set(item, 'xcxssrqgj', '')
|
||||||
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
this.$set(item, 'sycpx', '')
|
||||||
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
this.$set(item, 'typeApplicable', '')
|
||||||
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
this.$set(item, 'nylx', '')
|
||||||
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
this.$set(item, 'zrbm', '')
|
||||||
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
this.$set(item, 'cycvppsbm', '')
|
||||||
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
this.$set(item, 'cycvppscn', '')
|
||||||
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
this.$set(item, 'kccvppsbm', '')
|
||||||
|
this.$set(item, 'kccvppscn', '')
|
||||||
|
}else {
|
||||||
|
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
|
||||||
|
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
|
||||||
|
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
||||||
|
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
||||||
|
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
||||||
|
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
||||||
|
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
||||||
|
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
||||||
|
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
||||||
|
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
this.drawerTotal = res.data.list.length
|
this.drawerTotal = res.data.list.length
|
||||||
}, e => {
|
}, e => {
|
||||||
@@ -1248,16 +1424,29 @@ export default {
|
|||||||
sarAccessInfoSearchSelect (val) {
|
sarAccessInfoSearchSelect (val) {
|
||||||
this.selectedAccInfoSearchList = val
|
this.selectedAccInfoSearchList = val
|
||||||
this.selectedAccInfoSearchList.forEach(item => {
|
this.selectedAccInfoSearchList.forEach(item => {
|
||||||
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
|
if (item.attrInfoMap === null) {
|
||||||
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
|
this.$set(item, 'zccssrqgj', '')
|
||||||
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
this.$set(item, 'xcxssrqgj', '')
|
||||||
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
this.$set(item, 'sycpx', '')
|
||||||
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
this.$set(item, 'typeApplicable', '')
|
||||||
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
this.$set(item, 'nylx', '')
|
||||||
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
this.$set(item, 'zrbm', '')
|
||||||
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
this.$set(item, 'cycvppsbm', '')
|
||||||
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
this.$set(item, 'cycvppscn', '')
|
||||||
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
this.$set(item, 'kccvppsbm', '')
|
||||||
|
this.$set(item, 'kccvppscn', '')
|
||||||
|
}else {
|
||||||
|
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
|
||||||
|
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
|
||||||
|
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
||||||
|
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
||||||
|
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
||||||
|
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
||||||
|
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
||||||
|
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
||||||
|
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
||||||
|
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
this.selectedAccInfoSearchList.forEach(item => {
|
this.selectedAccInfoSearchList.forEach(item => {
|
||||||
// 责任部门转换
|
// 责任部门转换
|
||||||
@@ -1771,6 +1960,29 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
|
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
|
||||||
}
|
}
|
||||||
|
if (item.attrInfoMap === null) {
|
||||||
|
this.$set(item, 'zccssrqgj', '')
|
||||||
|
this.$set(item, 'xcxssrqgj', '')
|
||||||
|
this.$set(item, 'sycpx', '')
|
||||||
|
this.$set(item, 'typeApplicable', '')
|
||||||
|
this.$set(item, 'nylx', '')
|
||||||
|
this.$set(item, 'zrbm', '')
|
||||||
|
this.$set(item, 'cycvppsbm', '')
|
||||||
|
this.$set(item, 'cycvppscn', '')
|
||||||
|
this.$set(item, 'kccvppsbm', '')
|
||||||
|
this.$set(item, 'kccvppscn', '')
|
||||||
|
}else {
|
||||||
|
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
|
||||||
|
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
|
||||||
|
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
||||||
|
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
||||||
|
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
||||||
|
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
||||||
|
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
||||||
|
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
||||||
|
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
||||||
|
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}, e => {
|
}, e => {
|
||||||
|
|
||||||
|
|||||||
+251
-51
@@ -346,7 +346,7 @@
|
|||||||
width="210px"
|
width="210px"
|
||||||
label="卡车VPPS中文名称">
|
label="卡车VPPS中文名称">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column width="150" align="center" label="操作">
|
<el-table-column width="240" align="center" label="操作">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
class="common-button-default"
|
class="common-button-default"
|
||||||
@@ -360,6 +360,12 @@
|
|||||||
size="small" @click="moveDown(scope.$index, scope.row)"
|
size="small" @click="moveDown(scope.$index, scope.row)"
|
||||||
v-if="!disabledFlag"
|
v-if="!disabledFlag"
|
||||||
>下移</el-button>
|
>下移</el-button>
|
||||||
|
<el-button
|
||||||
|
size="small"
|
||||||
|
@click="editTghisRow(scope.row)"
|
||||||
|
class="common-button-default"
|
||||||
|
type="warning"
|
||||||
|
>编辑</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -396,6 +402,89 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
<el-drawer
|
||||||
|
title="编辑清单条目"
|
||||||
|
:visible.sync="drawerEdit"
|
||||||
|
:wrapperClosable="false"
|
||||||
|
size="800px"
|
||||||
|
>
|
||||||
|
<el-form :modal="editRowData" label-position="left" ref="editRowData" label-width="150px" style="margin: 20px">
|
||||||
|
<el-form-item label="标准号">
|
||||||
|
<el-input v-model.trim="editRowData.standNumber" :disabled="true"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准名称" prop="standName">
|
||||||
|
<el-input v-model.trim="editRowData.standName" :disabled="true"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="英文名称" prop="standEnName">
|
||||||
|
<el-input v-model.trim="editRowData.standEnName" :disabled="true"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="适用车型" prop="typeApplicable">
|
||||||
|
<el-input v-model.trim="editRowData.typeApplicable" :disabled="true"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="能源类型" prop="nylx">
|
||||||
|
<el-input v-model.trim="editRowData.nylx" :disabled="true"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准实施日期" prop="putTime">
|
||||||
|
<el-date-picker
|
||||||
|
v-model.trim="editRowData.putTime"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="选择日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="在产车实施日期" prop="zccssrqgj">
|
||||||
|
<el-date-picker
|
||||||
|
v-model.trim="editRowData.zccssrqgj"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="选择日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="新车型实施日期" prop="xcxssrqgj">
|
||||||
|
<el-date-picker
|
||||||
|
v-model.trim="editRowData.xcxssrqgj"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="选择日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="责任部门" prop="zrbm">
|
||||||
|
<el-input v-model.trim="editRowData.zrbm" :disabled="true"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="适用产品线" prop="sycpx">
|
||||||
|
<el-input v-model.trim="editRowData.sycpx" :disabled="true"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="乘用车VPPS编码" prop="cycvppsbm">
|
||||||
|
<el-input v-model.trim="editRowData.cycvppsbm" :disabled="true"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="乘用车VPPS中文名称" prop="cycvppscn">
|
||||||
|
<el-input v-model.trim="editRowData.cycvppscn" :disabled="true"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="卡车VPPS编码" prop="kccvppsbm">
|
||||||
|
<el-input v-model.trim="editRowData.kccvppsbm" :disabled="true"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="卡车VPPS中文名称" prop="kccvppscn">
|
||||||
|
<el-input v-model.trim="editRowData.kccvppscn" :disabled="true"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div class="demo-drawer-footer">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
class="common-button-primary"
|
||||||
|
size="mini"
|
||||||
|
icon="el-icon-check"
|
||||||
|
@click="saveInfo"
|
||||||
|
>提交</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
icon="el-icon-close"
|
||||||
|
class="common-button-default"
|
||||||
|
@click="cancelInfo"
|
||||||
|
>取消</el-button
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</el-drawer>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -466,6 +555,26 @@ export default {
|
|||||||
},
|
},
|
||||||
fileInfoList: [], // 上传的附件
|
fileInfoList: [], // 上传的附件
|
||||||
uploadFileListPath: 'api/att/attFile/upload', // 上传的地址
|
uploadFileListPath: 'api/att/attFile/upload', // 上传的地址
|
||||||
|
// 编辑抽屉状态
|
||||||
|
drawerEdit: false,
|
||||||
|
// 编辑框数据
|
||||||
|
editRowData: {
|
||||||
|
id: '',
|
||||||
|
standName: '',
|
||||||
|
standSortShow:'',
|
||||||
|
standEnName: '',
|
||||||
|
typeApplicable: '',
|
||||||
|
nylx: '',
|
||||||
|
putTime: '',
|
||||||
|
zccssrqgj: '',
|
||||||
|
xcxssrqgj: '',
|
||||||
|
zrbm: '',
|
||||||
|
sycpx: '',
|
||||||
|
cycvppsbm: '',
|
||||||
|
cycvppscn: '',
|
||||||
|
kccvppsbm: '',
|
||||||
|
kccvppscn: ''
|
||||||
|
},
|
||||||
// 新增、编辑 基础信息验证条件
|
// 新增、编辑 基础信息验证条件
|
||||||
sarAccessEORules: {
|
sarAccessEORules: {
|
||||||
type: [
|
type: [
|
||||||
@@ -1024,16 +1133,16 @@ export default {
|
|||||||
this.selectedAccInfoSearchList.map(item => {
|
this.selectedAccInfoSearchList.map(item => {
|
||||||
let addList;
|
let addList;
|
||||||
addList = this.sarAccessInfoList.findIndex(items => {
|
addList = this.sarAccessInfoList.findIndex(items => {
|
||||||
return items.id == item.id
|
return items.id == item.id
|
||||||
})
|
})
|
||||||
if(addList > -1){
|
if(addList > -1){
|
||||||
this.$message.warning('请勿添加重复数据')
|
this.$message.warning('请勿添加重复数据')
|
||||||
this.$refs.accessTypeSelect.clearSelection()
|
// this.$refs.accessTypeSelect.clearSelection()
|
||||||
this.$refs.entryTable.clearSelection()
|
this.$refs.entryTable.clearSelection()
|
||||||
this.$refs.searchTable.clearSelection()
|
this.$refs.searchTable.clearSelection()
|
||||||
} else{
|
} else{
|
||||||
this.sarAccessInfoList.push(item)
|
this.sarAccessInfoList.push(item)
|
||||||
this.$refs.accessTypeSelect.clearSelection()
|
// this.$refs.accessTypeSelect.clearSelection()
|
||||||
this.$refs.entryTable.clearSelection()
|
this.$refs.entryTable.clearSelection()
|
||||||
this.$refs.searchTable.clearSelection()
|
this.$refs.searchTable.clearSelection()
|
||||||
}
|
}
|
||||||
@@ -1070,6 +1179,22 @@ export default {
|
|||||||
this.$set(this.sarAccessInfoList, index, i)
|
this.$set(this.sarAccessInfoList, index, i)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 编辑按钮
|
||||||
|
editTghisRow(row) {
|
||||||
|
this.rowList = row
|
||||||
|
this.editRowData = this.rowList
|
||||||
|
this.editRowData.standNumber = this.rowList.standNumber
|
||||||
|
this.drawerEdit = true
|
||||||
|
},
|
||||||
|
// 抽屉取消按钮
|
||||||
|
cancelInfo() {
|
||||||
|
this.drawerEdit = false
|
||||||
|
},
|
||||||
|
// 抽屉提交按钮
|
||||||
|
saveInfo() {
|
||||||
|
this.rowList = this.editRowData
|
||||||
|
this.drawerEdit = false
|
||||||
|
},
|
||||||
// 点击清单条目导入按钮事件
|
// 点击清单条目导入按钮事件
|
||||||
importmodalFlags () {
|
importmodalFlags () {
|
||||||
this.importmodalFlag = true
|
this.importmodalFlag = true
|
||||||
@@ -1127,12 +1252,30 @@ export default {
|
|||||||
this.$refs['sarAccessForm'].validate((valid) => {
|
this.$refs['sarAccessForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
let rowlist = []
|
let rowlist = []
|
||||||
|
let rowlist1 = []
|
||||||
|
let rowlist2 = []
|
||||||
|
let rowlist3 = []
|
||||||
for (let i = 0; i < this.sarAccessInfoList.length; i++) {
|
for (let i = 0; i < this.sarAccessInfoList.length; i++) {
|
||||||
rowlist.push(this.sarAccessInfoList[i].id)
|
rowlist.push(this.sarAccessInfoList[i].id)
|
||||||
|
if (this.sarAccessInfoList[i].putTime === null || this.sarAccessInfoList[i].zccssrqgj ===null || this.sarAccessInfoList[i].xcxssrqgj === null) {
|
||||||
|
rowlist1.push(this.sarAccessInfoList[i].putTime)
|
||||||
|
rowlist2.push(this.sarAccessInfoList[i].zccssrqgj)
|
||||||
|
rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj)
|
||||||
|
}else {
|
||||||
|
rowlist1.push(this.sarAccessInfoList[i].putTime.toString())
|
||||||
|
rowlist2.push(this.sarAccessInfoList[i].zccssrqgj.toString())
|
||||||
|
rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj.toString())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
rowlist = rowlist.join(',')
|
rowlist = rowlist.join(',')
|
||||||
|
rowlist1 = rowlist1.join(',')
|
||||||
|
rowlist2 = rowlist2.join(',')
|
||||||
|
rowlist3 = rowlist3.join(',')
|
||||||
let sarAccessEO = JSON.parse(JSON.stringify(this.sarAccessEO))
|
let sarAccessEO = JSON.parse(JSON.stringify(this.sarAccessEO))
|
||||||
sarAccessEO.inforlist = JSON.stringify(rowlist)
|
sarAccessEO.inforlist = JSON.stringify(rowlist)
|
||||||
|
sarAccessEO.inforlist1 = JSON.stringify(rowlist1)
|
||||||
|
sarAccessEO.inforlist2 = JSON.stringify(rowlist2)
|
||||||
|
sarAccessEO.inforlist3 = JSON.stringify(rowlist3)
|
||||||
// sarAccessEO.countryArea = sarAccessEO.countryArea.join(',')
|
// sarAccessEO.countryArea = sarAccessEO.countryArea.join(',')
|
||||||
// sarAccessEO.applicationScope = sarAccessEO.applicationScope.join(',')
|
// sarAccessEO.applicationScope = sarAccessEO.applicationScope.join(',')
|
||||||
// 判断是否有附件
|
// 判断是否有附件
|
||||||
@@ -1151,12 +1294,16 @@ export default {
|
|||||||
_this: this,
|
_this: this,
|
||||||
loading: 'loadData'
|
loading: 'loadData'
|
||||||
}, res => {
|
}, res => {
|
||||||
if (res.ok) {
|
if (this.sarAccessInfoList.length !== 0) {
|
||||||
this.$message.success('新增成功')
|
if (res.ok) {
|
||||||
this.isNext = true
|
this.$message.success('新增成功')
|
||||||
this.$router.push({
|
this.isNext = true
|
||||||
name: 'AccessStandardsAndRegulations'
|
this.$router.push({
|
||||||
})
|
name: 'AccessStandardsAndRegulations'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
this.$message.error('请选中需要添加到 清单条目 的(标准号/政策编号)')
|
||||||
}
|
}
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
@@ -1185,6 +1332,7 @@ export default {
|
|||||||
selectLawsStands () {
|
selectLawsStands () {
|
||||||
if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') {
|
if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') {
|
||||||
this.sarAccessInfoSearch.dataSource = 'INLAND_STAND'
|
this.sarAccessInfoSearch.dataSource = 'INLAND_STAND'
|
||||||
|
this.sarAccessInfoSearch.standType = ''
|
||||||
} else {
|
} else {
|
||||||
this.sarAccessInfoSearch.standType = 'FOREIGN'
|
this.sarAccessInfoSearch.standType = 'FOREIGN'
|
||||||
}
|
}
|
||||||
@@ -1196,16 +1344,29 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
|
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
|
||||||
}
|
}
|
||||||
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
|
if (item.attrInfoMap === null) {
|
||||||
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
|
this.$set(item, 'zccssrqgj', '')
|
||||||
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
this.$set(item, 'xcxssrqgj', '')
|
||||||
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
this.$set(item, 'sycpx', '')
|
||||||
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
this.$set(item, 'typeApplicable', '')
|
||||||
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
this.$set(item, 'nylx', '')
|
||||||
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
this.$set(item, 'zrbm', '')
|
||||||
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
this.$set(item, 'cycvppsbm', '')
|
||||||
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
this.$set(item, 'cycvppscn', '')
|
||||||
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
this.$set(item, 'kccvppsbm', '')
|
||||||
|
this.$set(item, 'kccvppscn', '')
|
||||||
|
}else {
|
||||||
|
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
|
||||||
|
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
|
||||||
|
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
||||||
|
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
||||||
|
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
||||||
|
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
||||||
|
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
||||||
|
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
||||||
|
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
||||||
|
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
this.drawerTotal = res.data.list.length
|
this.drawerTotal = res.data.list.length
|
||||||
}, e => {
|
}, e => {
|
||||||
@@ -1226,16 +1387,29 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
|
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
|
||||||
}
|
}
|
||||||
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
|
if (item.attrInfoMap === null) {
|
||||||
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
|
this.$set(item, 'zccssrqgj', '')
|
||||||
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
this.$set(item, 'xcxssrqgj', '')
|
||||||
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
this.$set(item, 'sycpx', '')
|
||||||
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
this.$set(item, 'typeApplicable', '')
|
||||||
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
this.$set(item, 'nylx', '')
|
||||||
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
this.$set(item, 'zrbm', '')
|
||||||
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
this.$set(item, 'cycvppsbm', '')
|
||||||
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
this.$set(item, 'cycvppscn', '')
|
||||||
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
this.$set(item, 'kccvppsbm', '')
|
||||||
|
this.$set(item, 'kccvppscn', '')
|
||||||
|
}else {
|
||||||
|
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
|
||||||
|
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
|
||||||
|
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
||||||
|
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
||||||
|
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
||||||
|
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
||||||
|
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
||||||
|
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
||||||
|
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
||||||
|
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
this.drawerTotal = res.data.list.length
|
this.drawerTotal = res.data.list.length
|
||||||
}, e => {
|
}, e => {
|
||||||
@@ -1249,16 +1423,29 @@ export default {
|
|||||||
sarAccessInfoSearchSelect (val) {
|
sarAccessInfoSearchSelect (val) {
|
||||||
this.selectedAccInfoSearchList = val
|
this.selectedAccInfoSearchList = val
|
||||||
this.selectedAccInfoSearchList.forEach(item => {
|
this.selectedAccInfoSearchList.forEach(item => {
|
||||||
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
|
if (item.attrInfoMap === null) {
|
||||||
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
|
this.$set(item, 'zccssrqgj', '')
|
||||||
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
this.$set(item, 'xcxssrqgj', '')
|
||||||
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
this.$set(item, 'sycpx', '')
|
||||||
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
this.$set(item, 'typeApplicable', '')
|
||||||
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
this.$set(item, 'nylx', '')
|
||||||
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
this.$set(item, 'zrbm', '')
|
||||||
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
this.$set(item, 'cycvppsbm', '')
|
||||||
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
this.$set(item, 'cycvppscn', '')
|
||||||
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
this.$set(item, 'kccvppsbm', '')
|
||||||
|
this.$set(item, 'kccvppscn', '')
|
||||||
|
}else {
|
||||||
|
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
|
||||||
|
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
|
||||||
|
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
||||||
|
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
||||||
|
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
||||||
|
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
||||||
|
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
||||||
|
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
||||||
|
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
||||||
|
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
this.selectedAccInfoSearchList.forEach(item => {
|
this.selectedAccInfoSearchList.forEach(item => {
|
||||||
// 责任部门转换
|
// 责任部门转换
|
||||||
@@ -1776,16 +1963,29 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.sarAccessInfoSearchList.forEach(item => {
|
this.sarAccessInfoSearchList.forEach(item => {
|
||||||
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
|
if (item.attrInfoMap === null) {
|
||||||
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
|
this.$set(item, 'zccssrqgj', '')
|
||||||
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
this.$set(item, 'xcxssrqgj', '')
|
||||||
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
this.$set(item, 'sycpx', '')
|
||||||
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
this.$set(item, 'typeApplicable', '')
|
||||||
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
this.$set(item, 'nylx', '')
|
||||||
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
this.$set(item, 'zrbm', '')
|
||||||
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
this.$set(item, 'cycvppsbm', '')
|
||||||
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
this.$set(item, 'cycvppscn', '')
|
||||||
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
this.$set(item, 'kccvppsbm', '')
|
||||||
|
this.$set(item, 'kccvppscn', '')
|
||||||
|
}else {
|
||||||
|
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
|
||||||
|
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
|
||||||
|
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
||||||
|
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
||||||
|
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
||||||
|
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
||||||
|
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
||||||
|
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
||||||
|
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
||||||
|
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}, e => {
|
}, e => {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user