稽查管理修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
2683a5a7c9
commit
0c3a69d4d0
|
@ -4275,3 +4275,10 @@ export function addOrDeleteAuditRecordUser(data) {
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 稽查管理-删除
|
||||||
|
export function deleteAuditRecord(auditRecordId) {
|
||||||
|
return request({
|
||||||
|
url: `/AuditDocument/deleteAuditRecord/${auditRecordId}`,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
|
@ -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%;">
|
||||||
|
@ -55,7 +56,7 @@
|
||||||
prop="AuditState" v-if="state === 'edit'">
|
prop="AuditState" v-if="state === 'edit'">
|
||||||
<el-radio-group v-model="from.AuditState">
|
<el-radio-group v-model="from.AuditState">
|
||||||
<el-radio v-for="item in $d.AuditState" :key="item.id" :label="item.value">{{ item.label
|
<el-radio v-for="item in $d.AuditState" :key="item.id" :label="item.value">{{ item.label
|
||||||
}}</el-radio>
|
}}</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -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
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue