fix: 自测bug修复。
This commit is contained in:
@@ -145,6 +145,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
|
{
|
||||||
|
"path": "pages/work/accounts/debitTransferRecord/addEdit",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "储蓄账户记账"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
,
|
||||||
{
|
{
|
||||||
"path": "pages/work/accounts/lendTransferRecord/list",
|
"path": "pages/work/accounts/lendTransferRecord/list",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
@@ -184,8 +184,8 @@ function handleCreditCard() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
function handleCreditCardConfirm(e) {
|
function handleCreditCardConfirm(e) {
|
||||||
form.value.outAccountName = e.value[0].nameCode
|
form.value.inAccountName = e.value[0].nameCode
|
||||||
form.value.outAccountId = e.value[0].id
|
form.value.inAccountId= e.value[0].id
|
||||||
showCreditCard.value = false
|
showCreditCard.value = false
|
||||||
}
|
}
|
||||||
function handleCreditCardCancel() {
|
function handleCreditCardCancel() {
|
||||||
|
|||||||
@@ -129,20 +129,10 @@ onLoad((option) => {
|
|||||||
})
|
})
|
||||||
listAccounts(queryOutAccountParams.value).then((response) => {
|
listAccounts(queryOutAccountParams.value).then((response) => {
|
||||||
outAccountList.value = [response.rows]
|
outAccountList.value = [response.rows]
|
||||||
})
|
|
||||||
// 类型
|
|
||||||
getDicts('credit_repayment_type').then(res => {
|
|
||||||
dealTypeList.value =[res.data]
|
|
||||||
})
|
})
|
||||||
if(form.value.id!=null){
|
if(form.value.id!=null){
|
||||||
getAccountsTransferRecord(form.value.id).then(res => {
|
getAccountsTransferRecord(form.value.id).then(res => {
|
||||||
form.value = res.data
|
form.value = res.data
|
||||||
|
|
||||||
// 交易类型
|
|
||||||
getDicts('credit_repayment_type').then(result => {
|
|
||||||
form.value.amount = res.data.amount
|
|
||||||
form.value.dealTypeName=dictStr(form.value.dealType, result.data)
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -196,7 +186,7 @@ function handleInAccount() {
|
|||||||
updateAccountsTransferRecord(form.value).then(res => {
|
updateAccountsTransferRecord(form.value).then(res => {
|
||||||
proxy.$refs['uToast'].show({
|
proxy.$refs['uToast'].show({
|
||||||
message: '修改成功', complete() {
|
message: '修改成功', complete() {
|
||||||
uni.navigateTo({ url: `/pages/work/accounts/creditTransferRecord/list` })
|
uni.navigateTo({ url: `/pages/work/accounts/debitTransferRecord/list` })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@@ -204,7 +194,7 @@ function handleInAccount() {
|
|||||||
addAccountsTransferRecord(form.value).then(res => {
|
addAccountsTransferRecord(form.value).then(res => {
|
||||||
proxy.$refs['uToast'].show({
|
proxy.$refs['uToast'].show({
|
||||||
message: '新增成功', complete() {
|
message: '新增成功', complete() {
|
||||||
uni.navigateTo({ url: `/pages/work/accounts/creditTransferRecord/list` })
|
uni.navigateTo({ url: `/pages/work/accounts/debitTransferRecord/list` })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -12,12 +12,12 @@
|
|||||||
<u--form labelPosition="left" :model="form" :rules="rules" ref="uForm" label-width="auto"
|
<u--form labelPosition="left" :model="form" :rules="rules" ref="uForm" label-width="auto"
|
||||||
:labelStyle="{ color: '#333333', fontSize: '30rpx' }">
|
:labelStyle="{ color: '#333333', fontSize: '30rpx' }">
|
||||||
<u-form-item label="借贷账户" prop="outAccountName" required @click="handleOutAccount">
|
<u-form-item label="借贷账户" prop="outAccountName" required @click="handleOutAccount">
|
||||||
<u--input v-model="form.outAccountName" disabled disabledColor="#ffffff" placeholder="请选择转出账户"
|
<u--input v-model="form.outAccountName" disabled disabledColor="#ffffff" placeholder="请选择借贷账户"
|
||||||
inputAlign="right" border="none"></u--input>
|
inputAlign="right" border="none"></u--input>
|
||||||
<u-icon slot="right" name="arrow-down"></u-icon>
|
<u-icon slot="right" name="arrow-down"></u-icon>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="储蓄卡" prop="inAccountName" required @click="handleInAccount">
|
<u-form-item label="储蓄卡" prop="inAccountName" required @click="handleInAccount">
|
||||||
<u--input v-model="form.inAccountName" disabled disabledColor="#ffffff" placeholder="请选择转入账户"
|
<u--input v-model="form.inAccountName" disabled disabledColor="#ffffff" placeholder="请选择储蓄卡"
|
||||||
inputAlign="right" border="none"></u--input>
|
inputAlign="right" border="none"></u--input>
|
||||||
<u-icon slot="right" name="arrow-down"></u-icon>
|
<u-icon slot="right" name="arrow-down"></u-icon>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
@@ -90,7 +90,7 @@ const data = reactive({
|
|||||||
form: {
|
form: {
|
||||||
id: null,
|
id: null,
|
||||||
name: null,
|
name: null,
|
||||||
type: '4',
|
type: '5',
|
||||||
outAccountId: null,
|
outAccountId: null,
|
||||||
inAccountId: null,
|
inAccountId: null,
|
||||||
posId: null,
|
posId: null,
|
||||||
|
|||||||
Reference in New Issue
Block a user