待签署系统文件添加获取下一签署文档信息
parent
10ff7f31d8
commit
c0519613e2
|
@ -115,7 +115,7 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { getWaitSignSysDocList, setSystemDocFirstViewTime } from '@/api/trials'
|
import { getWaitSignSysDocList,getNextUnSignDocument, setSystemDocFirstViewTime } from '@/api/trials'
|
||||||
import Pagination from '@/components/Pagination'
|
import Pagination from '@/components/Pagination'
|
||||||
import PreviewFile from '@/components/PreviewFile/index'
|
import PreviewFile from '@/components/PreviewFile/index'
|
||||||
import SignForm from '@/views/trials/trials-panel/attachments/self-attachment/components/SignForm'
|
import SignForm from '@/views/trials/trials-panel/attachments/self-attachment/components/SignForm'
|
||||||
|
@ -231,8 +231,26 @@ export default {
|
||||||
this.signVisible = false
|
this.signVisible = false
|
||||||
if (isSave) {
|
if (isSave) {
|
||||||
this.currentIsConfirm = true
|
this.currentIsConfirm = true
|
||||||
this.getList()
|
// this.getList()
|
||||||
this.$emit('refreshStats')
|
// 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()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 初始化计时器,清除上一次的数据
|
// 初始化计时器,清除上一次的数据
|
||||||
|
|
|
@ -293,7 +293,7 @@
|
||||||
<!-- 项目签署文件 -->
|
<!-- 项目签署文件 -->
|
||||||
<NeedSignTrialDoc v-if="selected === 'NeedSignTrialDoc'" :is-sign-system-doc="isSignSystemDoc" />
|
<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" />
|
<NeedSignedTrialDoc v-if="selected === 'NeedSignedTrialDoc'" :is-sign-system-doc="isSignSystemDoc" />
|
||||||
<!-- 系统签署文件 -->
|
<!-- 系统签署文件 -->
|
||||||
|
@ -422,7 +422,7 @@ import NeedSignedTrialDoc from './components/NeedSignedTrialDoc'
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
import './index.css'
|
import './index.css'
|
||||||
|
|
||||||
import {getUserTobeDoneRecord, getNeedSignTrialDocTrialIdList, getTrialSignDocumentList} from '@/api/trials'
|
import {getUserTobeDoneRecord, getNeedSignTrialDocTrialIdList,getWaitSignSysDocList, getTrialSignDocumentList} from '@/api/trials'
|
||||||
import { getUser } from '@/api/admin'
|
import { getUser } from '@/api/admin'
|
||||||
import {mapGetters} from "vuex";
|
import {mapGetters} from "vuex";
|
||||||
|
|
||||||
|
@ -500,7 +500,7 @@ export default {
|
||||||
this.isSignSystemDoc = count > 0
|
this.isSignSystemDoc = count > 0
|
||||||
},
|
},
|
||||||
refreshStats() {
|
refreshStats() {
|
||||||
this.$refs['panelCount'].getData()
|
// this.$refs['panelCount'].getData()
|
||||||
this.getNeedSignTrialDocTrialIdList()
|
this.getNeedSignTrialDocTrialIdList()
|
||||||
},
|
},
|
||||||
getNeedSignTrialDocTrialIdList() {
|
getNeedSignTrialDocTrialIdList() {
|
||||||
|
|
Loading…
Reference in New Issue