Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
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
罗超
confucius
Commits
b84a4296
Commit
b84a4296
authored
Aug 05, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/confucius
parents
aa7fc9e6
ef8bddf4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
147 deletions
+56
-147
createbackbill-form.vue
src/components/sale/createbackbill-form.vue
+56
-147
No files found.
src/components/sale/createbackbill-form.vue
View file @
b84a4296
...
...
@@ -5,11 +5,7 @@
<q-card-section>
<div
class=
"text-h6"
>
一键制单
</div>
</q-card-section>
<q-card-section
class=
"q-pt-none scroll"
style=
"max-height: 70vh"
>
<div
class=
"col"
>
<q-radio
v-model=
"FinanceMsg.IsPublic"
:val=
"0"
label=
"私账"
/>
<q-radio
v-model=
"FinanceMsg.IsPublic"
:val=
"1"
label=
"公账"
/>
</div>
<q-card-section
class=
"q-pt-none scroll"
style=
"max-height: 70vh;display:none;"
>
<div
class=
"col"
style=
"margin-top: 20px"
>
<q-select
standout=
"bg-primary text-white"
option-value=
"ID"
option-label=
"Name"
v-model=
"FinanceMsg.CurrencyId"
:options=
"CurrencyList"
emit-value
map-options
label=
"币种"
...
...
@@ -17,46 +13,32 @@
</div>
</q-card-section>
<q-card-section>
<div
class=
"text-h6"
>
账号信息
</div>
<q-card-section
class=
"q-pt-none scroll"
>
<div
class=
"col"
>
<q-radio
v-model=
"IsAddBankCount"
:val=
"0"
label=
"选择账号"
/>
<q-radio
v-model=
"IsAddBankCount"
:val=
"1"
label=
"添加账号"
/>
</div>
<template
v-if=
"IsAddBankCount==0"
>
<div
class=
"col"
>
<q-select
standout=
"bg-primary text-white"
option-value=
"ID"
option-label=
"AccountAlias"
v-model=
"FinanceMsg.ClientId"
:options=
"BankAccountList"
emit-value
map-options
label=
"选择账号"
class=
"col-6 q-pr-lg q-pb-lg"
/>
</div>
</
template
>
<
template
v-else
>
<div
class=
"col"
>
<q-select
standout=
"bg-primary text-white"
option-value=
"Id"
option-label=
"Name"
v-model=
"addMsg.AccountClassify"
:options=
"AccountClassifyList"
emit-value
map-options
label=
"账号分类"
class=
"col-6 q-pr-lg q-pb-lg"
@
input=
"changeTitle
"
/>
class=
"col-6 q-pr-lg q-pb-lg"
@
input=
"changeTitle"
disable
style=
"display:none;
"
/>
</div>
<div
class=
"col"
v-if=
'addMsg.AccountClassify==2'
>
<q-input
filled
stack-label
maxlength=
"100"
:dense=
"false"
v-model=
"addMsg.BankName"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"所属机构"
placeholder=
"例如:中国银行"
/>
class=
"col-6 q-pr-lg q-pb-lg"
label=
"所属机构"
placeholder=
"例如:中国银行"
disable
/>
</div>
<div
class=
"col"
v-if=
'addMsg.AccountClassify!=3 && addMsg.AccountClassify!=4'
>
<q-input
filled
stack-label
maxlength=
"100"
:dense=
"false"
v-model=
"addMsg.OpenBankName"
class=
"col-6 q-pr-lg q-pb-lg"
:label=
"nameA"
placeholder=
"例如:锦江支行
"
/>
class=
"col-6 q-pr-lg q-pb-lg"
:label=
"nameA"
placeholder=
"例如:锦江支行"
disable
style=
"display:none;
"
/>
</div>
<div
class=
"col"
v-if=
'addMsg.AccountClassify!=3 && addMsg.AccountClassify!=4'
>
<q-input
filled
stack-label
maxlength=
"100"
:dense=
"false"
v-model=
"addMsg.AccountHolder"
class=
"col-6 q-pr-lg q-pb-lg"
:label=
"nameB
"
/>
class=
"col-6 q-pr-lg q-pb-lg"
:label=
"nameB"
disable
style=
"display:none;
"
/>
</div>
<div
class=
"col"
>
<q-input
filled
stack-label
maxlength=
"100"
:dense=
"false"
v-model=
"addMsg.CardNum"
class=
"col-6 q-pr-lg q-pb-lg"
:label=
"nameC"
/>
class=
"col-6 q-pr-lg q-pb-lg"
:label=
"nameC"
disable
/>
</div>
<div
class=
"col"
>
<q-input
filled
stack-label
maxlength=
"100"
:dense=
"false"
v-model=
"addMsg.AccountAlias"
class=
"col-6 q-pr-lg q-pb-lg"
:label=
"nameD
"
/>
class=
"col-6 q-pr-lg q-pb-lg"
:label=
"nameD"
disable
style=
"display:none;
"
/>
</div>
</
template
>
</q-card-section>
</q-card-section>
<q-card-actions
align=
"right"
class=
"bg-white"
>
...
...
@@ -81,11 +63,11 @@
return
{
persistent
:
true
,
FinanceMsg
:
{
IsPublic
:
0
,
//公账、私账
CurrencyId
:
0
,
//币种
BackClassId
:
0
,
//退课编号
IsPublic
:
1
,
//公账、私账(默认工作)
CurrencyId
:
21
,
//币种(默认人民币)
ClientType
:
10
,
ClientId
:
0
ClientId
:
0
,
BackClassId
:
0
,
//退课编号
},
CurrencyList
:
[],
//币种数组
//添加常用付款对象
...
...
@@ -117,10 +99,6 @@
Id
:
2
,
Name
:
"银行"
},
{
Id
:
3
,
Name
:
"虚拟账户"
},
{
Id
:
4
,
Name
:
"微信支付宝"
...
...
@@ -131,14 +109,17 @@
nameC
:
"卡号"
,
nameD
:
"账号别名"
,
BankAccountList
:
[],
//银行账号列表,
IsAddBankCount
:
0
,
//0-选择账号,1-添加账号
}
},
created
()
{
this
.
FinanceMsg
.
BackClassId
=
this
.
setingObj
.
DataObj
.
BackId
;
this
.
addMsg
.
ObjID
=
this
.
setingObj
.
GuestId
;
this
.
financeinfo_post_GetList
();
this
.
getGuestBankAccount
()
this
.
addMsg
.
BankName
=
this
.
setingObj
.
DataObj
.
BackAccountName
;
this
.
addMsg
.
OpenBankName
=
this
.
setingObj
.
DataObj
.
BackAccountName
;
this
.
addMsg
.
CardNum
=
this
.
setingObj
.
DataObj
.
BackAccount
;
this
.
addMsg
.
AccountAlias
=
this
.
setingObj
.
DataObj
.
BackAccountName
;
//this.GetCurrencyList();
//this.getGuestBankAccount()
},
mounted
()
{
...
...
@@ -179,19 +160,6 @@
}
},
addBack
()
{
if
(
this
.
IsAddBankCount
==
0
)
{
if
(
this
.
FinanceMsg
.
ClientId
&&
this
.
FinanceMsg
.
ClientId
>
0
)
{
this
.
createStuBill
();
}
else
{
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请选择收款账号,如果没有收款账号,请新增收款账号!`
})
return
;
}
}
else
if
(
this
.
IsAddBankCount
==
1
)
{
if
(
this
.
addMsg
.
AccountClassify
==
2
)
{
if
(
this
.
addMsg
.
BankName
==
''
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
...
...
@@ -200,22 +168,6 @@
})
return
;
}
if
(
this
.
addMsg
.
OpenBankName
==
''
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请填写账号名称!`
})
return
;
}
if
(
this
.
addMsg
.
AccountHolder
==
''
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请填写开户人!`
})
return
;
}
if
(
this
.
addMsg
.
CardNum
==
''
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
...
...
@@ -224,58 +176,15 @@
})
return
;
}
if
(
this
.
addMsg
.
AccountAlias
==
''
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请填写账户别名!`
})
return
;
}
}
else
if
(
this
.
addMsg
.
AccountClassify
==
3
)
{
if
(
this
.
addMsg
.
CardNum
==
''
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请填写平台账号!`
})
return
;
}
if
(
this
.
addMsg
.
AccountAlias
==
''
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请填写账户别名!`
})
return
;
}
}
else
if
(
this
.
addMsg
.
AccountClassify
==
4
)
{
if
(
this
.
addMsg
.
CardNum
==
''
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请填写账号!`
})
return
;
}
if
(
this
.
addMsg
.
AccountAlias
==
''
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请填写别名!`
})
return
;
}
}
this
.
apipost
(
"admin_post_SetEmpBankAccount"
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
FinanceMsg
.
ClientId
=
res
.
data
.
data
;
this
.
createStuBill
();
}
})
}
},
financeinfo_post_GetList
()
{
// 获取币种
// 获取币种
GetCurrencyList
()
{
this
.
apipost
(
'financeinfo_post_GetList'
,
{
Name
:
''
,
TCID
:
0
...
...
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