稽查管理修改
continuous-integration/drone/push Build is passing Details

uat
wangxiaoshuang 2025-09-29 13:48:27 +08:00
parent 2683a5a7c9
commit 0c3a69d4d0
3 changed files with 44 additions and 18 deletions

View File

@ -4275,3 +4275,10 @@ export function addOrDeleteAuditRecordUser(data) {
data data
}) })
} }
// 稽查管理-删除
export function deleteAuditRecord(auditRecordId) {
return request({
url: `/AuditDocument/deleteAuditRecord/${auditRecordId}`,
method: 'delete'
})
}

View File

@ -44,7 +44,8 @@
</el-form-item> </el-form-item>
<!-- 文档查看时间 --> <!-- 文档查看时间 -->
<el-form-item :label="$t('trials:trials-workbench:inspectionManagement:from:ViewTime')" prop="ViewTime"> <el-form-item :label="$t('trials:trials-workbench:inspectionManagement:from:ViewTime')" prop="ViewTime">
<el-date-picker v-model="from.ViewTime" type="datetimerange" range-separator="-" <el-date-picker v-model="from.ViewTime" type="datetimerange"
:default-time="['00:00:00', '23:59:59']" range-separator="-"
:start-placeholder="$t('curriculumVitae:daterange:startTime')" :start-placeholder="$t('curriculumVitae:daterange:startTime')"
:end-placeholder="$t('curriculumVitae:daterange:endTime')" value-format="yyyy-MM-dd HH:mm:ss" :end-placeholder="$t('curriculumVitae:daterange:endTime')" value-format="yyyy-MM-dd HH:mm:ss"
format="yyyy-MM-dd HH:mm:ss" clearable style="width: 100%;"> format="yyyy-MM-dd HH:mm:ss" clearable style="width: 100%;">

View File

@ -14,7 +14,7 @@
</h3> </h3>
</el-col> </el-col>
</el-row> </el-row>
<el-form :inline="true" class="base-search-form"> <el-form :inline="true">
<el-form-item :label="$t('trials:trials-workbench:inspectionManagement:table:CompanyName')"> <el-form-item :label="$t('trials:trials-workbench:inspectionManagement:table:CompanyName')">
<el-input v-model="searchData.CompanyName" clearable placeholder=""></el-input> <el-input v-model="searchData.CompanyName" clearable placeholder=""></el-input>
</el-form-item> </el-form-item>
@ -40,8 +40,8 @@
<el-form-item :label="$t('trials:trials-workbench:inspectionManagement:table:viewTime')"> <el-form-item :label="$t('trials:trials-workbench:inspectionManagement:table:viewTime')">
<el-date-picker v-model="viewTime" type="datetimerange" range-separator="-" <el-date-picker v-model="viewTime" type="datetimerange" range-separator="-"
:start-placeholder="$t('curriculumVitae:daterange:startTime')" :start-placeholder="$t('curriculumVitae:daterange:startTime')"
:end-placeholder="$t('curriculumVitae:daterange:endTime')" value-format="yyyy-MM-dd HH:mm:ss" :default-time="['00:00:00', '23:59:59']" :end-placeholder="$t('curriculumVitae:daterange:endTime')"
format="yyyy-MM-dd HH:mm:ss" clearable> value-format="yyyy-MM-dd HH:mm:ss" format="yyyy-MM-dd HH:mm:ss" clearable>
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item :label="$t('trials:trials-workbench:inspectionManagement:table:createTime')"> <el-form-item :label="$t('trials:trials-workbench:inspectionManagement:table:createTime')">
@ -65,6 +65,7 @@
</el-form> </el-form>
<el-table id="auditDocumentTable" ref="auditDocumentTable" :data="tableData" style="width: 99%" row-key="Id" <el-table id="auditDocumentTable" ref="auditDocumentTable" :data="tableData" style="width: 99%" row-key="Id"
:loading="loading" v-adaptive="{ bottomOffset: 75 }" height="100" @sort-change="handleSortChange"> :loading="loading" v-adaptive="{ bottomOffset: 75 }" height="100" @sort-change="handleSortChange">
<el-table-column type="index" width="50" />
<el-table-column prop="CompanyName" show-overflow-tooltip <el-table-column prop="CompanyName" show-overflow-tooltip
:label="$t('trials:trials-workbench:inspectionManagement:table:CompanyName')" sortable="custom"> :label="$t('trials:trials-workbench:inspectionManagement:table:CompanyName')" sortable="custom">
</el-table-column> </el-table-column>
@ -111,18 +112,19 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('common:action:action')" width="260" align="left" fixed="right"> <el-table-column :label="$t('common:action:action')" width="260" align="left" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="openDoc(false, scope.row)"> <el-button circle icon="el-icon-view"
{{ $t('trials:trials-workbench:inspectionManagement:button:viewDocument') }} :title="$t('trials:trials-workbench:inspectionManagement:button:viewDocument')"
</el-button> @click="openDoc(false, scope.row)" />
<el-button type="text" @click="openDoc(true, scope.row)"> <el-button circle icon="el-icon-edit-outline"
{{ $t('trials:trials-workbench:inspectionManagement:button:editDocument') }} :title="$t('trials:trials-workbench:inspectionManagement:button:editDocument')"
</el-button> @click="openDoc(true, scope.row)" />
<el-button type="text" @click="openForm('edit', scope.row)"> <el-button circle icon="el-icon-user"
{{ $t('common:button:edit') }} :title="$t('trials:trials-workbench:inspectionManagement:button:user')"
</el-button> @click="openUserList(false, scope.row)" />
<el-button type="text" @click="openUserList(false, scope.row)"> <el-button circle icon="el-icon-edit" :title="$t('common:button:edit')"
{{ $t('trials:trials-workbench:inspectionManagement:button:user') }} @click="openForm('edit', scope.row)" />
</el-button> <el-button circle icon="el-icon-delete" :title="$t('common:button:delete')"
:disabled="scope.row.AuditState > 0" @click="del(scope.row)" />
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -138,7 +140,7 @@
</template> </template>
<script> <script>
import Pagination from '@/components/Pagination' import Pagination from '@/components/Pagination'
import { getAuditRecordList } from '@/api/trials' import { getAuditRecordList, deleteAuditRecord } from '@/api/trials'
import dataForm from "./dataForm.vue" import dataForm from "./dataForm.vue"
import document from "./document.vue" import document from "./document.vue"
import userList from './userList' import userList from './userList'
@ -198,6 +200,22 @@ export default {
this.getList() this.getList()
}, },
methods: { methods: {
async del(row) {
try {
let confirm = await this.$confirm(this.$t("trials:trials-workbench:inspectionManagement:confirm:del"))
if (!confirm) return false
this.loading = true
let res = await deleteAuditRecord(row.Id)
this.loading = false
if (res.IsSuccess) {
this.getList()
this.$message.success(this.$t("common:message:deletedSuccessfully"))
}
} catch (err) {
this.loading = false
console.log(err)
}
},
close() { close() {
this.config.visible = false this.config.visible = false
}, },