|
@@ -5,39 +5,39 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="mt-10" style="width: 90%">
|
|
<div class="mt-10" style="width: 90%">
|
|
|
<avue-crud
|
|
<avue-crud
|
|
|
- :option="option"
|
|
|
|
|
- :data="data"
|
|
|
|
|
- ref="crud"
|
|
|
|
|
- v-model="form"
|
|
|
|
|
- :before-open="beforeOpen"
|
|
|
|
|
- @row-del="rowDel"
|
|
|
|
|
- @row-save="rowSave"
|
|
|
|
|
- @row-update="rowUpdate"
|
|
|
|
|
|
|
+ :option="option"
|
|
|
|
|
+ :data="data"
|
|
|
|
|
+ ref="crud"
|
|
|
|
|
+ v-model="form"
|
|
|
|
|
+ :before-open="beforeOpen"
|
|
|
|
|
+ @row-del="rowDel"
|
|
|
|
|
+ @row-save="rowSave"
|
|
|
|
|
+ @row-update="rowUpdate"
|
|
|
>
|
|
>
|
|
|
<template #menu-right>
|
|
<template #menu-right>
|
|
|
<div class="full-width">
|
|
<div class="full-width">
|
|
|
<el-button
|
|
<el-button
|
|
|
- icon="el-icon-refresh"
|
|
|
|
|
- circle
|
|
|
|
|
- @click="proInfo"
|
|
|
|
|
|
|
+ icon="el-icon-refresh"
|
|
|
|
|
+ circle
|
|
|
|
|
+ @click="proInfo"
|
|
|
></el-button>
|
|
></el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<template #menu="{ row }">
|
|
<template #menu="{ row }">
|
|
|
<el-button
|
|
<el-button
|
|
|
- text
|
|
|
|
|
- type="primary"
|
|
|
|
|
- icon="el-icon-folder-checked"
|
|
|
|
|
- @click="openFolder(row)"
|
|
|
|
|
- >打开文件夹
|
|
|
|
|
|
|
+ text
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ icon="el-icon-folder-checked"
|
|
|
|
|
+ @click="openFolder(row)"
|
|
|
|
|
+ >打开文件夹
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
- text
|
|
|
|
|
- type="primary"
|
|
|
|
|
- icon="el-icon-view"
|
|
|
|
|
- @click="edit(row)"
|
|
|
|
|
- v-if="detail.can_update"
|
|
|
|
|
- >文号提取
|
|
|
|
|
|
|
+ text
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ icon="el-icon-view"
|
|
|
|
|
+ @click="edit(row)"
|
|
|
|
|
+ v-if="detail.can_update"
|
|
|
|
|
+ >文号提取
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
<template #file="{ row }">
|
|
<template #file="{ row }">
|
|
@@ -56,23 +56,22 @@
|
|
|
<div>
|
|
<div>
|
|
|
<div class="bold font-16">{{ currentRow.file.originalFileName }}</div>
|
|
<div class="bold font-16">{{ currentRow.file.originalFileName }}</div>
|
|
|
<el-input
|
|
<el-input
|
|
|
- class="mt-20"
|
|
|
|
|
- v-model="currentRow.file.copyNumber"
|
|
|
|
|
- placeholder="附件清晰度或手写原因导致文号提取失败,请进行手动填写"
|
|
|
|
|
|
|
+ class="mt-20"
|
|
|
|
|
+ v-model="currentRow.file.copyNumber"
|
|
|
|
|
+ placeholder="附件清晰度或手写原因导致文号提取失败,请进行手动填写"
|
|
|
></el-input>
|
|
></el-input>
|
|
|
<div class="mt-20 full-width flex flex-justify-end">
|
|
<div class="mt-20 full-width flex flex-justify-end">
|
|
|
<el-button plain type="primary" @click="show = false"
|
|
<el-button plain type="primary" @click="show = false"
|
|
|
- >取 消
|
|
|
|
|
- </el-button
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ >取 消
|
|
|
|
|
+ </el-button>
|
|
|
<el-button type="primary" @click="updateCopyNumber">确定</el-button>
|
|
<el-button type="primary" @click="updateCopyNumber">确定</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
<el-image-viewer
|
|
<el-image-viewer
|
|
|
- v-if="showImage"
|
|
|
|
|
- :url-list="preList"
|
|
|
|
|
- @close="showImage = false"
|
|
|
|
|
|
|
+ v-if="showImage"
|
|
|
|
|
+ :url-list="preList"
|
|
|
|
|
+ @close="showImage = false"
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -80,6 +79,89 @@
|
|
|
<script>
|
|
<script>
|
|
|
import api from '@/api/index.js'
|
|
import api from '@/api/index.js'
|
|
|
|
|
|
|
|
|
|
+const defaultData = [
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '建设项目用地预审',
|
|
|
|
|
+ deptName: '',
|
|
|
|
|
+ docNo: '凤环函〔2018147]号',
|
|
|
|
|
+ edit: false,
|
|
|
|
|
+ dispatchType: 1,
|
|
|
|
|
+ prop: 'approval_no-land_use_pre_audit'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '选址意见书',
|
|
|
|
|
+ deptName: '',
|
|
|
|
|
+ docNo: '选字第201900011号',
|
|
|
|
|
+ edit: false,
|
|
|
|
|
+ dispatchType: 2,
|
|
|
|
|
+ prop: 'approval_no-site_select_opinions'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '环境影响评价批复',
|
|
|
|
|
+ deptName: '生态环境局',
|
|
|
|
|
+ edit: false,
|
|
|
|
|
+ docNo: '',
|
|
|
|
|
+ dispatchType: 3,
|
|
|
|
|
+ prop: 'approval_no-eia'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '项目建议书批复',
|
|
|
|
|
+ deptName: '',
|
|
|
|
|
+ docNo: '',
|
|
|
|
|
+ edit: false,
|
|
|
|
|
+ dispatchType: 4,
|
|
|
|
|
+ prop: 'approval_no-advice_ratify'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '可行性研究报告批复',
|
|
|
|
|
+ deptName: '发改局',
|
|
|
|
|
+ edit: false,
|
|
|
|
|
+ docNo: '',
|
|
|
|
|
+ dispatchType: 5,
|
|
|
|
|
+ prop: 'approval_no-feasibility_study'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '初步设计及概算批复',
|
|
|
|
|
+ deptName: '',
|
|
|
|
|
+ docNo: '',
|
|
|
|
|
+ edit: false,
|
|
|
|
|
+ dispatchType: 6,
|
|
|
|
|
+ prop: 'approval_no-design'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '建设用地规划许可证',
|
|
|
|
|
+ deptName: '住建局',
|
|
|
|
|
+ docNo: '',
|
|
|
|
|
+ edit: false,
|
|
|
|
|
+ dispatchType: 7,
|
|
|
|
|
+ prop: 'approval_no-land_user'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '开工许可证',
|
|
|
|
|
+ deptName: '住建局',
|
|
|
|
|
+ docNo: '',
|
|
|
|
|
+ edit: false,
|
|
|
|
|
+ dispatchType: 8,
|
|
|
|
|
+ prop: 'approval_no-permit_no'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '施工许可证',
|
|
|
|
|
+ deptName: '住建局',
|
|
|
|
|
+ docNo: '',
|
|
|
|
|
+ edit: false,
|
|
|
|
|
+ dispatchType: 9,
|
|
|
|
|
+ prop: 'approval_no-construction_permit'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '建设工程规划许可证',
|
|
|
|
|
+ deptName: '住建局',
|
|
|
|
|
+ docNo: '',
|
|
|
|
|
+ edit: false,
|
|
|
|
|
+ dispatchType: 10,
|
|
|
|
|
+ prop: 'approval_no-construction_plan_permit'
|
|
|
|
|
+ }
|
|
|
|
|
+]
|
|
|
|
|
+
|
|
|
export default {
|
|
export default {
|
|
|
name: 'params4',
|
|
name: 'params4',
|
|
|
props: {
|
|
props: {
|
|
@@ -116,88 +198,7 @@ export default {
|
|
|
currentRow: null,
|
|
currentRow: null,
|
|
|
disabled: true,
|
|
disabled: true,
|
|
|
form: {},
|
|
form: {},
|
|
|
- data: [
|
|
|
|
|
- {
|
|
|
|
|
- name: '建设项目用地预审',
|
|
|
|
|
- deptName: '',
|
|
|
|
|
- docNo: '凤环函〔2018147]号',
|
|
|
|
|
- edit: false,
|
|
|
|
|
- dispatchType: 1,
|
|
|
|
|
- prop: 'approval_no-land_use_pre_audit'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: '选址意见书',
|
|
|
|
|
- deptName: '',
|
|
|
|
|
- docNo: '选字第201900011号',
|
|
|
|
|
- edit: false,
|
|
|
|
|
- dispatchType: 2,
|
|
|
|
|
- prop: 'approval_no-site_select_opinions'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: '环境影响评价批复',
|
|
|
|
|
- deptName: '生态环境局',
|
|
|
|
|
- edit: false,
|
|
|
|
|
- docNo: '',
|
|
|
|
|
- dispatchType: 3,
|
|
|
|
|
- prop: 'approval_no-eia'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: '项目建议书批复',
|
|
|
|
|
- deptName: '',
|
|
|
|
|
- docNo: '',
|
|
|
|
|
- edit: false,
|
|
|
|
|
- dispatchType: 4,
|
|
|
|
|
- prop: 'approval_no-advice_ratify'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: '可行性研究报告批复',
|
|
|
|
|
- deptName: '发改局',
|
|
|
|
|
- edit: false,
|
|
|
|
|
- docNo: '',
|
|
|
|
|
- dispatchType: 5,
|
|
|
|
|
- prop: 'approval_no-feasibility_study'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: '初步设计及概算批复',
|
|
|
|
|
- deptName: '',
|
|
|
|
|
- docNo: '',
|
|
|
|
|
- edit: false,
|
|
|
|
|
- dispatchType: 6,
|
|
|
|
|
- prop: 'approval_no-design'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: '建设用地规划许可证',
|
|
|
|
|
- deptName: '住建局',
|
|
|
|
|
- docNo: '',
|
|
|
|
|
- edit: false,
|
|
|
|
|
- dispatchType: 7,
|
|
|
|
|
- prop: 'approval_no-land_user'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: '开工许可证',
|
|
|
|
|
- deptName: '住建局',
|
|
|
|
|
- docNo: '',
|
|
|
|
|
- edit: false,
|
|
|
|
|
- dispatchType: 8,
|
|
|
|
|
- prop: 'approval_no-permit_no'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: '施工许可证',
|
|
|
|
|
- deptName: '住建局',
|
|
|
|
|
- docNo: '',
|
|
|
|
|
- edit: false,
|
|
|
|
|
- dispatchType: 9,
|
|
|
|
|
- prop: 'approval_no-construction_permit'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: '建设工程规划许可证',
|
|
|
|
|
- deptName: '住建局',
|
|
|
|
|
- docNo: '',
|
|
|
|
|
- edit: false,
|
|
|
|
|
- dispatchType: 10,
|
|
|
|
|
- prop: 'approval_no-construction_plan_permit'
|
|
|
|
|
- }
|
|
|
|
|
- ],
|
|
|
|
|
|
|
+ data: [],
|
|
|
option: {
|
|
option: {
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
menuAlign: 'center',
|
|
menuAlign: 'center',
|
|
@@ -287,7 +288,7 @@ export default {
|
|
|
if (api.offices.includes(item.file.suffix)) {
|
|
if (api.offices.includes(item.file.suffix)) {
|
|
|
const routeData = this.$router.resolve({
|
|
const routeData = this.$router.resolve({
|
|
|
path: '/home/file_detail',
|
|
path: '/home/file_detail',
|
|
|
- query: {id: item.fileId}
|
|
|
|
|
|
|
+ query: { id: item.fileId }
|
|
|
})
|
|
})
|
|
|
window.open(routeData.href, '_blank')
|
|
window.open(routeData.href, '_blank')
|
|
|
} else {
|
|
} else {
|
|
@@ -312,6 +313,7 @@ export default {
|
|
|
window.open(routeUrl.href, '_blank')
|
|
window.open(routeUrl.href, '_blank')
|
|
|
},
|
|
},
|
|
|
initFileList(list) {
|
|
initFileList(list) {
|
|
|
|
|
+ this.data = defaultData
|
|
|
if (list && list.length === 0) {
|
|
if (list && list.length === 0) {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
@@ -333,7 +335,7 @@ export default {
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
if (res === 'confirm') {
|
|
if (res === 'confirm') {
|
|
|
- this.$api.project.fileRemove({ids: row.pid, type: 3}).then(res => {
|
|
|
|
|
|
|
+ this.$api.project.fileRemove({ ids: row.pid, type: 3 }).then(res => {
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
|
this.$message.success(res.msg)
|
|
this.$message.success(res.msg)
|
|
|
this.proInfo()
|
|
this.proInfo()
|
|
@@ -355,18 +357,18 @@ export default {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
this.$api.common
|
|
this.$api.common
|
|
|
- .fileUpdate({
|
|
|
|
|
- id: this.currentRow.fileId,
|
|
|
|
|
- copyNumber: this.currentRow.file.copyNumber
|
|
|
|
|
- })
|
|
|
|
|
- .then(res => {
|
|
|
|
|
- if (res.code === 200) {
|
|
|
|
|
- this.show = false
|
|
|
|
|
- this.$message.success(res.msg)
|
|
|
|
|
- } else {
|
|
|
|
|
- this.$message.error(res.msg)
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ .fileUpdate({
|
|
|
|
|
+ id: this.currentRow.fileId,
|
|
|
|
|
+ copyNumber: this.currentRow.file.copyNumber
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
|
+ this.show = false
|
|
|
|
|
+ this.$message.success(res.msg)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message.error(res.msg)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|