fix: 股票信息自测问题修改。

This commit is contained in:
tianyongbao
2024-08-13 18:13:44 +08:00
parent abc31138c9
commit ffc42d6f5b
5 changed files with 12 additions and 27 deletions

View File

@@ -3,7 +3,7 @@
<u-navbar
leftIconSize="40rpx"
leftIconColor="#333333"
title="信用卡分期账单还款明细"
title="信用卡分期还款明细"
>
</u-navbar>
<view class="section">
@@ -75,7 +75,7 @@ import {
import {reactive ,toRefs,ref,computed ,getCurrentInstance }from "vue";
const datePickShow = ref(false)
const showTeam = ref(false)
const title = ref("信用卡分期账单还款明细")
const title = ref("信用卡分期还款明细")
const postingStateList = ref([])
const data = reactive({
form: {},
@@ -94,9 +94,9 @@ onLoad((option) => {
form.value.installmentHistoryId = option.installmentHistoryId
form.value.name = option.name
if(form.value.id!=null){
title.value="信用卡分期账单还款明细-修改"
title.value="信用卡分期还款明细-修改"
}else{
title.value="信用卡分期账单还款明细-新增"
title.value="信用卡分期还款明细-新增"
}
getDict()
})
@@ -160,16 +160,7 @@ onLoad((option) => {
updateInstallmentDetail(form.value).then(res => {
proxy.$refs['uToast'].show({
message: '修改成功', complete() {
uni.navigateTo({ url: `/pages/work/bill/creditInstallmentHistory/detailsAddEdit?id=${item.id}&installmentHistoryId=${form.value.installmentHistoryId}&name=${form.value.name}` })
}
})
})
}else {
addInstallmentDetail(form.value).then(res => {
proxy.$refs['uToast'].show({
message: '新增成功', complete() {
uni.navigateTo({ url: `/pages/work/bill/creditInstallmentHistory/detailsAddEdit?id=${item.id}&installmentHistoryId=${form.value.installmentHistoryId}&name=${form.value.name}` })
uni.navigateTo({ url: `/pages/work/bill/creditInstallmentHistory/details?id=${form.value.installmentHistoryId}&name=${form.value.bankCardLendName}` })
}
})

View File

@@ -157,18 +157,12 @@ onLoad((option) => {
function submit() {
proxy.$refs['uForm'].validate().then(() => {
if (form.value.id != null) {
updateInstallmentDetail(form.value).then(res => {
proxy.$refs['uToast'].show({
message: '修改成功', complete() {
uni.navigateTo({ url: `/pages/work/bill/onlineLendHistory/detailsAddEdit?id=${item.id}&installmentHistoryId=${form.value.installmentHistoryId}&name=${form.value.name}` })
}
})
})
}else {
addInstallmentDetail(form.value).then(res => {
proxy.$refs['uToast'].show({
message: '新增成功', complete() {
uni.navigateTo({ url: `/pages/work/bill/onlineLendHistory/detailsAddEdit?id=${item.id}&installmentHistoryId=${queryParams.value.installmentHistoryId}&name=${queryParams.value.name}` })
uni.navigateTo({ url: `/pages/work/bill/onlineLendHistory/details?id=${form.value.installmentHistoryId}&name=${form.value.bankCardLendName}` })
}
})
})