|
@@ -38,12 +38,15 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="remark" label="备注" show-overflow-tooltip min-width="200px">
|
|
<el-table-column prop="remark" label="备注" show-overflow-tooltip min-width="200px">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <!-- <el-table-column label="操作" width="200">
|
|
|
|
|
|
+ <el-table-column label="操作" width="200">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <el-button link type="primary" size="small" @click="open(scope.row)"
|
|
|
|
|
|
+ <el-button link type="primary" v-if="scope.row.status == 1" size="small" @click="open(scope.row)"
|
|
v-action="'jiesuan.BankAccount.addCompanyCard'">编辑</el-button>
|
|
v-action="'jiesuan.BankAccount.addCompanyCard'">编辑</el-button>
|
|
|
|
+ <el-button link type="primary" size="small" @click="deletePromotion(scope.row)"
|
|
|
|
+ v-action="'jiesuan.BankAccount.addCompanyCard'" v-if="scope.row.status != 2">删除</el-button>
|
|
|
|
+ <br />
|
|
</template>
|
|
</template>
|
|
- </el-table-column> -->
|
|
|
|
|
|
+ </el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
<Paginate />
|
|
<Paginate />
|
|
</div>
|
|
</div>
|
|
@@ -60,7 +63,7 @@ import { useRouter, useRoute } from 'vue-router'
|
|
import { InfoFilled } from '@element-plus/icons-vue';
|
|
import { InfoFilled } from '@element-plus/icons-vue';
|
|
import { useGetList } from '@/hook/curd/useGetList';
|
|
import { useGetList } from '@/hook/curd/useGetList';
|
|
import { useOpen } from '@/hook/curd/useOpen';
|
|
import { useOpen } from '@/hook/curd/useOpen';
|
|
-import { jiesuanManageJiesuanAccountInfo, jiesuanManageBankAccountListShangwu } from '@/api/settlement/index'
|
|
|
|
|
|
+import { jiesuanManageBankAccountListShangwu, jiesuanManageBankAccountDelCompanyCard } from '@/api/settlement/index'
|
|
import moment from 'moment';
|
|
import moment from 'moment';
|
|
const start_date = moment().startOf('month').format('YYYY-MM-DD')
|
|
const start_date = moment().startOf('month').format('YYYY-MM-DD')
|
|
const end_date = moment().endOf('month').format('YYYY-MM-DD')
|
|
const end_date = moment().endOf('month').format('YYYY-MM-DD')
|
|
@@ -89,6 +92,28 @@ const colorType = (data: object) => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+const deletePromotion = (row: object) => {
|
|
|
|
+ ElMessageBox.confirm(
|
|
|
|
+ `确定要删除此列表吗?`,
|
|
|
|
+ '提示',
|
|
|
|
+ {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ }
|
|
|
|
+ )
|
|
|
|
+ .then(() => {
|
|
|
|
+ jiesuanManageBankAccountDelCompanyCard({ id: row.id }).then(res => {
|
|
|
|
+ ElMessage.success(res.message)
|
|
|
|
+ search()
|
|
|
|
+ console.log(res);
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
const closeUserDetail = () => { }
|
|
const closeUserDetail = () => { }
|
|
|
|
|
|
const orderTimeChange = (e: object) => {
|
|
const orderTimeChange = (e: object) => {
|
|
@@ -122,7 +147,6 @@ const tableData = computed(() => data.value?.data);
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
jiesuanManageBankAccountListShangwu().then(res => {
|
|
jiesuanManageBankAccountListShangwu().then(res => {
|
|
businessList.value = res.data;
|
|
businessList.value = res.data;
|
|
- console.log(res, 'jiesuanManageJiesuanAccountInfo');
|
|
|
|
})
|
|
})
|
|
console.log(rolesIdentify, 'rolesIdentifyrolesIdentify');
|
|
console.log(rolesIdentify, 'rolesIdentifyrolesIdentify');
|
|
search();
|
|
search();
|