fix: 功能优化完善。
This commit is contained in:
@@ -90,7 +90,8 @@ const data = reactive({
|
||||
commission: null,
|
||||
amount: null,
|
||||
actualAmount: null,
|
||||
dealType: null,
|
||||
dealType: '6',
|
||||
dealTypeName: '信用卡还款',
|
||||
createBy: null,
|
||||
createTime: null,
|
||||
updateBy: null,
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -102,6 +102,7 @@
|
||||
<view class="operate" >
|
||||
<!-- <view class="btn filling" @click="enterDetails(item)">查看</view> -->
|
||||
<view class="btn filling" @click="handleEdit(item)">修改</view>
|
||||
<view class="btn filling" @click="handleCopy(item)">复制</view>
|
||||
<view class="btn filling" @click="handleDelete(item)">删除</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -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
|
||||
|
||||
@@ -52,6 +52,8 @@
|
||||
<u-picker itemHeight="88" :show="settingPickShow" :columns="settingColumns" keyName="settingName"
|
||||
@confirm="settingConfirm" @cancel="settingCancel"></u-picker>
|
||||
</view>
|
||||
<!-- 悬停按钮返回工作台-->
|
||||
<suspend></suspend>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
||||
@@ -65,6 +65,7 @@ const datePickShow = ref(false)
|
||||
const showTeam = ref(false)
|
||||
const title = ref("征信记录查询")
|
||||
const typeList = ref([])
|
||||
const flag = ref('add')
|
||||
const data = reactive({
|
||||
form: {},
|
||||
rules: {
|
||||
@@ -76,12 +77,17 @@ const data = reactive({
|
||||
const { form, rules} = toRefs(data)
|
||||
|
||||
onLoad((option) => {
|
||||
form.value.id = option.id
|
||||
if(form.value.id!=null){
|
||||
title.value="征信记录查询-修改"
|
||||
}else{
|
||||
title.value="征信记录查询-新增"
|
||||
}
|
||||
form.value.id = option.id
|
||||
flag.value = option.flag
|
||||
if(flag.value==null){
|
||||
if(form.value.id!=null){
|
||||
title.value="征信记录查询-修改"
|
||||
}else{
|
||||
title.value="征信记录查询-新增"
|
||||
}
|
||||
}else{
|
||||
title.value="征信记录查询-复制"
|
||||
}
|
||||
getDict()
|
||||
})
|
||||
onReady(() => {
|
||||
@@ -141,13 +147,24 @@ onLoad((option) => {
|
||||
function submit() {
|
||||
proxy.$refs['uForm'].validate().then(() => {
|
||||
if (form.value.id != null) {
|
||||
if(flag.value==null){
|
||||
updateCreditQueryRecord(form.value).then(res => {
|
||||
proxy.$refs['uToast'].show({
|
||||
message: '修改成功', complete() {
|
||||
uni.navigateTo({ url: `/pages/work/bill/creditQueryRecord/list` })
|
||||
}
|
||||
})
|
||||
proxy.$refs['uToast'].show({
|
||||
message: '修改成功', complete() {
|
||||
uni.navigateTo({ url: `/pages/work/bill/creditQueryRecord/list` })
|
||||
}
|
||||
})
|
||||
})
|
||||
}else {
|
||||
form.value.id == null
|
||||
addCreditQueryRecord(form.value).then(res => {
|
||||
proxy.$refs['uToast'].show({
|
||||
message: '新增成功', complete() {
|
||||
uni.navigateTo({ url: `/pages/work/bill/creditQueryRecord/list` })
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
}else {
|
||||
addCreditQueryRecord(form.value).then(res => {
|
||||
proxy.$refs['uToast'].show({
|
||||
|
||||
@@ -59,6 +59,7 @@
|
||||
<view class="operate" >
|
||||
<!-- <view class="btn filling" @click="enterDetails(item)">查看</view > -->
|
||||
<view class="btn filling" @click="handleEdit(item)">修改</view>
|
||||
<view class="btn filling" @click="handleCopy(item)">复制</view>
|
||||
<view class="btn filling" @click="handleDelete(item)">删除</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -215,6 +216,10 @@ function selectStatus(item) {
|
||||
uni.navigateTo({ url: `/pages/work/bill/creditQueryRecord/addEdit?id=${item.id}` })
|
||||
isShow.value = true
|
||||
}
|
||||
function handleCopy(item) {
|
||||
uni.navigateTo({ url: `/pages/work/bill/creditQueryRecord/addEdit?flag=copy&id=${item.id}` })
|
||||
isShow.value = true
|
||||
}
|
||||
function handleAdd() {
|
||||
uni.navigateTo({ url: `/pages/work/bill/creditQueryRecord/addEdit` })
|
||||
isShow.value = true
|
||||
|
||||
@@ -52,6 +52,8 @@
|
||||
<u-picker itemHeight="88" :show="settingPickShow" :columns="settingColumns" keyName="settingName"
|
||||
@confirm="settingConfirm" @cancel="settingCancel"></u-picker>
|
||||
</view>
|
||||
<!-- 悬停按钮返回工作台-->
|
||||
<suspend></suspend>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
||||
@@ -81,7 +81,7 @@ import auth from "@/plugins/auth"; // 建议使用auth进行鉴权操作
|
||||
{ path: '/pages/work/accounts/creditTransferRecord/list', text: '信用卡还款', icon: 'arrow-left', permission: 'invest:creditCard' },
|
||||
{ path: '/pages/work/accounts/investAccountDeal/list', text: '投资交易记录', icon: 'chatboxes', permission: 'invest:futureStocks:list' },
|
||||
{ path: '/pages/work/accounts/investTransferRecord/list', text: '投资账户记账', icon: 'auth-filled', permission: 'invest:futureStocks:list' },
|
||||
{ path: '/pages/work/accounts/debitTransferRecord/list', text: '储蓄账户记账', icon: 'tune', permission: 'invest:debitCard' },
|
||||
{ path: '/pages/work/accounts/debitTransferRecord/list', text: '储蓄账户转账', icon: 'tune', permission: 'invest:debitCard' },
|
||||
// { path: '/pages/work/accounts/accounts/commonList', text: '记账账户', icon: 'staff', permission: 'invest:accounts:list' },
|
||||
{ path: '/pages/work/bill/creditCardBill/list', text: '信用卡账单', icon: 'list', permission: 'invest:creditCardBill:list' },
|
||||
{ path: '/pages/work/bill/onlineLendHistory/list', text: '贷款账单', icon: 'settings', permission: 'invest:onlineLend' },
|
||||
@@ -104,8 +104,7 @@ import auth from "@/plugins/auth"; // 建议使用auth进行鉴权操作
|
||||
// { path: '/pages/work/bill/onlineLendHistory/list', text: '贷款账单', icon: 'settings', permission: 'invest:onlineLend' },
|
||||
{ path: '/pages/work/bill/peopleLendHistory/list', text: '人情账单', icon: 'staff-filled', permission: 'invest:onlineLend' },
|
||||
{ path: '/pages/work/bill/futuresBill/list', text: '期货账单', icon: 'map', permission: 'invest:futureStocksBill:list' },
|
||||
{ path: '/pages/work/bill/stocksBill/list', text: '股票账单', icon: 'paperplane', permission: 'invest:futureStocksBill:list' },
|
||||
{ path: '/pages/work/bill/creditQueryRecord/list', text: '征信查询记录', icon: 'search', permission: 'invest:creditQueryRecord:list' }
|
||||
{ path: '/pages/work/bill/stocksBill/list', text: '股票账单', icon: 'paperplane', permission: 'invest:futureStocksBill:list' }
|
||||
])
|
||||
const accountGridList=ref([
|
||||
{ path: '/pages/work/accounts/accounts/list', text: '记账账户', icon: 'staff', permission: 'invest:accounts:list' },
|
||||
|
||||
Reference in New Issue
Block a user