Commit 9c40f3a0 authored by 黄奎's avatar 黄奎

页面修改

parent 1462068e
<template> <template>
<div class="withdraw"> <div class="withdraw">
<q-table <q-table :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table " separator="none"
:loading="loading" :data="dataList" :columns="columns" row-key="name">
no-data-label="暂无相关数据"
flat
class="sticky-column-table "
separator="none"
:data="dataList"
:columns="columns"
row-key="name"
>
<template v-slot:body-cell-CustomerName="props"> <template v-slot:body-cell-CustomerName="props">
<q-td :props="props"> <q-td :props="props">
<q-avatar rounded size="sm" v-if="props.row.CustomerImage"> <q-avatar rounded size="sm" v-if="props.row.CustomerImage">
<img :src="props.row.CustomerImage" /> <img :src="props.row.CustomerImage" />
</q-avatar> </q-avatar>
<q-avatar <q-avatar rounded size="sm" color="teal-10" text-color="white" v-if="!props.row.CustomerImage">
rounded {{ props.row.CustomerName.substring(0, 1) }}</q-avatar>
size="sm"
color="teal-10"
text-color="white"
v-if="!props.row.CustomerImage"
>{{ props.row.CustomerName.substring(0, 1) }}</q-avatar
>
{{ props.row.CustomerName }} {{ props.row.CustomerName }}
</q-td> </q-td>
</template> </template>
...@@ -75,28 +61,14 @@ ...@@ -75,28 +61,14 @@
</template> </template>
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td :props="props" style="width:100px;"> <q-td :props="props" style="width:100px;">
<q-btn <q-btn v-if="props.row.AuditStatus == 1" flat size="xs" icon="edit" color="done" style="font-weight:400"
v-if="props.row.AuditStatus == 1" label="审核" @click="operation(props.row)" />
flat
size="xs"
icon="edit"
color="done"
style="font-weight:400"
label="审核"
@click="operation(props.row)"
/>
</q-td> </q-td>
</template> </template>
<template v-slot:bottom> <template v-slot:bottom>
<q-pagination <q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount"
class="full-width justify-end" :input="true" @input="changePage" />
v-model="msg.pageIndex"
color="primary"
:max="pageCount"
:input="true"
@input="changePage"
/>
</template> </template>
</q-table> </q-table>
<q-dialog v-model="isShow" persistent> <q-dialog v-model="isShow" persistent>
...@@ -108,8 +80,7 @@ ...@@ -108,8 +80,7 @@
<q-card-section class="q-pt-none" style="margin-top: 15px;padding:10px 20px;"> <q-card-section class="q-pt-none" style="margin-top: 15px;padding:10px 20px;">
<q-radio v-model="remitMsg.State" val="1" label="审核通过" /> <q-radio v-model="remitMsg.State" val="1" label="审核通过" />
<q-radio v-model="remitMsg.State" val="2" label="审核驳回" /> <q-radio v-model="remitMsg.State" val="2" label="审核驳回" />
<q-input filled clearable v-model="remitMsg.Remark" label="备注" <q-input filled clearable v-model="remitMsg.Remark" label="备注" style="margin-top: 20px;" type="textarea" />
style="margin-top: 20px;" type="textarea"/>
</q-card-section> </q-card-section>
<q-separator /> <q-separator />
<q-card-actions align="right" class="bg-white"> <q-card-actions align="right" class="bg-white">
...@@ -121,43 +92,52 @@ ...@@ -121,43 +92,52 @@
</div> </div>
</template> </template>
<script> <script>
import { import {
getCustomerRemitPageList, getCustomerRemitPageList,
setCustomerRemitState setCustomerRemitState
} from '../../../api/sale/peemanagement'; } from '../../../api/sale/peemanagement';
export default { export default {
meta: { meta: {
title: "同行审批" title: "同行审批"
}, },
components: { components: {
}, },
props:{ props: {
Type:{ Type: {
type:Number, type: Number,
default:1 default: 1
}, },
Id:{ Id: {
type:Number, type: Number,
default:0 default: 0
} }
}, },
data() { data() {
return { return {
pageCount: 0, pageCount: 0,
isShow:false, isShow: false,
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 12, pageSize: 12,
rowsPerPage: 12, rowsPerPage: 12,
Type: '0', // 类型 1返佣 2幸福存折 Type: '0', // 类型 1返佣 2幸福存折
AuditStatus: '0', //状态 1申请中 2待打款 3已打款 4拒绝 AuditStatus: '0', //状态 1申请中 2待打款 3已打款 4拒绝
CustomerId:0 CustomerId: 0,
CategoryId: 0,
}, },
loading: false, loading: false,
TypeList: [{ label: "全部", value: "0", }, { label: "返佣", value: "1", }, { label: "幸福存折", value: "2", }], TypeList: [{
label: "全部",
value: "0",
}, {
label: "返佣",
value: "1",
}, {
label: "幸福存折",
value: "2",
}],
//审核状态列表 //审核状态列表
ApproveStateList: [{ ApproveStateList: [{
label: "不限", label: "不限",
...@@ -177,8 +157,7 @@ export default { ...@@ -177,8 +157,7 @@ export default {
value: "4", value: "4",
}, },
], ],
columns: [ columns: [{
{
name: 'CustomerName', name: 'CustomerName',
label: '客户信息', label: '客户信息',
field: 'CustomerName', field: 'CustomerName',
...@@ -239,26 +218,20 @@ export default { ...@@ -239,26 +218,20 @@ export default {
field: 'CreateDate', field: 'CreateDate',
align: 'left' align: 'left'
}, },
// {
// name: 'optioned',
// label: '操作',
// field: 'QuestionId'
// }
], ],
dataList: [], dataList: [],
//判断显示 //判断显示
authObj: { authObj: {
isShowAudit: true, isShowAudit: true,
}, },
remitMsg:{ remitMsg: {
RemitId:0, RemitId: 0,
State:1, State: 1,
Remark:'', Remark: '',
} }
} }
}, },
created() { }, created() {},
mounted() { mounted() {
this.getList(); this.getList();
}, },
...@@ -275,8 +248,8 @@ export default { ...@@ -275,8 +248,8 @@ export default {
}, },
//获取分页数据 //获取分页数据
getList() { getList() {
this.msg.Type=this.Type this.msg.Type = this.Type
this.msg.CustomerId=this.Id this.msg.CategoryId = this.Id
getCustomerRemitPageList(this.msg).then(res => { getCustomerRemitPageList(this.msg).then(res => {
this.dataList = res.Data.PageData; this.dataList = res.Data.PageData;
this.loading = false; this.loading = false;
...@@ -285,13 +258,13 @@ export default { ...@@ -285,13 +258,13 @@ export default {
this.loading = false this.loading = false
}) })
}, },
operation(row,type){ operation(row, type) {
this.remitMsg.RemitId = row.Id; this.remitMsg.RemitId = row.Id;
this.remitMsg.State = '1'; this.remitMsg.State = '1';
this.remitMsg.Remark = ''; this.remitMsg.Remark = '';
this.isShow = true this.isShow = true
}, },
submit(){ submit() {
setCustomerRemitState(this.remitMsg).then(res => { setCustomerRemitState(this.remitMsg).then(res => {
this.$q.notify({ this.$q.notify({
icon: 'iconfont icon-chenggong', icon: 'iconfont icon-chenggong',
...@@ -307,25 +280,29 @@ export default { ...@@ -307,25 +280,29 @@ export default {
}) })
} }
} }
} }
</script> </script>
<style> <style>
.withdraw ::-webkit-scrollbar { .withdraw ::-webkit-scrollbar {
width: 5px; width: 5px;
height: 5px; height: 5px;
} }
.withdraw ::-webkit-scrollbar-track {
.withdraw ::-webkit-scrollbar-track {
background: #fff; background: #fff;
border-radius: 2px; border-radius: 2px;
} }
.withdraw ::-webkit-scrollbar-thumb {
.withdraw ::-webkit-scrollbar-thumb {
background: #444; background: #444;
border-radius: 10px; border-radius: 10px;
} }
.withdraw ::-webkit-scrollbar-thumb:hover {
.withdraw ::-webkit-scrollbar-thumb:hover {
background: #999; background: #999;
} }
.withdraw ::-webkit-scrollbar-corner {
.withdraw ::-webkit-scrollbar-corner {
background: #204754; background: #204754;
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment