Handy_Cao 2 anni fa
parent
commit
a907de8911

+ 1 - 1
src/packages/pc/views/account/address/components/edit/index.vue

@@ -8,7 +8,7 @@
             </el-form-item>
             <el-form-item label="证件类型" prop="CardTypeID">
                 <el-select v-model="formData.CardTypeID">
-                    <el-option :label="item.label" :value="item.value" v-for="(item, index) in certificateTypeList"
+                    <el-option :label="item.label" :value="item.value" v-for="(item, index) in certificateTypeList.slice(0, 1)"
                         :key="index" />
                 </el-select>
             </el-form-item>

+ 1 - 1
src/packages/pc/views/account/address/components/new/index.vue

@@ -8,7 +8,7 @@
             </el-form-item>
             <el-form-item label="证件类型" prop="CardTypeID">
                 <el-select v-model="formData.CardTypeID">
-                    <el-option :label="item.label" :value="item.value" v-for="(item, index) in certificateTypeList"
+                    <el-option :label="item.label" :value="item.value" v-for="(item, index) in certificateTypeList.slice(0, 1)"
                         :key="index" />
                 </el-select>
             </el-form-item>

+ 1 - 8
src/packages/pc/views/account/sign/components/sign/index.vue

@@ -27,20 +27,13 @@
 </template>
 
 <script lang="ts" setup>
-import { ref, PropType } from 'vue'
+import { ref } from 'vue'
 import { ElMessage } from 'element-plus'
 import type { FormInstance, FormRules } from 'element-plus'
 import { useDoBankSign } from '@/business/bank'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 import { validateRules } from '@/constants/regex'
 
-defineProps({
-    selectedRow: {
-        type: Object as PropType<Model.BankAccountSignRsp>,
-        required: true
-    }
-})
-
 const formRules: FormRules = {
     OpenBankAccId: [{
         message: '请选择银行信息',

+ 2 - 7
src/packages/pc/views/account/sign/index.vue

@@ -17,9 +17,9 @@
         <template #expand="{ row }">
             <div class="buttonbar">
                 <el-button v-if="row.signstatus === SignStatus.Signed" type="danger" size="small"
-                    @click="showComponent('cancel', row)">解约</el-button>
+                    @click="openComponent('cancel')">解约</el-button>
                 <el-button v-if="[SignStatus.Unsigned, SignStatus.Refuse, SignStatus.Signed].includes(row.signstatus)"
-                    type="primary" size="small" @click="showComponent('sign', row)">修改</el-button>
+                    type="primary" size="small" @click="openComponent('sign')">修改</el-button>
             </div>
         </template>
     </app-table>
@@ -64,11 +64,6 @@ const tableColumns = shallowRef<Model.TableColumn[]>([
     { prop: 'signstatus', label: '状态' },
 ])
 
-const showComponent = (componentName: string, row: Model.BankAccountSignRsp) => {
-    selectedRow.value = row
-    openComponent(componentName)
-}
-
 filterOptons.buttonList = [
     { lable: '添加签约账户', className: 'el-button--primary', onClick: () => openComponent('sign') },
 ]