阅片期临床数据添加更新功能
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
5bf8e7ecf6
commit
212bd65bc1
|
|
@ -4457,4 +4457,13 @@ export function amendmentPatientInfo(data) {
|
|||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//修改临床数据后 将签名状态变更为未签名
|
||||
export function updateReadModuleClinicalData(data) {
|
||||
return request({
|
||||
url: `/ReadingClinicalData/updateReadModuleClinicalData`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
|
@ -143,6 +143,15 @@
|
|||
scope.row.IsSign ||
|
||||
scope.row.UploadRole === 0
|
||||
" @click="handleDelete(scope.row)" />
|
||||
<!-- 更新 临床数据已签名,阅片状态待阅片 -->
|
||||
<el-button
|
||||
v-hasPermi="['trials:trials-panel:subject:readingPeriod:edit']"
|
||||
circle
|
||||
:title="$t('trials:readingPeriod:cd:action:update')" icon="el-icon-refresh"
|
||||
:disabled="
|
||||
!scope.row.IsSign ||
|
||||
scope.row.UploadRole === 0 || data.ReadingStatus > 4"
|
||||
@click="handleUpdateStatus(scope.row)" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
|
@ -285,6 +294,15 @@
|
|||
scope.row.IsSign ||
|
||||
scope.row.UploadRole === 0
|
||||
" @click="handleDelete(scope.row)" />
|
||||
<!-- 更新 临床数据已签名,阅片状态待阅片 -->
|
||||
<el-button
|
||||
v-hasPermi="['trials:trials-panel:subject:readingPeriod:edit']"
|
||||
circle
|
||||
:title="$t('trials:readingPeriod:cd:action:update')" icon="el-icon-refresh"
|
||||
:disabled="
|
||||
!scope.row.IsSign ||
|
||||
scope.row.UploadRole === 0 || data.ReadingStatus > 4"
|
||||
@click="handleUpdateStatus(scope.row)" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
|
@ -328,6 +346,7 @@ import {
|
|||
getTrialClinicalDataSelect,
|
||||
getConsistencyAnalysisReadingClinicalDataList,
|
||||
signConsistencyAnalysisReadingClinicalData,
|
||||
updateReadModuleClinicalData
|
||||
} from '@/api/trials'
|
||||
import AddOrEditCD from './AddOrEditCD'
|
||||
import Verification from './Verification'
|
||||
|
|
@ -658,6 +677,28 @@ export default {
|
|||
})
|
||||
.catch(() => { })
|
||||
},
|
||||
async handleUpdateStatus(row) {
|
||||
try {
|
||||
const confirm = await this.$confirm(this.$t('trials:readingPeriod:cd:message:updateCDStatus'), {
|
||||
type: 'warning',
|
||||
distinguishCancelAndClose: true,
|
||||
})
|
||||
if (confirm === 'confirm') {
|
||||
this.loading = true
|
||||
let res = await updateReadModuleClinicalData({readingClinicalDataId: row.Id})
|
||||
this.loading = false
|
||||
if (res.IsSuccess) {
|
||||
this.getList()
|
||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||
}
|
||||
} else {
|
||||
this.subjectPeriod.visible = true
|
||||
}
|
||||
} catch(e) {
|
||||
this.loading = false
|
||||
console.log(e)
|
||||
}
|
||||
},
|
||||
handleSign(from) {
|
||||
// this.currentData = { ...row }
|
||||
this.currentData.IsBlind = from.IsBlind
|
||||
|
|
|
|||
Loading…
Reference in New Issue