Explorar o código

feat(): 费率新增修改时,方法由输入调整为下拉选择

zerogo hai 7 meses
pai
achega
ccf5412079
Modificáronse 1 ficheiros con 28 adicións e 11 borrados
  1. 28 11
      src/modules/payment/views/rate.vue

+ 28 - 11
src/modules/payment/views/rate.vue

@@ -28,16 +28,11 @@
 		<cl-upsert ref="Upsert">
 			<template #slot-currency="{ scope }">
 				<el-select v-model="scope.currency" clearable>
-					<el-option
-						v-for="item in currencyList.filter(item =>
-							channelList
-								.find(v => v.code == scope.channelId)
-								?.supportedCurrencies.includes(item.id)
-						)"
-						:key="item.id"
-						:label="item.label"
-						:value="item.value"
-					/>
+					<el-option v-for="item in currencyList.filter(item =>
+				channelList
+					.find(v => v.code == scope.channelId)
+					?.supportedCurrencies.includes(item.id)
+			)" :key="item.id" :label="item.label" :value="item.value" />
 				</el-select>
 			</template>
 		</cl-upsert>
@@ -111,7 +106,29 @@ const Upsert = useUpsert({
 		{
 			label: '方法',
 			prop: 'method',
-			component: { name: 'el-input' },
+			component: {
+				name: 'el-select',
+				options: [
+					{ label: 'MOMO', value: 'MOMO' },
+					{ label: 'BANK', value: 'BANK' },
+					{ label: 'TED', value: 'TED' },
+					{ label: 'SPEI', value: 'SPEI' },
+					{ label: 'OVO', value: 'OVO' },
+					{ label: 'DANA', value: 'DANA' },
+					{ label: 'QRIS', value: 'QRIS' },
+					{ label: 'CREDITCARD', value: 'CREDITCARD' },
+					{ label: 'SURED', value: 'SURED' },
+					{ label: 'EFECTY', value: 'EFECTY' },
+					{ label: 'PSE', value: 'PSE' },
+					{ label: 'KHIPU', value: 'KHIPU' },
+					{ label: 'CASH', value: 'CASH' },
+					{ label: 'CHAPS', value: 'CHAPS' },
+					{ label: 'FASTERPAYMENTS', value: 'FASTERPAYMENTS' },
+					{ label: 'SEPA', value: 'SEPA' },
+					{ label: 'SEPAINSTANT', value: 'SEPAINSTANT' }
+				],
+				props: { clearable: true }
+			},
 			required: true
 		},
 		{