2025-06-19
This commit is contained in:
@@ -13,3 +13,15 @@ export async function pageSubsidy(params) {
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 审核
|
||||
* @param params
|
||||
*/
|
||||
export async function checkSubsidy(params) {
|
||||
const res = await request.post('/receiver/subsidy/check', params);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<el-card class="analysis-chart-card" shadow="never">
|
||||
<template v-slot:header>
|
||||
<div class="ele-cell">
|
||||
<div class="ele-cell-content">当前团队成员</div>
|
||||
<div class="ele-cell-content">当前用户数</div>
|
||||
</div>
|
||||
</template>
|
||||
<div
|
||||
|
||||
@@ -0,0 +1,126 @@
|
||||
<!-- 用户编辑弹窗 -->
|
||||
<template>
|
||||
<ele-modal
|
||||
width="800px"
|
||||
:visible="visible"
|
||||
:append-to-body="true"
|
||||
:close-on-click-modal="true"
|
||||
custom-class="ele-dialog-form"
|
||||
title="详情"
|
||||
@update:visible="updateVisible"
|
||||
>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-form-item label="订单号:" prop="title">
|
||||
{{ form.sid }}
|
||||
</el-form-item>
|
||||
<el-form-item label="购车门店:" prop="title">
|
||||
{{ form.bizName }}
|
||||
</el-form-item>
|
||||
<el-form-item label="品牌车型:" prop="title">
|
||||
{{ form.brandName }}
|
||||
</el-form-item>
|
||||
<el-form-item label="提交时间:" prop="title">
|
||||
{{ form.cTime }}
|
||||
</el-form-item>
|
||||
<el-form-item label="发票:">
|
||||
<el-image
|
||||
style="width: 200px; height: 200px"
|
||||
:src="form.billImg"
|
||||
:preview-src-list="[form.billImg]"
|
||||
>
|
||||
</el-image>
|
||||
</el-form-item>
|
||||
<el-form-item label="商业保险单:">
|
||||
<el-image
|
||||
style="width: 200px; height: 200px"
|
||||
:src="form.businessImg"
|
||||
:preview-src-list="[form.businessImg]"
|
||||
>
|
||||
</el-image>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</ele-modal>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
components: {},
|
||||
props: {
|
||||
// 弹窗是否打开
|
||||
visible: Boolean,
|
||||
// 修改回显的数据
|
||||
data: Object
|
||||
},
|
||||
data() {
|
||||
const defaultForm = {
|
||||
id: null,
|
||||
sid: '',
|
||||
cityName: '',
|
||||
bizName: '',
|
||||
brandName: '',
|
||||
statusCn: '',
|
||||
billImg: '',
|
||||
businessImg: '',
|
||||
cTime: ''
|
||||
};
|
||||
return {
|
||||
editVersion: false,
|
||||
defaultForm,
|
||||
// 表单数据
|
||||
form: { ...defaultForm },
|
||||
// 表单验证规则
|
||||
rules: {},
|
||||
// 提交状态
|
||||
loading: false,
|
||||
// 是否是修改
|
||||
isUpdate: false
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
// 是否开启响应式布局
|
||||
styleResponsive() {
|
||||
return this.$store.state.theme.styleResponsive;
|
||||
}
|
||||
},
|
||||
created() {},
|
||||
methods: {
|
||||
handleCarChange(carInfo) {
|
||||
this.form.selectedCar = carInfo;
|
||||
},
|
||||
/* 更新visible */
|
||||
updateVisible(value) {
|
||||
this.$emit('update:visible', value);
|
||||
},
|
||||
/* 添加海报描述 */
|
||||
addShareTitle() {
|
||||
this.form.promotion_text.push('');
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
visible(visible) {
|
||||
this.editVersion = false;
|
||||
if (visible) {
|
||||
this.editVersion = true;
|
||||
if (this.data) {
|
||||
this.$util.assignObject(this.form, {
|
||||
...this.data
|
||||
});
|
||||
this.isUpdate = true;
|
||||
} else {
|
||||
this.form.imgs = [];
|
||||
this.isUpdate = false;
|
||||
}
|
||||
} else {
|
||||
this.$refs.form.clearValidate();
|
||||
this.form = { ...this.defaultForm };
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.ele-image-upload-list .ele-image-upload-item {
|
||||
margin-top: 2px;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
</style>
|
||||
@@ -64,15 +64,18 @@
|
||||
</template>
|
||||
</ele-pro-table>
|
||||
</el-card>
|
||||
<!-- 编辑弹窗 -->
|
||||
<edit :data="current" :visible.sync="showEdit" @done="reload" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { pageSubsidy } from '@/api/receiver/subsidy';
|
||||
import { pageSubsidy, checkSubsidy } from '@/api/receiver/subsidy';
|
||||
import edit from './components/edit.vue';
|
||||
|
||||
export default {
|
||||
name: 'receiverClues',
|
||||
components: {},
|
||||
components: { edit },
|
||||
data() {
|
||||
return {
|
||||
where: {
|
||||
@@ -214,11 +217,13 @@
|
||||
}
|
||||
},
|
||||
goDetail(row) {
|
||||
const path = '/receiver/customer/detail';
|
||||
this.$router.push({
|
||||
path,
|
||||
query: row ? { id: row.id, title: row.title } : undefined
|
||||
});
|
||||
this.current = row;
|
||||
this.showEdit = true;
|
||||
// const path = '/receiver/customer/detail';
|
||||
// this.$router.push({
|
||||
// path,
|
||||
// query: row ? { id: row.id, title: row.title } : undefined
|
||||
// });
|
||||
},
|
||||
/* 表格数据源 */
|
||||
datasource({ page, limit, where, order }) {
|
||||
@@ -245,17 +250,17 @@
|
||||
type: 'warning'
|
||||
})
|
||||
.then(() => {
|
||||
// const loading = this.$loading({ lock: true });
|
||||
// removeFiles(this.selection.map((d) => d.id))
|
||||
// .then((msg) => {
|
||||
// loading.close();
|
||||
// this.$message.success(msg);
|
||||
// this.reload();
|
||||
// })
|
||||
// .catch((e) => {
|
||||
// loading.close();
|
||||
// this.$message.error(e.message);
|
||||
// });
|
||||
const loading = this.$loading({ lock: true });
|
||||
checkSubsidy({ id: row.id, status: status })
|
||||
.then((msg) => {
|
||||
loading.close();
|
||||
this.$message.success(msg);
|
||||
this.reload();
|
||||
})
|
||||
.catch((e) => {
|
||||
loading.close();
|
||||
this.$message.error(e.message);
|
||||
});
|
||||
})
|
||||
.catch(() => {});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user