|
@@ -62,6 +62,12 @@ const Upsert = useUpsert({
|
|
component: { name: 'el-input', props: { clearable: true } },
|
|
component: { name: 'el-input', props: { clearable: true } },
|
|
required: true
|
|
required: true
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ label: '城市',
|
|
|
|
+ prop: 'city',
|
|
|
|
+ component: { name: 'el-input', props: { clearable: true } },
|
|
|
|
+ required: true
|
|
|
|
+ },
|
|
{
|
|
{
|
|
label: '地址',
|
|
label: '地址',
|
|
prop: 'address_line',
|
|
prop: 'address_line',
|
|
@@ -89,8 +95,11 @@ const Upsert = useUpsert({
|
|
{
|
|
{
|
|
label: '证书类型',
|
|
label: '证书类型',
|
|
prop: 'certificate_type',
|
|
prop: 'certificate_type',
|
|
- component: { name: 'el-checkbox-group', options: [], props: {} },
|
|
|
|
- value: [],
|
|
|
|
|
|
+ component: {
|
|
|
|
+ name: 'el-select',
|
|
|
|
+ options: [],
|
|
|
|
+ props: { clearable: true }
|
|
|
|
+ },
|
|
required: true
|
|
required: true
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -126,15 +135,37 @@ const Upsert = useUpsert({
|
|
},
|
|
},
|
|
required: true
|
|
required: true
|
|
},
|
|
},
|
|
- { label: 'ID', prop: 'merchant', hook: 'number', component: { name: 'el-input-number' } }
|
|
|
|
- ]
|
|
|
|
|
|
+ () => ({
|
|
|
|
+ label: 'ID',
|
|
|
|
+ prop: 'merchant',
|
|
|
|
+ hook: 'number',
|
|
|
|
+ component: { name: 'el-input-number' },
|
|
|
|
+ hidden(options) {
|
|
|
|
+ return Upsert.value?.mode === 'add';
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ ],
|
|
|
|
+ async onOpen() {
|
|
|
|
+ const typesObj = await service.dict.info.data({
|
|
|
|
+ types: ['certificate_type']
|
|
|
|
+ });
|
|
|
|
+ Upsert.value?.setOptions(
|
|
|
|
+ 'certificate_type',
|
|
|
|
+ typesObj['certificate_type'].map(e => {
|
|
|
|
+ return {
|
|
|
|
+ label: e.name || '',
|
|
|
|
+ value: e.value
|
|
|
|
+ };
|
|
|
|
+ })
|
|
|
|
+ );
|
|
|
|
+ }
|
|
});
|
|
});
|
|
|
|
|
|
// cl-table
|
|
// cl-table
|
|
const Table = useTable({
|
|
const Table = useTable({
|
|
columns: [
|
|
columns: [
|
|
{ type: 'selection' },
|
|
{ type: 'selection' },
|
|
- { label: '商户ID', prop: 'mch_id', minWidth: 140 },
|
|
|
|
|
|
+ { label: '商户ID', prop: 'merchantId', minWidth: 140 },
|
|
{ label: '名字', prop: 'first_name', minWidth: 140 },
|
|
{ label: '名字', prop: 'first_name', minWidth: 140 },
|
|
{ label: '姓氏', prop: 'last_name', minWidth: 140 },
|
|
{ label: '姓氏', prop: 'last_name', minWidth: 140 },
|
|
{
|
|
{
|