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
1ca2f4ac
Commit
1ca2f4ac
authored
Nov 22, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
2282b0af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
120 additions
and
34 deletions
+120
-34
customRight-form.vue
src/components/sale/customRight-form.vue
+118
-33
peerManagement.vue
src/pages/sale/peerManagement.vue
+2
-1
No files found.
src/components/sale/customRight-form.vue
View file @
1ca2f4ac
<
style
>
.customRightDialog
.drawerTop
{
width
:
100%
;
height
:
50px
;
display
:
flex
;
justify-content
:
space-between
;
background-color
:
#f0f5fb
;
padding
:
5px
10px
;
align-items
:
center
;
}
.customRightDialog
.className
{
margin-left
:
10px
;
}
.customRightDialog
.classFirst
{
color
:
#000000
;
font-weight
:
bold
;
}
.customRightDialog
.role_Line
{
width
:
3px
;
height
:
11px
;
margin-right
:
10px
;
background-color
:
#3fc4ff
;
display
:
inline-block
;
}
.info_Item
{
margin
:
20px
0
;
}
</
style
>
<
template
>
<
template
>
<q-dialog
v-model=
"persistent"
maximized
full-height
seamless
position=
"right"
@
hide=
"closeperForm"
>
<q-dialog
v-model=
"persistent"
maximized
full-height
seamless
position=
"right"
@
hide=
"closeperForm"
>
<q-card
style=
"margin-top:61px;width:600px"
class=
"no-border-radius c
lassinfo_
Dialog"
>
<q-card
style=
"margin-top:61px;width:600px"
class=
"no-border-radius c
ustomRight
Dialog"
>
<div
class=
"drawerTop"
>
<div
class=
"drawerTop"
>
<div
style=
"display:flex;align-items:center;margin:20px 0 0 20px;"
>
<div
style=
"display: flex; align-items: center"
>
<span
class=
"drawer_Span"
>
客户审批
</span>
<div
class=
"className"
>
<div
class=
"classFirst"
>
客户审批
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"col-12"
style=
"margin:0 24px;"
>
<div
style=
"margin:20px"
>
<q-input
filled
stack-label
:dense=
"false"
class=
"col-12"
label=
"客户名称"
v-model=
"objOption.CustomerName"
/>
<div
class=
"classFirst"
>
</div>
<span
class=
"role_Line"
></span>
基本信息
<div
class=
"col-12"
style=
"margin:20px 24px;"
>
</div>
<q-input
filled
stack-label
:dense=
"false"
class=
"col-12"
label=
"联系电话"
v-model=
"objOption.ContactNumber"
/>
<div
class=
"row info_Item"
>
</div>
<div
class=
"col-6"
>
<div
class=
"col-12"
style=
"margin:20px 24px;"
>
<span
class=
"backInfo_Title"
>
客户名称:
</span>
<q-input
filled
stack-label
:dense=
"false"
class=
"col-12"
label=
"传真"
v-model=
"objOption.Fax"
/>
<span
class=
"backOtherInfo"
v-if=
"objOption.CustomerName"
>
</div>
{{
objOption
.
CustomerName
}}
<div
class=
"col-12"
style=
"margin:20 24px;"
>
</span>
<q-input
filled
stack-label
:dense=
"false"
class=
"col-12"
label=
"QQ"
v-model=
"objOption.QQ"
/>
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"col-12"
style=
"margin:20 24px;"
>
<span
class=
"backInfo_Title"
>
联系电话:
</span>
<q-input
filled
stack-label
:dense=
"false"
class=
"col-12"
label=
"Email"
v-model=
"objOption.Email"
/>
<span
class=
"backOtherInfo"
>
{{
objOption
.
ContactNumber
}}
</span>
</div>
</div>
<div
class=
"col-12"
style=
"margin:20 24px;"
>
</div>
<q-input
filled
stack-label
:dense=
"false"
class=
"col-12"
label=
"地址"
v-model=
"objOption.Address"
/>
<div
class=
"row info_Item"
>
<div
class=
"col-6"
>
<span
class=
"backInfo_Title"
>
传真:
</span>
<span
class=
"backOtherInfo"
v-if=
"objOption.Fax"
>
{{
objOption
.
Fax
}}
</span>
</div>
<div
class=
"col-6"
>
<span
class=
"backInfo_Title"
>
QQ:
</span>
<span
class=
"backOtherInfo"
>
{{
objOption
.
QQ
}}
</span>
</div>
</div>
<div
class=
"row info_Item"
>
<div
class=
"col-6"
>
<span
class=
"backInfo_Title"
>
Email:
</span>
<span
class=
"backOtherInfo"
v-if=
"objOption.Email"
>
{{
objOption
.
Email
}}
</span>
</div>
<div
class=
"col-6"
>
<span
class=
"backInfo_Title"
>
地址:
</span>
<span
class=
"backOtherInfo"
>
{{
objOption
.
Address
}}
</span>
</div>
</div>
<div
style=
"display: flex;justify-content: space-between;align-items: center;margin-top: 20px;"
>
<div>
审批意见
</div>
<div>
<q-radio
v-model=
"AuditMsg.ApproveState"
:val=
"1"
label=
"通过"
/>
<q-radio
v-model=
"AuditMsg.ApproveState"
:val=
"2"
label=
"驳回"
/>
</div>
</div>
<q-input
filled
stack-label
:dense=
"false"
v-model=
"AuditMsg.ApproveContent"
type=
"textarea"
label=
"审批意见"
/>
</div>
</div>
<div
style=
"margin:30px 10px 0 0;text-align:right;"
>
<div
style=
"margin:30px 10px 0 0;text-align:right;"
>
<q-btn
color=
"accent"
class=
"q-mr-md"
icon=
"add"
label=
"保存"
@
click=
"saveConfig()"
/>
<q-btn
color=
"accent"
class=
"q-mr-md"
label=
"保存"
@
click=
"saveConfig()"
/>
</div>
</div>
</q-card>
</q-card>
<div
class=
"dialog-out-close"
@
click=
"closeperForm"
<div
class=
"dialog-out-close"
@
click=
"closeperForm"
...
@@ -43,7 +108,7 @@
...
@@ -43,7 +108,7 @@
export
default
{
export
default
{
components
:
{},
components
:
{},
props
:
{
props
:
{
save
Obj
:
{
customer
Obj
:
{
type
:
Object
,
type
:
Object
,
default
:
null
default
:
null
}
}
...
@@ -53,6 +118,11 @@
...
@@ -53,6 +118,11 @@
persistent
:
true
,
persistent
:
true
,
objOption
:
{},
objOption
:
{},
saveCourseLoading
:
false
,
saveCourseLoading
:
false
,
AuditMsg
:
{
CustomerId
:
0
,
ApproveState
:
1
,
//审批状态 1-审批通过,2-拒绝
ApproveContent
:
''
}
}
}
},
},
created
()
{},
created
()
{},
...
@@ -62,17 +132,31 @@
...
@@ -62,17 +132,31 @@
methods
:
{
methods
:
{
//初始化表单
//初始化表单
initObj
()
{
initObj
()
{
GetCustomer
({
if
(
this
.
customerObj
&&
this
.
customerObj
.
CustomerId
>
0
)
{
CustomerId
:
23198
this
.
AuditMsg
.
CustomerId
=
this
.
customerObj
.
CustomerId
;
}).
then
(
res
=>
{
GetCustomer
({
console
.
log
(
"res"
,
res
);
CustomerId
:
this
.
customerObj
.
CustomerId
var
tempData
=
res
.
Data
;
}).
then
(
res
=>
{
this
.
objOption
=
tempData
;
var
tempData
=
res
.
Data
;
})
this
.
objOption
=
tempData
;
})
}
},
},
//保存
//保存
saveCourse
()
{
saveConfig
()
{
AuditCustomer
(
this
.
AuditMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
"iconfont icon-chenggong"
,
color
:
"accent"
,
timeout
:
2000
,
message
:
"数据保存成功!"
,
position
:
"top"
,
});
this
.
$emit
(
"success"
);
this
.
closeperForm
()
}
})
},
},
//关闭弹窗
//关闭弹窗
closeperForm
()
{
closeperForm
()
{
...
@@ -81,4 +165,5 @@
...
@@ -81,4 +165,5 @@
},
},
},
},
}
}
</
script
>
\ No newline at end of file
</
script
>
src/pages/sale/peerManagement.vue
View file @
1ca2f4ac
...
@@ -51,7 +51,8 @@
...
@@ -51,7 +51,8 @@
<perCustomer-form
v-if=
"isShowCustomForm"
:customerObj=
"customerObj"
@
close=
"closeCustomForm"
<perCustomer-form
v-if=
"isShowCustomForm"
:customerObj=
"customerObj"
@
close=
"closeCustomForm"
@
success=
"refreshQuestion"
>
@
success=
"refreshQuestion"
>
</perCustomer-form>
</perCustomer-form>
<customRight-form
v-if=
"isShowRightForm"
:customerObj=
"customerObj"
@
close=
"closeCustomForm"
></customRight-form>
<customRight-form
v-if=
"isShowRightForm"
:customerObj=
"customerObj"
@
close=
"closeCustomForm"
@
success=
"refreshQuestion"
></customRight-form>
</div>
</div>
</div>
</div>
</template>
</template>
...
...
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