update 流程完善
This commit is contained in:
@@ -257,6 +257,8 @@ const editInspectProcessTable = (params) => postAction('/esinspect/processEsInsp
|
|||||||
const addInspectionContentTable = (params) => postAction('/enterprise/InspectContent/add', params)
|
const addInspectionContentTable = (params) => postAction('/enterprise/InspectContent/add', params)
|
||||||
// 稽查流程表-稽查内容-编辑
|
// 稽查流程表-稽查内容-编辑
|
||||||
const editInspectionContentTable = (params) => postAction('/enterprise/InspectContent/edit', params)
|
const editInspectionContentTable = (params) => postAction('/enterprise/InspectContent/edit', params)
|
||||||
|
// 稽查流程表-稽查内容-通过稽查id获取预览文件id
|
||||||
|
const getFileIdByInspectId = (params) => getAction('/esinspect/processEsInspect/queryFileByInspectId', params)
|
||||||
// 稽查流程表-稽查内容-列表(下拉)
|
// 稽查流程表-稽查内容-列表(下拉)
|
||||||
const getInspectionContentTable = (params) => getAction('/enterprise/InspectContent/queryClauseByEsInspectId', params)
|
const getInspectionContentTable = (params) => getAction('/enterprise/InspectContent/queryClauseByEsInspectId', params)
|
||||||
// 稽查流程表-稽查报告-添加
|
// 稽查流程表-稽查报告-添加
|
||||||
@@ -476,6 +478,7 @@ export {
|
|||||||
editInspectProcessTable,
|
editInspectProcessTable,
|
||||||
addInspectionContentTable,
|
addInspectionContentTable,
|
||||||
editInspectionContentTable,
|
editInspectionContentTable,
|
||||||
|
getFileIdByInspectId,
|
||||||
getInspectionContentTable,
|
getInspectionContentTable,
|
||||||
addInspectionReportTable,
|
addInspectionReportTable,
|
||||||
editInspectionReportTable,
|
editInspectionReportTable,
|
||||||
|
|||||||
+1
-1
@@ -300,7 +300,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 显示意见
|
// 显示意见
|
||||||
handleShowOpinion (record) {
|
handleShowOpinion (record) {
|
||||||
this.$refs.writeOpinionModal.show(record, true)
|
this.$refs.writeOpinionModal.show(record)
|
||||||
},
|
},
|
||||||
// 填写意见
|
// 填写意见
|
||||||
handleWriteOpinion (record) {
|
handleWriteOpinion (record) {
|
||||||
|
|||||||
+19
-5
@@ -57,7 +57,7 @@ import { getFileInfo } from '@/api/api'
|
|||||||
import { previewPdf } from '@/utils/previewPdf'
|
import { previewPdf } from '@/utils/previewPdf'
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||||
import { addInspectionContentTable, editInspectionContentTable } from '@api/workCenter'
|
import { addInspectionContentTable, editInspectionContentTable, getFileIdByInspectId } from '@api/workCenter'
|
||||||
|
|
||||||
const Base64 = require('js-base64').Base64
|
const Base64 = require('js-base64').Base64
|
||||||
|
|
||||||
@@ -104,15 +104,29 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
add (data) {
|
add (data) {
|
||||||
this.data = Object.assign({}, data)
|
this.data = Object.assign({}, data)
|
||||||
this.getFileInfo(data.file).then(res => {
|
// 后端获取预览文件id接口
|
||||||
this.handlePreview(res)
|
getFileIdByInspectId({ inspectId: data.inspectId }).then(res => {
|
||||||
|
return res.success ? res.result.id : ''
|
||||||
|
}).then(fileId => {
|
||||||
|
this.getFileInfo(fileId).then(res => {
|
||||||
|
this.handlePreview(res)
|
||||||
|
})
|
||||||
|
}).catch(err => {
|
||||||
|
console.log(err)
|
||||||
})
|
})
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.form.resetFields()
|
this.form.resetFields()
|
||||||
},
|
},
|
||||||
edit (data, record, index) {
|
edit (data, record, index) {
|
||||||
this.getFileInfo(data.file).then(res => {
|
// 后端获取预览文件id接口
|
||||||
this.handlePreview(res)
|
getFileIdByInspectId({ inspectId: data.inspectId }).then(res => {
|
||||||
|
return res.success ? res.result.id : ''
|
||||||
|
}).then(fileId => {
|
||||||
|
this.getFileInfo(fileId).then(res => {
|
||||||
|
this.handlePreview(res)
|
||||||
|
})
|
||||||
|
}).catch(err => {
|
||||||
|
console.log(err)
|
||||||
})
|
})
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.index = index
|
this.index = index
|
||||||
|
|||||||
+1
-1
@@ -61,7 +61,7 @@
|
|||||||
:wrapperCol="wrapperCol"
|
:wrapperCol="wrapperCol"
|
||||||
:label="$t('workCenter.esInspectionProcess.score')"
|
:label="$t('workCenter.esInspectionProcess.score')"
|
||||||
prop="evaluateScore">
|
prop="evaluateScore">
|
||||||
<a-input-number v-model="form.evaluateScore" :min="1" :max="200" disabled
|
<a-input-number v-model="form.evaluateScore" :min="0" :max="100" disabled
|
||||||
:placeholder="$t('pleaseEnter') + $t('workCenter.esInspectionProcess.score')"
|
:placeholder="$t('pleaseEnter') + $t('workCenter.esInspectionProcess.score')"
|
||||||
style="width: 100%" :formatter="limitNumber" :parser="limitNumber" />
|
style="width: 100%" :formatter="limitNumber" :parser="limitNumber" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
|
|||||||
+1
-1
@@ -61,7 +61,7 @@
|
|||||||
:wrapperCol="wrapperCol"
|
:wrapperCol="wrapperCol"
|
||||||
:label="$t('workCenter.esInspectionProcess.score')"
|
:label="$t('workCenter.esInspectionProcess.score')"
|
||||||
prop="evaluateScore">
|
prop="evaluateScore">
|
||||||
<a-input-number v-model="form.evaluateScore" :min="1" :max="200"
|
<a-input-number v-model="form.evaluateScore" :min="0" :max="100"
|
||||||
:placeholder="$t('pleaseEnter') + $t('workCenter.esInspectionProcess.score')"
|
:placeholder="$t('pleaseEnter') + $t('workCenter.esInspectionProcess.score')"
|
||||||
style="width: 100%" :formatter="limitNumber" :parser="limitNumber" />
|
style="width: 100%" :formatter="limitNumber" :parser="limitNumber" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
|
|||||||
@@ -17,9 +17,12 @@
|
|||||||
<!--基本信息-->
|
<!--基本信息-->
|
||||||
<div class="detail-page-scroll-content" v-show="switchValue === 'base'">
|
<div class="detail-page-scroll-content" v-show="switchValue === 'base'">
|
||||||
<!-- 流程信息 -->
|
<!-- 流程信息 -->
|
||||||
<div class="process-part-title">{{ $t('processInformation') }}</div>
|
<div class="process-part-title">
|
||||||
|
{{ $t('processInformation') }}
|
||||||
|
<a-icon type="double-right" :class="isShowProcessInfo ? 'pack-up-btn' : 'unfold-btn'" @click="changeShowProcessInfo" />
|
||||||
|
</div>
|
||||||
<a-form :form="processInfoForm">
|
<a-form :form="processInfoForm">
|
||||||
<a-row>
|
<a-row v-show="isShowProcessInfo">
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<!-- 流程名称 -->
|
<!-- 流程名称 -->
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('processName')">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('processName')">
|
||||||
@@ -120,6 +123,8 @@ export default {
|
|||||||
mixins: [WorkCenterMixin],
|
mixins: [WorkCenterMixin],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
// 是否显示流程信息
|
||||||
|
isShowProcessInfo: true,
|
||||||
loading: false,
|
loading: false,
|
||||||
switchValue: 'base',
|
switchValue: 'base',
|
||||||
disabled: false,
|
disabled: false,
|
||||||
@@ -219,6 +224,10 @@ export default {
|
|||||||
this.getProjectId()
|
this.getProjectId()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 切换折叠显示流程信息
|
||||||
|
changeShowProcessInfo () {
|
||||||
|
this.isShowProcessInfo = !this.isShowProcessInfo
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 获取项目id
|
* 获取项目id
|
||||||
*/
|
*/
|
||||||
@@ -496,6 +505,16 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped lang="less">
|
||||||
|
@import '~@assets/less/common.less';
|
||||||
|
|
||||||
|
.pack-up-btn {
|
||||||
|
transform: rotate(-90deg);
|
||||||
|
color: @primary-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.unfold-btn {
|
||||||
|
transform: rotate(90deg);
|
||||||
|
color: @primary-color;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user