update 企标稽查计划完善
This commit is contained in:
@@ -212,7 +212,7 @@ const refusalInspectPlan = (params) => postAction('/process/esInspectPlanFlow/fl
|
|||||||
// 审批
|
// 审批
|
||||||
const approvalInspectPlan = (params) => postAction('/process/esInspectPlanFlow/flowApproval', params)
|
const approvalInspectPlan = (params) => postAction('/process/esInspectPlanFlow/flowApproval', params)
|
||||||
// 转办
|
// 转办
|
||||||
const transferInspectPlan = (params) => postAction('/process/esInspectPlanFlow/flowTransfer', params)
|
const transferInspectPlan = (params) => getAction('/process/esInspectPlanFlow/flowTransfer', params)
|
||||||
// 保存
|
// 保存
|
||||||
const saveInspectPlan = (params) => postAction('/process/esInspectPlanFlow/flowSave', params)
|
const saveInspectPlan = (params) => postAction('/process/esInspectPlanFlow/flowSave', params)
|
||||||
// 稽查计划表-添加
|
// 稽查计划表-添加
|
||||||
|
|||||||
@@ -7,9 +7,7 @@
|
|||||||
<span>{{ $t('message.my.notificationTime') }}:{{ model.sendTime }}</span>
|
<span>{{ $t('message.my.notificationTime') }}:{{ model.sendTime }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="msg-content">
|
<div class="msg-content" v-html="model.msgContent"></div>
|
||||||
{{ model.msgContent }}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</internal-detail-page>
|
</internal-detail-page>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
+39
-21
@@ -226,9 +226,8 @@ export default {
|
|||||||
// 查询人员信息
|
// 查询人员信息
|
||||||
this.getPersonInfoStructure(ProcessKey.ES_Inspection_Plan.value)
|
this.getPersonInfoStructure(ProcessKey.ES_Inspection_Plan.value)
|
||||||
// 如果是待办进来,就获取详情数据
|
// 如果是待办进来,就获取详情数据
|
||||||
const { projectId, taskId } = this.$route.query
|
if (this.$route.query.projectId) {
|
||||||
if (projectId || taskId) {
|
this.loadPage()
|
||||||
this.loadPage({ projectId, taskId })
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.getProjectId()
|
this.getProjectId()
|
||||||
@@ -253,9 +252,14 @@ export default {
|
|||||||
/**
|
/**
|
||||||
* 获取页面详情
|
* 获取页面详情
|
||||||
*/
|
*/
|
||||||
loadPage (params) {
|
loadPage () {
|
||||||
this.currentNode = this.$route.query.nodeId
|
let { projectId, taskId, nodeId } = this.$route.query
|
||||||
this.projectId = this.$route.query.projectId
|
// 草稿进来没有nodeId,就默认发起节点
|
||||||
|
if (!nodeId) {
|
||||||
|
nodeId = EsInspectionPlan.initiate.value
|
||||||
|
}
|
||||||
|
this.currentNode = nodeId
|
||||||
|
this.projectId = projectId
|
||||||
this.initPersonInfoData(this.currentNode === EsInspectionPlan.initiate.value)
|
this.initPersonInfoData(this.currentNode === EsInspectionPlan.initiate.value)
|
||||||
switch (this.currentNode) {
|
switch (this.currentNode) {
|
||||||
case EsInspectionPlan.initiate.value:
|
case EsInspectionPlan.initiate.value:
|
||||||
@@ -275,14 +279,25 @@ export default {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getInspectPlanDetail(params).then(res => {
|
getInspectPlanDetail({
|
||||||
|
projectId,
|
||||||
|
taskId
|
||||||
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
const data = res.result || {}
|
const data = res.result || {}
|
||||||
this.info = data
|
this.info = data
|
||||||
this.processInfoForm.setFieldsValue({
|
this.$nextTick(() => {
|
||||||
prcName: data.processAll.prcName,
|
this.processInfoForm.setFieldsValue({
|
||||||
dueTime: data.processAll.dueTime,
|
prcName: data.processAll.prcName,
|
||||||
prcMes: data.processAll.prcMes
|
dueTime: data.processAll.dueTime,
|
||||||
|
prcMes: data.processAll.prcMes
|
||||||
|
})
|
||||||
|
})
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.approvalInfoForm.setFieldsValue({
|
||||||
|
commitText: data.processApprovalRecord.commitText,
|
||||||
|
commitFile: data.processApprovalRecord.commitFile
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
@@ -334,6 +349,9 @@ export default {
|
|||||||
if (params.map.pass) {
|
if (params.map.pass) {
|
||||||
params.map.pass = params.map.pass + '' === '1'
|
params.map.pass = params.map.pass + '' === '1'
|
||||||
}
|
}
|
||||||
|
if (params.map.involveList && typeof params.map.involveList === 'string') {
|
||||||
|
params.map.involveList = params.map.involveList.split(',')
|
||||||
|
}
|
||||||
resolve(params)
|
resolve(params)
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
reject(err)
|
reject(err)
|
||||||
@@ -354,7 +372,7 @@ export default {
|
|||||||
personnelObj.opinionFillList = this.$refs.inspectionPlanTable.dataSource.map(item => item.objectOfConsultation)
|
personnelObj.opinionFillList = this.$refs.inspectionPlanTable.dataSource.map(item => item.objectOfConsultation)
|
||||||
}
|
}
|
||||||
params.processAll = Object.assign({}, this.info.processAll, this.processInfoForm.getFieldsValue())
|
params.processAll = Object.assign({}, this.info.processAll, this.processInfoForm.getFieldsValue())
|
||||||
if (params.processAll.dueTime && params.processAll.dueTime.includes(' 00:00:00')) {
|
if (params.processAll.dueTime && !params.processAll.dueTime.includes(' 00:00:00')) {
|
||||||
params.processAll.dueTime = params.processAll.dueTime + ' 00:00:00'
|
params.processAll.dueTime = params.processAll.dueTime + ' 00:00:00'
|
||||||
}
|
}
|
||||||
params.processAll.projectId = this.projectId
|
params.processAll.projectId = this.projectId
|
||||||
@@ -365,6 +383,9 @@ export default {
|
|||||||
if (params.map.pass) {
|
if (params.map.pass) {
|
||||||
params.map.pass = params.map.pass + '' === '1'
|
params.map.pass = params.map.pass + '' === '1'
|
||||||
}
|
}
|
||||||
|
if (params.map.involveList && typeof params.map.involveList === 'string') {
|
||||||
|
params.map.involveList = params.map.involveList.split(',')
|
||||||
|
}
|
||||||
resolve(params)
|
resolve(params)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -378,17 +399,14 @@ export default {
|
|||||||
/**
|
/**
|
||||||
* 转办
|
* 转办
|
||||||
*/
|
*/
|
||||||
continueTurnTo () {
|
continueTurnTo (userId) {
|
||||||
if (this.loading) return
|
if (this.loading) return
|
||||||
this.loading = true
|
this.loading = true
|
||||||
// const params = {
|
const params = {
|
||||||
// taskId: this.$route.query.taskId,
|
taskId: this.$route.query.taskId,
|
||||||
// userId: this.$route.query.taskId,
|
userId
|
||||||
// }
|
}
|
||||||
this.getPageParams().then(res => {
|
transferInspectPlan(params).then(res => {
|
||||||
console.log(res)
|
|
||||||
return transferInspectPlan(res)
|
|
||||||
}).then(res => {
|
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
|
|||||||
+1
-1
@@ -52,7 +52,7 @@
|
|||||||
<!-- 所属部门 -->
|
<!-- 所属部门 -->
|
||||||
<a-form-item :label="$t('workCenter.esInspectionPlan.department')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item :label="$t('workCenter.esInspectionPlan.department')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<j-select-depart :placeholder="$t('pleaseSelect') + $t('workCenter.esInspectionPlan.inspectionBasisStandardNumber')"
|
<j-select-depart :placeholder="$t('pleaseSelect') + $t('workCenter.esInspectionPlan.inspectionBasisStandardNumber')"
|
||||||
multi :disabled="disabled"
|
:disabled="disabled"
|
||||||
v-decorator="['belongDept', validatorRules.department]" />
|
v-decorator="['belongDept', validatorRules.department]" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<!-- 计划稽查日期 -->
|
<!-- 计划稽查日期 -->
|
||||||
|
|||||||
+3
-3
@@ -4,7 +4,7 @@
|
|||||||
<!-- 新增 -->
|
<!-- 新增 -->
|
||||||
<a-button icon="plus" type="primary" @click="handleAdd" v-has="'enterpriseStandard:add'">{{ $t('newlyAdded') }}</a-button>
|
<a-button icon="plus" type="primary" @click="handleAdd" v-has="'enterpriseStandard:add'">{{ $t('newlyAdded') }}</a-button>
|
||||||
<!-- 导入 -->
|
<!-- 导入 -->
|
||||||
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
|
<a-upload name="file" :data="projectId" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
|
||||||
<a-button icon="upload" type="primary" ghost v-has="'enterpriseStandard:upload'">{{ $t('import') }}</a-button>
|
<a-button icon="upload" type="primary" ghost v-has="'enterpriseStandard:upload'">{{ $t('import') }}</a-button>
|
||||||
</a-upload>
|
</a-upload>
|
||||||
<!-- 批量删除 -->
|
<!-- 批量删除 -->
|
||||||
@@ -45,14 +45,14 @@
|
|||||||
<!-- 操作 -->
|
<!-- 操作 -->
|
||||||
<template slot="action" slot-scope="{text, record, index}">
|
<template slot="action" slot-scope="{text, record, index}">
|
||||||
<!-- 编辑 and 删除:节点1 或 节点3 或 节点2且当前登录人是创建人 -->
|
<!-- 编辑 and 删除:节点1 或 节点3 或 节点2且当前登录人是创建人 -->
|
||||||
<template v-if="isInitiateOrLiaisonCollect || (currentNode === EsInspectionPlan.fillInComments.value && $store.getters.userInfo.id === record.userId)">
|
<template v-if="isInitiateOrLiaisonCollect || (currentNode === EsInspectionPlan.fillInComments.value && $store.getters.userInfo.username === record.createBy)">
|
||||||
<a @click="handleEdit(record, index)" >{{ $t('edit') }}</a>
|
<a @click="handleEdit(record, index)" >{{ $t('edit') }}</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a @click="handleDelete(record, index)" >{{ $t('delete') }}</a>
|
<a @click="handleDelete(record, index)" >{{ $t('delete') }}</a>
|
||||||
</template>
|
</template>
|
||||||
<!-- 意见 or 填写意见:节点2非自己创建的就是意见和填写意见 -->
|
<!-- 意见 or 填写意见:节点2非自己创建的就是意见和填写意见 -->
|
||||||
<template v-else-if="currentNode === EsInspectionPlan.fillInComments.value">
|
<template v-else-if="currentNode === EsInspectionPlan.fillInComments.value">
|
||||||
<a v-if="record.processEsInspectPlanOpinionList.length" @click="handleShowOpinion(record, index)" >{{ $t('workCenter.esInspectionPlan.opinion') }}</a>
|
<a v-if="record.processEsInspectPlanOpinionList && record.processEsInspectPlanOpinionList.length" @click="handleShowOpinion(record, index)" >{{ $t('workCenter.esInspectionPlan.opinion') }}</a>
|
||||||
<a v-else @click="handleWriteOpinion(record, index)" >{{ $t('workCenter.esInspectionPlan.writeOpinion') }}</a>
|
<a v-else @click="handleWriteOpinion(record, index)" >{{ $t('workCenter.esInspectionPlan.writeOpinion') }}</a>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user