Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center-ui
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center-ui
Commits
0ef3cc98
Commit
0ef3cc98
authored
May 18, 2020
by
彭祥礼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加放号充值达标数据
parent
be3ce4d1
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
554 additions
and
154 deletions
+554
-154
src/api/school-center/salesCensusAPI.js
+19
-0
src/api/school-center/salesOrder.js
+2
-2
src/api/school-center/salesOrderAPI.js
+29
-0
src/api/school-center/salesOrdersAPI.js
+0
-34
src/api/school-center/zjlSalaryManagerAPI.js
+2
-2
src/views/school-center/louZhang/managerKpi.vue
+2
-2
src/views/school-center/louZhang/zjlSalary.vue
+2
-2
src/views/school-center/salesOrders/saleCensus.vue
+358
-0
src/views/school-center/salesOrders/salesOrder.vue
+138
-108
src/views/school-center/yxtManager/exchangeCoupon.vue
+2
-4
No files found.
src/api/school-center/salesCensusAPI.js
0 → 100644
View file @
0ef3cc98
import
{
postAction
,
downFilePost
}
from
'@/api/manage'
const
prefix
=
'/manager/ciop'
;
//获取县分下拉列表
let
initSubstName
=
(
params
)
=>
postAction
(
prefix
+
"/saleCensus/initSubstName"
,
params
);
//获取学校下拉列表
let
getSchoolNames
=
(
params
)
=>
postAction
(
prefix
+
"/saleCensus/getSchoolNames"
,
params
);
// 获取充值达标列表
let
getList
=
(
params
)
=>
postAction
(
prefix
+
"/saleCensus/list"
,
params
);
// 导出放号充值达标清单
let
exportOut
=
(
params
)
=>
downFilePost
(
prefix
+
"/saleCensus/exportList"
,
params
);
export
{
initSubstName
,
getSchoolNames
,
getList
,
exportOut
}
src/api/school-center/salesOrder.js
View file @
0ef3cc98
import
{
postAction
,
downFilePost
}
from
'@/api/manage'
import
{
postAction
}
from
'@/api/manage'
const
prefix
=
'/manager/ciop'
;
const
prefix
=
'/manager/ciop'
;
// 智能平台账号实名
// 智能平台账号实名
...
@@ -11,6 +11,6 @@ export {
...
@@ -11,6 +11,6 @@ export {
salesOrderInfo
,
salesOrderInfo
,
ysmUserNotThrough
,
ysmUserNotThrough
,
ysmUserInsert
,
ysmUserInsert
,
ysmUserUpdate
ysmUserUpdate
,
}
}
src/api/school-center/salesOrderAPI.js
0 → 100644
View file @
0ef3cc98
import
{
postAction
,
downFilePost
}
from
'@/api/manage'
const
prefix
=
'/manager/ciop'
;
//获取县分下拉列表
let
initSubstName
=
(
params
)
=>
postAction
(
prefix
+
"/salesOrder/initSubstName"
,
params
);
//获取学校下拉列表
let
getSchoolNames
=
(
params
)
=>
postAction
(
prefix
+
"/salesOrder/getSchoolNames"
,
params
);
// 获取充值达标列表
let
getList
=
(
params
)
=>
postAction
(
prefix
+
"/salesOrder/list"
,
params
);
// 导出放号充值达标清单
let
exportOut
=
(
params
)
=>
downFilePost
(
prefix
+
"/salesOrder/exportList"
,
params
);
// 删除
let
deleteOrder
=
(
params
)
=>
postAction
(
prefix
+
"/salesOrder/deleteOrder"
,
params
);
// 下载导入结果清单
let
downloadResult
=
(
params
)
=>
downFilePost
(
prefix
+
"/salesOrder/exportResult"
,
params
);
export
{
initSubstName
,
getSchoolNames
,
getList
,
deleteOrder
,
downloadResult
,
exportOut
}
src/api/school-center/salesOrdersAPI.js
deleted
100644 → 0
View file @
be3ce4d1
import
{
postAction
,
getAotion
,
downFilePost
}
from
'@/api/manage'
const
prefix
=
'/manager/ciop'
;
// 获取活动列表
let
getList
=
(
params
)
=>
postAction
(
prefix
+
"/salesOrders/list"
,
params
);
// 删除
let
deleteOrder
=
(
params
)
=>
postAction
(
prefix
+
"/salesOrders/deleteOrder"
,
params
);
// 下载放号上传模板
let
downloadTemplateFH
=
(
params
)
=>
downFilePost
(
prefix
+
"/salesOrders/downloadTemplateFH"
,
params
);
// 下载充值审核模板
let
downloadTemplateCZ
=
(
params
)
=>
downFilePost
(
prefix
+
"/salesOrders/downloadTemplateCZ"
,
params
);
// 上传图片
// let uploadImg = (params) => postAction(prefix + "/salesOrders/uploadImg" , params);
// 获取县分下拉列表
let
getSubstList
=
(
params
)
=>
postAction
(
prefix
+
"/school/schoolManagement/substList"
,
params
);
// 获取学校下拉列表
let
getSchoolList
=
(
params
)
=>
postAction
(
prefix
+
"/school/schoolManagement/schoolList"
,
params
);
// 下载导入结果清单
let
downloadResult
=
(
params
)
=>
downFilePost
(
prefix
+
"/salesOrders/exportResult"
,
params
);
// 导出订单
let
exportList
=
(
params
)
=>
downFilePost
(
prefix
+
"/salesOrders/exportOrderList"
,
params
);
export
{
getList
,
deleteOrder
,
getSubstList
,
getSchoolList
,
downloadTemplateFH
,
downloadTemplateCZ
,
downloadResult
,
exportList
}
src/api/school-center/zjlSalaryManagerAPI.js
View file @
0ef3cc98
...
@@ -4,7 +4,7 @@ const prefix = '/manager/ciop';
...
@@ -4,7 +4,7 @@ const prefix = '/manager/ciop';
// 楼长KPI管理
// 楼长KPI管理
let
initSubstName
=
(
params
)
=>
postAction
(
prefix
+
"/zjlWage/initSubstName"
,
params
);
let
initSubstName
=
(
params
)
=>
postAction
(
prefix
+
"/zjlWage/initSubstName"
,
params
);
let
getSchoolNames
=
(
params
)
=>
postAction
(
prefix
+
"/zjlWage/getSchoolNames"
,
params
);
let
getSchoolNames
=
(
params
)
=>
postAction
(
prefix
+
"/zjlWage/getSchoolNames"
,
params
);
let
uploadExcel
=
(
params
)
=>
downFilePost
(
prefix
+
"/zjlWage/excelOut"
,
params
);
let
excelOut
=
(
params
)
=>
downFilePost
(
prefix
+
"/zjlWage/excelOut"
,
params
);
let
downloadMoBan
=
(
params
)
=>
downFilePost
(
prefix
+
"/zjlWage/downloadMoBan"
,
params
);
let
downloadMoBan
=
(
params
)
=>
downFilePost
(
prefix
+
"/zjlWage/downloadMoBan"
,
params
);
let
zjlSalaryList
=
(
params
)
=>
postAction
(
prefix
+
"/zjlWage/list"
,
params
);
let
zjlSalaryList
=
(
params
)
=>
postAction
(
prefix
+
"/zjlWage/list"
,
params
);
let
zjlSalaryDelete
=
(
params
)
=>
postAction
(
prefix
+
"/zjlWage/delete"
,
params
);
let
zjlSalaryDelete
=
(
params
)
=>
postAction
(
prefix
+
"/zjlWage/delete"
,
params
);
...
@@ -16,7 +16,7 @@ let createSalary = (params) => postAction(prefix + "/zjlWage/createSalary",param
...
@@ -16,7 +16,7 @@ let createSalary = (params) => postAction(prefix + "/zjlWage/createSalary",param
export
{
export
{
initSubstName
,
initSubstName
,
getSchoolNames
,
getSchoolNames
,
uploadExcel
,
excelOut
,
downloadMoBan
,
downloadMoBan
,
zjlSalaryList
,
zjlSalaryList
,
zjlSalaryDelete
,
zjlSalaryDelete
,
...
...
src/views/school-center/louZhang/managerKpi.vue
View file @
0ef3cc98
...
@@ -107,10 +107,10 @@
...
@@ -107,10 +107,10 @@
import
ImportBtn
from
"../../../components/sysmanage/ImportBtn"
;
import
ImportBtn
from
"../../../components/sysmanage/ImportBtn"
;
import
{
zjlKpiList
,
uploadExcel
,
downloadMoBan
}
from
"@/api/school-center/managerKpiAPI"
import
{
zjlKpiList
,
uploadExcel
,
downloadMoBan
}
from
"@/api/school-center/managerKpiAPI"
import
{
cloneObject
,
exportFile
}
from
'@/utils/util'
;
import
{
cloneObject
,
exportFile
}
from
'@/utils/util'
;
import
ConstantActivity
from
"@/constant/ConstantActivity"
;
import
Vue
from
'vue'
;
import
Vue
from
'vue'
;
import
{
DatetimePicker
}
from
'vant'
;
import
moment
from
"moment"
;
import
moment
from
"moment"
;
import
ConstantActivity
from
"@/constant/ConstantActivity"
;
import
{
DatetimePicker
}
from
'vant'
;
Vue
.
use
(
DatetimePicker
);
Vue
.
use
(
DatetimePicker
);
...
...
src/views/school-center/louZhang/zjlSalary.vue
View file @
0ef3cc98
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
import
STable
from
'@/components/table'
;
import
STable
from
'@/components/table'
;
import
ImportBtn
from
"../../../components/sysmanage/ImportBtn"
;
import
ImportBtn
from
"../../../components/sysmanage/ImportBtn"
;
import
{
import
{
zjlSalaryList
,
zjlSalaryDelete
,
uploadExcel
,
downloadMoBan
,
createSalary
zjlSalaryList
,
zjlSalaryDelete
,
excelOut
,
downloadMoBan
,
createSalary
}
from
"@/api/school-center/zjlSalaryManagerAPI"
}
from
"@/api/school-center/zjlSalaryManagerAPI"
import
{
cloneObject
,
exportFile
}
from
'@/utils/util'
;
import
{
cloneObject
,
exportFile
}
from
'@/utils/util'
;
import
Vue
from
'vue'
;
import
Vue
from
'vue'
;
...
@@ -256,7 +256,7 @@
...
@@ -256,7 +256,7 @@
let
nowdate
=
moment
().
format
(
"YYYY-MM-DD"
);
let
nowdate
=
moment
().
format
(
"YYYY-MM-DD"
);
//导出
//导出
exportFile
(
exportFile
(
uploadExcel
(
Object
.
assign
(
params
,
obj
)),
excelOut
(
Object
.
assign
(
params
,
obj
)),
"总经理薪酬管理信息"
+
nowdate
+
".xlsx"
,
"总经理薪酬管理信息"
+
nowdate
+
".xlsx"
,
);
);
...
...
src/views/school-center/salesOrders/saleCensus.vue
0 → 100644
View file @
0ef3cc98
<
template
>
<div
class=
"flex-container"
>
<!-- 查询区域 -->
<div
class=
"table-page-search-wrapper"
>
<!-- 搜索区域 -->
<a-form
layout=
"inline"
>
<a-row
:gutter=
"24"
>
<a-col
:md=
"4"
:sm=
"4"
>
<a-form-item
label=
"放号人"
>
<a-input
placeholder=
""
v-model=
"queryParam.name"
></a-input>
</a-form-item>
</a-col>
<a-col
:md=
"4"
:sm=
"10"
>
<a-form-item
label=
"放号账号"
>
<a-input
placeholder=
""
v-model=
"queryParam.account"
></a-input>
</a-form-item>
</a-col>
<a-col
:md=
"4"
:sm=
"2"
>
<a-form-item
label=
"县分"
>
<a-select
v-model=
"queryParam.salesSubst"
@
change=
"getSchoolNames"
>
<a-select-option
key=
""
>
--全部--
</a-select-option>
<a-select-option
v-for=
"d in subNames"
:key=
"d.value"
:value=
"d.value"
>
{{
d
.
text
}}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col
:md=
"6"
:sm=
"12"
>
<a-form-item
label=
"学校"
>
<a-select
v-model=
"queryParam.salesSchool"
style=
"width: 15rem;"
>
<a-select-option
key=
""
>
--全部--
</a-select-option>
<a-select-option
v-for=
"d in schoolNames"
:key=
"d.value"
:value=
"d.value"
>
{{
d
.
text
}}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col
:md=
"4"
:sm=
"8"
>
<a-form-item
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}" label="职位">
<a-select
placeholder=
"--全部--"
v-model=
"queryParam.position"
>
<a-select-option
key=
""
>
--全部--
</a-select-option>
<a-select-option
key=
"总经理"
>
总经理
</a-select-option>
<a-select-option
key=
"楼长"
>
楼长
</a-select-option>
<a-select-option
key=
"成员"
>
成员
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col
:md=
"4"
:sm=
"12"
>
<a-form-item
label=
"上级领导"
>
<a-input
placeholder=
""
v-model=
"queryParam.leader"
></a-input>
</a-form-item>
</a-col>
<a-col
:md=
"6"
:sm=
"12"
>
<a-form-item
label=
"激活时间"
>
<a-range-picker
:placeholder=
"['开始月份', '结束月份']"
format=
"YYYYMM"
:value=
"queryParam.activateTime"
:mode=
"tempMode"
@
panelChange=
"handlePanelChange"
style=
"width: 16rem;"
/>
</a-form-item>
</a-col>
<span
class=
"table-page-search-submitButtons"
style=
"float: left; overflow: hidden;"
>
<a-col
:md=
"6"
:sm=
"24"
>
<a-button
@
click=
"search()"
type=
"primary"
>
查询
</a-button>
<a-divider
type=
"vertical"
/>
<a-button
@
click=
"exportList()"
type=
"primary"
>
导出所有数据
</a-button>
<a-dropdown
>
<a-button
v-show=
"false"
style=
"margin-left: 8px"
>
导入
<a-icon
type=
"down"
/>
<a-menu
slot=
"overlay"
@
click=
"handleMenuClick"
>
<a-menu-item
key=
"1"
>
<a-icon
type=
"arrow-up"
/>
放号上传
</a-menu-item>
<a-menu-item
key=
"2"
>
<a-icon
type=
"arrow-up"
/>
充值审核
</a-menu-item>
<a-menu-item
key=
"3"
>
<a-icon
type=
"arrow-up"
/>
累计充值导入
</a-menu-item>
</a-menu>
</a-button>
</a-dropdown>
</a-col>
</span>
</a-row>
</a-form>
</div>
<!--列表-->
<s-table
:locale=
"emptyText"
:columns=
"columns"
:data=
"rowdata"
bordered
ref=
"table"
size=
"small"
class=
"flex-filling"
>
<!--拦截器-->
<template
slot=
"createTime"
slot-scope=
"text"
>
{{
text
|
dayjs
}}
</
template
>
<!--拦截器-->
<
template
slot=
"activateTime"
slot-scope=
"text"
>
{{
text
|
dayjs
}}
</
template
>
<
template
slot=
"operation"
slot-scope=
"text,record"
>
<!--
<a
@
click=
"modifyfunction(record)"
>
编辑
</a>
-->
<a-divider
type=
"vertical"
/>
<a-popconfirm
title=
"是否要删除此行?"
@
confirm=
"deleteOrder(record.id)"
>
<a>
删除
</a>
</a-popconfirm>
<a-divider
type=
"vertical"
/>
</
template
>
</s-table>
<a-modal
title=
"批量导入"
:visible=
"modifyvisible"
@
ok=
"createfunctionOk"
@
cancel=
"createfunctionCancel"
html-type=
"submit"
width=
"400px"
>
<a-row
:gutter=
"24"
>
<a-col
:md=
"24"
:sm=
"12"
>
<p
style=
"text-align:center"
>
{{ importTile }}
</p>
</a-col>
</a-row>
<import-btn
:url=
"importUrl"
:responseFun=
"doPush"
>
<a-tooltip
placement=
"topLeft"
title=
"导入文件"
arrowPointAtCenter
>
<a-row
:gutter=
"24"
>
<a-col
:md=
"24"
:sm=
"12"
>
<p>
选择文件:
<a-button
type=
"primary"
>
选择文件
</a-button>
</p>
</a-col>
</a-row>
</a-tooltip>
</import-btn>
<a-row
:gutter=
"24"
>
<a-col
:md=
"24"
:sm=
"12"
>
<p
v-show=
"FHTemplate"
>
模板下载:
<a-button
type=
"primary"
@
click=
"downloadTemplateFH"
>
放号上传模板
</a-button>
</p>
<p
v-show=
"CZTemplate"
>
模板下载:
<a-button
type=
"primary"
@
click=
"downloadTemplateCZ"
>
充值审核模板
</a-button>
</p>
<!-- <p v-show="LJTemplate">-->
<!-- 模板下载:-->
<!-- <a-button type="primary" @click="downloadTemplateLJ">累计审核模板</a-button>-->
<!-- </p>-->
</a-col>
</a-row>
</a-modal>
</div>
</template>
<
script
>
import
STable
from
'@/components/table'
;
import
{}
from
"@/api/school-center/salesOrder"
;
import
{
getSchoolNames
,
initSubstName
,
getList
,
deleteOrder
,
exportOut
}
from
"../../../api/school-center/salesCensusAPI"
;
import
{
cloneObject
,
exportFile
}
from
'@/utils/util'
;
import
ImportBtn
from
"../../../components/sysmanage/ImportBtn"
;
import
Vue
from
'vue'
;
import
moment
from
"moment"
;
import
{
DatetimePicker
}
from
'vant'
;
Vue
.
use
(
DatetimePicker
);
export
default
{
name
:
"saleCensus"
,
components
:
{
STable
,
ImportBtn
},
data
:
function
()
{
return
{
emptyText
:
{
emptyText
:
'暂无数据'
},
previewVisible
:
false
,
previewImage
:
''
,
fileList
:
[
],
apis
:
''
,
fileid
:{},
brackgroundurl
:
"manager/ciop/school/schoolManagement/qrcodeUpload"
,
// form
Formtable
:
this
.
$form
.
createForm
(
this
,
{
name
:
'Formtable'
}),
FHTemplate
:
false
,
CZTemplate
:
false
,
importUrl
:
""
,
importTile
:
""
,
modifyvisible
:
false
,
modifyForm
:
{
id
:
''
,
title
:
''
,
desc
:
''
,
integral
:
''
,
activityType
:
''
,
subclass
:
''
,
imageUrl
:
''
,
range
:
''
,
sort
:
''
,
},
packageName
:[],
chosePages
:[],
products
:[],
//输入框列表
queryParam
:
{
name
:
''
,
account
:
''
,
salesSubst
:
''
,
salesSchool
:
''
,
activateTime
:
''
,
position
:
''
,
leader
:
''
,
},
tempMode
:[
'month'
,
'month'
],
schoolNames
:
[],
subNames
:
[],
columns
:
[
{
dataIndex
:
'orderPhone'
,
width
:
25
,
title
:
'放号号码'
,
align
:
"center"
},
{
dataIndex
:
'salesSchool'
,
width
:
30
,
title
:
'放号学校'
,
align
:
"center"
},
{
dataIndex
:
'salesSubst'
,
width
:
15
,
title
:
'放号县分'
,
align
:
"center"
},
{
dataIndex
:
'name'
,
width
:
25
,
title
:
'放号人'
,
align
:
"center"
},
{
dataIndex
:
'account'
,
width
:
30
,
title
:
'放号人账号'
,
align
:
"center"
},
{
dataIndex
:
'position'
,
width
:
30
,
title
:
'职位'
,
align
:
"center"
},
{
dataIndex
:
'leader'
,
width
:
30
,
title
:
'上级领导'
,
align
:
"center"
},
{
dataIndex
:
'president'
,
width
:
30
,
title
:
'总经理'
,
align
:
"center"
},
{
dataIndex
:
'createTime'
,
width
:
30
,
title
:
'上传时间'
,
align
:
"center"
,
scopedSlots
:
{
customRender
:
"createTime"
}},
{
dataIndex
:
'activateTime'
,
width
:
30
,
title
:
'激活时间'
,
align
:
"center"
,
scopedSlots
:
{
customRender
:
"activateTime"
}},
/*{
dataIndex: 'operation',
width: 200,
title: '操作',
align: "center",
scopedSlots: {customRender: 'operation'},
fixed: "right"
}*/
]
,
rowdata
:
parameter
=>
{
/*const env = process.env.NODE_ENV; //获取当前环境
if(env === 'development'){ //测试环境默认添加前缀
this.apis = '/api/';
}*/
let
params
=
{
pageNo
:
parameter
.
pageNo
,
pageSize
:
parameter
.
pageSize
}
//表示
let
obj
=
cloneObject
(
this
.
queryParam
)
return
getList
(
Object
.
assign
(
params
,
obj
)).
then
(
res
=>
{
let
data
=
{}
if
(
res
.
state
!==
'success'
)
{
this
.
$message
.
error
(
"查询失败!"
,
5
);
this
.
emptyText
.
emptyText
=
'查询失败!'
data
=
{
data
:
[],
pageSize
:
parameter
.
pageSize
,
pageNo
:
1
,
totalCount
:
0
}
}
else
{
data
=
{
data
:
res
.
data
.
records
,
pageSize
:
parameter
.
pageSize
,
pageNo
:
parameter
.
pageNo
,
totalCount
:
res
.
data
.
total
}
}
return
data
})
}
}
},
methods
:{
moment
,
handlePanelChange
(
value
,
mode
)
{
this
.
queryParam
.
activateTime
=
value
;
this
.
tempMode
=
[
mode
[
0
]
===
'date'
?
'month'
:
mode
[
0
],
mode
[
1
]
===
'date'
?
'month'
:
mode
[
1
]];
//console.log("this.tempMode=================="+this.tempMode);
},
search
()
{
this
.
$refs
.
table
.
refresh
({
search
:
true
})
},
handleMenuClick
(
e
)
{
if
(
e
.
key
==
"1"
)
{
this
.
handleSubmit1
();
}
if
(
e
.
key
==
"2"
)
{
this
.
handleSubmit2
();
}
},
createfunctionOk
()
{
this
.
modifyvisible
=
false
;
this
.
clearmodel
();
},
createfunctionCancel
()
{
this
.
modifyvisible
=
false
;
this
.
clearmodel
();
},
clearmodel
()
{
this
.
importTile
=
""
;
this
.
FHTemplate
=
false
;
this
.
CZTemplate
=
false
;
this
.
importUrl
=
""
;
},
exportList
(){
let
obj
=
cloneObject
(
this
.
queryParam
)
let
nowdate
=
moment
().
format
(
"YYYY-MM-DD"
);
//导出
exportFile
(
exportOut
(
Object
.
assign
(
obj
)),
"学子公司销量统计"
+
nowdate
+
".xlsx"
,
);
},
getSchoolNames
()
{
this
.
queryParam
.
schoolName
=
''
getSchoolNames
({
"substName"
:
this
.
queryParam
.
salesSubst
}).
then
((
res
)
=>
{
if
(
res
.
state
==
"success"
)
{
const
result
=
res
.
data
result
.
forEach
((
r
)
=>
{
if
(
r
.
schoolName
===
'null'
)
return
;
this
.
schoolNames
.
push
({
value
:
r
.
schoolName
,
text
:
r
.
schoolName
})
})
}
})
},
initSubstName
()
{
initSubstName
().
then
((
res
)
=>
{
if
(
res
.
state
==
"success"
)
{
const
result
=
res
.
data
result
.
forEach
((
r
)
=>
{
if
(
r
.
subName
===
'null'
)
return
;
this
.
subNames
.
push
({
value
:
r
.
subName
,
text
:
r
.
subName
})
})
}
})
}
},
mounted
()
{
this
.
initSubstName
();
this
.
getSchoolNames
();
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/school-center/salesOrders/salesOrder
s
.vue
→
src/views/school-center/salesOrders/salesOrder.vue
View file @
0ef3cc98
...
@@ -5,55 +5,73 @@
...
@@ -5,55 +5,73 @@
<!-- 搜索区域 -->
<!-- 搜索区域 -->
<a-form
layout=
"inline"
>
<a-form
layout=
"inline"
>
<a-row
:gutter=
"24"
>
<a-row
:gutter=
"24"
>
<a-col
:md=
"4"
:sm=
"12"
>
<a-col
:md=
"4"
:sm=
"4"
>
<a-form-item
label=
"电信激活号码:"
>
<a-form-item
label=
"放号人"
>
<a-input
placeholder=
""
v-model=
"queryParam.title"
></a-input>
</a-form-item>
</a-col>
<a-col
:md=
"4"
:sm=
"12"
>
<a-form-item
label=
"放号人:"
>
<a-input
placeholder=
""
v-model=
"queryParam.name"
></a-input>
<a-input
placeholder=
""
v-model=
"queryParam.name"
></a-input>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
:md=
"4"
:sm=
"10"
>
<a-col
:md=
"4"
:sm=
"12"
>
<a-form-item
label=
"放号账号"
>
<a-form-item
label=
"放号账号:"
>
<a-input
placeholder=
""
v-model=
"queryParam.account"
></a-input>
<a-input
placeholder=
""
v-model=
"queryParam.account"
></a-input>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
:md=
"4"
:sm=
"2"
>
<a-col
:md=
"6"
:sm=
"12"
>
<a-form-item
label=
"县分"
>
<a-form-item
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}" label="审核状态">
<a-select
v-model=
"queryParam.salesSubst"
@
change=
"getSchoolNames"
>
<a-select
placeholder=
"请选择"
v-model=
"queryParam.status"
>
<a-select-option
key=
""
>
--全部--
</a-select-option>
<a-select-option
key=
""
>
请选择
</a-select-option>
<a-select-option
v-for=
"d in subNames"
:key=
"d.value"
:value=
"d.value"
>
{{
d
.
text
}}
<a-select-option
key=
"0"
>
重复放号
</a-select-option>
</a-select-option>
<a-select-option
key=
"1"
>
未审核
</a-select-option>
<a-select-option
key=
"2"
>
系统审核不通过
</a-select-option>
<a-select-option
key=
"3"
>
充值审核通过
</a-select-option>
<a-select-option
key=
"4"
>
充值审核不通过
</a-select-option>
</a-select>
</a-select>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
:md=
"6"
:sm=
"12"
>
<a-col
:md=
"6"
:sm=
"12"
>
<a-form-item
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}" label="订单类型">
<a-form-item
label=
"学校"
>
<a-select
placeholder=
"请选择"
v-model=
"queryParam.orderType"
>
<a-select
v-model=
"queryParam.salesSchool"
style=
"width: 15rem;"
>
<a-select-option
key=
""
>
请选择
</a-select-option>
<a-select-option
key=
""
>
--全部--
</a-select-option>
<a-select-option
key=
"1"
>
放号登记
</a-select-option>
<a-select-option
v-for=
"d in schoolNames"
:key=
"d.value"
:value=
"d.value"
>
{{
d
.
text
}}
<a-select-option
key=
"2"
>
新用户办理
</a-select-option>
</a-select-option>
<a-select-option
key=
"3"
>
羊城通
</a-select-option>
</a-select>
</a-select>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
:md=
"4"
:sm=
"8"
>
<a-form-item
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}" label="职位">
<a-select
placeholder=
"--全部--"
v-model=
"queryParam.position"
>
<a-select-option
key=
""
>
--全部--
</a-select-option>
<a-select-option
key=
"总经理"
>
总经理
</a-select-option>
<a-select-option
key=
"楼长"
>
楼长
</a-select-option>
<a-select-option
key=
"成员"
>
成员
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col
:md=
"4"
:sm=
"12"
>
<a-form-item
label=
"上级领导"
>
<a-input
placeholder=
""
v-model=
"queryParam.leader"
></a-input>
</a-form-item>
</a-col>
<a-col
:md=
"4"
:sm=
"12"
>
<a-form-item
label=
"上级总经理"
>
<a-input
placeholder=
""
v-model=
"queryParam.president"
></a-input>
</a-form-item>
</a-col>
<a-col
:md=
"6"
:sm=
"12"
>
<a-form-item
label=
"激活时间"
>
<a-range-picker
:placeholder=
"['开始月份', '结束月份']"
format=
"YYYYMM"
:value=
"queryParam.activateTime"
:mode=
"tempMode"
@
panelChange=
"handlePanelChange"
style=
"width: 16rem;"
/>
</a-form-item>
</a-col>
<span
class=
"table-page-search-submitButtons"
style=
"float: left; overflow: hidden;"
>
<span
class=
"table-page-search-submitButtons"
style=
"float: left; overflow: hidden;"
>
<a-col
:md=
"6"
:sm=
"24"
>
<a-col
:md=
"6"
:sm=
"24"
>
<a-button
@
click=
"search()"
type=
"primary"
>
查询
</a-button>
<a-button
@
click=
"search()"
type=
"primary"
>
查询
</a-button>
<a-divider
type=
"vertical"
/>
<a-divider
type=
"vertical"
/>
<a-button
@
click=
"exportList()"
type=
"primary"
>
导出所有数据
</a-button>
<a-
button
v-show=
"!callback"
@
click=
"exportList()"
style=
"margin-left: 10px"
>
导出
</a-button
>
<a-
dropdown
>
<a-dropdown
>
<a-button
v-show=
"false"
style=
"margin-left: 8px"
>
导入
<a-icon
type=
"down"
/
>
<a-menu
slot=
"overlay"
@
click=
"handleMenuClick"
>
<a-menu
slot=
"overlay"
@
click=
"handleMenuClick"
>
<a-menu-item
key=
"1"
>
<a-menu-item
key=
"1"
>
<a-icon
type=
"arrow-up"
/>
放号上传
<a-icon
type=
"arrow-up"
/>
放号上传
...
@@ -65,9 +83,6 @@
...
@@ -65,9 +83,6 @@
<a-icon
type=
"arrow-up"
/>
累计充值导入
<a-icon
type=
"arrow-up"
/>
累计充值导入
</a-menu-item>
</a-menu-item>
</a-menu>
</a-menu>
<a-button
style=
"margin-left: 8px"
>
导入
<a-icon
type=
"down"
/>
</a-button>
</a-button>
</a-dropdown>
</a-dropdown>
...
@@ -79,8 +94,13 @@
...
@@ -79,8 +94,13 @@
<!--列表-->
<!--列表-->
<s-table
:locale=
"emptyText"
:columns=
"columns"
:data=
"rowdata"
bordered
ref=
"table"
size=
"small"
class=
"flex-filling"
>
<s-table
:locale=
"emptyText"
:columns=
"columns"
:data=
"rowdata"
bordered
ref=
"table"
size=
"small"
class=
"flex-filling"
>
<template
slot=
"imageUrl"
slot-scope=
"text"
>
<!--拦截器-->
<img
style=
"width: 20%"
:src=
"apis + text"
@
click=
"imgClick(text)"
>
<template
slot=
"createTime"
slot-scope=
"text"
>
{{
text
|
dayjs
}}
</
template
>
<!--拦截器-->
<
template
slot=
"activateTime"
slot-scope=
"text"
>
{{
text
|
dayjs
}}
</
template
>
</
template
>
<
template
slot=
"operation"
slot-scope=
"text,record"
>
<
template
slot=
"operation"
slot-scope=
"text,record"
>
<!--
<a
@
click=
"modifyfunction(record)"
>
编辑
</a>
-->
<!--
<a
@
click=
"modifyfunction(record)"
>
编辑
</a>
-->
...
@@ -90,18 +110,6 @@
...
@@ -90,18 +110,6 @@
</a-popconfirm>
</a-popconfirm>
<a-divider
type=
"vertical"
/>
<a-divider
type=
"vertical"
/>
</
template
>
</
template
>
<
template
slot=
"orderTypeScope"
slot-scope=
"text"
>
<p
v-if=
"text=='1'"
>
放号登记
</p>
<p
v-if=
"text=='2'"
>
新用户办卡
</p>
<p
v-if=
"text=='3'"
>
存量升级
</p>
</
template
>
<
template
slot=
"statusScope"
slot-scope=
"text"
>
<p
v-if=
"text=='0'"
>
重复放号
</p>
<p
v-if=
"text=='1'"
>
未审核
</p>
<p
v-if=
"text=='2'"
>
系统审核不通过
</p>
<p
v-if=
"text=='3'"
>
充值审核通过
</p>
<p
v-if=
"text=='4'"
>
系统审核不通过
</p>
</
template
>
</s-table>
</s-table>
<a-modal
<a-modal
...
@@ -151,16 +159,18 @@
...
@@ -151,16 +159,18 @@
<
script
>
<
script
>
import
STable
from
'@/components/table'
;
import
STable
from
'@/components/table'
;
import
{}
from
"@/api/school-center/salesOrder"
;
import
{
import
{
getList
,
getSchoolNames
,
initSubstName
,
getList
,
deleteOrder
,
deleteOrder
,
getSubstList
,
getSchoolList
,
downloadTemplateFH
,
downloadTemplateCZ
,
downloadResult
,
exportOut
downloadTemplateFH
,
downloadTemplateCZ
,
}
from
"../../../api/school-center/salesOrderAPI"
;
downloadResult
,
exportList
}
from
"@/api/school-center/salesOrdersAPI"
import
{
cloneObject
,
exportFile
}
from
'@/utils/util'
;
import
{
cloneObject
,
exportFile
}
from
'@/utils/util'
;
import
ImportBtn
from
"../../../components/sysmanage/ImportBtn"
;
import
ImportBtn
from
"../../../components/sysmanage/ImportBtn"
;
import
Vue
from
'vue'
;
import
moment
from
"moment"
;
import
{
DatetimePicker
}
from
'vant'
;
Vue
.
use
(
DatetimePicker
);
export
default
{
export
default
{
name
:
"salesOrder"
,
name
:
"salesOrder"
,
components
:
{
components
:
{
...
@@ -194,67 +204,48 @@
...
@@ -194,67 +204,48 @@
range
:
''
,
range
:
''
,
sort
:
''
,
sort
:
''
,
},
},
subNameList
:
[],
packageName
:[],
packageName
:[],
chosePages
:[],
chosePages
:[],
products
:[],
products
:[],
//输入框列表
//输入框列表
queryParam
:
{
queryParam
:
{
orderPhone
:
''
,
name
:
''
,
name
:
''
,
account
:
''
,
account
:
''
,
s
tatus
:
''
,
s
alesSubst
:
''
,
orderType
:
''
,
salesSchool
:
''
,
createTimeStart
:
''
,
activateTime
:
''
,
createTimeEnd
:
''
,
president
:
''
,
activateTimeStart
:
''
,
position
:
''
,
activateTimeEnd
:
''
,
leader
:
''
,
},
},
tempMode
:[
'month'
,
'month'
],
schoolNames
:
[],
subNames
:
[],
columns
:
[
columns
:
[
{
dataIndex
:
'salesSchool'
,
width
:
200
,
title
:
'销售学校'
,
align
:
"center"
},
{
dataIndex
:
'orderPhone'
,
width
:
25
,
title
:
'放号号码'
,
align
:
"center"
},
{
dataIndex
:
'salesSubst'
,
width
:
200
,
title
:
'销售县分'
,
align
:
"center"
},
{
dataIndex
:
'salesSchool'
,
width
:
30
,
title
:
'放号学校'
,
align
:
"center"
},
{
dataIndex
:
'orderPhone'
,
width
:
200
,
title
:
'电信激活号码'
,
align
:
"center"
},
{
dataIndex
:
'salesSubst'
,
width
:
15
,
title
:
'放号县分'
,
align
:
"center"
},
{
dataIndex
:
'name'
,
width
:
200
,
title
:
'放号人'
,
align
:
"center"
},
{
dataIndex
:
'name'
,
width
:
25
,
title
:
'放号人'
,
align
:
"center"
},
{
dataIndex
:
'account'
,
width
:
200
,
title
:
'放号人账号'
,
align
:
"center"
},
{
dataIndex
:
'account'
,
width
:
30
,
title
:
'放号人账号'
,
align
:
"center"
},
{
dataIndex
:
'createTime'
,
width
:
200
,
title
:
'上传时间'
,
align
:
"center"
},
{
dataIndex
:
'position'
,
width
:
30
,
title
:
'职位'
,
align
:
"center"
},
{
{
dataIndex
:
'leader'
,
width
:
30
,
title
:
'上级领导'
,
align
:
"center"
},
dataIndex
:
'orderType'
,
width
:
200
,
title
:
'订单类型'
,
align
:
"center"
,
{
dataIndex
:
'president'
,
width
:
30
,
title
:
'总经理'
,
align
:
"center"
},
scopedSlots
:
{
customRender
:
"orderTypeScope"
}
{
dataIndex
:
'createTime'
,
width
:
30
,
title
:
'上传时间'
,
align
:
"center"
,
scopedSlots
:
{
customRender
:
"createTime"
}},
},
{
dataIndex
:
'activateTime'
,
width
:
30
,
title
:
'激活时间'
,
align
:
"center"
,
scopedSlots
:
{
customRender
:
"activateTime"
}},
{
dataIndex
:
'networkName'
,
width
:
200
,
title
:
'所属网点'
,
align
:
"center"
},
/*{
{
dataIndex
:
'networkCode'
,
width
:
200
,
title
:
'网点编码'
,
align
:
"center"
},
{
dataIndex
:
'status'
,
width
:
200
,
title
:
'审核状态'
,
align
:
"center"
,
scopedSlots
:
{
customRender
:
"statusScope"
}
},
{
dataIndex
:
'remark'
,
width
:
200
,
title
:
'审核备注'
,
align
:
"center"
},
{
dataIndex
:
'auditTime'
,
width
:
200
,
title
:
'审核时间'
,
align
:
"center"
},
{
dataIndex
:
'activateTime'
,
width
:
200
,
title
:
'激活时间'
,
align
:
"center"
},
{
dataIndex
:
'recentlyAmount'
,
width
:
200
,
title
:
'最近充值'
,
align
:
"center"
},
{
dataIndex
:
'recentlyBonus'
,
width
:
200
,
title
:
'最近充值激励'
,
align
:
"center"
},
{
dataIndex
:
'capitalBonus'
,
width
:
200
,
title
:
'本金佣金'
,
align
:
"center"
},
{
dataIndex
:
'monthAmount'
,
width
:
200
,
title
:
'累计充值金额'
,
align
:
"center"
},
{
dataIndex
:
'monthBonus'
,
width
:
200
,
title
:
'累计充值激励'
,
align
:
"center"
},
{
dataIndex
:
'allBonus'
,
width
:
200
,
title
:
'应发总激励'
,
align
:
"center"
},
{
dataIndex
:
'nonSendBonus'
,
width
:
200
,
title
:
'未发激励'
,
align
:
"center"
},
{
dataIndex
:
'sendBonus'
,
width
:
200
,
title
:
'已发激励'
,
align
:
"center"
},
{
dataIndex
:
'oldCombo'
,
width
:
200
,
title
:
'原套餐'
,
align
:
"center"
},
{
dataIndex
:
'upgradeCombo'
,
width
:
200
,
title
:
'升级套餐'
,
align
:
"center"
},
{
dataIndex: 'operation',
dataIndex: 'operation',
width: 200,
width: 200,
title: '操作',
title: '操作',
align: "center",
align: "center",
scopedSlots: {customRender: 'operation'},
scopedSlots: {customRender: 'operation'},
fixed: "right"
fixed: "right"
}]
}
*/
]
,
,
rowdata
:
parameter
=>
{
rowdata
:
parameter
=>
{
const
env
=
process
.
env
.
NODE_ENV
;
//获取当前环境
/*
const env = process.env.NODE_ENV; //获取当前环境
if(env === 'development'){ //测试环境默认添加前缀
if(env === 'development'){ //测试环境默认添加前缀
this.apis = '/api/';
this.apis = '/api/';
}
}*/
let
params
=
{
let
params
=
{
pageNo
:
parameter
.
pageNo
,
pageNo
:
parameter
.
pageNo
,
pageSize
:
parameter
.
pageSize
pageSize
:
parameter
.
pageSize
...
@@ -264,9 +255,8 @@
...
@@ -264,9 +255,8 @@
return
getList
(
Object
.
assign
(
params
,
obj
)).
then
(
res
=>
{
return
getList
(
Object
.
assign
(
params
,
obj
)).
then
(
res
=>
{
let
data
=
{}
let
data
=
{}
if
(
res
.
state
!==
'success'
)
{
if
(
res
.
state
!==
'success'
)
{
this
.
emptyText
.
emptyText
=
'查询失败!'
this
.
$message
.
error
(
"查询失败!"
,
5
);
this
.
$message
.
error
(
"查询失败!"
,
5
);
this
.
emptyText
.
emptyText
=
'查询失败!'
data
=
{
data
=
{
data
:
[],
data
:
[],
pageSize
:
parameter
.
pageSize
,
pageSize
:
parameter
.
pageSize
,
...
@@ -274,11 +264,6 @@
...
@@ -274,11 +264,6 @@
totalCount
:
0
totalCount
:
0
}
}
}
else
{
}
else
{
if
(
res
.
data
.
records
.
length
==
0
){
return
data
}
data
=
{
data
=
{
data
:
res
.
data
.
records
,
data
:
res
.
data
.
records
,
pageSize
:
parameter
.
pageSize
,
pageSize
:
parameter
.
pageSize
,
...
@@ -292,6 +277,12 @@
...
@@ -292,6 +277,12 @@
}
}
},
},
methods
:{
methods
:{
moment
,
handlePanelChange
(
value
,
mode
)
{
this
.
queryParam
.
activateTime
=
value
;
this
.
tempMode
=
[
mode
[
0
]
===
'date'
?
'month'
:
mode
[
0
],
mode
[
1
]
===
'date'
?
'month'
:
mode
[
1
]];
//console.log("this.tempMode=================="+this.tempMode);
},
search
()
{
search
()
{
this
.
$refs
.
table
.
refresh
({
search
:
true
})
this
.
$refs
.
table
.
refresh
({
search
:
true
})
},
},
...
@@ -373,12 +364,51 @@
...
@@ -373,12 +364,51 @@
})
})
},
},
exportList
(){
exportList
(){
let
obj
=
cloneObject
(
this
.
queryParam
)
exportFile
(
exportList
(
this
.
queryParam
),
'销售清单.xlsx'
);
let
nowdate
=
moment
().
format
(
"YYYY-MM-DD"
);
}
//导出
exportFile
(
exportOut
(
Object
.
assign
(
obj
)),
"放号充值达标清单"
+
nowdate
+
".xlsx"
,
);
},
getSchoolNames
()
{
this
.
queryParam
.
schoolName
=
''
getSchoolNames
({
"substName"
:
this
.
queryParam
.
salesSubst
}).
then
((
res
)
=>
{
if
(
res
.
state
==
"success"
)
{
const
result
=
res
.
data
result
.
forEach
((
r
)
=>
{
if
(
r
.
schoolName
===
'null'
)
return
;
this
.
schoolNames
.
push
({
value
:
r
.
schoolName
,
text
:
r
.
schoolName
})
})
}
})
},
initSubstName
()
{
initSubstName
().
then
((
res
)
=>
{
if
(
res
.
state
==
"success"
)
{
const
result
=
res
.
data
result
.
forEach
((
r
)
=>
{
if
(
r
.
subName
===
'null'
)
return
;
this
.
subNames
.
push
({
value
:
r
.
subName
,
text
:
r
.
subName
})
})
}
})
}
},
mounted
()
{
this
.
initSubstName
();
this
.
getSchoolNames
();
}
}
}
}
</
script
>
</
script
>
...
...
src/views/school-center/yxtManager/exchangeCoupon.vue
View file @
0ef3cc98
...
@@ -84,8 +84,7 @@
...
@@ -84,8 +84,7 @@
</a-row>
</a-row>
</a-modal>
</a-modal>
<!--列表-->
<!--列表-->
<s-table
:columns=
"columns"
:data=
"rowdata"
bordered
ref=
"table"
size=
"small"
class=
"flex-filling"
<s-table
:columns=
"columns"
:data=
"rowdata"
bordered
ref=
"table"
size=
"small"
class=
"flex-filling"
:locale=
"emptyText"
>
:locale=
"emptyText"
>
<!--拦截器-->
<!--拦截器-->
<template
slot=
"updateDate"
slot-scope=
"text"
>
<template
slot=
"updateDate"
slot-scope=
"text"
>
{{
text
|
dayjs
}}
{{
text
|
dayjs
}}
...
@@ -117,8 +116,7 @@
...
@@ -117,8 +116,7 @@
</
template
>
</
template
>
</s-table>
</s-table>
<!----弹框-->
<!----弹框-->
<a-modal
:title=
"add ?'添加正则配置': '编辑正则配置'"
:visible=
"modifyvisible"
@
ok=
"createfunctionOk"
<a-modal
:title=
"add ?'添加正则配置': '编辑正则配置'"
:visible=
"modifyvisible"
@
ok=
"createfunctionOk"
@
cancel=
"createfunctionCancel"
html-type=
"submit"
width=
"1024px"
>
@
cancel=
"createfunctionCancel"
html-type=
"submit"
width=
"1024px"
>
<a-form
:form=
"Formtable"
>
<a-form
:form=
"Formtable"
>
<a-form-item
:labelCol=
"{span: 5}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"兑换券账号:"
>
<a-form-item
:labelCol=
"{span: 5}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"兑换券账号:"
>
<a-input
placeholder=
"兑换券账号"
<a-input
placeholder=
"兑换券账号"
...
...
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