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 @@
+
+