|
|
@@ -56,6 +56,13 @@
|
|
|
title="汇总数据导出"
|
|
|
@click="diaType = 2"
|
|
|
/>
|
|
|
+ <base-button
|
|
|
+ class="ml-20 mt-20"
|
|
|
+ type="0"
|
|
|
+ icon="el-icon-coordinate"
|
|
|
+ title="项目结转"
|
|
|
+ @click="projectCarry"
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
<avue-crud
|
|
|
@@ -101,7 +108,7 @@
|
|
|
row.report_type === 2
|
|
|
"
|
|
|
type="primary"
|
|
|
- @click="projectApproval(row)"
|
|
|
+ @click="rowClick(row, 1)"
|
|
|
>审批</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
@@ -274,6 +281,22 @@
|
|
|
<el-button @click="track(currentReport)">确 定</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <!-- 项目审批-->
|
|
|
+ <el-dialog v-model="showApproval" title="审批">
|
|
|
+ <div>
|
|
|
+ <el-input
|
|
|
+ type="textarea"
|
|
|
+ v-model="approvalMsg"
|
|
|
+ placeholder="请填写审批意见"
|
|
|
+ />
|
|
|
+ <div class="full-width flex flex-justify-end mt-20">
|
|
|
+ <el-button plain type="primary" @click="showApproval = false"
|
|
|
+ >取消</el-button
|
|
|
+ >
|
|
|
+ <el-button type="primary" @click="projectApproval">确定</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -284,6 +307,7 @@ import formDialog from '@/views/home/component/form_dialog.vue'
|
|
|
import { getLazyList } from '@/api/project/index.js'
|
|
|
import summaryDialog from '@/views/home/component/summary_dialog.vue'
|
|
|
import { useStore } from '@/store/user.js'
|
|
|
+import confing from '@/config/website'
|
|
|
|
|
|
export default {
|
|
|
name: 'dash',
|
|
|
@@ -295,7 +319,8 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- projectApprovalBtn: false,
|
|
|
+ showApproval: false,
|
|
|
+ approvalMsg: '',
|
|
|
reportTime: '',
|
|
|
currentReport: null,
|
|
|
reportShow: false,
|
|
|
@@ -421,22 +446,17 @@ export default {
|
|
|
{
|
|
|
label: '认定时间',
|
|
|
prop: 'year',
|
|
|
- width: 160
|
|
|
- },
|
|
|
- {
|
|
|
- label: '存在问题',
|
|
|
- prop: 'year',
|
|
|
- width: 80
|
|
|
+ width: 120
|
|
|
},
|
|
|
{
|
|
|
- label: '数据更新时间',
|
|
|
- prop: 'year',
|
|
|
- width: 160
|
|
|
+ label: '预警提示',
|
|
|
+ prop: 'tips',
|
|
|
+ width: 100
|
|
|
},
|
|
|
{
|
|
|
label: '状态',
|
|
|
prop: 'report_type',
|
|
|
- width: 100,
|
|
|
+ width: 170,
|
|
|
slot: true
|
|
|
}
|
|
|
]
|
|
|
@@ -535,13 +555,11 @@ export default {
|
|
|
e.selected = true
|
|
|
const xian = e.name.indexOf('县')
|
|
|
e.name = this.dev ? e.name.substring(xian + 1) : e.name
|
|
|
- e.report_type_name = '未上报'
|
|
|
- if (e.report_type === 2) {
|
|
|
- e.report_type_name = '待审批'
|
|
|
- } else if (e.report_type === 3) {
|
|
|
- e.report_type_name = '通过'
|
|
|
- } else if (e.report_type === 4) {
|
|
|
- e.report_type_name = '固定资产'
|
|
|
+ const status = confing.reportTypes.find(
|
|
|
+ ele => ele.value === e.report_type
|
|
|
+ )
|
|
|
+ if (status) {
|
|
|
+ e.report_type_name = status.label
|
|
|
}
|
|
|
return e
|
|
|
})
|
|
|
@@ -655,6 +673,12 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ rowClick(item, type) {
|
|
|
+ this.form = item
|
|
|
+ if (type === 1) {
|
|
|
+ this.showApproval = true
|
|
|
+ }
|
|
|
+ },
|
|
|
/**
|
|
|
* 管理员审批项目
|
|
|
* @param res
|
|
|
@@ -685,6 +709,19 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ projectCarry() {
|
|
|
+ console.log(this.selectList)
|
|
|
+ this.$api.project
|
|
|
+ .projectCarry({ ids: this.selectList.join(',') })
|
|
|
+ .then(res => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.$message.success(res.msg)
|
|
|
+ this.refreshChange()
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
track(res) {
|
|
|
const data = {
|
|
|
id: res.id,
|