|
|
@@ -131,6 +131,11 @@
|
|
|
<el-table-column prop="createBy" label="结算人" width="100"></el-table-column>
|
|
|
<el-table-column prop="createTime" label="结算时间" width="200"></el-table-column>
|
|
|
<el-table-column prop="invoiceId" label="开票记录编号"></el-table-column>
|
|
|
+ <el-table-column label="操作" width="100">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button link type="primary" @click="handleDetail(scope.row)">删除</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
<div class="pagination">
|
|
|
<el-pagination v-model:current-page="pages" v-model:page-size="size" :page-sizes="[10, 20, 30, 40]"
|
|
|
@@ -292,6 +297,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
+import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
import api from '@/api'
|
|
|
|
|
|
let activeName = ref('1')
|
|
|
@@ -614,8 +620,33 @@ const exportOtherSettlementDetailJyExcel = () => {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+const handleDetail = (type) => {
|
|
|
+ ElMessageBox.confirm(
|
|
|
+ '确定删除该记录吗?',
|
|
|
+ '删除',
|
|
|
+ {
|
|
|
+ confirmButtonText: '确定删除',
|
|
|
+ type: 'error',
|
|
|
+ center: true,
|
|
|
+ confirmButtonClass: 'el-button--danger',
|
|
|
+ }
|
|
|
+ )
|
|
|
+ .then(() => {
|
|
|
+ api.settlementApi.deleteSettlement(type.settlementId).then((res: any) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ ElMessage({
|
|
|
+ message: '删除成功',
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ initData2()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ })
|
|
|
|
|
|
-const optionObj=ref({})
|
|
|
+}
|
|
|
+const optionObj = ref({})
|
|
|
const initOption = () => {
|
|
|
let list = ['invoice_risk_type', 'invoice_party', 'settlement_status']
|
|
|
list.forEach(item => {
|