Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Y
yishuju-ui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
何远江
yishuju-ui
Commits
968f8263
Commit
968f8263
authored
Mar 20, 2025
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
是否完成修改
parent
fab2fb35
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
Credit.vue
src/views/infoGather/customerGather/components/Credit.vue
+6
-3
Creditcard.vue
...views/infoGather/customerGather/components/Creditcard.vue
+6
-3
Customer.vue
src/views/infoGather/customerGather/components/Customer.vue
+2
-2
No files found.
src/views/infoGather/customerGather/components/Credit.vue
View file @
968f8263
...
@@ -14,8 +14,8 @@
...
@@ -14,8 +14,8 @@
<template
v-if=
"showEdit"
>
<template
v-if=
"showEdit"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
保存
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
>
保存
</el-button>
</
template
>
</
template
>
<el-button
type=
"primary"
@
click=
"showEdit = true"
v-if=
"currentRow"
>
修改
</el-button>
<el-button
type=
"primary"
@
click=
"showEdit = true"
v-if=
"currentRow
&& currentRow.complete !== 'Y'
"
>
修改
</el-button>
<el-button
type=
"danger"
@
click=
"delItem"
v-if=
"currentRow"
>
删除
</el-button>
<el-button
type=
"danger"
@
click=
"delItem"
v-if=
"currentRow
&& currentRow.complete !== 'Y'
"
>
删除
</el-button>
</div>
</div>
<div
class=
"w-full"
>
<div
class=
"w-full"
>
<table>
<table>
...
@@ -229,7 +229,7 @@
...
@@ -229,7 +229,7 @@
showModal
.
value
=
false
;
showModal
.
value
=
false
;
emits
(
'success'
,
form
.
value
,
currentIndex
.
value
);
emits
(
'success'
,
form
.
value
,
currentIndex
.
value
);
};
};
const
openModal
=
(
row
,
index
)
=>
{
const
openModal
=
(
row
,
index
,
complete
)
=>
{
if
(
row
)
{
if
(
row
)
{
showEdit
.
value
=
false
showEdit
.
value
=
false
form
.
value
=
JSON
.
parse
(
JSON
.
stringify
(
row
))
form
.
value
=
JSON
.
parse
(
JSON
.
stringify
(
row
))
...
@@ -268,6 +268,9 @@
...
@@ -268,6 +268,9 @@
}
}
}
}
currentRow
.
value
=
row
currentRow
.
value
=
row
if
(
row
)
{
currentRow
.
value
[
'complete'
]
=
complete
}
currentIndex
.
value
=
index
currentIndex
.
value
=
index
showModal
.
value
=
true
;
showModal
.
value
=
true
;
};
};
...
...
src/views/infoGather/customerGather/components/Creditcard.vue
View file @
968f8263
...
@@ -14,8 +14,8 @@
...
@@ -14,8 +14,8 @@
<template
v-if=
"showEdit"
>
<template
v-if=
"showEdit"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
保存
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
>
保存
</el-button>
</
template
>
</
template
>
<el-button
type=
"primary"
@
click=
"showEdit = true"
v-if=
"currentRow"
>
修改
</el-button>
<el-button
type=
"primary"
@
click=
"showEdit = true"
v-if=
"currentRow
&& currentRow.complete !== 'Y'
"
>
修改
</el-button>
<el-button
type=
"danger"
@
click=
"delItem"
v-if=
"currentRow"
>
删除
</el-button>
<el-button
type=
"danger"
@
click=
"delItem"
v-if=
"currentRow
&& currentRow.complete !== 'Y'
"
>
删除
</el-button>
</div>
</div>
<div
class=
"w-full"
>
<div
class=
"w-full"
>
<table>
<table>
...
@@ -261,7 +261,7 @@
...
@@ -261,7 +261,7 @@
emits
(
'success'
,
form
.
value
,
currentIndex
.
value
,
'del'
);
emits
(
'success'
,
form
.
value
,
currentIndex
.
value
,
'del'
);
showModal
.
value
=
false
;
showModal
.
value
=
false
;
}
}
const
openModal
=
(
row
,
index
)
=>
{
const
openModal
=
(
row
,
index
,
complete
)
=>
{
if
(
row
)
{
if
(
row
)
{
showEdit
.
value
=
false
showEdit
.
value
=
false
form
.
value
=
JSON
.
parse
(
JSON
.
stringify
(
row
))
form
.
value
=
JSON
.
parse
(
JSON
.
stringify
(
row
))
...
@@ -298,6 +298,9 @@
...
@@ -298,6 +298,9 @@
}
}
}
}
currentRow
.
value
=
row
currentRow
.
value
=
row
if
(
row
)
{
currentRow
.
value
[
'complete'
]
=
complete
}
currentIndex
.
value
=
index
currentIndex
.
value
=
index
showModal
.
value
=
true
;
showModal
.
value
=
true
;
};
};
...
...
src/views/infoGather/customerGather/components/Customer.vue
View file @
968f8263
...
@@ -436,11 +436,11 @@ const creditArr = ref([]);
...
@@ -436,11 +436,11 @@ const creditArr = ref([]);
const
cardSUM
=
computed
(()
=>
cardConfig
.
data
.
reduce
((
pre
,
cur
)
=>
pre
+
Number
(
cur
.
debt
),
0
));
const
cardSUM
=
computed
(()
=>
cardConfig
.
data
.
reduce
((
pre
,
cur
)
=>
pre
+
Number
(
cur
.
debt
),
0
));
const
creditSUM
=
computed
(()
=>
creditArr
.
value
.
reduce
((
pre
,
cur
)
=>
pre
+
Number
(
cur
.
debt
),
0
));
const
creditSUM
=
computed
(()
=>
creditArr
.
value
.
reduce
((
pre
,
cur
)
=>
pre
+
Number
(
cur
.
debt
),
0
));
const
pushCreditcard
=
({
row
,
rowIndex
})
=>
{
const
pushCreditcard
=
({
row
,
rowIndex
})
=>
{
CreditcardRef
.
value
.
openModal
(
row
,
rowIndex
CreditcardRef
.
value
.
openModal
(
row
,
rowIndex
,
form
.
value
.
complete
);
);
};
};
const
pushCredit
=
({
row
,
rowIndex
})
=>
{
const
pushCredit
=
({
row
,
rowIndex
})
=>
{
CreditRef
.
value
.
openModal
(
row
,
rowIndex
CreditRef
.
value
.
openModal
(
row
,
rowIndex
,
form
.
value
.
complete
);
);
};
};
const
handleQuery
=
()
=>
{
const
handleQuery
=
()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment