fix: 功能优化完善。
This commit is contained in:
@@ -90,7 +90,8 @@ const data = reactive({
|
|||||||
commission: null,
|
commission: null,
|
||||||
amount: null,
|
amount: null,
|
||||||
actualAmount: null,
|
actualAmount: null,
|
||||||
dealType: null,
|
dealType: '6',
|
||||||
|
dealTypeName: '信用卡还款',
|
||||||
createBy: null,
|
createBy: null,
|
||||||
createTime: null,
|
createTime: null,
|
||||||
updateBy: null,
|
updateBy: null,
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ const showDealType = ref(false)
|
|||||||
const title = ref("投资账户记账")
|
const title = ref("投资账户记账")
|
||||||
const futruesStocksList = ref([])
|
const futruesStocksList = ref([])
|
||||||
const dealTypeList = ref([])
|
const dealTypeList = ref([])
|
||||||
|
const flag = ref('add')
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
form: {
|
form: {
|
||||||
id: null,
|
id: null,
|
||||||
@@ -107,11 +108,16 @@ const { form, queryFutruesStocksParams, rules} = toRefs(data)
|
|||||||
|
|
||||||
onLoad((option) => {
|
onLoad((option) => {
|
||||||
form.value.id = option.id
|
form.value.id = option.id
|
||||||
if(form.value.id!=null){
|
flag.value = option.flag
|
||||||
title.value="投资账户记账-修改"
|
if(flag.value==null){
|
||||||
}else{
|
if(form.value.id!=null){
|
||||||
title.value="投资账户记账-新增"
|
title.value="投资账户记账-修改"
|
||||||
}
|
}else{
|
||||||
|
title.value="投资账户记账-新增"
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
title.value="投资账户记账-复制"
|
||||||
|
}
|
||||||
getData()
|
getData()
|
||||||
})
|
})
|
||||||
onReady(() => {
|
onReady(() => {
|
||||||
@@ -192,13 +198,24 @@ onLoad((option) => {
|
|||||||
function submit() {
|
function submit() {
|
||||||
proxy.$refs['uForm'].validate().then(() => {
|
proxy.$refs['uForm'].validate().then(() => {
|
||||||
if (form.value.id != null) {
|
if (form.value.id != null) {
|
||||||
|
if(flag.value==null){
|
||||||
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/investTransferRecord/list` })
|
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 {
|
}else {
|
||||||
addAccountsTransferRecord(form.value).then(res => {
|
addAccountsTransferRecord(form.value).then(res => {
|
||||||
proxy.$refs['uToast'].show({
|
proxy.$refs['uToast'].show({
|
||||||
|
|||||||
@@ -102,6 +102,7 @@
|
|||||||
<view class="operate" >
|
<view class="operate" >
|
||||||
<!-- <view class="btn filling" @click="enterDetails(item)">查看</view> -->
|
<!-- <view class="btn filling" @click="enterDetails(item)">查看</view> -->
|
||||||
<view class="btn filling" @click="handleEdit(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 class="btn filling" @click="handleDelete(item)">删除</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -267,6 +268,10 @@ function dictStr(val, arr) {
|
|||||||
uni.navigateTo({ url: `/pages/work/accounts/investTransferRecord/addEdit?id=${item.id}` })
|
uni.navigateTo({ url: `/pages/work/accounts/investTransferRecord/addEdit?id=${item.id}` })
|
||||||
isShow.value = true
|
isShow.value = true
|
||||||
}
|
}
|
||||||
|
function handleCopy(item) {
|
||||||
|
uni.navigateTo({ url: `/pages/work/accounts/investTransferRecord/addEdit?flag=copy&id=${item.id}` })
|
||||||
|
isShow.value = true
|
||||||
|
}
|
||||||
function handleAdd() {
|
function handleAdd() {
|
||||||
uni.navigateTo({ url: `/pages/work/accounts/investTransferRecord/addEdit` })
|
uni.navigateTo({ url: `/pages/work/accounts/investTransferRecord/addEdit` })
|
||||||
isShow.value = true
|
isShow.value = true
|
||||||
|
|||||||
@@ -52,6 +52,8 @@
|
|||||||
<u-picker itemHeight="88" :show="settingPickShow" :columns="settingColumns" keyName="settingName"
|
<u-picker itemHeight="88" :show="settingPickShow" :columns="settingColumns" keyName="settingName"
|
||||||
@confirm="settingConfirm" @cancel="settingCancel"></u-picker>
|
@confirm="settingConfirm" @cancel="settingCancel"></u-picker>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- 悬停按钮返回工作台-->
|
||||||
|
<suspend></suspend>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ const datePickShow = ref(false)
|
|||||||
const showTeam = ref(false)
|
const showTeam = ref(false)
|
||||||
const title = ref("征信记录查询")
|
const title = ref("征信记录查询")
|
||||||
const typeList = ref([])
|
const typeList = ref([])
|
||||||
|
const flag = ref('add')
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
form: {},
|
form: {},
|
||||||
rules: {
|
rules: {
|
||||||
@@ -76,12 +77,17 @@ const data = reactive({
|
|||||||
const { form, rules} = toRefs(data)
|
const { form, rules} = toRefs(data)
|
||||||
|
|
||||||
onLoad((option) => {
|
onLoad((option) => {
|
||||||
form.value.id = option.id
|
form.value.id = option.id
|
||||||
if(form.value.id!=null){
|
flag.value = option.flag
|
||||||
title.value="征信记录查询-修改"
|
if(flag.value==null){
|
||||||
}else{
|
if(form.value.id!=null){
|
||||||
title.value="征信记录查询-新增"
|
title.value="征信记录查询-修改"
|
||||||
}
|
}else{
|
||||||
|
title.value="征信记录查询-新增"
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
title.value="征信记录查询-复制"
|
||||||
|
}
|
||||||
getDict()
|
getDict()
|
||||||
})
|
})
|
||||||
onReady(() => {
|
onReady(() => {
|
||||||
@@ -141,13 +147,24 @@ onLoad((option) => {
|
|||||||
function submit() {
|
function submit() {
|
||||||
proxy.$refs['uForm'].validate().then(() => {
|
proxy.$refs['uForm'].validate().then(() => {
|
||||||
if (form.value.id != null) {
|
if (form.value.id != null) {
|
||||||
|
if(flag.value==null){
|
||||||
updateCreditQueryRecord(form.value).then(res => {
|
updateCreditQueryRecord(form.value).then(res => {
|
||||||
proxy.$refs['uToast'].show({
|
proxy.$refs['uToast'].show({
|
||||||
message: '修改成功', complete() {
|
message: '修改成功', complete() {
|
||||||
uni.navigateTo({ url: `/pages/work/bill/creditQueryRecord/list` })
|
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 {
|
}else {
|
||||||
addCreditQueryRecord(form.value).then(res => {
|
addCreditQueryRecord(form.value).then(res => {
|
||||||
proxy.$refs['uToast'].show({
|
proxy.$refs['uToast'].show({
|
||||||
|
|||||||
@@ -59,6 +59,7 @@
|
|||||||
<view class="operate" >
|
<view class="operate" >
|
||||||
<!-- <view class="btn filling" @click="enterDetails(item)">查看</view > -->
|
<!-- <view class="btn filling" @click="enterDetails(item)">查看</view > -->
|
||||||
<view class="btn filling" @click="handleEdit(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 class="btn filling" @click="handleDelete(item)">删除</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -215,6 +216,10 @@ function selectStatus(item) {
|
|||||||
uni.navigateTo({ url: `/pages/work/bill/creditQueryRecord/addEdit?id=${item.id}` })
|
uni.navigateTo({ url: `/pages/work/bill/creditQueryRecord/addEdit?id=${item.id}` })
|
||||||
isShow.value = true
|
isShow.value = true
|
||||||
}
|
}
|
||||||
|
function handleCopy(item) {
|
||||||
|
uni.navigateTo({ url: `/pages/work/bill/creditQueryRecord/addEdit?flag=copy&id=${item.id}` })
|
||||||
|
isShow.value = true
|
||||||
|
}
|
||||||
function handleAdd() {
|
function handleAdd() {
|
||||||
uni.navigateTo({ url: `/pages/work/bill/creditQueryRecord/addEdit` })
|
uni.navigateTo({ url: `/pages/work/bill/creditQueryRecord/addEdit` })
|
||||||
isShow.value = true
|
isShow.value = true
|
||||||
|
|||||||
@@ -52,6 +52,8 @@
|
|||||||
<u-picker itemHeight="88" :show="settingPickShow" :columns="settingColumns" keyName="settingName"
|
<u-picker itemHeight="88" :show="settingPickShow" :columns="settingColumns" keyName="settingName"
|
||||||
@confirm="settingConfirm" @cancel="settingCancel"></u-picker>
|
@confirm="settingConfirm" @cancel="settingCancel"></u-picker>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- 悬停按钮返回工作台-->
|
||||||
|
<suspend></suspend>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<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/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/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/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/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/creditCardBill/list', text: '信用卡账单', icon: 'list', permission: 'invest:creditCardBill:list' },
|
||||||
{ path: '/pages/work/bill/onlineLendHistory/list', text: '贷款账单', icon: 'settings', permission: 'invest:onlineLend' },
|
{ 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/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/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/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/stocksBill/list', text: '股票账单', icon: 'paperplane', permission: 'invest:futureStocksBill:list' }
|
||||||
{ path: '/pages/work/bill/creditQueryRecord/list', text: '征信查询记录', icon: 'search', permission: 'invest:creditQueryRecord:list' }
|
|
||||||
])
|
])
|
||||||
const accountGridList=ref([
|
const accountGridList=ref([
|
||||||
{ path: '/pages/work/accounts/accounts/list', text: '记账账户', icon: 'staff', permission: 'invest:accounts:list' },
|
{ path: '/pages/work/accounts/accounts/list', text: '记账账户', icon: 'staff', permission: 'invest:accounts:list' },
|
||||||
|
|||||||
Reference in New Issue
Block a user