Handy_Cao %!s(int64=2) %!d(string=hai) anos
pai
achega
72b9fbe632

+ 18 - 0
public/config/router.json

@@ -690,6 +690,24 @@
                         ]
                     }
                 ]
+            },
+            {
+                "authType": 1,
+                "sort": 5,
+                "title": "出入金申请",
+                "code": "query_inoutapply",
+                "url": "inoutapply",
+                "urlType": 1,
+                "component": "views/query/inoutapply/index.vue",
+                "children": [
+                    {
+                        "authType": 2,
+                        "sort": 1,
+                        "title": "当前记录",
+                        "code": "query_inoutapply_list",
+                        "component": "views/query/inoutapply/list/index.vue"
+                    }
+                ]
             }
         ]
     },

+ 3 - 1
src/packages/mobile/views/order/performance/components/breach/Index.vue

@@ -20,7 +20,9 @@
                 </CellGroup>
             </Form>
             <template #footer>
-                <Button type="danger" block round @click="contracted">申请违约</Button>
+                <div class="g-form__footer inset">
+                    <Button type="danger" block round @click="contracted">申请违约</Button>
+                </div>
             </template>
         </app-view>
     </app-modal>

+ 5 - 3
src/packages/mobile/views/order/performance/components/detail/Index.vue

@@ -49,10 +49,12 @@
                 </Dialog>
             </Form>
             <template #footer>
-                <Button type="primary" v-if="selectedRow.buyorsell === selectedRow.executeside - 1" block round
+                <div class="g-form__footer inset">
+                    <Button type="primary" v-if="selectedRow.buyorsell === selectedRow.executeside - 1" block round
                     @click="showConfirm(true)">延期申请</Button>
-                <Button type="warning" v-if="selectedRow.buyorsell === selectedRow.executeside - 1" block round
-                    @click="showConfirm(false)">立即执行</Button>
+                    <Button type="danger" v-if="selectedRow.buyorsell === selectedRow.executeside - 1" block round
+                        @click="showConfirm(false)">立即执行</Button>
+                </div>
             </template>
         </app-view>
     </app-modal>

+ 3 - 1
src/packages/mobile/views/order/performance/components/modify/Index.vue

@@ -18,7 +18,9 @@
                 </CellGroup>
             </Form>
             <template #footer>
-                <Button type="primary" block round @click="contracted">修改信息</Button>
+                <div class="g-form__footer inset">
+                    <Button type="danger" block round @click="contracted">修改信息</Button>
+                </div>
             </template>
         </app-view>
         <app-contact v-model:show="showContact" @change="contactChange" />

+ 8 - 0
src/packages/pc/views/query/inoutapply/index.vue

@@ -0,0 +1,8 @@
+<!-- 出入金明细 -->
+<template>
+    <app-auth-component direction="bottom" />
+</template>
+
+<script lang="ts" setup>
+import AppAuthComponent from '@pc/components/modules/auth-component/index.vue'
+</script>

+ 42 - 0
src/packages/pc/views/query/inoutapply/list/index.vue

@@ -0,0 +1,42 @@
+<!-- 出入金申请 - 当前申请嘻嘻 -->
+<template>
+    <app-table :data="dataList" v-model:columns="tableColumns" :loading="loading">
+        <!-- 申请类型 -->
+        <template #executetype="{ value }">
+            {{ getInOutExecuteTypeName(value) }}
+        </template>
+        <!-- 状态 -->
+        <template #applystatus="{ value }">
+            {{ getInOutApplyStatusName(value) }}
+        </template>
+        <!-- 申请时间 -->
+        <template #updatetime="{ value }">
+            {{ formatDate(value) }}
+        </template>
+    </app-table>
+</template>
+
+<script lang="ts" setup>
+import { shallowRef } from 'vue'
+import { formatDate } from '@/filters'
+import { useRequest } from '@/hooks/request'
+import { queryAccountInOutApply } from '@/services/api/bank'
+import AppTable from '@pc/components/base/table/index.vue'
+import { getInOutApplyStatusName, getInOutExecuteTypeName } from '@/constants/order'
+
+const { loading, dataList } = useRequest(queryAccountInOutApply, {})
+
+const tableColumns = shallowRef<Model.TableColumn[]>([
+    { prop: 'extoperateid', label: '流水号' },
+    { prop: 'amount', label: '金额' },
+    { prop: 'executetype', label: '申请类型' },
+    { prop: 'applystatus', label: '状态' },
+    { prop: 'accountname', label: '姓名' },
+    { prop: 'accountcode', label: '资金账号' },
+    { prop: 'bankname', label: '开户银行' },
+    { prop: 'bankaccountno', label: '卡号' },
+    { prop: 'charge', label: '手续费' },
+    { prop: 'updatetime', label: '申请时间' },
+    { prop: 'remark2', label: '备注' }
+])
+</script>