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
bd6751c3
Commit
bd6751c3
authored
Mar 14, 2022
by
罗超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/confucius
into master
parents
a06f8f77
1dfd73ac
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
124 additions
and
18 deletions
+124
-18
categoryEdit-form.vue
src/components/sale/categoryEdit-form.vue
+58
-8
customcategorylist.vue
src/components/sale/customcategorylist.vue
+8
-4
batchVoucher.vue
src/pages/financial/financalDocument/batchVoucher.vue
+3
-1
visitTransform.vue
src/pages/sale/visitTransform.vue
+55
-5
No files found.
src/components/sale/categoryEdit-form.vue
View file @
bd6751c3
...
...
@@ -73,7 +73,6 @@
/
deep
/
.q-field__prepend
{
padding-right
:
0px
!important
;
}
</
style
>
<
template
>
<q-dialog
v-model=
"persistent"
content-class=
"bg-grey-1"
persistent
transition-show=
"scale"
>
...
...
@@ -91,7 +90,35 @@
<div
class=
"row wrap"
>
<div
class=
"col-12"
>
<q-select
stack-label
color=
"primary"
filled
label=
"类型"
option-value=
"Id"
option-label=
"Name"
ref=
"CatetoryType"
:options=
"typeList"
class=
"q-pb-lg"
v-model=
"objOption.CatetoryType"
:rules=
"[val => !!val || '请选择类型']"
emit-value
map-options
/>
ref=
"CatetoryType"
:options=
"typeList"
class=
"q-pb-lg"
v-model=
"objOption.CatetoryType"
:rules=
"[val => !!val || '请选择类型']"
emit-value
map-options
/>
</div>
</div>
<div
class=
"row wrap"
>
<div
class=
"col-12"
>
<q-field
filled
label=
"签约状态"
stack-label
>
<template
v-slot:control
>
<q-radio
dense
v-model=
"objOption.IsContract"
:val=
"0"
label=
"未签约"
size=
"xs"
/>
<q-radio
dense
v-model=
"objOption.IsContract"
:val=
"1"
label=
"已签约"
size=
"xs"
/>
</
template
>
</q-field>
</div>
</div>
<div
class=
"row wrap"
style=
"margin-top:20px;"
>
<div
class=
"col-12"
>
<
template
v-if=
"objOption.IsContract==1"
>
<el-upload
class=
"upload-demo"
action=
""
:show-file-list=
"false"
:http-request=
"UploadAttachment"
:multiple=
"uploadMultple"
>
<q-btn
color=
"accent"
size=
"sm"
icon=
"add"
label=
"上传同行合同"
/>
</el-upload>
<a
v-if=
"objOption.ContractUrl"
style=
"margin-left:10px;color:#2961FE;text-decoration:none;"
:href=
"objOption.ContractUrl"
target=
"_blank"
>
<template
v-if=
"fileObj.FileName&&fileObj.FileName!=''"
>
{{
fileObj
.
FileName
}}
</
template
>
查看合同
</a>
</template>
</div>
</div>
<
template
v-if=
"isShowTel"
>
...
...
@@ -120,6 +147,9 @@
</q-dialog>
</template>
<
script
>
import
{
UploadSelfFile
}
from
'../../api/common/common'
import
{
saveCustomerCategory
,
queryCustomerCategory
,
...
...
@@ -141,12 +171,19 @@
CatetoryType
:
''
,
CategoryId
:
0
,
linkMan
:
""
,
linkTel
:
""
linkTel
:
""
,
IsContract
:
0
,
//是否签约
ContractUrl
:
""
,
//合同信息
},
uploadMultple
:
true
,
typeList
:
[],
//类型
saveCustomLoading
:
false
,
optionTitle
:
''
,
isShowTel
:
true
isShowTel
:
true
,
fileObj
:
{
FileName
:
''
,
FileUrl
:
''
}
}
},
created
()
{},
...
...
@@ -168,6 +205,8 @@
this
.
objOption
.
CategoryName
=
tempData
.
CategoryName
;
this
.
objOption
.
CatetoryType
=
tempData
.
CatetoryType
;
this
.
objOption
.
CategoryId
=
tempData
.
CategoryId
;
this
.
objOption
.
IsContract
=
tempData
.
IsContract
;
this
.
objOption
.
ContractUrl
=
tempData
.
ContractUrl
;
}
})
this
.
optionTitle
=
"修改客户信息"
...
...
@@ -177,6 +216,8 @@
this
.
objOption
.
CategoryId
=
0
;
this
.
objOption
.
linkMan
=
''
;
this
.
objOption
.
linkTel
=
''
;
this
.
objOption
.
IsContract
=
0
;
this
.
objOption
.
ContractUrl
=
''
;
this
.
optionTitle
=
"新增客户信息"
this
.
isShowTel
=
true
;
}
...
...
@@ -185,7 +226,7 @@
saveCourse
()
{
this
.
$refs
.
CategoryName
.
validate
();
this
.
$refs
.
CatetoryType
.
validate
();
if
(
!
this
.
$refs
.
CategoryName
.
hasError
&&
!
this
.
$refs
.
CatetoryType
.
hasError
)
{
if
(
!
this
.
$refs
.
CategoryName
.
hasError
&&
!
this
.
$refs
.
CatetoryType
.
hasError
)
{
saveCustomerCategory
(
this
.
objOption
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
...
...
@@ -212,8 +253,17 @@
closeCourseForm
()
{
this
.
$emit
(
'close'
);
this
.
persistent
=
false
;
}
},
//上传附件
UploadAttachment
(
files
)
{
UploadSelfFile
(
'Attachment'
,
files
.
file
,
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
fileObj
.
FileName
=
res
.
FileName
;
this
.
fileObj
.
FileUrl
=
res
.
FileUrl
;
this
.
objOption
.
ContractUrl
=
res
.
FileUrl
;
}
})
},
},
}
</
script
>
</
script
>
\ No newline at end of file
src/components/sale/customcategorylist.vue
View file @
bd6751c3
...
...
@@ -7,7 +7,6 @@
cursor
:
pointer
;
color
:
var
(
--
q-color-primary
);
}
</
style
>
<
template
>
<div
class=
"b2bcustomlist"
>
...
...
@@ -25,6 +24,12 @@
<q-td>
<div
class=
"CustomerName"
@
click=
"showDetail(props.row)"
>
{{
props
.
row
.
CategoryName
}}
<template
v-if=
"props.row.IsContract==1"
>
<span
style=
"color:green;"
>
(已签约)
</span>
</
template
>
<
template
v-if=
"props.row.IsContract==0"
>
<span
style=
"color:red;"
>
(未签约)
</span>
</
template
>
</div>
</q-td>
</template>
...
...
@@ -248,12 +253,11 @@
//创建者为本人或者有权限 才能修改
if
(
UserInfo
.
Id
===
row
.
CreateBy
||
isHavePer
)
{
this
.
isCanEdit
=
true
;
}
else
{
}
else
{
this
.
isCanEdit
=
false
;
}
this
.
isShowDetailForm
=
true
;
}
}
};
</
script
>
</
script
>
\ No newline at end of file
src/pages/financial/financalDocument/batchVoucher.vue
View file @
bd6751c3
...
...
@@ -661,7 +661,7 @@
</el-select>
</td>
<td>
<el-input
class=
"w80 _border_b_1"
@
keyup
.
native=
"checkPrice(sitem,'YTotalPrice')"
v-model=
"sitem.YTotalPrice"
></el-input>
<el-input
class=
"w80 _border_b_1"
@
keyup
.
native=
"checkPrice(sitem,'YTotalPrice'
,true
)"
v-model=
"sitem.YTotalPrice"
></el-input>
</td>
<td>
<el-input
type=
"textarea"
v-model=
"sitem.Remarks"
class=
"w80 _border_b_1"
></el-input>
...
...
@@ -2139,8 +2139,10 @@
return
}
this
.
isSubmit
=
true
;
this
.
loading
=
true
;
this
.
apipost
(
'Financial_post_BatchSet'
,
this
.
msg
,
res
=>
{
this
.
isSubmit
=
false
;
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
...
...
src/pages/sale/visitTransform.vue
View file @
bd6751c3
...
...
@@ -49,6 +49,7 @@
<q-tab
:name=
"2"
label=
"内部渠道"
/>
<q-tab
:name=
"3"
label=
"学校渠道"
/>
<q-tab
:name=
"4"
label=
"转介渠道"
/>
<q-tab
:name=
"5"
label=
"签约渠道"
/>
</q-tabs>
<el-table
:data=
"dataList"
ref=
"table"
style=
"width: 100%;"
:height=
"tableHeight"
v-loading=
"loading"
>
<el-table-column
label=
"序号"
type=
"index"
>
...
...
@@ -178,6 +179,7 @@
StuSourceId
:
0
,
startTime
:
this
.
msg
.
startTime
,
endTime
:
this
.
msg
.
endTime
,
IsContract
:
0
}
var
CreateType
=
2
;
//同行渠道
...
...
@@ -186,6 +188,7 @@
param
.
StuSourceId
=
0
;
param
.
CategoryId
=
row
.
ChannelId
;
param
.
CreateType
=
0
;
param
.
IsContract
=
0
;
}
//内部渠道
if
(
this
.
msg
.
top_Check
==
2
)
{
...
...
@@ -193,6 +196,7 @@
param
.
StuSourceId
=
row
.
ChannelId
;
param
.
CategoryId
=
0
;
param
.
CreateType
=
CreateType
;
param
.
IsContract
=
0
;
}
//学校渠道
if
(
this
.
msg
.
top_Check
==
3
)
{
...
...
@@ -200,6 +204,7 @@
param
.
StuSourceId
=
0
;
param
.
CategoryId
=
row
.
ChannelId
;
param
.
CreateType
=
0
;
param
.
IsContract
=
0
;
}
//转介绍渠道
if
(
this
.
msg
.
top_Check
==
4
)
{
...
...
@@ -207,6 +212,15 @@
param
.
StuSourceId
=
row
.
ChannelId
;
param
.
CategoryId
=
0
;
param
.
CreateType
=
CreateType
;
param
.
IsContract
=
0
;
}
//签约渠道
if
(
this
.
msg
.
top_Check
==
5
)
{
CreateType
=
2
;
param
.
StuSourceId
=
0
;
param
.
CategoryId
=
row
.
ChannelId
;
param
.
CreateType
=
0
;
param
.
IsContract
=
1
;
}
this
.
OpenNewUrl
(
url
,
param
)
},
...
...
@@ -223,6 +237,9 @@
if
(
this
.
msg
.
top_Check
==
4
)
{
fileName
=
"转交渠道.xls"
;
}
if
(
this
.
msg
.
top_Check
==
5
)
{
fileName
=
"签约渠道.xls"
;
}
this
.
loading
=
true
;
EduDownLoad
(
"/UserCenter/DownLoadMarketCreateType"
,
...
...
@@ -246,6 +263,9 @@
case
4
:
this
.
dataList
=
this
.
allData
.
transDataList
;
break
;
case
5
:
this
.
dataList
=
this
.
allData
.
contractDataList
;
break
;
}
},
//获取数据
...
...
@@ -257,16 +277,46 @@
this
.
msg
.
startTime
=
""
;
this
.
msg
.
endTime
=
""
;
}
this
.
loading
=
true
;
MarketCreateType
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
;
if
(
res
.
Code
==
1
)
{
this
.
allData
=
res
.
Data
;
var
tempData
=
res
.
Data
;
if
(
tempData
)
{
if
(
tempData
.
contractDataList
)
{
tempData
.
contractDataList
.
forEach
(
x
=>
{
x
.
VisitingRate
=
this
.
getStatical
(
x
.
VisitCount
,
x
.
ClueCount
)
x
.
ContractRate
=
this
.
getStatical
(
x
.
OrderCount
,
x
.
VisitCount
)
})
}
if
(
tempData
.
customerDataList
)
{
tempData
.
customerDataList
.
forEach
(
x
=>
{
x
.
VisitingRate
=
this
.
getStatical
(
x
.
VisitCount
,
x
.
ClueCount
)
x
.
ContractRate
=
this
.
getStatical
(
x
.
OrderCount
,
x
.
VisitCount
)
})
}
if
(
tempData
.
innerDataList
)
{
tempData
.
innerDataList
.
forEach
(
x
=>
{
x
.
VisitingRate
=
this
.
getStatical
(
x
.
VisitCount
,
x
.
ClueCount
)
x
.
ContractRate
=
this
.
getStatical
(
x
.
OrderCount
,
x
.
VisitCount
)
})
}
if
(
tempData
.
schoolDataList
)
{
tempData
.
schoolDataList
.
forEach
(
x
=>
{
x
.
VisitingRate
=
this
.
getStatical
(
x
.
VisitCount
,
x
.
ClueCount
)
x
.
ContractRate
=
this
.
getStatical
(
x
.
OrderCount
,
x
.
VisitCount
)
})
}
if
(
tempData
.
transDataList
)
{
tempData
.
transDataList
.
forEach
(
x
=>
{
x
.
VisitingRate
=
this
.
getStatical
(
x
.
VisitCount
,
x
.
ClueCount
)
x
.
ContractRate
=
this
.
getStatical
(
x
.
OrderCount
,
x
.
VisitCount
)
})
}
}
this
.
allData
=
tempData
;
this
.
dataList
=
this
.
allData
.
customerDataList
;
this
.
dataList
.
forEach
(
x
=>
{
x
.
VisitingRate
=
this
.
getStatical
(
x
.
VisitCount
,
x
.
ClueCount
)
x
.
ContractRate
=
this
.
getStatical
(
x
.
OrderCount
,
x
.
VisitCount
)
})
}
});
},
...
...
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