待签署系统文件添加获取下一签署文档信息

uat_us
caiyiling 2024-03-29 14:48:57 +08:00
parent 10ff7f31d8
commit c0519613e2
2 changed files with 24 additions and 6 deletions

View File

@ -115,7 +115,7 @@
</div>
</template>
<script>
import { getWaitSignSysDocList, setSystemDocFirstViewTime } from '@/api/trials'
import { getWaitSignSysDocList,getNextUnSignDocument, setSystemDocFirstViewTime } from '@/api/trials'
import Pagination from '@/components/Pagination'
import PreviewFile from '@/components/PreviewFile/index'
import SignForm from '@/views/trials/trials-panel/attachments/self-attachment/components/SignForm'
@ -231,8 +231,26 @@ export default {
this.signVisible = false
if (isSave) {
this.currentIsConfirm = true
this.getList()
this.$emit('refreshStats')
// this.getList()
// this.$emit('refreshStats')
this.$confirm(this.$t('trials:self-attachment:message:nextDocument')).then(res => {
getNextUnSignDocument({}).then(res => {
if (!res.Result) {
//
this.$confirm(this.$t('trials:self-attachment:message:closeDocument')).then(() => {
this.previewVisible = false
}).catch(()=>{})
} else {
this.handleSign(res.Result)
}
this.getList()
this.$emit('refreshStats')
})
}).catch(() => {
this.currentIsConfirm = true
this.getList()
})
}
},
// ,

View File

@ -293,7 +293,7 @@
<!-- 项目签署文件 -->
<NeedSignTrialDoc v-if="selected === 'NeedSignTrialDoc'" :is-sign-system-doc="isSignSystemDoc" />
<!-- 系统签署文件 -->
<NeedSignSysDoc v-if="selected === 'NeedSignSysDoc'" @refreshStats="refreshStats" />
<NeedSignSysDoc v-if="selected === 'NeedSignSysDoc'" @refreshStats="--tabList.SysWaitSignDocCount" />
<!-- 项目签署文件 -->
<NeedSignedTrialDoc v-if="selected === 'NeedSignedTrialDoc'" :is-sign-system-doc="isSignSystemDoc" />
<!-- 系统签署文件 -->
@ -422,7 +422,7 @@ import NeedSignedTrialDoc from './components/NeedSignedTrialDoc'
import store from '@/store'
import './index.css'
import {getUserTobeDoneRecord, getNeedSignTrialDocTrialIdList, getTrialSignDocumentList} from '@/api/trials'
import {getUserTobeDoneRecord, getNeedSignTrialDocTrialIdList,getWaitSignSysDocList, getTrialSignDocumentList} from '@/api/trials'
import { getUser } from '@/api/admin'
import {mapGetters} from "vuex";
@ -500,7 +500,7 @@ export default {
this.isSignSystemDoc = count > 0
},
refreshStats() {
this.$refs['panelCount'].getData()
// this.$refs['panelCount'].getData()
this.getNeedSignTrialDocTrialIdList()
},
getNeedSignTrialDocTrialIdList() {