Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
350d6b86
Commit
350d6b86
authored
Jun 27, 2022
by
jiuping520
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
e6bdde78
1cb3e1c7
Changes
12
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
341 additions
and
287 deletions
+341
-287
customer.js
src/api/ecw/customer.js
+5
-6
product.js
src/api/ecw/product.js
+9
-0
index.vue
src/components/CustomerFollow/index.vue
+7
-3
index.vue
src/components/FileUpload/index.vue
+3
-2
dict.js
src/utils/dict.js
+1
-1
ruoyi.js
src/utils/ruoyi.js
+6
-1
index.vue
src/views/ecw/bankAccount/index.vue
+19
-19
query.vue
src/views/ecw/customer/query.vue
+1
-1
index.vue
src/views/ecw/customerComplaint/index.vue
+1
-1
index.vue
src/views/ecw/oceanCustomer/index.vue
+56
-241
edit.vue
src/views/ecw/productAttr/edit.vue
+146
-0
index.vue
src/views/ecw/productBrank/Empower/index.vue
+87
-12
No files found.
src/api/ecw/customer.js
View file @
350d6b86
...
@@ -89,7 +89,7 @@ export function getWaitForDistributionList(query) {
...
@@ -89,7 +89,7 @@ export function getWaitForDistributionList(query) {
})
})
}
}
//
确认
//
移交
export
function
handOverCustomer
(
data
)
{
export
function
handOverCustomer
(
data
)
{
return
request
({
return
request
({
url
:
'
/ecw/customer/handOver
'
,
url
:
'
/ecw/customer/handOver
'
,
...
@@ -107,11 +107,10 @@ export function getPublicList(query) {
...
@@ -107,11 +107,10 @@ export function getPublicList(query) {
})
})
}
}
//
公海池客户
//
捞取
export
function
getMineList
(
query
)
{
export
function
setFishing
(
query
)
{
return
request
({
return
request
({
url
:
'
/ecw/customer/get-mine
'
,
url
:
''
,
method
:
'
get
'
,
params
:
query
})
})
}
}
src/api/ecw/product.js
View file @
350d6b86
...
@@ -60,3 +60,12 @@ export function exportProductExcel(query) {
...
@@ -60,3 +60,12 @@ export function exportProductExcel(query) {
responseType
:
'
blob
'
responseType
:
'
blob
'
})
})
}
}
// 批量更新产品
export
function
batchUpdateProduct
(
data
)
{
return
request
({
url
:
'
/ecw/product/batchUpdate
'
,
method
:
'
put
'
,
data
:
data
})
}
src/components/CustomerFollow/index.vue
View file @
350d6b86
...
@@ -134,7 +134,11 @@ export default {
...
@@ -134,7 +134,11 @@ export default {
*/
*/
name
:
"
CustomerFollow
"
,
name
:
"
CustomerFollow
"
,
props
:
{
props
:
{
customerId
:
Number
/**
* 如果是客户投诉跟进,则id为客户投诉id;如果是客户跟进,则id为客户id
*/
id
:
Number
,
customerId
:
Number
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -179,7 +183,7 @@ export default {
...
@@ -179,7 +183,7 @@ export default {
resetCustomerFollowForm
()
{
resetCustomerFollowForm
()
{
this
.
customerFollow
.
form
=
{
this
.
customerFollow
.
form
=
{
"
bizId
"
:
this
.
customerI
d
,
"
bizId
"
:
this
.
i
d
,
"
contactName
"
:
undefined
,
"
contactName
"
:
undefined
,
"
feedback
"
:
undefined
,
"
feedback
"
:
undefined
,
"
followMethod
"
:
undefined
,
"
followMethod
"
:
undefined
,
...
@@ -190,7 +194,7 @@ export default {
...
@@ -190,7 +194,7 @@ export default {
}
}
},
},
getCustomerFollowList
()
{
getCustomerFollowList
()
{
getCustomerFollowPage
({
bizId
:
this
.
customerI
d
}).
then
(
r
=>
{
getCustomerFollowPage
({
bizId
:
this
.
i
d
}).
then
(
r
=>
{
this
.
customerFollowList
=
r
.
data
.
list
this
.
customerFollowList
=
r
.
data
.
list
})
})
}
}
...
...
src/components/FileUpload/index.vue
View file @
350d6b86
...
@@ -73,7 +73,7 @@ export default {
...
@@ -73,7 +73,7 @@ export default {
number
:
0
,
number
:
0
,
uploadList
:
[],
uploadList
:
[],
baseUrl
:
process
.
env
.
VUE_APP_BASE_API
,
baseUrl
:
process
.
env
.
VUE_APP_BASE_API
,
uploadFileUrl
:
process
.
env
.
VUE_APP_BASE_API
+
"
/
common/upload
"
,
// 上传的图片
服务器地址
uploadFileUrl
:
process
.
env
.
VUE_APP_BASE_API
+
"
/
app-api/file/upload
"
,
// 上传的文件
服务器地址
headers
:
{
headers
:
{
Authorization
:
"
Bearer
"
+
getToken
(),
Authorization
:
"
Bearer
"
+
getToken
(),
},
},
...
@@ -152,7 +152,8 @@ export default {
...
@@ -152,7 +152,8 @@ export default {
},
},
// 上传成功回调
// 上传成功回调
handleUploadSuccess
(
res
)
{
handleUploadSuccess
(
res
)
{
this
.
uploadList
.
push
({
name
:
res
.
fileName
,
url
:
res
.
fileName
});
// todo 接口返回值没有文件名
this
.
uploadList
.
push
({
name
:
res
.
data
,
url
:
res
.
data
});
if
(
this
.
uploadList
.
length
===
this
.
number
)
{
if
(
this
.
uploadList
.
length
===
this
.
number
)
{
this
.
fileList
=
this
.
fileList
.
concat
(
this
.
uploadList
);
this
.
fileList
=
this
.
fileList
.
concat
(
this
.
uploadList
);
this
.
uploadList
=
[];
this
.
uploadList
=
[];
...
...
src/utils/dict.js
View file @
350d6b86
...
@@ -63,7 +63,7 @@ export const DICT_TYPE = {
...
@@ -63,7 +63,7 @@ export const DICT_TYPE = {
PAY_REFUND_ORDER_STATUS
:
'
pay_refund_order_status
'
,
// 退款订单状态
PAY_REFUND_ORDER_STATUS
:
'
pay_refund_order_status
'
,
// 退款订单状态
PAY_REFUND_ORDER_TYPE
:
'
pay_refund_order_type
'
,
// 退款订单类别
PAY_REFUND_ORDER_TYPE
:
'
pay_refund_order_type
'
,
// 退款订单类别
ECW_BANK_TYPE
:
'
bank_type
'
,
// 银行账号类型
ECW_BANK_TYPE
:
'
bank_type
'
,
// 银行账号类型
ECW_DATA_SOURCE
:
'
data_source
'
,
// 数据来源
//
ECW_DATA_SOURCE: 'data_source', // 数据来源
ECW_REGION_TYPE
:
'
region_trade_type
'
,
// 区域类型
ECW_REGION_TYPE
:
'
region_trade_type
'
,
// 区域类型
ECW_TRANSPORT_TYPE
:
'
transport_type
'
,
//货运方式
ECW_TRANSPORT_TYPE
:
'
transport_type
'
,
//货运方式
ECW_CHARGE_TYPE
:
'
warehouse_charge_type
'
,
//仓储收费方式
ECW_CHARGE_TYPE
:
'
warehouse_charge_type
'
,
//仓储收费方式
...
...
src/utils/ruoyi.js
View file @
350d6b86
...
@@ -5,7 +5,12 @@
...
@@ -5,7 +5,12 @@
const
baseURL
=
process
.
env
.
VUE_APP_BASE_API
const
baseURL
=
process
.
env
.
VUE_APP_BASE_API
// 日期格式化
/**
* 日期格式化
* @param time {String|Number|Date} 时间
* @param pattern {String} '{y}-{m}-{d} {h}:{i}:{s}'
* @returns {string|null}
*/
export
function
parseTime
(
time
,
pattern
)
{
export
function
parseTime
(
time
,
pattern
)
{
if
(
arguments
.
length
===
0
||
!
time
)
{
if
(
arguments
.
length
===
0
||
!
time
)
{
return
null
return
null
...
...
src/views/ecw/bankAccount/index.vue
View file @
350d6b86
...
@@ -26,12 +26,12 @@
...
@@ -26,12 +26,12 @@
<el-option
v-for=
"dict in bankTypeDatas"
:key=
"parseInt(dict.value)"
:label=
"dict.label"
:value=
"parseInt(dict.value)"
/>
<el-option
v-for=
"dict in bankTypeDatas"
:key=
"parseInt(dict.value)"
:label=
"dict.label"
:value=
"parseInt(dict.value)"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"数据来源"
prop=
"source"
>
<!--
<el-form-item
label=
"数据来源"
prop=
"source"
>
--
>
<!--
<el-input
v-model=
"queryParams.source"
placeholder=
"请输入数据来源字典(pc端,mobile端)"
clearable
@
keyup.enter.native=
"handleQuery"
/>
-->
<!--
<!–
<el-input
v-model=
"queryParams.source"
placeholder=
"请输入数据来源字典(pc端,mobile端)"
clearable
@
keyup.enter.native=
"handleQuery"
/>
–>
-->
<el-select
v-model=
"queryParams.source"
placeholder=
"请选择数据来源"
clearable
style=
"width: 240px"
>
<!--
<el-select
v-model=
"queryParams.source"
placeholder=
"请选择数据来源"
clearable
style=
"width: 240px"
>
--
>
<el-option
v-for=
"dict in sourceDatas"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/
>
<!--
<el-option
v-for=
"dict in sourceDatas"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
--
>
</el-select
>
<!--
</el-select>
--
>
</el-form-item
>
<!--
</el-form-item>
--
>
<el-form-item
label=
"状态"
prop=
"status"
>
<el-form-item
label=
"状态"
prop=
"status"
>
<el-select
v-model=
"queryParams.status"
placeholder=
"用户状态"
clearable
style=
"width: 240px"
>
<el-select
v-model=
"queryParams.status"
placeholder=
"用户状态"
clearable
style=
"width: 240px"
>
<el-option
v-for=
"dict in statusDictDatas"
:key=
"parseInt(dict.value)"
:label=
"dict.label"
:value=
"parseInt(dict.value)"
/>
<el-option
v-for=
"dict in statusDictDatas"
:key=
"parseInt(dict.value)"
:label=
"dict.label"
:value=
"parseInt(dict.value)"
/>
...
@@ -73,11 +73,11 @@
...
@@ -73,11 +73,11 @@
<dict-tag
:type=
"DICT_TYPE.ECW_BANK_TYPE"
:value=
"scope.row.baType"
/>
<dict-tag
:type=
"DICT_TYPE.ECW_BANK_TYPE"
:value=
"scope.row.baType"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"数据来源"
align=
"center"
prop=
"source"
>
<!-- <el-table-column label="数据来源" align="center" prop="source" >--
>
<
template
slot-scope=
"scope"
>
<!-- <template slot-scope="scope">--
>
<dict-tag
:type=
"DICT_TYPE.ECW_DATA_SOURCE"
:value=
"scope.row.source"
/
>
<!-- <dict-tag :type="DICT_TYPE.ECW_DATA_SOURCE" :value="scope.row.source"/>--
>
</
template
>
<!-- </template>--
>
</el-table-column
>
<!-- </el-table-column>--
>
<!-- <el-table-column label="状态" align="center" prop="status" />-->
<!-- <el-table-column label="状态" align="center" prop="status" />-->
<el-table-column
label=
"状态"
key=
"status"
align=
"center"
>
<el-table-column
label=
"状态"
key=
"status"
align=
"center"
>
...
@@ -130,14 +130,14 @@
...
@@ -130,14 +130,14 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"数据字典"
prop=
"source"
>
<!-- <el-form-item label="数据字典" prop="source">--
>
<!-- <el-select v-model="form.baType" placeholder="请选择类型">
-->
<!-- <!– <el-select v-model="form.baType" placeholder="请选择类型">–>
-->
<!-- <el-option label="请选择字典生成" value="" />
-->
<!-- <!– <el-option label="请选择字典生成" value="" />–>
-->
<!-- </el-select>
-->
<!-- <!– </el-select>–>
-->
<el-select
v-model=
"form.source"
placeholder=
"请选择数据来源"
clearable
style=
"width: 240px"
>
<!-- <el-select v-model="form.source" placeholder="请选择数据来源" clearable style="width: 240px">--
>
<el-option
v-for=
"dict in sourceDatas"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/
>
<!-- <el-option v-for="dict in sourceDatas" :key="dict.value" :label="dict.label" :value="dict.value"/>--
>
</el-select
>
<!-- </el-select>--
>
</el-form-item
>
<!-- </el-form-item>--
>
<!-- <el-form-item label="状态" prop="status">-->
<!-- <el-form-item label="状态" prop="status">-->
<!-- <el-radio-group v-model="form.status">-->
<!-- <el-radio-group v-model="form.status">-->
<!--<!– <el-radio label="1">请选择字典生成</el-radio>–>-->
<!--<!– <el-radio label="1">请选择字典生成</el-radio>–>-->
...
...
src/views/ecw/customer/query.vue
View file @
350d6b86
...
@@ -147,7 +147,7 @@
...
@@ -147,7 +147,7 @@
<
/el-table
>
<
/el-table
>
<
/el-tab-pane
>
<
/el-tab-pane
>
<
el
-
tab
-
pane
label
=
"
跟进
"
>
<
el
-
tab
-
pane
label
=
"
跟进
"
>
<
customer
-
follow
ref
=
"
customerFollow
"
:
customer
-
id
=
"
id
"
><
/customer-follow
>
<
customer
-
follow
ref
=
"
customerFollow
"
:
id
=
"
id
"
:
customer
-
id
=
"
id
"
><
/customer-follow
>
<
/el-tab-pane
>
<
/el-tab-pane
>
<
el
-
tab
-
pane
label
=
"
客户投诉
"
>
<
el
-
tab
-
pane
label
=
"
客户投诉
"
>
<
customer
-
complaint
ref
=
"
customerComplaint
"
:
customer
-
id
=
"
id
"
hidden
-
search
><
/customer-complaint
>
<
customer
-
complaint
ref
=
"
customerComplaint
"
:
customer
-
id
=
"
id
"
hidden
-
search
><
/customer-complaint
>
...
...
src/views/ecw/customerComplaint/index.vue
View file @
350d6b86
...
@@ -128,7 +128,7 @@
...
@@ -128,7 +128,7 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<customer-follow
v-
show=
"!!this.form.id"
:customer-id=
"form.i
d"
></customer-follow>
<customer-follow
v-
if=
"!!this.form.id"
:id=
"form.id"
:customer-id=
"form.customerI
d"
></customer-follow>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
...
...
src/views/ecw/oceanCustomer/index.vue
View file @
350d6b86
This diff is collapsed.
Click to expand it.
src/views/ecw/productAttr/edit.vue
0 → 100644
View file @
350d6b86
<
template
>
<div
class=
"app-container"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-form-item
label=
"适用商品"
prop=
"idList"
v-if=
"form.type != 1"
>
<products-selector
v-model=
"form.idList"
/>
</el-form-item>
<el-form-item
label=
"货柜位置"
prop=
"containerLocation"
>
<el-checkbox
style=
"width: 100px"
v-model=
"checked[0]"
>
需要修改
</el-checkbox>
<dict-selector
v-if=
"checked[0]"
:type=
"DICT_TYPE.ECW_CONTAINER_LOCATION"
v-model=
"form.containerLocation"
/>
</el-form-item>
<el-form-item
label=
"出运要求"
prop=
"requirements"
>
<el-checkbox
style=
"width: 100px;margin-right: 0;"
v-model=
"checked[1]"
>
需要修改
</el-checkbox>
<el-checkbox
v-if=
"checked[1]"
true-label=
"1"
v-model=
"form.requirements"
>
证书要求(支持多证书)
</el-checkbox>
</el-form-item>
<el-form-item
label=
"方数要求"
prop=
"square"
>
<el-checkbox
style=
"width: 100px"
v-model=
"checked[2]"
>
需要修改
</el-checkbox>
<el-input
v-if=
"checked[2]"
v-model=
"form.square"
placeholder=
""
style=
"width: 200px"
></el-input>
</el-form-item>
<el-form-item
label=
"包装要求"
prop=
"packaging"
>
<el-checkbox
style=
"width: 100px"
v-model=
"checked[3]"
>
需要修改
</el-checkbox>
<dict-selector
v-if=
"checked[3]"
:type=
"DICT_TYPE.ECW_PACKAGING_TYPE"
v-model=
"form.packaging"
/>
</el-form-item>
<el-form-item
label=
"需要预约入仓"
prop=
"needBook"
>
<el-checkbox
style=
"width: 100px"
v-model=
"checked[4]"
>
需要修改
</el-checkbox>
<dict-selector
v-if=
"checked[4]"
formatter=
"bool"
form-type=
"radio"
:type=
"DICT_TYPE.ECW_YESNO"
v-model=
"form.needBook"
:formater=
"Boolean"
/>
</el-form-item>
<el-form-item
label=
"每日入仓上限"
prop=
"dayLimit"
>
<el-checkbox
style=
"width: 100px"
v-model=
"checked[5]"
>
需要修改
</el-checkbox>
<el-input
v-if=
"checked[5]"
placeholder=
""
v-model=
"form.dayLimit"
style=
"width: 200px"
>
<template
slot=
"suffix"
>
立方米
</
template
>
</el-input>
</el-form-item>
<el-form-item
label=
"商品特性"
prop=
"attrId"
>
<el-checkbox
style=
"width: 100px"
v-model=
"checked[6]"
>
需要修改
</el-checkbox>
<dict-selector
v-if=
"checked[6]"
form-type=
"checkbox"
:type=
"DICT_TYPE.ECW_ORDER_ATTR"
v-model=
"form.attrId"
multiple
/>
</el-form-item>
<!-- <el-form-item label="商品材质" prop="">
<el-checkbox style="width: 100px" v-model="checked[7]">需要修改</el-checkbox>
<dict-selector v-if="checked[7]" form-type="checkbox" :type="DICT_TYPE.ECW_PRODUCT_MATERIAL" v-model="form.status" multiple />
</el-form-item> -->
<el-form-item>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
@
click=
"$router.back()"
>
返 回
</el-button>
<el-button
type=
"default"
@
click=
"reset"
>
重 置
</el-button>
</el-form-item>
</el-form>
</div>
</template>
<
script
>
import
{
batchUpdateProduct
}
from
'
@/api/ecw/product
'
;
import
CustomersSelector
from
'
@/components/CustomersSelector
'
import
{
getDictData
}
from
'
@/utils/dict
'
import
RoutersSelector
from
'
@/components/RoutersSelector
'
import
ProductsSelector
from
'
@/components/ProductsSelector
'
import
Editor
from
'
@/components/Editor
'
import
Selector
from
'
@/components/Selector/index
'
export
default
{
name
:
"
AttrEdit
"
,
components
:
{
CustomersSelector
,
RoutersSelector
,
ProductsSelector
,
Editor
,
Selector
},
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 表单参数
form
:
{
"
attrId
"
:
undefined
,
"
containerLocation
"
:
undefined
,
"
dayLimit
"
:
undefined
,
"
idList
"
:
[],
"
isAllProduct
"
:
undefined
,
"
needBook
"
:
undefined
,
"
packaging
"
:
undefined
,
"
requirements
"
:
undefined
,
"
square
"
:
undefined
},
// 表单校验
rules
:
{},
checked
:
[
false
,
false
,
false
,
false
,
false
,
false
,
false
]
};
},
computed
:
{
},
watch
:
{
'
form.idList
'
(
val
)
{
if
(
val
.
length
>
0
)
{
this
.
form
.
isAllProduct
=
undefined
}
else
{
this
.
form
.
isAllProduct
=
1
}
}
},
created
()
{
this
.
reset
()
},
methods
:
{
/** 表单重置 */
reset
()
{
this
.
form
=
{
"
attrId
"
:
undefined
,
"
containerLocation
"
:
undefined
,
"
dayLimit
"
:
undefined
,
"
idList
"
:
[],
"
isAllProduct
"
:
undefined
,
"
needBook
"
:
undefined
,
"
packaging
"
:
undefined
,
"
requirements
"
:
undefined
,
"
square
"
:
undefined
};
this
.
resetForm
(
"
form
"
);
},
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
"
form
"
].
validate
((
valid
)
=>
{
if
(
!
valid
)
{
return
;
}
let
data
=
Object
.
assign
({},
this
.
form
)
batchUpdateProduct
(
data
).
then
((
response
)
=>
{
this
.
$modal
.
msgSuccess
(
"
修改成功
"
);
this
.
$router
.
back
();
});
});
},
},
};
</
script
>
<
style
scoped
lang=
"scss"
>
.fee-item
{
padding
:
5px
0
;
>
div
{
margin-right
:
5px
;
}
}
.coupon-list
{
max-height
:
200px
;
border
:
1px
solid
#ccc
;
padding
:
10px
;
overflow-y
:
auto
;
}
</
style
>
\ No newline at end of file
src/views/ecw/productBrank/Empower/index.vue
View file @
350d6b86
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<el-tab-pane
label=
"未授权客户"
name=
"first"
>
<el-tab-pane
label=
"未授权客户"
name=
"first"
>
<el-form
:inline=
"true"
class=
"demo-form-inline"
>
<el-form
:inline=
"true"
class=
"demo-form-inline"
>
<el-form-item
label=
"关键字"
>
<el-form-item
label=
"关键字"
>
<el-input
v-model=
"
customerKey"
placeholder=
"审批人
"
></el-input>
<el-input
v-model=
"
list1QueryParams.customerKey"
placeholder=
"请填入关键字
"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"filterCustomer"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"filterCustomer"
>
查询
</el-button>
...
@@ -36,6 +36,9 @@
...
@@ -36,6 +36,9 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<pagination
v-show=
"total1 > 0"
:total=
"total1"
:page.sync=
"list1QueryParams.pageNo"
:limit.sync=
"list1QueryParams.pageSize"
@
pagination=
"getList1"
style=
"height: 40px"
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"已授权客户"
name=
"second"
>
<el-tab-pane
label=
"已授权客户"
name=
"second"
>
<el-table
<el-table
...
@@ -49,18 +52,48 @@
...
@@ -49,18 +52,48 @@
prop=
"phone"
prop=
"phone"
label=
"客户号码"
>
label=
"客户号码"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"fileUrl"
label=
"授权证明"
>
<
template
v-slot=
"{row}"
>
<div
v-if=
"!!row.fileUrl && row.fileUrl.length > 0"
>
<span
v-for=
"(item, index) in row.fileUrl.split(',')"
>
<a
:href=
"item"
target=
"_blank"
>
附件
{{
index
+
1
}}
</a>
,
</span>
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"startTime"
width=
"200px"
:formatter=
"(row) => parseTime(row.startTime, '{y}-{m}-{d}') + ' - ' + parseTime(row.endTime, '{y}-{m}-{d}')"
label=
"授权时间"
>
</el-table-column>
<el-table-column
prop=
"feeScale"
:formatter=
"(row) => getDictDataLabel(DICT_TYPE.BRAND_CUSTOMER_CHARGING_MODEL, row.feeScale)"
label=
"收费标准"
>
</el-table-column>
<el-table-column
prop=
"createUsername"
label=
"添加人"
>
</el-table-column>
<el-table-column
<el-table-column
width=
"100px"
width=
"100px"
label=
"操作"
>
label=
"操作"
>
<
template
v-slot=
"{row}"
>
<
template
v-slot=
"{row}"
>
<el-button
type=
"
primary
"
size=
"mini"
@
click=
"handleDelete(row.id)"
>
删除
</el-button>
<el-button
type=
"
danger
"
size=
"mini"
@
click=
"handleDelete(row.id)"
>
删除
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<pagination
v-show=
"total2 > 0"
:total=
"total2"
:page.sync=
"list2QueryParams.pageNo"
:limit.sync=
"list2QueryParams.pageSize"
@
pagination=
"getList2"
style=
"height: 40px"
/>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
</el-dialog>
</el-dialog>
<!-- 添加弹窗 -->
<el-dialog
<el-dialog
title=
"添加"
title=
"添加"
:visible.sync=
"addDialog.dialogVisible"
:visible.sync=
"addDialog.dialogVisible"
...
@@ -81,7 +114,9 @@
...
@@ -81,7 +114,9 @@
<el-form-item
label=
"收费模式"
>
<el-form-item
label=
"收费模式"
>
<dict-selector
v-model=
"addDialog.form.feeScale"
:type=
"DICT_TYPE.BRAND_CUSTOMER_CHARGING_MODEL"
></dict-selector>
<dict-selector
v-model=
"addDialog.form.feeScale"
:type=
"DICT_TYPE.BRAND_CUSTOMER_CHARGING_MODEL"
></dict-selector>
</el-form-item>
</el-form-item>
<el-form-item
label=
"授权证明"
></el-form-item>
<el-form-item
label=
"授权证明"
>
<file-upload
v-model=
"addDialog.form.fileUrl"
></file-upload>
</el-form-item>
</el-form>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"addDialog.dialogVisible = false"
>
取 消
</el-button>
<el-button
@
click=
"addDialog.dialogVisible = false"
>
取 消
</el-button>
...
@@ -99,12 +134,15 @@ import {
...
@@ -99,12 +134,15 @@ import {
getProductBrandEmpowerPageUnauth
getProductBrandEmpowerPageUnauth
}
from
"
@/api/ecw/productBrandEmpower
"
}
from
"
@/api/ecw/productBrandEmpower
"
import
DictSelector
from
"
@/components/DictSelector
"
import
DictSelector
from
"
@/components/DictSelector
"
import
{
DICT_TYPE
}
from
"
@/utils/dict
"
import
{
DICT_TYPE
,
getDictDataLabel
}
from
'
@/utils/dict
'
import
FileUpload
from
'
@/components/FileUpload
'
import
{
parseTime
}
from
'
@/utils/ruoyi
'
export
default
{
export
default
{
name
:
"
Empower
"
,
name
:
"
Empower
"
,
components
:
{
components
:
{
DictSelector
DictSelector
,
FileUpload
},
},
props
:
{
props
:
{
id
:
{
id
:
{
...
@@ -120,11 +158,23 @@ export default {
...
@@ -120,11 +158,23 @@ export default {
data
()
{
data
()
{
return
{
return
{
DICT_TYPE
,
DICT_TYPE
,
getDictDataLabel
,
parseTime
,
dialogVisible
:
false
,
dialogVisible
:
false
,
activeName
:
'
first
'
,
activeName
:
'
first
'
,
customerKey
:
''
,
total1
:
0
,
total2
:
0
,
list1
:
[],
list1
:
[],
list2
:
[],
list2
:
[],
list1QueryParams
:
{
pageNo
:
1
,
pageSize
:
10
,
customerKey
:
undefined
},
list2QueryParams
:
{
pageNo
:
1
,
pageSize
:
10
,
},
addDialog
:
{
addDialog
:
{
dialogVisible
:
false
,
dialogVisible
:
false
,
...
@@ -153,30 +203,52 @@ export default {
...
@@ -153,30 +203,52 @@ export default {
this
.
addDialog
.
dialogVisible
=
false
this
.
addDialog
.
dialogVisible
=
false
this
.
getList1
()
this
.
getList1
()
this
.
getList2
()
this
.
getList2
()
this
.
resetForm
(
"
form
"
);
})
})
},
},
handleDatePick
(
e
){
handleDatePick
(
e
){
console
.
log
(
e
)
console
.
log
(
e
)
},
},
handleClose
()
{},
handleClose
()
{},
filterCustomer
()
{},
filterCustomer
()
{
this
.
list1QueryParams
.
pageNo
=
1
this
.
getList1
()
},
handleAdd
(
row
)
{
handleAdd
(
row
)
{
this
.
addDialog
.
form
.
customerId
=
row
.
customerId
this
.
addDialog
.
form
.
customerId
=
row
.
customerId
this
.
addDialog
.
form
.
customerName
=
row
.
customerName
this
.
addDialog
.
form
.
customerName
=
row
.
customerName
this
.
addDialog
.
dialogVisible
=
true
this
.
addDialog
.
dialogVisible
=
true
},
},
handleDelete
(
id
)
{
handleDelete
(
id
)
{
this
.
$confirm
(
'
确认删除该用户的授权?
'
,
'
提示
'
,
{
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}).
then
(()
=>
{
deleteProductBrandEmpower
(
id
).
then
(
r
=>
{
deleteProductBrandEmpower
(
id
).
then
(
r
=>
{
this
.
getList1
()
this
.
getList2
()
this
.
getList2
()
this
.
$message
({
type
:
'
success
'
,
message
:
'
撤销授权成功!
'
});
})
})
}).
catch
(()
=>
{
this
.
$message
({
type
:
'
info
'
,
message
:
'
已取消删除
'
});
});
},
},
getList1
(){
getList1
(){
getProductBrandEmpowerPageUnauth
({
productBrandId
:
this
.
id
}).
then
(
r
=>
{
getProductBrandEmpowerPageUnauth
({
...
this
.
list1QueryParams
,
productBrandId
:
this
.
id
}).
then
(
r
=>
{
this
.
list1
=
r
.
data
.
list
this
.
list1
=
r
.
data
.
list
this
.
total1
=
r
.
data
.
total
})
})
},
},
getList2
()
{
getList2
()
{
getProductBrandEmpowerPageAuth
({
productBrandId
:
this
.
id
}).
then
(
r
=>
{
getProductBrandEmpowerPageAuth
({
...
this
.
list2QueryParams
,
productBrandId
:
this
.
id
}).
then
(
r
=>
{
this
.
list2
=
r
.
data
.
list
this
.
list2
=
r
.
data
.
list
})
})
}
}
...
@@ -184,6 +256,9 @@ export default {
...
@@ -184,6 +256,9 @@ export default {
watch
:
{
watch
:
{
visible
(
v
){
visible
(
v
){
if
(
v
){
if
(
v
){
this
.
list1QueryParams
.
pageNo
=
1
this
.
list2QueryParams
.
pageNo
=
1
this
.
list1QueryParams
.
customerKey
=
''
this
.
getList1
()
this
.
getList1
()
this
.
getList2
()
this
.
getList2
()
}
}
...
...
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