Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
0e4bf210
Commit
0e4bf210
authored
Apr 18, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设置主门店
parent
e0511ef4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
141 additions
and
85 deletions
+141
-85
AllianceContract.vue
src/components/administrative/AllianceContract.vue
+141
-85
No files found.
src/components/administrative/AllianceContract.vue
View file @
0e4bf210
...
...
@@ -109,17 +109,21 @@
<el-button type="success" size="small" icon="el-icon-download" circle @click="DownLoadContract(item)">
</el-button>
</el-tooltip> -->
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('objFill.v101.administrative.shiezhizmd')"
placement=
"top"
>
<el-button
type=
"danger"
size=
"small"
icon=
"el-icon-s-tools"
circle
@
click=
"clickSetAdmin(item)"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('fnc.chakan')+$t('objFill.v102.lianmenght')"
placement=
"top-start"
>
<el-button
type=
"success"
size=
"small"
icon=
"el-icon-view"
circle
@
click=
"ViewContract(item)"
></el-button>
</el-tooltip>
</td>
</tr>
</table>
<el-dialog
:title=
"addType == 1 ?$t('objFill.v102.xinzenghet') : $t('objFill.v10
2.bianjihet
')"
<el-dialog
:title=
"addType == 1 ?$t('objFill.v102.xinzenghet') : $t('objFill.v10
1.administrative.shiezhizmd
')"
width=
"700px"
:visible
.
sync=
"dialogFormVisible"
center
:before-close=
"closeChangeMachie"
>
<el-form
label-width=
"110px"
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
class=
"demo-ruleForm"
>
<el-row>
<
template
v-if=
"addType==1"
>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('objFill.v102.youxiaoqks')"
prop=
"C_StartDate"
>
<el-date-picker
class=
"h34 "
style=
"width: 100%;"
...
...
@@ -163,6 +167,7 @@
</el-select>
</el-form-item>
</el-col>
</
template
>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('objFill.v102.zhuzhanghxx')"
prop=
"Id"
>
<el-select
...
...
@@ -172,7 +177,7 @@
<el-option
v-for=
'item in CustomerList'
:label=
'item.CustomerName+"("+item.ContactNumber+")"'
:value=
'item.ID'
:key=
'item.
CustomerName
'
>
:key=
'item.
ID
'
>
</el-option>
</el-select>
</el-form-item>
...
...
@@ -180,6 +185,9 @@
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('objFill.quanxianshezhi')"
prop=
"CustomerChildrenIdList"
>
<el-select
placeholder=
"Select"
size=
"large"
style=
"width: 100%"
multiple
collapse-tags
collapse-tags-tooltip
...
...
@@ -189,7 +197,7 @@
<el-option
v-for=
'item in CustomerChildrenList'
:label=
'item.CustomerName+"("+item.ContactPhone+")"'
:value=
'item.ID'
:key=
'item.
CustomerName
'
>
:key=
'item.
ID
'
>
</el-option>
</el-select>
</el-form-item>
...
...
@@ -197,16 +205,13 @@
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('fnc.acc')"
prop=
""
>
<el-select
v-loading=
"optionloading"
multiple
collapse-tags
collapse-tags-tooltip
v-model=
'addMsg.accountId'
@
change=
"getCustomer(2)"
class=
""
clearable
>
<el-option
v-for=
'item in accountList'
:label=
'item.AccountHolder'
:label=
'item.AccountHolder
+"("+item.CardNum+")"
'
:value=
'item.ID'
:key=
'item.
AccountHolder
'
>
:key=
'item.
ID
'
>
</el-option>
</el-select>
</el-form-item>
...
...
@@ -231,9 +236,9 @@
<el-input
type=
"text"
v-model=
"addMsg.AccountHolder"
:placeholder=
"$t('rule.qsrkhuren')"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
v-if=
"addType==1"
>
<el-form-item
:label=
"$t('objFill.fj')"
prop=
"ContractUrl"
>
<el-upload
class=
"upload-demo"
style=
"display:inline-block;position:relative;top:-1px;left:3px;"
<el-upload
:loading=
"fileLoading"
class=
"upload-demo"
style=
"display:inline-block;position:relative;top:-1px;left:3px;"
:http-request=
"UploadAttachment"
:show-file-list=
"false"
action=
""
>
<el-button
size=
"small"
type=
"primary"
>
{{$t('objFill.v101.Rest.tianjiafuj')}}
</el-button>
</el-upload>
...
...
@@ -246,16 +251,6 @@
</el-form-item>
</el-col>
</el-row>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"hollowFixedBtn"
@
click=
"dialogFormVisible=false, iniTAddMsg"
>
{{$t('pub.cancelBtn')}}
</button>
...
...
@@ -373,6 +368,7 @@ export default {
CustomerChildrenList
:
[],
NightNumList
:
[],
accountList
:
[],
fileLoading
:
false
,
}
},
watch
:
{
...
...
@@ -398,6 +394,21 @@ export default {
},
methods
:
{
clickSetAdmin
(
obj
){
this
.
dialogFormVisible
=
true
this
.
addType
=
2
console
.
log
(
obj
)
this
.
addMsg
=
{
...
JSON
.
parse
(
JSON
.
stringify
(
obj
)),
CustomerChildrenIds
:
obj
.
CllianceChildList
.
map
(
x
=>
{
return
x
.
ID
}).
join
(
','
),
CustomerChildrenIdList
:
obj
.
CllianceChildList
.
map
(
x
=>
{
return
x
.
ID
}),
accountId
:
obj
.
ClientBankAccountId
}
},
ViewContract
(
item
){
window
.
open
(
item
.
TravelAgency_SignAddress
,
'_blank'
);
},
...
...
@@ -420,6 +431,13 @@ export default {
this
.
addMsg
.
CustomerId
=
list
[
0
].
CustomerId
;
this
.
getAccountPageList
()
}
this
.
addMsg
.
CustomerChildrenIds
=
''
this
.
addMsg
.
CustomerChildrenIdList
=
[]
this
.
addMsg
.
accountId
=
''
this
.
addMsg
.
OpenBankName
=
''
;
this
.
addMsg
.
AccountHolder
=
''
;
this
.
addMsg
.
BankName
=
''
;
this
.
addMsg
.
CardNum
=
''
}
else
if
(
type
==
2
){
if
(
this
.
addMsg
.
accountId
){
let
list
=
this
.
accountList
.
filter
(
x
=>
{
...
...
@@ -429,7 +447,7 @@ export default {
this
.
addMsg
.
OpenBankName
=
list
[
0
].
OpenBankName
;
this
.
addMsg
.
AccountHolder
=
list
[
0
].
AccountHolder
;
this
.
addMsg
.
BankName
=
list
[
0
].
BankName
;
this
.
addMsg
.
CardNum
=
list
[
0
].
CardNum
.
trim
();
this
.
addMsg
.
CardNum
=
list
[
0
].
CardNum
.
replace
(
/
\s
/g
,
''
)
}
}
}
else
{
...
...
@@ -510,6 +528,8 @@ export default {
},
UploadAttachment
(
file
)
{
//上传
if
(
!
this
.
fileLoading
)
return
this
.
fileLoading
=
true
;
let
newArr
=
[];
newArr
.
push
(
file
.
file
);
let
path
=
"/Upload/Temporary/"
;
...
...
@@ -517,6 +537,7 @@ export default {
this
.
UploadSelfFileT
(
path
,
newArr
,
(
x
)
=>
{
var
newUrl
=
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
;
this
.
addMsg
.
ContractUrl
=
newUrl
this
.
fileLoading
=
false
this
.
Success
(
this
.
$t
(
"tips.scchenggong"
));
});
},
...
...
@@ -559,10 +580,49 @@ export default {
UpdateDate
:
function
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
addType
==
1
){
this
.
SetAllianceContract
()
}
else
{
this
.
AllianceContrac
()
}
}
else
{
return
false
;
}
});
},
AllianceContrac
(){
if
(
this
.
saveLoading
)
return
this
.
saveLoading
=
true
this
.
apipost
(
'app_customer_UpdateAllianceContract'
,
{
Id
:
this
.
addMsg
.
Id
,
ContractId
:
this
.
addMsg
.
ContractId
,
CustomerChildrenIds
:
this
.
addMsg
.
CustomerChildrenIdList
.
join
(
','
),
OpenBankName
:
this
.
addMsg
.
OpenBankName
,
AccountHolder
:
this
.
addMsg
.
AccountHolder
,
BankName
:
this
.
addMsg
.
BankName
,
CardNum
:
this
.
addMsg
.
CardNum
.
trim
(),
},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
dialogFormVisible
=
false
;
this
.
iniTAddMsg
();
this
.
getList
();
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
saveLoading
=
false
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
this
.
saveLoading
=
false
}
},
err
=>
{
this
.
saveLoading
=
false
})
},
SetAllianceContract
(){
if
(
this
.
addMsg
.
ContractUrl
==
''
){
this
.
$message
.
error
(
this
.
$t
(
'objFill.v101.Rest.tianjiafuj'
));
return
}
if
(
this
.
saveLoading
)
return
this
.
saveLoading
=
true
this
.
apipost
(
'app_customer_SetAllianceContract'
,
this
.
addMsg
,
res
=>
{
...
...
@@ -579,10 +639,6 @@ export default {
},
err
=>
{
this
.
saveLoading
=
false
})
}
else
{
return
false
;
}
});
},
iniTAddMsg
:
function
()
{
this
.
addMsg
=
{
...
...
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