From a079ed7a15c08ebdff0d9d42c3106379b1e08e07 Mon Sep 17 00:00:00 2001 From: qdintc Date: Mon, 18 Aug 2025 07:55:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=AE=8C=E5=96=84=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../accounts/creditTransferRecord/addEdit.vue | 3 +- .../accounts/investTransferRecord/addEdit.vue | 37 +++++++++++++----- .../accounts/investTransferRecord/list.vue | 5 +++ .../bill/creditInstallmentHistory/details.vue | 2 + .../work/bill/creditQueryRecord/addEdit.vue | 39 +++++++++++++------ .../work/bill/creditQueryRecord/list.vue | 5 +++ .../work/bill/onlineLendHistory/details.vue | 2 + src/pages/work/index.vue | 5 +-- 8 files changed, 73 insertions(+), 25 deletions(-) diff --git a/src/pages/work/accounts/creditTransferRecord/addEdit.vue b/src/pages/work/accounts/creditTransferRecord/addEdit.vue index bc434d7..86c4b0c 100644 --- a/src/pages/work/accounts/creditTransferRecord/addEdit.vue +++ b/src/pages/work/accounts/creditTransferRecord/addEdit.vue @@ -90,7 +90,8 @@ const data = reactive({ commission: null, amount: null, actualAmount: null, - dealType: null, + dealType: '6', + dealTypeName: '信用卡还款', createBy: null, createTime: null, updateBy: null, diff --git a/src/pages/work/accounts/investTransferRecord/addEdit.vue b/src/pages/work/accounts/investTransferRecord/addEdit.vue index 38d70ac..a5171e9 100644 --- a/src/pages/work/accounts/investTransferRecord/addEdit.vue +++ b/src/pages/work/accounts/investTransferRecord/addEdit.vue @@ -71,6 +71,7 @@ const showDealType = ref(false) const title = ref("投资账户记账") const futruesStocksList = ref([]) const dealTypeList = ref([]) +const flag = ref('add') const data = reactive({ form: { id: null, @@ -107,11 +108,16 @@ const { form, queryFutruesStocksParams, rules} = toRefs(data) onLoad((option) => { form.value.id = option.id - if(form.value.id!=null){ - title.value="投资账户记账-修改" - }else{ - title.value="投资账户记账-新增" - } + flag.value = option.flag + if(flag.value==null){ + if(form.value.id!=null){ + title.value="投资账户记账-修改" + }else{ + title.value="投资账户记账-新增" + } + }else{ + title.value="投资账户记账-复制" + } getData() }) onReady(() => { @@ -192,13 +198,24 @@ onLoad((option) => { function submit() { proxy.$refs['uForm'].validate().then(() => { if (form.value.id != null) { + if(flag.value==null){ updateAccountsTransferRecord(form.value).then(res => { - proxy.$refs['uToast'].show({ - message: '修改成功', complete() { - uni.navigateTo({ url: `/pages/work/accounts/investTransferRecord/list` }) - } - }) + proxy.$refs['uToast'].show({ + message: '修改成功', complete() { + uni.navigateTo({ url: `/pages/work/accounts/investTransferRecord/list` }) + } }) + }) + }else { + form.value.id == null + addAccountsTransferRecord(form.value).then(res => { + proxy.$refs['uToast'].show({ + message: '新增成功', complete() { + uni.navigateTo({ url: `/pages/work/accounts/investTransferRecord/list` }) + } + }) + }) + } }else { addAccountsTransferRecord(form.value).then(res => { proxy.$refs['uToast'].show({ diff --git a/src/pages/work/accounts/investTransferRecord/list.vue b/src/pages/work/accounts/investTransferRecord/list.vue index da9a851..768c3b4 100644 --- a/src/pages/work/accounts/investTransferRecord/list.vue +++ b/src/pages/work/accounts/investTransferRecord/list.vue @@ -102,6 +102,7 @@ 修改 + 复制 删除 @@ -267,6 +268,10 @@ function dictStr(val, arr) { uni.navigateTo({ url: `/pages/work/accounts/investTransferRecord/addEdit?id=${item.id}` }) isShow.value = true } + function handleCopy(item) { + uni.navigateTo({ url: `/pages/work/accounts/investTransferRecord/addEdit?flag=copy&id=${item.id}` }) + isShow.value = true + } function handleAdd() { uni.navigateTo({ url: `/pages/work/accounts/investTransferRecord/addEdit` }) isShow.value = true diff --git a/src/pages/work/bill/creditInstallmentHistory/details.vue b/src/pages/work/bill/creditInstallmentHistory/details.vue index 62cc991..fd164c1 100644 --- a/src/pages/work/bill/creditInstallmentHistory/details.vue +++ b/src/pages/work/bill/creditInstallmentHistory/details.vue @@ -52,6 +52,8 @@ + +