|
@@ -63,14 +63,15 @@ const Upsert = useUpsert({
|
|
|
width: "800px"
|
|
|
},
|
|
|
props: {
|
|
|
- labelWidth: "100px"
|
|
|
+ labelWidth: "110px"
|
|
|
},
|
|
|
items: [
|
|
|
{
|
|
|
prop: "name",
|
|
|
label: "通道名",
|
|
|
required: true,
|
|
|
- component: { name: "el-input" }
|
|
|
+ component: { name: "el-input" },
|
|
|
+ span: 12
|
|
|
},
|
|
|
{
|
|
|
prop: "code",
|
|
@@ -79,6 +80,16 @@ const Upsert = useUpsert({
|
|
|
component: { name: "el-input" },
|
|
|
span: 12
|
|
|
},
|
|
|
+ {
|
|
|
+ prop: "payType",
|
|
|
+ label: "支付方式",
|
|
|
+ required: true,
|
|
|
+ component: {
|
|
|
+ name: "el-select",
|
|
|
+ options: [],
|
|
|
+ },
|
|
|
+ span: 12
|
|
|
+ },
|
|
|
{
|
|
|
prop: "service",
|
|
|
label: "代码服务",
|
|
@@ -88,13 +99,33 @@ const Upsert = useUpsert({
|
|
|
},
|
|
|
{
|
|
|
prop: "rate",
|
|
|
- label: "手续费(%)",
|
|
|
+ label: "费率(%)",
|
|
|
component: {
|
|
|
name: "el-input-number",
|
|
|
props: { style: { width: "200px" }, precision: 2, min: 0 }
|
|
|
},
|
|
|
required: true
|
|
|
},
|
|
|
+ {
|
|
|
+ prop: "basicFee",
|
|
|
+ label: "单笔固定费用",
|
|
|
+ required: true,
|
|
|
+ component: {
|
|
|
+ name: "el-input-number",
|
|
|
+ props: { style: { width: "200px" }, precision: 2, min: 0 }
|
|
|
+ },
|
|
|
+ span: 12
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "feeMin",
|
|
|
+ label: "单笔最低费用",
|
|
|
+ required: true,
|
|
|
+ component: {
|
|
|
+ name: "el-input-number",
|
|
|
+ props: { style: { width: "200px" }, precision: 2, min: 0 }
|
|
|
+ },
|
|
|
+ span: 12
|
|
|
+ },
|
|
|
{
|
|
|
prop: "min",
|
|
|
label: "单笔限额",
|
|
@@ -108,7 +139,19 @@ const Upsert = useUpsert({
|
|
|
label: "备注",
|
|
|
component: { name: "el-input", props: { type: "textarea", rows: 4 } }
|
|
|
}
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ async onOpen() {
|
|
|
+ const data = await service.dj.comm.getPayTypes({ type: 1 });
|
|
|
+ Upsert.value?.setOptions(
|
|
|
+ 'payType',
|
|
|
+ data.map((item: any) => {
|
|
|
+ return {
|
|
|
+ label: item.payType + ' ( ' + item.currencies + ' ) ',
|
|
|
+ value: item.payType
|
|
|
+ }
|
|
|
+ })
|
|
|
+ );
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
// cl-table
|
|
@@ -118,6 +161,7 @@ const Table = useTable({
|
|
|
{ type: "selection" },
|
|
|
{ prop: "name", label: "通道名" },
|
|
|
{ prop: "code", label: "通道编码" },
|
|
|
+ { prop: "payType", label: "支付方式" },
|
|
|
{ prop: "service", label: "代码服务" },
|
|
|
{
|
|
|
prop: "rate",
|
|
@@ -126,6 +170,8 @@ const Table = useTable({
|
|
|
return row.rate + "%";
|
|
|
}
|
|
|
},
|
|
|
+ { prop: "basicFee", label: "单笔固定费用" },
|
|
|
+ { prop: "feeMin", label: "单笔最低费用" },
|
|
|
{
|
|
|
prop: "min",
|
|
|
label: "单笔限额",
|