Merge branch 'main' of https://gitea.lihaink.cn/weipengfei/ERP-admin
This commit is contained in:
commit
beafe9528b
|
@ -62,4 +62,13 @@ watch(
|
||||||
.el-select.w-\[280px\] {
|
.el-select.w-\[280px\] {
|
||||||
width: 280px;
|
width: 280px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.el-table th.el-table__cell>.cell {
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-table td.el-table__cell div {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -4,15 +4,8 @@
|
||||||
<!-- 触发弹窗 -->
|
<!-- 触发弹窗 -->
|
||||||
<slot name="trigger"></slot>
|
<slot name="trigger"></slot>
|
||||||
</div>
|
</div>
|
||||||
<el-dialog
|
<el-dialog v-model="visible" :custom-class="customClass" :center="center" :append-to-body="true" :width="width"
|
||||||
v-model="visible"
|
:close-on-click-modal="clickModalClose" @closed="close">
|
||||||
:custom-class="customClass"
|
|
||||||
:center="center"
|
|
||||||
:append-to-body="true"
|
|
||||||
:width="width"
|
|
||||||
:close-on-click-modal="clickModalClose"
|
|
||||||
@closed="close"
|
|
||||||
>
|
|
||||||
<!-- 弹窗内容 -->
|
<!-- 弹窗内容 -->
|
||||||
<template v-if="title" #header>{{ title }}</template>
|
<template v-if="title" #header>{{ title }}</template>
|
||||||
|
|
||||||
|
@ -24,11 +17,7 @@
|
||||||
<el-button v-if="cancelButtonText" @click="handleEvent('cancel')">
|
<el-button v-if="cancelButtonText" @click="handleEvent('cancel')">
|
||||||
{{ cancelButtonText }}
|
{{ cancelButtonText }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button v-if="confirmButtonText" type="primary" @click="handleEvent('confirm')">
|
||||||
v-if="confirmButtonText"
|
|
||||||
type="primary"
|
|
||||||
@click="handleEvent('confirm')"
|
|
||||||
>
|
|
||||||
{{ confirmButtonText }}
|
{{ confirmButtonText }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -78,7 +67,7 @@ export default defineComponent({
|
||||||
clickModalClose: {
|
clickModalClose: {
|
||||||
// 点击遮罩层关闭对话窗口
|
// 点击遮罩层关闭对话窗口
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: true
|
||||||
},
|
},
|
||||||
center: {
|
center: {
|
||||||
// 是否居中布局
|
// 是否居中布局
|
||||||
|
|
|
@ -1,124 +1,152 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="edit-popup">
|
<div class="edit-popup">
|
||||||
<popup
|
<popup ref="popupRef" :title="popupTitle" :async="true" width="60vw" @confirm="handleSubmit" @close="handleClose">
|
||||||
ref="popupRef"
|
<el-form ref="formRef" :model="formData" label-width="160px" :rules="formRules">
|
||||||
:title="popupTitle"
|
<el-row>
|
||||||
:async="true"
|
<el-col :span="24">
|
||||||
width="550px"
|
<el-form-item label="商户头像" prop="mer_avatar">
|
||||||
@confirm="handleSubmit"
|
<material-picker v-model="formData.mer_avatar" />
|
||||||
@close="handleClose"
|
|
||||||
>
|
|
||||||
<el-form ref="formRef" :model="formData" label-width="90px" :rules="formRules">
|
|
||||||
<el-form-item label="商户分类" prop="category_id">
|
|
||||||
<el-select class="flex-1" v-model="formData.category_id" clearable placeholder="请选择商户分类">
|
|
||||||
<el-option
|
|
||||||
v-for="(item, index) in dictData.mer_category_type"
|
|
||||||
:key="index"
|
|
||||||
:label="item.name"
|
|
||||||
:value="parseInt(item.value)"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="店铺类型" prop="type_id">
|
|
||||||
<el-select class="flex-1" v-model="formData.type_id" clearable placeholder="请选择店铺类型">
|
|
||||||
<el-option
|
|
||||||
v-for="(item, index) in dictData.merchat_type"
|
|
||||||
:key="index"
|
|
||||||
:label="item.name"
|
|
||||||
:value="parseInt(item.value)"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="商户名称" prop="mer_name">
|
<el-form-item label="商户名称" prop="mer_name">
|
||||||
<el-input v-model="formData.mer_name" clearable placeholder="请输入商户名称" />
|
<el-input v-model="formData.mer_name" clearable placeholder="请输入商户名称" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item label="商户分类" prop="category_id">
|
||||||
|
<el-select class="flex-1" v-model="formData.category_id" clearable placeholder="请选择商户分类">
|
||||||
|
<el-option v-for="(item, index) in dictData.mer_category_type" :key="index"
|
||||||
|
:label="item.name" :value="parseInt(item.value)" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item label="店铺类型" prop="type_id">
|
||||||
|
<el-select class="flex-1" v-model="formData.type_id" clearable placeholder="请选择店铺类型">
|
||||||
|
<el-option v-for="(item, index) in dictData.merchat_type" :key="index" :label="item.name"
|
||||||
|
:value="parseInt(item.value)" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="是否支持先货后款" prop="credit_buy">
|
<el-form-item label="是否支持先货后款" prop="credit_buy">
|
||||||
<el-radio-group v-model="formData.credit_buy" placeholder="请选择是否支持先货后款">
|
<el-radio-group v-model="formData.credit_buy" placeholder="请选择是否支持先货后款">
|
||||||
<el-radio
|
<el-radio v-for="(item, index) in dictData.show_status" :key="index"
|
||||||
v-for="(item, index) in dictData.show_status"
|
:label="parseInt(item.value)">
|
||||||
:key="index"
|
|
||||||
:label="parseInt(item.value)"
|
|
||||||
>
|
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="结算周期,单位天" prop="settle_cycle">
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item label="结算周期(天)" prop="settle_cycle">
|
||||||
<el-input v-model="formData.settle_cycle" clearable placeholder="请输入结算周期,单位天" />
|
<el-input v-model="formData.settle_cycle" clearable placeholder="请输入结算周期,单位天" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="利率" prop="interest_rate">
|
<el-form-item label="利率" prop="interest_rate">
|
||||||
<el-input v-model="formData.interest_rate" clearable placeholder="请输入利率" />
|
<el-input v-model="formData.interest_rate" clearable placeholder="请输入利率" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="城市code" prop="city_id">
|
</el-col>
|
||||||
<el-input v-model="formData.city_id" clearable placeholder="请输入城市code" />
|
<el-col :span="8">
|
||||||
|
<el-form-item label="城市" prop="city_id">
|
||||||
|
<el-input v-model="formData.city_id" clearable placeholder="请输入城市" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="区县code" prop="area_id">
|
</el-col>
|
||||||
<el-input v-model="formData.area_id" clearable placeholder="请输入区县code" />
|
<el-col :span="8">
|
||||||
|
<el-form-item label="区县" prop="area_id">
|
||||||
|
<el-input v-model="formData.area_id" clearable placeholder="请输入区县" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="镇街表code" prop="street_id">
|
</el-col>
|
||||||
<el-input v-model="formData.street_id" clearable placeholder="请输入镇街表code" />
|
<el-col :span="8">
|
||||||
|
<el-form-item label="镇街" prop="street_id">
|
||||||
|
<el-input v-model="formData.street_id" clearable placeholder="请输入镇街" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="村主键code" prop="village_id">
|
</el-col>
|
||||||
<el-input v-model="formData.village_id" clearable placeholder="请输入村主键code" />
|
<el-col :span="8">
|
||||||
|
<el-form-item label="村" prop="village_id">
|
||||||
|
<el-input v-model="formData.village_id" clearable placeholder="请输入村" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="商户地址" prop="mer_address">
|
<el-form-item label="商户地址" prop="mer_address">
|
||||||
<el-input v-model="formData.mer_address" clearable placeholder="请输入商户地址" />
|
<el-input v-model="formData.mer_address" clearable placeholder="请输入商户地址" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="商户头像" prop="mer_avatar">
|
</el-col>
|
||||||
<el-input v-model="formData.mer_avatar" clearable placeholder="请输入商户头像" />
|
|
||||||
</el-form-item>
|
<!-- <el-col :span="8">
|
||||||
<el-form-item label="商户备注" prop="mark">
|
|
||||||
<el-input v-model="formData.mark" clearable placeholder="请输入商户备注" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="" prop="sort">
|
<el-form-item label="" prop="sort">
|
||||||
<el-input v-model="formData.sort" clearable placeholder="请输入" />
|
<el-input v-model="formData.sort" clearable placeholder="请输入" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="商户是否禁用0锁定,1正常" prop="status">
|
</el-col> -->
|
||||||
<el-radio-group v-model="formData.status" placeholder="请选择商户是否禁用0锁定,1正常">
|
<el-col :span="8">
|
||||||
<el-radio
|
<el-form-item label="商户是否禁用" prop="status">
|
||||||
v-for="(item, index) in dictData.off_status"
|
<el-radio-group v-model="formData.status" placeholder="请选择商户是否禁用">
|
||||||
:key="index"
|
<el-radio v-for="(item, index) in dictData.off_status" :key="index"
|
||||||
:label="parseInt(item.value)"
|
:label="parseInt(item.value)">
|
||||||
>
|
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="提成比例" prop="commission_rate">
|
<el-form-item label="提成比例" prop="commission_rate">
|
||||||
<el-input v-model="formData.commission_rate" clearable placeholder="请输入提成比例" />
|
<el-input v-model="formData.commission_rate" clearable placeholder="请输入提成比例" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="商户手续费单独设置" prop="commission_switch">
|
<el-form-item label="商户手续费单独设置" prop="commission_switch">
|
||||||
<el-radio-group v-model="formData.commission_switch" placeholder="请选择商户手续费单独设置">
|
<el-radio-group v-model="formData.commission_switch" placeholder="请选择商户手续费单独设置">
|
||||||
<el-radio
|
<el-radio v-for="(item, index) in dictData.off_status" :key="index"
|
||||||
v-for="(item, index) in dictData.off_status"
|
:label="parseInt(item.value)">
|
||||||
:key="index"
|
|
||||||
:label="parseInt(item.value)"
|
|
||||||
>
|
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="经度" prop="long">
|
<el-form-item label="经度" prop="long">
|
||||||
<el-input v-model="formData.long" clearable placeholder="请输入经度" />
|
<el-input v-model="formData.long" clearable placeholder="请输入经度" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="纬度" prop="lat">
|
<el-form-item label="纬度" prop="lat">
|
||||||
<el-input v-model="formData.lat" clearable placeholder="请输入纬度" />
|
<el-input v-model="formData.lat" clearable placeholder="请输入纬度" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="店铺电话" prop="service_phone">
|
<el-form-item label="店铺电话" prop="service_phone">
|
||||||
<el-input v-model="formData.service_phone" clearable placeholder="请输入店铺电话" />
|
<el-input v-model="formData.service_phone" clearable placeholder="请输入店铺电话" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="商户余额" prop="mer_money">
|
<el-form-item label="商户余额" prop="mer_money">
|
||||||
<el-input v-model="formData.mer_money" clearable placeholder="请输入商户余额" />
|
<el-input v-model="formData.mer_money" clearable placeholder="请输入商户余额" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item label="商户备注" prop="mark">
|
||||||
|
<el-input v-model="formData.mark" type="textarea" clearable placeholder="请输入商户备注" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="银行卡转账信息" prop="financial_bank">
|
<el-form-item label="银行卡转账信息" prop="financial_bank">
|
||||||
<el-input v-model="formData.financial_bank" clearable placeholder="请输入银行卡转账信息" />
|
<el-input v-model="formData.financial_bank" clearable placeholder="请输入银行卡转账信息" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="微信转账信息" prop="financial_wechat">
|
<el-form-item label="微信转账信息" prop="financial_wechat">
|
||||||
<el-input v-model="formData.financial_wechat" clearable placeholder="请输入微信转账信息" />
|
<el-input v-model="formData.financial_wechat" clearable placeholder="请输入微信转账信息" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="支付宝转账信息" prop="financial_alipay">
|
<el-form-item label="支付宝转账信息" prop="financial_alipay">
|
||||||
<el-input v-model="formData.financial_alipay" clearable placeholder="请输入支付宝转账信息" />
|
<el-input v-model="formData.financial_alipay" clearable placeholder="请输入支付宝转账信息" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
</popup>
|
</popup>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,84 +1,95 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-card class="!border-none mb-4" shadow="never">
|
<el-card class="!border-none mb-4" shadow="never">
|
||||||
<el-form
|
<el-form class="mb-[-16px]" :model="queryParams" label-width="160px">
|
||||||
class="mb-[-16px]"
|
<el-row>
|
||||||
:model="queryParams"
|
<el-col :span="6">
|
||||||
inline
|
|
||||||
>
|
|
||||||
<el-form-item label="商户分类" prop="category_id">
|
<el-form-item label="商户分类" prop="category_id">
|
||||||
<el-select class="w-[280px]"
|
<el-select class="w-[280px]" v-model="queryParams.category_id" clearable placeholder="请选择商户分类">
|
||||||
v-model="queryParams.category_id" clearable placeholder="请选择商户分类">
|
|
||||||
<el-option label="全部" value=""></el-option>
|
<el-option label="全部" value=""></el-option>
|
||||||
<el-option
|
<el-option v-for="(item, index) in dictData.mer_category_type" :key="index"
|
||||||
v-for="(item, index) in dictData.mer_category_type"
|
:label="item.name" :value="item.value" />
|
||||||
:key="index"
|
|
||||||
:label="item.name"
|
|
||||||
:value="item.value"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="6">
|
||||||
<el-form-item label="店铺类型" prop="type_id">
|
<el-form-item label="店铺类型" prop="type_id">
|
||||||
<el-select class="w-[280px]"
|
<el-select class="w-[280px]" v-model="queryParams.type_id" clearable placeholder="请选择店铺类型">
|
||||||
v-model="queryParams.type_id" clearable placeholder="请选择店铺类型">
|
|
||||||
<el-option label="全部" value=""></el-option>
|
<el-option label="全部" value=""></el-option>
|
||||||
<el-option
|
<el-option v-for="(item, index) in dictData.merchat_type" :key="index" :label="item.name"
|
||||||
v-for="(item, index) in dictData.merchat_type"
|
:value="item.value" />
|
||||||
:key="index"
|
|
||||||
:label="item.name"
|
|
||||||
:value="item.value"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="6">
|
||||||
<el-form-item label="商户名称" prop="mer_name">
|
<el-form-item label="商户名称" prop="mer_name">
|
||||||
<el-input class="w-[280px]" v-model="queryParams.mer_name" clearable placeholder="请输入商户名称" />
|
<el-input class="w-[280px]" v-model="queryParams.mer_name" clearable placeholder="请输入商户名称" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="6">
|
||||||
<el-form-item label="是否支持先货后款" prop="credit_buy">
|
<el-form-item label="是否支持先货后款" prop="credit_buy">
|
||||||
<el-select class="w-[280px]"
|
<el-select class="w-[280px]" v-model="queryParams.credit_buy" clearable
|
||||||
v-model="queryParams.credit_buy" clearable placeholder="请选择是否支持先货后款">
|
placeholder="请选择是否支持先货后款">
|
||||||
<el-option label="全部" value=""></el-option>
|
<el-option label="全部" value=""></el-option>
|
||||||
<el-option
|
<el-option v-for="(item, index) in dictData.show_status" :key="index" :label="item.name"
|
||||||
v-for="(item, index) in dictData.show_status"
|
:value="item.value" />
|
||||||
:key="index"
|
|
||||||
:label="item.name"
|
|
||||||
:value="item.value"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="商户是否禁用0锁定,1正常" prop="status">
|
</el-col>
|
||||||
<el-select class="w-[280px]"
|
<el-col :span="6">
|
||||||
v-model="queryParams.status" clearable placeholder="请选择商户是否禁用0锁定,1正常">
|
<el-form-item label="商户是否禁用" prop="status">
|
||||||
|
<el-select class="w-[280px]" v-model="queryParams.status" clearable placeholder="请选择商户是否禁用">
|
||||||
<el-option label="全部" value=""></el-option>
|
<el-option label="全部" value=""></el-option>
|
||||||
<el-option
|
<el-option v-for="(item, index) in dictData.off_status" :key="index" :label="item.name"
|
||||||
v-for="(item, index) in dictData.off_status"
|
:value="item.value" />
|
||||||
:key="index"
|
|
||||||
:label="item.name"
|
|
||||||
:value="item.value"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="6">
|
||||||
<el-form-item label="提成比例" prop="commission_rate">
|
<el-form-item label="提成比例" prop="commission_rate">
|
||||||
<el-input class="w-[280px]" v-model="queryParams.commission_rate" clearable placeholder="请输入提成比例" />
|
<el-input class="w-[280px]" v-model="queryParams.commission_rate" clearable
|
||||||
|
placeholder="请输入提成比例" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="6">
|
||||||
<el-form-item label="店铺电话" prop="service_phone">
|
<el-form-item label="店铺电话" prop="service_phone">
|
||||||
<el-input class="w-[280px]" v-model="queryParams.service_phone" clearable placeholder="请输入店铺电话" />
|
<el-input class="w-[280px]" v-model="queryParams.service_phone" clearable
|
||||||
|
placeholder="请输入店铺电话" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="6">
|
||||||
<el-form-item label="商户余额" prop="mer_money">
|
<el-form-item label="商户余额" prop="mer_money">
|
||||||
<el-input class="w-[280px]" v-model="queryParams.mer_money" clearable placeholder="请输入商户余额" />
|
<el-input class="w-[280px]" v-model="queryParams.mer_money" clearable placeholder="请输入商户余额" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="6">
|
||||||
<el-form-item label="银行卡转账信息" prop="financial_bank">
|
<el-form-item label="银行卡转账信息" prop="financial_bank">
|
||||||
<el-input class="w-[280px]" v-model="queryParams.financial_bank" clearable placeholder="请输入银行卡转账信息" />
|
<el-input class="w-[280px]" v-model="queryParams.financial_bank" clearable
|
||||||
|
placeholder="请输入银行卡转账信息" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="6">
|
||||||
<el-form-item label="微信转账信息" prop="financial_wechat">
|
<el-form-item label="微信转账信息" prop="financial_wechat">
|
||||||
<el-input class="w-[280px]" v-model="queryParams.financial_wechat" clearable placeholder="请输入微信转账信息" />
|
<el-input class="w-[280px]" v-model="queryParams.financial_wechat" clearable
|
||||||
|
placeholder="请输入微信转账信息" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="6">
|
||||||
<el-form-item label="支付宝转账信息" prop="financial_alipay">
|
<el-form-item label="支付宝转账信息" prop="financial_alipay">
|
||||||
<el-input class="w-[280px]" v-model="queryParams.financial_alipay" clearable placeholder="请输入支付宝转账信息" />
|
<el-input class="w-[280px]" v-model="queryParams.financial_alipay" clearable
|
||||||
|
placeholder="请输入支付宝转账信息" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="6">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" @click="resetPage">查询</el-button>
|
<el-button type="primary" @click="resetPage">查询</el-button>
|
||||||
<el-button @click="resetParams">重置</el-button>
|
<el-button @click="resetParams">重置</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card class="!border-none" v-loading="pager.loading" shadow="never">
|
<el-card class="!border-none" v-loading="pager.loading" shadow="never">
|
||||||
|
@ -88,11 +99,8 @@
|
||||||
</template>
|
</template>
|
||||||
新增
|
新增
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button v-perms="['merchat.merchant/delete']" :disabled="!selectData.length"
|
||||||
v-perms="['merchat.merchant/delete']"
|
@click="handleDelete(selectData)">
|
||||||
:disabled="!selectData.length"
|
|
||||||
@click="handleDelete(selectData)"
|
|
||||||
>
|
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
|
@ -115,12 +123,12 @@
|
||||||
<dict-value :options="dictData.show_status" :value="row.credit_buy" />
|
<dict-value :options="dictData.show_status" :value="row.credit_buy" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="结算周期,单位天" prop="settle_cycle" show-overflow-tooltip />
|
<el-table-column label="结算周期(天)" prop="settle_cycle" show-overflow-tooltip />
|
||||||
<el-table-column label="利率" prop="interest_rate" show-overflow-tooltip />
|
<el-table-column label="利率" prop="interest_rate" show-overflow-tooltip />
|
||||||
<el-table-column label="城市code" prop="city_id" show-overflow-tooltip />
|
<el-table-column label="城市" prop="city_id" show-overflow-tooltip />
|
||||||
<el-table-column label="区县code" prop="area_id" show-overflow-tooltip />
|
<el-table-column label="区县" prop="area_id" show-overflow-tooltip />
|
||||||
<el-table-column label="镇街表code" prop="street_id" show-overflow-tooltip />
|
<el-table-column label="镇街表" prop="street_id" show-overflow-tooltip />
|
||||||
<el-table-column label="村主键code" prop="village_id" show-overflow-tooltip />
|
<el-table-column label="村主键" prop="village_id" show-overflow-tooltip />
|
||||||
<el-table-column label="商户地址" prop="mer_address" show-overflow-tooltip />
|
<el-table-column label="商户地址" prop="mer_address" show-overflow-tooltip />
|
||||||
<el-table-column label="商户头像" prop="mer_avatar" show-overflow-tooltip />
|
<el-table-column label="商户头像" prop="mer_avatar" show-overflow-tooltip />
|
||||||
<el-table-column label="商户备注" prop="mark" show-overflow-tooltip />
|
<el-table-column label="商户备注" prop="mark" show-overflow-tooltip />
|
||||||
|
@ -132,20 +140,11 @@
|
||||||
<el-table-column label="支付宝转账信息" prop="financial_alipay" show-overflow-tooltip />
|
<el-table-column label="支付宝转账信息" prop="financial_alipay" show-overflow-tooltip />
|
||||||
<el-table-column label="操作" width="120" fixed="right">
|
<el-table-column label="操作" width="120" fixed="right">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button
|
<el-button v-perms="['merchat.merchant/edit']" type="primary" link @click="handleEdit(row)">
|
||||||
v-perms="['merchat.merchant/edit']"
|
|
||||||
type="primary"
|
|
||||||
link
|
|
||||||
@click="handleEdit(row)"
|
|
||||||
>
|
|
||||||
编辑
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button v-perms="['merchat.merchant/delete']" type="danger" link
|
||||||
v-perms="['merchat.merchant/delete']"
|
@click="handleDelete(row.mer_id)">
|
||||||
type="danger"
|
|
||||||
link
|
|
||||||
@click="handleDelete(row.mer_id)"
|
|
||||||
>
|
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -1,13 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="edit-popup">
|
<div class="edit-popup">
|
||||||
<popup
|
<popup ref="popupRef" title="详情" :async="true" width="550px" :cancelButtonText="false" :confirmButtonText="false">
|
||||||
ref="popupRef"
|
|
||||||
title="详情"
|
|
||||||
:async="true"
|
|
||||||
width="550px"
|
|
||||||
:cancelButtonText="false"
|
|
||||||
:confirmButtonText="false"
|
|
||||||
>
|
|
||||||
<el-form ref="formRef" :model="formData" label-width="90px">
|
<el-form ref="formRef" :model="formData" label-width="90px">
|
||||||
<el-form-item label="商户分类 id" prop="category_id">
|
<el-form-item label="商户分类 id" prop="category_id">
|
||||||
<el-input v-model="formData.category_id" clearable placeholder="请输入商户分类 id" :readonly="true" />
|
<el-input v-model="formData.category_id" clearable placeholder="请输入商户分类 id" :readonly="true" />
|
||||||
|
@ -19,7 +12,7 @@
|
||||||
<el-input v-model="formData.mer_name" clearable placeholder="请输入商户名称" :readonly="true" />
|
<el-input v-model="formData.mer_name" clearable placeholder="请输入商户名称" :readonly="true" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="结算周期,单位天" prop="settle_cycle">
|
<el-form-item label="结算周期,单位天" prop="settle_cycle">
|
||||||
<el-input v-model="formData.settle_cycle" clearable placeholder="请输入结算周期,单位天" :readonly="true"/>
|
<el-input v-model="formData.settle_cycle" clearable placeholder="请输入结算周期(天)" :readonly="true" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="利率" prop="interest_rate">
|
<el-form-item label="利率" prop="interest_rate">
|
||||||
<el-input v-model="formData.interest_rate" clearable placeholder="请输入利率" :readonly="true" />
|
<el-input v-model="formData.interest_rate" clearable placeholder="请输入利率" :readonly="true" />
|
||||||
|
@ -49,12 +42,8 @@
|
||||||
<el-input v-model="formData.mark" clearable placeholder="请输入商户备注" :readonly="true" />
|
<el-input v-model="formData.mark" clearable placeholder="请输入商户备注" :readonly="true" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="商户是否禁用0锁定,1正常" prop="status">
|
<el-form-item label="商户是否禁用0锁定,1正常" prop="status">
|
||||||
<el-radio-group v-model="formData.status" placeholder="请选择商户是否禁用0锁定,1正常" :disabled="true">
|
<el-radio-group v-model="formData.status" placeholder="请选择商户是否禁用" :disabled="true">
|
||||||
<el-radio
|
<el-radio v-for="(item, index) in dictData.show_status" :key="index" :label="parseInt(item.value)">
|
||||||
v-for="(item, index) in dictData.show_status"
|
|
||||||
:key="index"
|
|
||||||
:label="parseInt(item.value)"
|
|
||||||
>
|
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
|
@ -63,12 +52,9 @@
|
||||||
<el-input v-model="formData.commission_rate" clearable placeholder="请输入提成比例" :readonly="true" />
|
<el-input v-model="formData.commission_rate" clearable placeholder="请输入提成比例" :readonly="true" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="商户手续费单独设置 0 关闭 1 开启" prop="commission_switch">
|
<el-form-item label="商户手续费单独设置 0 关闭 1 开启" prop="commission_switch">
|
||||||
<el-radio-group v-model="formData.commission_switch" placeholder="请选择商户手续费单独设置 0 关闭 1 开启" :disabled="true">
|
<el-radio-group v-model="formData.commission_switch" placeholder="请选择商户手续费单独设置 0 关闭 1 开启"
|
||||||
<el-radio
|
:disabled="true">
|
||||||
v-for="(item, index) in dictData.show_status"
|
<el-radio v-for="(item, index) in dictData.show_status" :key="index" :label="parseInt(item.value)">
|
||||||
:key="index"
|
|
||||||
:label="parseInt(item.value)"
|
|
||||||
>
|
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
|
|
|
@ -1,102 +1,156 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="edit-popup">
|
<div class="edit-popup">
|
||||||
<popup
|
<popup ref="popupRef" :title="popupTitle" :async="true" width="60vw" @confirm="handleSubmit" @close="handleClose">
|
||||||
ref="popupRef"
|
<el-form ref="formRef" :model="formData" label-width="120px" :rules="formRules">
|
||||||
:title="popupTitle"
|
<el-row>
|
||||||
:async="true"
|
<el-col :span="24">
|
||||||
width="550px"
|
<el-form-item label="商户头像" prop="mer_avatar">
|
||||||
@confirm="handleSubmit"
|
<material-picker v-model="formData.mer_avatar" />
|
||||||
@close="handleClose"
|
|
||||||
>
|
|
||||||
<el-form ref="formRef" :model="formData" label-width="90px" :rules="formRules">
|
|
||||||
<el-form-item label="商户分类 id" prop="category_id">
|
|
||||||
<el-input v-model="formData.category_id" clearable placeholder="请输入商户分类 id" :readonly="false"/>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="店铺类型 id" prop="type_id">
|
|
||||||
<el-input v-model="formData.type_id" clearable placeholder="请输入店铺类型 id" :readonly="false"/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="商户名称" prop="mer_name">
|
<el-form-item label="商户名称" prop="mer_name">
|
||||||
<el-input v-model="formData.mer_name" clearable placeholder="请输入商户名称" :readonly="false" />
|
<el-input v-model="formData.mer_name" clearable placeholder="请输入商户名称" :readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="结算周期,单位天" prop="settle_cycle">
|
</el-col>
|
||||||
<el-input v-model="formData.settle_cycle" clearable placeholder="请输入结算周期,单位天" :readonly="false"/>
|
<el-col :span="8">
|
||||||
|
<el-form-item label="商户分类" prop="category_id">
|
||||||
|
<el-select class="flex-1" v-model="formData.category_id" clearable placeholder="请选择店铺类型">
|
||||||
|
<el-option v-for="(item, index) in dictData.mer_category_type" :key="index"
|
||||||
|
:label="item.name" :value="parseInt(item.value)" />
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item label="店铺类型" prop="type_id">
|
||||||
|
<el-select class="flex-1" v-model="formData.type_id" clearable placeholder="请选择店铺类型">
|
||||||
|
<el-option v-for="(item, index) in dictData.merchat_type" :key="index" :label="item.name"
|
||||||
|
:value="parseInt(item.value)" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item label="结算周期(天)" prop="settle_cycle">
|
||||||
|
<el-input v-model="formData.settle_cycle" clearable placeholder="请输入结算周期,单位天"
|
||||||
|
:readonly="false" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="利率" prop="interest_rate">
|
<el-form-item label="利率" prop="interest_rate">
|
||||||
<el-input v-model="formData.interest_rate" clearable placeholder="请输入利率" :readonly="false" />
|
<el-input v-model="formData.interest_rate" clearable placeholder="请输入利率" :readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="标签" prop="sys_labels">
|
<el-form-item label="标签" prop="sys_labels">
|
||||||
<el-input v-model="formData.sys_labels" clearable placeholder="请输入标签" :readonly="false" />
|
<el-input v-model="formData.sys_labels" clearable placeholder="请输入标签" :readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="城市code" prop="city_id">
|
</el-col>
|
||||||
<el-input v-model="formData.city_id" clearable placeholder="请输入城市code" :readonly="false"/>
|
<el-col :span="8">
|
||||||
|
<el-form-item label="城市" prop="city_id">
|
||||||
|
<el-input v-model="formData.city_id" clearable placeholder="请输入城市" :readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="区县code" prop="area_id">
|
</el-col>
|
||||||
<el-input v-model="formData.area_id" clearable placeholder="请输入区县code" :readonly="false"/>
|
<el-col :span="8">
|
||||||
|
<el-form-item label="区县" prop="area_id">
|
||||||
|
<el-input v-model="formData.area_id" clearable placeholder="请输入区县" :readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="镇街表code" prop="street_id">
|
</el-col>
|
||||||
<el-input v-model="formData.street_id" clearable placeholder="请输入镇街表code" :readonly="false"/>
|
<el-col :span="8">
|
||||||
|
<el-form-item label="镇街" prop="street_id">
|
||||||
|
<el-input v-model="formData.street_id" clearable placeholder="请输入镇街表" :readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="村code" prop="village_id">
|
</el-col>
|
||||||
<el-input v-model="formData.village_id" clearable placeholder="请输入村code" :readonly="false"/>
|
<el-col :span="8">
|
||||||
|
<el-form-item label="村" prop="village_id">
|
||||||
|
<el-input v-model="formData.village_id" clearable placeholder="请输入村" :readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="商户地址" prop="mer_address">
|
<el-form-item label="商户地址" prop="mer_address">
|
||||||
<el-input v-model="formData.mer_address" clearable placeholder="请输入商户地址" :readonly="false" />
|
<el-input v-model="formData.mer_address" clearable placeholder="请输入商户地址" :readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="商户头像" prop="mer_avatar">
|
</el-col>
|
||||||
<el-input v-model="formData.mer_avatar" clearable placeholder="请输入商户头像" :readonly="false"/>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="商户备注" prop="mark">
|
<el-col :span="8">
|
||||||
<el-input v-model="formData.mark" clearable placeholder="请输入商户备注" :readonly="false"/>
|
<el-form-item label="商户是否禁用" prop="status">
|
||||||
</el-form-item>
|
<el-radio-group v-model="formData.status" placeholder="请选择商户是否禁用" :disabled="false">
|
||||||
<el-form-item label="商户是否禁用0锁定,1正常" prop="status">
|
<el-radio v-for="(item, index) in dictData.show_status" :key="index"
|
||||||
<el-radio-group v-model="formData.status" placeholder="请选择商户是否禁用0锁定,1正常" :disabled="false">
|
:label="parseInt(item.value)">
|
||||||
<el-radio
|
|
||||||
v-for="(item, index) in dictData.show_status"
|
|
||||||
:key="index"
|
|
||||||
:label="parseInt(item.value)"
|
|
||||||
>
|
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="提成比例" prop="commission_rate">
|
<el-form-item label="提成比例" prop="commission_rate">
|
||||||
<el-input v-model="formData.commission_rate" clearable placeholder="请输入提成比例" :readonly="false"/>
|
<el-input v-model="formData.commission_rate" type="number" clearable placeholder="请输入提成比例"
|
||||||
|
:readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="商户手续费单独设置 0 关闭 1 开启" prop="commission_switch">
|
</el-col>
|
||||||
<el-radio-group v-model="formData.commission_switch" placeholder="请选择商户手续费单独设置 0 关闭 1 开启" :disabled="false">
|
<el-col :span="8">
|
||||||
<el-radio
|
<el-form-item label="商户手续费单独设置" prop="commission_switch" label-width="180px">
|
||||||
v-for="(item, index) in dictData.show_status"
|
<el-radio-group v-model="formData.commission_switch" placeholder="请选择商户手续费单独设置"
|
||||||
:key="index"
|
:disabled="false">
|
||||||
:label="parseInt(item.value)"
|
<el-radio v-for="(item, index) in dictData.show_status" :key="index"
|
||||||
>
|
:label="parseInt(item.value)">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="经度" prop="long">
|
<el-form-item label="经度" prop="long">
|
||||||
<el-input v-model="formData.long" clearable placeholder="请输入经度" :readonly="false" />
|
<el-input v-model="formData.long" clearable placeholder="请输入经度" :readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="纬度" prop="lat">
|
<el-form-item label="纬度" prop="lat">
|
||||||
<el-input v-model="formData.lat" clearable placeholder="请输入纬度" :readonly="false" />
|
<el-input v-model="formData.lat" clearable placeholder="请输入纬度" :readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="店铺电话" prop="service_phone">
|
<el-form-item label="店铺电话" prop="service_phone">
|
||||||
<el-input v-model="formData.service_phone" clearable placeholder="请输入店铺电话" :readonly="false" />
|
<el-input v-model="formData.service_phone" clearable placeholder="请输入店铺电话" :readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="商户余额" prop="mer_money">
|
<el-form-item label="商户余额" prop="mer_money">
|
||||||
<el-input v-model="formData.mer_money" clearable placeholder="请输入商户余额" :readonly="false" />
|
<el-input v-model="formData.mer_money" clearable placeholder="请输入商户余额" :readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item label="商户备注" prop="mark">
|
||||||
|
<el-input v-model="formData.mark" clearable placeholder="请输入商户备注" type="textarea"
|
||||||
|
:readonly="false" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="银行卡转账信息" prop="financial_bank">
|
<el-form-item label="银行卡转账信息" prop="financial_bank">
|
||||||
<el-input v-model="formData.financial_bank" clearable placeholder="请输入银行卡转账信息" :readonly="false"/>
|
<el-input v-model="formData.financial_bank" clearable placeholder="请输入银行卡转账信息"
|
||||||
|
:readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="微信转账信息" prop="financial_wechat">
|
<el-form-item label="微信转账信息" prop="financial_wechat">
|
||||||
<el-input v-model="formData.financial_wechat" clearable placeholder="请输入微信转账信息" :readonly="false"/>
|
<el-input v-model="formData.financial_wechat" clearable placeholder="请输入微信转账信息"
|
||||||
|
:readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="支付宝转账信息" prop="financial_alipay">
|
<el-form-item label="支付宝转账信息" prop="financial_alipay">
|
||||||
<el-input v-model="formData.financial_alipay" clearable placeholder="请输入支付宝转账信息" :readonly="false"/>
|
<el-input v-model="formData.financial_alipay" clearable placeholder="请输入支付宝转账信息"
|
||||||
|
:readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="默认使用类型" prop="financial_type">
|
<el-form-item label="默认使用类型" prop="financial_type">
|
||||||
<el-input v-model="formData.financial_type" clearable placeholder="请输入默认使用类型" :readonly="false"/>
|
<el-input v-model="formData.financial_type" clearable placeholder="请输入默认使用类型"
|
||||||
|
:readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
</popup>
|
</popup>
|
||||||
</div>
|
</div>
|
||||||
|
@ -106,7 +160,6 @@
|
||||||
import type { FormInstance } from 'element-plus'
|
import type { FormInstance } from 'element-plus'
|
||||||
import Popup from '@/components/popup/index.vue'
|
import Popup from '@/components/popup/index.vue'
|
||||||
import { apiSupplierAdd, apiSupplierEdit, apiSupplierDetail } from '@/api/supplier'
|
import { apiSupplierAdd, apiSupplierEdit, apiSupplierDetail } from '@/api/supplier'
|
||||||
import { timeFormat } from '@/utils/util'
|
|
||||||
import type { PropType } from 'vue'
|
import type { PropType } from 'vue'
|
||||||
defineProps({
|
defineProps({
|
||||||
dictData: {
|
dictData: {
|
||||||
|
@ -249,6 +302,16 @@ const handleClose = () => {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// 地址
|
||||||
|
const address = reactive({
|
||||||
|
cityList: [],
|
||||||
|
areaList: [],
|
||||||
|
townList: [],
|
||||||
|
villlageList: []
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
open,
|
open,
|
||||||
setFormData,
|
setFormData,
|
||||||
|
|
|
@ -1,24 +1,38 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-card class="!border-none mb-4" shadow="never">
|
<el-card class="!border-none mb-4" shadow="never">
|
||||||
<el-form
|
<el-form class="mb-[-16px]" :model="queryParams" label-width="120px">
|
||||||
class="mb-[-16px]"
|
<el-row>
|
||||||
:model="queryParams"
|
<el-col :span="6">
|
||||||
inline
|
<el-form-item label="商户分类" prop="category_id">
|
||||||
>
|
<el-select v-model="queryParams.category_id" clearable placeholder="请选择店铺类型">
|
||||||
<el-form-item label="商户分类 id" prop="category_id">
|
<el-option v-for="(item, index) in dictData.mer_category_type" :key="index"
|
||||||
<el-input class="w-[280px]" v-model="queryParams.category_id" clearable placeholder="请输入商户分类 id" />
|
:label="item.name" :value="parseInt(item.value)" />
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="店铺类型 id" prop="type_id">
|
</el-col>
|
||||||
<el-input class="w-[280px]" v-model="queryParams.type_id" clearable placeholder="请输入店铺类型 id" />
|
<el-col :span="6">
|
||||||
|
<el-form-item label="店铺类型" prop="type_id">
|
||||||
|
<el-select v-model="queryParams.type_id" clearable placeholder="请选择店铺类型">
|
||||||
|
<el-option v-for="(item, index) in dictData.merchat_type" :key="index" :label="item.name"
|
||||||
|
:value="parseInt(item.value)" />
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="6">
|
||||||
<el-form-item label="商户名称" prop="mer_name">
|
<el-form-item label="商户名称" prop="mer_name">
|
||||||
<el-input class="w-[280px]" v-model="queryParams.mer_name" clearable placeholder="请输入商户名称" />
|
<el-input v-model="queryParams.mer_name" clearable placeholder="请输入商户名称" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="6">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" @click="resetPage">查询</el-button>
|
<el-button type="primary" @click="resetPage">查询</el-button>
|
||||||
<el-button @click="resetParams">重置</el-button>
|
<el-button @click="resetParams">重置</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
</el-row>
|
||||||
|
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card class="!border-none" v-loading="pager.loading" shadow="never">
|
<el-card class="!border-none" v-loading="pager.loading" shadow="never">
|
||||||
|
@ -28,51 +42,48 @@
|
||||||
</template>
|
</template>
|
||||||
新增
|
新增
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button v-perms="['supplier.supplier/delete']" :disabled="!selectData.length"
|
||||||
v-perms="['supplier.supplier/delete']"
|
@click="handleDelete(selectData)">
|
||||||
:disabled="!selectData.length"
|
|
||||||
@click="handleDelete(selectData)"
|
|
||||||
>
|
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
<el-table :data="pager.lists" @selection-change="handleSelectionChange">
|
<el-table :data="pager.lists" @selection-change="handleSelectionChange">
|
||||||
<el-table-column type="selection" width="55" />
|
<el-table-column type="selection" width="55" />
|
||||||
<el-table-column label="商户分类 id" prop="category_id" show-overflow-tooltip />
|
<el-table-column label="商户分类" prop="category_id" show-overflow-tooltip>
|
||||||
<el-table-column label="店铺类型 id" prop="type_id" show-overflow-tooltip />
|
<template #default="{ row }">
|
||||||
|
<dict-value :options="dictData.mer_category_type" :value="row.category_id" />
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="店铺类型" prop="type_id" show-overflow-tooltip>
|
||||||
|
<template #default="{ row }">
|
||||||
|
<dict-value :options="dictData.merchat_type" :value="row.type_id" />
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="商户名称" prop="mer_name" show-overflow-tooltip />
|
<el-table-column label="商户名称" prop="mer_name" show-overflow-tooltip />
|
||||||
<el-table-column label="结算周期,单位天" prop="settle_cycle" show-overflow-tooltip />
|
<el-table-column label="结算周期(天)" prop="settle_cycle" show-overflow-tooltip />
|
||||||
<el-table-column label="利率" prop="interest_rate" show-overflow-tooltip />
|
<el-table-column label="利率" prop="interest_rate" show-overflow-tooltip />
|
||||||
<el-table-column label="标签" prop="sys_labels" show-overflow-tooltip />
|
<el-table-column label="标签" prop="sys_labels" show-overflow-tooltip />
|
||||||
<el-table-column label="商户地址" prop="mer_address" show-overflow-tooltip />
|
<el-table-column label="商户地址" prop="mer_address" show-overflow-tooltip />
|
||||||
<el-table-column label="商户是否禁用0锁定,1正常" prop="status">
|
<el-table-column label="商户是否禁用" prop="status">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<dict-value :options="dictData.show_status" :value="row.status" />
|
<dict-value :options="dictData.show_status" :value="row.status" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="提成比例" prop="commission_rate" show-overflow-tooltip />
|
<el-table-column label="提成比例" prop="commission_rate" show-overflow-tooltip />
|
||||||
<el-table-column label="商户手续费单独设置 0 关闭 1 开启" prop="commission_switch">
|
<el-table-column label="商户手续费单独设置" width="200" prop="commission_switch">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<dict-value :options="dictData.show_status" :value="row.commission_switch" />
|
<!-- <dict-value :options="dictData.show_status" :value="row.commission_switch" /> -->
|
||||||
|
{{ row.commission_switch ? "开启" : "关闭" }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="商户余额" prop="mer_money" show-overflow-tooltip />
|
<el-table-column label="商户余额" prop="mer_money" show-overflow-tooltip />
|
||||||
<el-table-column label="操作" width="120" fixed="right">
|
<el-table-column label="操作" width="120" fixed="right">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button
|
<el-button v-perms="['supplier.supplier/edit']" type="primary" link @click="handleEdit(row)">
|
||||||
v-perms="['supplier.supplier/edit']"
|
|
||||||
type="primary"
|
|
||||||
link
|
|
||||||
@click="handleEdit(row)"
|
|
||||||
>
|
|
||||||
编辑
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button v-perms="['supplier.supplier/delete']" type="danger" link
|
||||||
v-perms="['supplier.supplier/delete']"
|
@click="handleDelete(row.id)">
|
||||||
type="danger"
|
|
||||||
link
|
|
||||||
@click="handleDelete(row.id)"
|
|
||||||
>
|
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
@ -116,7 +127,7 @@ const handleSelectionChange = (val: any[]) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取字典数据
|
// 获取字典数据
|
||||||
const { dictData } = useDictData('show_status')
|
const { dictData } = useDictData('show_status,mer_category_type,merchat_type')
|
||||||
|
|
||||||
// 分页相关
|
// 分页相关
|
||||||
const { pager, getLists, resetParams, resetPage } = usePaging({
|
const { pager, getLists, resetParams, resetPage } = usePaging({
|
||||||
|
|
|
@ -1,16 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="edit-popup">
|
<div class="edit-popup">
|
||||||
<popup
|
<popup ref="popupRef" :title="popupTitle" :async="true" width="550px" @confirm="handleSubmit" @close="handleClose">
|
||||||
ref="popupRef"
|
|
||||||
:title="popupTitle"
|
|
||||||
:async="true"
|
|
||||||
width="550px"
|
|
||||||
@confirm="handleSubmit"
|
|
||||||
@close="handleClose"
|
|
||||||
>
|
|
||||||
<el-form ref="formRef" :model="formData" label-width="90px" :rules="formRules">
|
<el-form ref="formRef" :model="formData" label-width="90px" :rules="formRules">
|
||||||
<el-form-item label="头像" prop="avatar">
|
<el-form-item label="头像" prop="avatar">
|
||||||
<el-input v-model="formData.avatar" clearable placeholder="请输入头像" :readonly="false"/>
|
<material-picker v-model="formData.avatar" />
|
||||||
|
<!-- <avaterUpload :formData="formData" value="avatar"></avaterUpload> -->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="真实姓名" prop="real_name">
|
<el-form-item label="真实姓名" prop="real_name">
|
||||||
<el-input v-model="formData.real_name" clearable placeholder="请输入真实姓名" :readonly="false" />
|
<el-input v-model="formData.real_name" clearable placeholder="请输入真实姓名" :readonly="false" />
|
||||||
|
@ -29,22 +23,15 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="用户性别" prop="sex">
|
<el-form-item label="用户性别" prop="sex">
|
||||||
<el-radio-group v-model="formData.sex" placeholder="请选择用户性别" :disabled="false">
|
<el-radio-group v-model="formData.sex" placeholder="请选择用户性别" :disabled="false">
|
||||||
<el-radio
|
<el-radio v-for="(item, index) in dictData.sex_type" :key="index" :label="parseInt(item.value)">
|
||||||
v-for="(item, index) in dictData.sex_type"
|
|
||||||
:key="index"
|
|
||||||
:label="parseInt(item.value)"
|
|
||||||
>
|
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="是否禁用" prop="is_disable">
|
<el-form-item label="是否禁用" prop="is_disable">
|
||||||
<el-radio-group v-model="formData.is_disable" placeholder="请选择是否禁用" :disabled="false">
|
<el-radio-group v-model="formData.is_disable" placeholder="请选择是否禁用" :disabled="false">
|
||||||
<el-radio
|
<el-radio v-for="(item, index) in dictData.system_disable" :key="index"
|
||||||
v-for="(item, index) in dictData.system_disable"
|
:label="parseInt(item.value)">
|
||||||
:key="index"
|
|
||||||
:label="parseInt(item.value)"
|
|
||||||
>
|
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
|
|
|
@ -1,11 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-card class="!border-none mb-4" shadow="never">
|
<el-card class="!border-none mb-4" shadow="never">
|
||||||
<el-form
|
<el-form class="mb-[-16px]" :model="queryParams" inline>
|
||||||
class="mb-[-16px]"
|
|
||||||
:model="queryParams"
|
|
||||||
inline
|
|
||||||
>
|
|
||||||
<el-form-item label="用户昵称" prop="nickname">
|
<el-form-item label="用户昵称" prop="nickname">
|
||||||
<el-input class="w-[280px]" v-model="queryParams.nickname" clearable placeholder="请输入用户昵称" />
|
<el-input class="w-[280px]" v-model="queryParams.nickname" clearable placeholder="请输入用户昵称" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -16,15 +12,10 @@
|
||||||
<el-input class="w-[280px]" v-model="queryParams.mobile" clearable placeholder="请输入用户电话" />
|
<el-input class="w-[280px]" v-model="queryParams.mobile" clearable placeholder="请输入用户电话" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="是否禁用" prop="is_disable">
|
<el-form-item label="是否禁用" prop="is_disable">
|
||||||
<el-select class="w-[280px]"
|
<el-select class="w-[280px]" v-model="queryParams.is_disable" clearable placeholder="请选择是否禁用">
|
||||||
v-model="queryParams.is_disable" clearable placeholder="请选择是否禁用">
|
|
||||||
<el-option label="全部" value=""></el-option>
|
<el-option label="全部" value=""></el-option>
|
||||||
<el-option
|
<el-option v-for="(item, index) in dictData.system_disable" :key="index" :label="item.name"
|
||||||
v-for="(item, index) in dictData.system_disable"
|
:value="item.value" />
|
||||||
:key="index"
|
|
||||||
:label="item.name"
|
|
||||||
:value="item.value"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
|
@ -40,11 +31,7 @@
|
||||||
</template>
|
</template>
|
||||||
新增
|
新增
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button v-perms="['user.user/delete']" :disabled="!selectData.length" @click="handleDelete(selectData)">
|
||||||
v-perms="['user.user/delete']"
|
|
||||||
:disabled="!selectData.length"
|
|
||||||
@click="handleDelete(selectData)"
|
|
||||||
>
|
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
|
@ -67,20 +54,10 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="120" fixed="right">
|
<el-table-column label="操作" width="120" fixed="right">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button
|
<el-button v-perms="['user.user/edit']" type="primary" link @click="handleEdit(row)">
|
||||||
v-perms="['user.user/edit']"
|
|
||||||
type="primary"
|
|
||||||
link
|
|
||||||
@click="handleEdit(row)"
|
|
||||||
>
|
|
||||||
编辑
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button v-perms="['user.user/delete']" type="danger" link @click="handleDelete(row.id)">
|
||||||
v-perms="['user.user/delete']"
|
|
||||||
type="danger"
|
|
||||||
link
|
|
||||||
@click="handleDelete(row.id)"
|
|
||||||
>
|
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -1,13 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="edit-popup">
|
<div class="edit-popup">
|
||||||
<popup
|
<popup ref="popupRef" title="详情" :async="true" width="550px" :cancelButtonText="false" :confirmButtonText="false">
|
||||||
ref="popupRef"
|
|
||||||
title="详情"
|
|
||||||
:async="true"
|
|
||||||
width="550px"
|
|
||||||
:cancelButtonText="false"
|
|
||||||
:confirmButtonText="false"
|
|
||||||
>
|
|
||||||
<el-form ref="formRef" :model="formData" label-width="90px" :rules="formRules">
|
<el-form ref="formRef" :model="formData" label-width="90px" :rules="formRules">
|
||||||
<el-form-item label="所属商户" prop="merchant">
|
<el-form-item label="所属商户" prop="merchant">
|
||||||
<el-input v-model="formData.merchant" clearable placeholder="请输入所属商户" :readonly="true" />
|
<el-input v-model="formData.merchant" clearable placeholder="请输入所属商户" :readonly="true" />
|
||||||
|
@ -37,13 +30,10 @@
|
||||||
<el-input v-model="formData.money" clearable placeholder="请输入实收金额" :readonly="true" />
|
<el-input v-model="formData.money" clearable placeholder="请输入实收金额" :readonly="true" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="支付方式 0余额 1微信 2小程序 3 h5 4支付宝 5 支付宝扫码 6 微信扫码 8先货后款 10对公转账" prop="pay_type">
|
<el-form-item label="支付方式 0余额 1微信 2小程序 3 h5 4支付宝 5 支付宝扫码 6 微信扫码 8先货后款 10对公转账" prop="pay_type">
|
||||||
<el-select class="flex-1" v-model="formData.pay_type" clearable placeholder="请选择支付方式 0余额 1微信 2小程序 3 h5 4支付宝 5 支付宝扫码 6 微信扫码 8先货后款 10对公转账" :disabled="true">
|
<el-select class="flex-1" v-model="formData.pay_type" clearable
|
||||||
<el-option
|
placeholder="请选择支付方式 0余额 1微信 2小程序 3 h5 4支付宝 5 支付宝扫码 6 微信扫码 8先货后款 10对公转账" :disabled="true">
|
||||||
v-for="(item, index) in dictData.pay_type"
|
<el-option v-for="(item, index) in dictData.pay_type" :key="index" :label="item.name"
|
||||||
:key="index"
|
:value="parseInt(item.value)" />
|
||||||
:label="item.name"
|
|
||||||
:value="parseInt(item.value)"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="备注信息" prop="data">
|
<el-form-item label="备注信息" prop="data">
|
||||||
|
@ -51,11 +41,8 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="审核状态[0:未审核|1:已审核]" prop="type">
|
<el-form-item label="审核状态[0:未审核|1:已审核]" prop="type">
|
||||||
<el-radio-group v-model="formData.type" placeholder="请选择审核状态[0:未审核|1:已审核]" :disabled="true">
|
<el-radio-group v-model="formData.type" placeholder="请选择审核状态[0:未审核|1:已审核]" :disabled="true">
|
||||||
<el-radio
|
<el-radio v-for="(item, index) in dictData.auditing_type" :key="index"
|
||||||
v-for="(item, index) in dictData.auditing_type"
|
:label="parseInt(item.value)">
|
||||||
:key="index"
|
|
||||||
:label="parseInt(item.value)"
|
|
||||||
>
|
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
|
@ -64,14 +51,8 @@
|
||||||
<el-input v-model="formData.auditinguser" clearable placeholder="请输入审核人" :readonly="true" />
|
<el-input v-model="formData.auditinguser" clearable placeholder="请输入审核人" :readonly="true" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="审核时间" prop="auditingtime">
|
<el-form-item label="审核时间" prop="auditingtime">
|
||||||
<el-date-picker
|
<el-date-picker :readonly="true" class="flex-1 !flex" v-model="formData.auditingtime" clearable
|
||||||
:readonly="true"
|
type="datetime" value-format="YYYY-MM-DD HH:mm:ss" placeholder="选择审核时间">
|
||||||
class="flex-1 !flex"
|
|
||||||
v-model="formData.auditingtime"
|
|
||||||
clearable
|
|
||||||
type="datetime"
|
|
||||||
value-format="YYYY-MM-DD HH:mm:ss"
|
|
||||||
placeholder="选择审核时间">
|
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
|
|
@ -1,83 +1,110 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="edit-popup">
|
<div class="edit-popup">
|
||||||
<popup
|
<popup ref="popupRef" :title="popupTitle" :async="true" width="60vw" @confirm="handleSubmit" @close="handleClose">
|
||||||
ref="popupRef"
|
|
||||||
:title="popupTitle"
|
|
||||||
:async="true"
|
|
||||||
width="550px"
|
|
||||||
@confirm="handleSubmit"
|
|
||||||
@close="handleClose"
|
|
||||||
>
|
|
||||||
<el-form ref="formRef" :model="formData" label-width="90px" :rules="formRules">
|
<el-form ref="formRef" :model="formData" label-width="90px" :rules="formRules">
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="所属商户" prop="merchant">
|
<el-form-item label="所属商户" prop="merchant">
|
||||||
<el-input v-model="formData.merchant" clearable placeholder="请输入所属商户" :readonly="false" />
|
<el-input v-model="formData.merchant" clearable placeholder="请输入所属商户" :readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="归属门店" prop="store_id">
|
<el-form-item label="归属门店" prop="store_id">
|
||||||
<el-input v-model="formData.store_id" clearable placeholder="请输入归属门店" :readonly="false" />
|
<el-input v-model="formData.store_id" clearable placeholder="请输入归属门店" :readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="客户ID" prop="customer">
|
<el-form-item label="客户ID" prop="customer">
|
||||||
<el-input v-model="formData.customer" clearable placeholder="请输入客户ID" :readonly="false" />
|
<el-input v-model="formData.customer" clearable placeholder="请输入客户ID" :readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="单据时间" prop="time">
|
<el-form-item label="单据时间" prop="time">
|
||||||
<el-input v-model="formData.time" clearable placeholder="请输入单据时间" :readonly="false"/>
|
<!-- <el-input v-model="formData.time" clearable placeholder="请输入单据时间" :readonly="false" /> -->
|
||||||
|
<el-date-picker :readonly="false" class="flex-1 !flex" v-model="formData.time" clearable
|
||||||
|
type="datetime" value-format="YYYY-MM-DD HH:mm:ss" placeholder="选择单据时间">
|
||||||
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="单据编号" prop="number">
|
<el-form-item label="单据编号" prop="number">
|
||||||
<el-input v-model="formData.number" clearable placeholder="请输入单据编号" :readonly="false" />
|
<el-input v-model="formData.number" clearable placeholder="请输入单据编号" :readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="单据金额" prop="total">
|
<el-form-item label="单据金额" prop="total">
|
||||||
<el-input v-model="formData.total" clearable placeholder="请输入单据金额" :readonly="false"/>
|
<el-input v-model="formData.total" type="number" clearable placeholder="请输入单据金额"
|
||||||
|
:readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="抵扣金额" prop="deduction_price">
|
<el-form-item label="抵扣金额" prop="deduction_price">
|
||||||
<el-input v-model="formData.deduction_price" clearable placeholder="请输入抵扣金额" :readonly="false"/>
|
<el-input v-model="formData.deduction_price" clearable placeholder="请输入抵扣金额"
|
||||||
|
:readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="实际金额" prop="actual">
|
<el-form-item label="实际金额" prop="actual">
|
||||||
<el-input v-model="formData.actual" clearable placeholder="请输入实际金额" :readonly="false"/>
|
<el-input v-model="formData.actual" type="number" clearable placeholder="请输入实际金额"
|
||||||
|
:readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="实收金额" prop="money">
|
<el-form-item label="实收金额" prop="money">
|
||||||
<el-input v-model="formData.money" clearable placeholder="请输入实收金额" :readonly="false"/>
|
<el-input v-model="formData.money" type="number" clearable placeholder="请输入实收金额"
|
||||||
|
:readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="支付方式 0余额 1微信 2小程序 3 h5 4支付宝 5 支付宝扫码 6 微信扫码 8先货后款 10对公转账" prop="pay_type">
|
</el-col>
|
||||||
<el-select class="flex-1" v-model="formData.pay_type" clearable placeholder="请选择支付方式 0余额 1微信 2小程序 3 h5 4支付宝 5 支付宝扫码 6 微信扫码 8先货后款 10对公转账" :disabled="false">
|
<el-col :span="8">
|
||||||
<el-option
|
<el-form-item label="支付方式 " prop="pay_type">
|
||||||
v-for="(item, index) in dictData.pay_type"
|
<el-select class="flex-1" v-model="formData.pay_type" clearable placeholder="请选择支付方式"
|
||||||
:key="index"
|
:disabled="false">
|
||||||
:label="item.name"
|
<el-option v-for="(item, index) in dictData.pay_type" :key="index" :label="item.name"
|
||||||
:value="parseInt(item.value)"
|
:value="parseInt(item.value)" />
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="备注信息" prop="data">
|
<el-form-item label="备注信息" prop="data">
|
||||||
<el-input v-model="formData.data" clearable placeholder="请输入备注信息" :readonly="false"/>
|
<el-input v-model="formData.data" clearable placeholder="请输入备注信息" type="textarea"
|
||||||
|
:readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="审核状态[0:未审核|1:已审核]" prop="type">
|
</el-col>
|
||||||
<el-radio-group v-model="formData.type" placeholder="请选择审核状态[0:未审核|1:已审核]" :disabled="false">
|
<el-col :span="8">
|
||||||
<el-radio
|
<el-form-item label="审核状态" prop="type">
|
||||||
v-for="(item, index) in dictData.auditing_type"
|
<el-radio-group v-model="formData.type" placeholder="请选择审核状态" :disabled="false">
|
||||||
:key="index"
|
<el-radio v-for="(item, index) in dictData.auditing_type" :key="index"
|
||||||
:label="parseInt(item.value)"
|
:label="parseInt(item.value)">
|
||||||
>
|
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="审核人" prop="auditinguser">
|
<el-form-item label="审核人" prop="auditinguser">
|
||||||
<el-input v-model="formData.auditinguser" clearable placeholder="请输入审核人" :readonly="false" />
|
<el-input v-model="formData.auditinguser" clearable placeholder="请输入审核人" :readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="审核时间" prop="auditingtime">
|
<el-form-item label="审核时间" prop="auditingtime">
|
||||||
<el-date-picker
|
<el-date-picker :readonly="false" class="flex-1 !flex" v-model="formData.auditingtime" clearable
|
||||||
:readonly="false"
|
type="datetime" value-format="YYYY-MM-DD HH:mm:ss" placeholder="选择审核时间">
|
||||||
class="flex-1 !flex"
|
|
||||||
v-model="formData.auditingtime"
|
|
||||||
clearable
|
|
||||||
type="datetime"
|
|
||||||
value-format="YYYY-MM-DD HH:mm:ss"
|
|
||||||
placeholder="选择审核时间">
|
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
<el-form-item label="扩展信息" prop="more">
|
<el-form-item label="扩展信息" prop="more">
|
||||||
<el-input v-model="formData.more" clearable placeholder="请输入扩展信息" :readonly="false"/>
|
<el-input v-model="formData.more" clearable placeholder="请输入扩展信息" type="textarea"
|
||||||
|
:readonly="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
|
||||||
</el-form>
|
</el-form>
|
||||||
</popup>
|
</popup>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,11 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-card class="!border-none mb-4" shadow="never">
|
<el-card class="!border-none mb-4" shadow="never">
|
||||||
<el-form
|
<el-form class="mb-[-16px]" :model="queryParams" inline>
|
||||||
class="mb-[-16px]"
|
|
||||||
:model="queryParams"
|
|
||||||
inline
|
|
||||||
>
|
|
||||||
<el-form-item label="所属商户" prop="merchant">
|
<el-form-item label="所属商户" prop="merchant">
|
||||||
<el-input class="w-[280px]" v-model="queryParams.merchant" clearable placeholder="请输入所属商户" />
|
<el-input class="w-[280px]" v-model="queryParams.merchant" clearable placeholder="请输入所属商户" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -25,27 +21,17 @@
|
||||||
<el-input class="w-[280px]" v-model="queryParams.user" clearable placeholder="请输入制单人" />
|
<el-input class="w-[280px]" v-model="queryParams.user" clearable placeholder="请输入制单人" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="支付方式" prop="pay_type" tips=" 0余额 1微信 2小程序 3 h5 4支付宝 5 支付宝扫码 6 微信扫码 8先货后款 10对公转账">
|
<el-form-item label="支付方式" prop="pay_type" tips=" 0余额 1微信 2小程序 3 h5 4支付宝 5 支付宝扫码 6 微信扫码 8先货后款 10对公转账">
|
||||||
<el-select class="w-[280px]"
|
<el-select class="w-[280px]" v-model="queryParams.pay_type" clearable placeholder="请选择支付方式">
|
||||||
v-model="queryParams.pay_type" clearable placeholder="请选择支付方式">
|
|
||||||
<el-option label="全部" value=""></el-option>
|
<el-option label="全部" value=""></el-option>
|
||||||
<el-option
|
<el-option v-for="(item, index) in dictData.pay_type" :key="index" :label="item.name"
|
||||||
v-for="(item, index) in dictData.pay_type"
|
:value="item.value" />
|
||||||
:key="index"
|
|
||||||
:label="item.name"
|
|
||||||
:value="item.value"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="审核状态" prop="type">
|
<el-form-item label="审核状态" prop="type">
|
||||||
<el-select class="w-[280px]"
|
<el-select class="w-[280px]" v-model="queryParams.type" clearable placeholder="请选择审核状态">
|
||||||
v-model="queryParams.type" clearable placeholder="请选择审核状态">
|
|
||||||
<el-option label="全部" value=""></el-option>
|
<el-option label="全部" value=""></el-option>
|
||||||
<el-option
|
<el-option v-for="(item, index) in dictData.auditing_type" :key="index" :label="item.name"
|
||||||
v-for="(item, index) in dictData.auditing_type"
|
:value="item.value" />
|
||||||
:key="index"
|
|
||||||
:label="item.name"
|
|
||||||
:value="item.value"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="审核人" prop="auditinguser">
|
<el-form-item label="审核人" prop="auditinguser">
|
||||||
|
@ -64,11 +50,8 @@
|
||||||
</template>
|
</template>
|
||||||
新增
|
新增
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button v-perms="['retail.cashierclass/delete']" :disabled="!selectData.length"
|
||||||
v-perms="['retail.cashierclass/delete']"
|
@click="handleDelete(selectData)">
|
||||||
:disabled="!selectData.length"
|
|
||||||
@click="handleDelete(selectData)"
|
|
||||||
>
|
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
|
@ -101,24 +84,19 @@
|
||||||
<span>{{ row.auditingtime ? timeFormat(row.auditingtime, 'yyyy-mm-dd hh:MM:ss') : '' }}</span>
|
<span>{{ row.auditingtime ? timeFormat(row.auditingtime, 'yyyy-mm-dd hh:MM:ss') : '' }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="120" fixed="right">
|
<el-table-column label="操作" width="170" fixed="right">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button
|
<el-button v-perms="['retail.cashierclass/edit']" type="primary" link @click="handleEdit(row)">
|
||||||
v-perms="['retail.cashierclass/edit']"
|
|
||||||
type="primary"
|
|
||||||
link
|
|
||||||
@click="handleEdit(row)"
|
|
||||||
>
|
|
||||||
编辑
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button v-perms="['retail.cashierclass/delete']" type="danger" link
|
||||||
v-perms="['retail.cashierclass/delete']"
|
@click="handleDelete(row.id)">
|
||||||
type="danger"
|
|
||||||
link
|
|
||||||
@click="handleDelete(row.id)"
|
|
||||||
>
|
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button v-perms="['retail.cashierclass/edit']" type="primary" link
|
||||||
|
@click="handleDetail(row)">
|
||||||
|
详情
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -128,6 +106,8 @@
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
<edit-popup v-if="showEdit" ref="editRef" :dict-data="dictData" @success="getLists" @close="showEdit = false" />
|
<edit-popup v-if="showEdit" ref="editRef" :dict-data="dictData" @success="getLists" @close="showEdit = false" />
|
||||||
|
<detail-popup v-if="showDetail" ref="detailRef" :dict-data="dictData" @success="getLists"
|
||||||
|
@close="showDetail = false" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -138,10 +118,13 @@ import { apiCashierclassLists, apiCashierclassDelete } from '@/api/cashierclass'
|
||||||
import { timeFormat } from '@/utils/util'
|
import { timeFormat } from '@/utils/util'
|
||||||
import feedback from '@/utils/feedback'
|
import feedback from '@/utils/feedback'
|
||||||
import EditPopup from './edit.vue'
|
import EditPopup from './edit.vue'
|
||||||
|
import DetailPopup from './details.vue'
|
||||||
|
|
||||||
const editRef = shallowRef<InstanceType<typeof EditPopup>>()
|
const editRef = shallowRef<InstanceType<typeof EditPopup>>()
|
||||||
|
const detailRef = shallowRef<InstanceType<typeof EditPopup>>()
|
||||||
// 是否显示编辑框
|
// 是否显示编辑框
|
||||||
const showEdit = ref(false)
|
const showEdit = ref(false)
|
||||||
|
const showDetail = ref(false)
|
||||||
|
|
||||||
|
|
||||||
// 查询条件
|
// 查询条件
|
||||||
|
@ -189,6 +172,14 @@ const handleEdit = async (data: any) => {
|
||||||
editRef.value?.setFormData(data)
|
editRef.value?.setFormData(data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 详情
|
||||||
|
const handleDetail = async (data: any) => {
|
||||||
|
showDetail.value = true
|
||||||
|
await nextTick()
|
||||||
|
detailRef.value?.open('edit')
|
||||||
|
detailRef.value?.setFormData(data)
|
||||||
|
}
|
||||||
|
|
||||||
// 删除
|
// 删除
|
||||||
const handleDelete = async (id: number | any[]) => {
|
const handleDelete = async (id: number | any[]) => {
|
||||||
await feedback.confirm('确定要删除?')
|
await feedback.confirm('确定要删除?')
|
||||||
|
|
|
@ -14,7 +14,8 @@ import vueSetupExtend from 'vite-plugin-vue-setup-extend'
|
||||||
export default ({ mode }) => defineConfig({
|
export default ({ mode }) => defineConfig({
|
||||||
base: '/admin/',
|
base: '/admin/',
|
||||||
server: {
|
server: {
|
||||||
host: '0.0.0.0'
|
host: '0.0.0.0',
|
||||||
|
open:true
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
vue(),
|
vue(),
|
||||||
|
|
Loading…
Reference in New Issue