[update] 市场清单发布流程加签

This commit is contained in:
lideqin
2024-07-15 11:30:00 +08:00
parent f72f64b36b
commit 04069e7014
@@ -136,6 +136,8 @@
<a-button type="primary" :loading="loading" @click="handleStart" icon="upload">{{ $t('submit') }}</a-button>
</template>
<template v-else>
<!-- 加签 -->
<a-button type="primary" ghost :loading="loading" @click="handleAddSign" icon="plus">{{ $t('countersign') }}</a-button>
<!-- 转办 -->
<a-button type="primary" ghost :loading="loading" @click="handleTurnTo" icon="arrow-up">{{ $t('turnTo') }}</a-button>
<!-- 保存 -->
@@ -149,6 +151,8 @@
<!-- 选人弹框 -->
<user-select-modal ref="userSelectModal" type="radio" @change="userSelectModalChange"></user-select-modal>
<!-- 加签选人 -->
<user-select-modal ref="addSignUserSelect" type="radio" @change="addSignUserSelectChange"></user-select-modal>
</internal-detail-page>
</template>
@@ -167,7 +171,8 @@ import {
marketListReleaseSave,
getDataDraft,
processTransfer,
getLookData
getLookData,
processAddSign
} from '@/api/workCenter'
import pick from 'lodash.pick'
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
@@ -531,6 +536,28 @@ export default {
})
})
},
// 加签
handleAddSign () {
if (this.loading) return
// 点击显示选人组件
this.$refs.addSignUserSelect.open()
},
// 加签选完人的回调
addSignUserSelectChange (userIds) {
this.loading = true
const param = {}
param.userId = userIds
param.taskId = this.$route.query.taskId
processAddSign(param).then(res => {
if (res.success) {
this.$message.success(res.message)
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.loading = false
})
},
// 转办
handleTurnTo () {
if (this.loading) return