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
24e04178
Commit
24e04178
authored
Oct 18, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
3febadf5
bf412998
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
8 deletions
+50
-8
index.vue
src/views/ecw/product/index.vue
+20
-7
index.vue
src/views/ecw/productPrice/index.vue
+30
-1
No files found.
src/views/ecw/product/index.vue
View file @
24e04178
...
@@ -130,7 +130,7 @@
...
@@ -130,7 +130,7 @@
<pagination
v-show=
"total > 0"
:total=
"total"
:page.sync=
"queryParams.pageNo"
:limit.sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
<pagination
v-show=
"total > 0"
:total=
"total"
:page.sync=
"queryParams.pageNo"
:limit.sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
<!-- 对话框(添加 / 修改) -->
<!-- 对话框(添加 / 修改) -->
<el-dialog
:modal
-append-to-body=
"fals
e"
:title=
"title"
:visible.sync=
"open"
width=
"850px"
>
<el-dialog
:modal
=
"false"
:modal-append-to-body=
"tru
e"
:title=
"title"
:visible.sync=
"open"
width=
"850px"
>
<el-form
v-if=
"open"
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"110px"
>
<el-form
v-if=
"open"
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"110px"
>
<el-form-item
:label=
"$t('商品类型')"
prop=
"typeId"
>
<el-form-item
:label=
"$t('商品类型')"
prop=
"typeId"
>
<el-select
v-model=
"form.typeId"
:placeholder=
"$t('选择商品类型')"
clearable
>
<el-select
v-model=
"form.typeId"
:placeholder=
"$t('选择商品类型')"
clearable
>
...
@@ -231,7 +231,7 @@
...
@@ -231,7 +231,7 @@
<span>
<span>
复制模板线路价格:{{lineNum}}个
复制模板线路价格:{{lineNum}}个
</span>
</span>
<span
@
click=
"toPriceManager(formCopy)"
style=
"color: #0a84ff;cursor: pointer;"
>
<span
@
click=
"toPriceManager(formCopy
, true
)"
style=
"color: #0a84ff;cursor: pointer;"
>
查看《#{{$l(formCopy,'title')}}#》路线价格
查看《#{{$l(formCopy,'title')}}#》路线价格
</span>
</span>
</p>
</p>
...
@@ -462,6 +462,7 @@ export default {
...
@@ -462,6 +462,7 @@ export default {
}
else
{
}
else
{
this
.
open
=
true
;
this
.
open
=
true
;
copy
()
copy
()
this
.
lineNum
=
0
this
.
form
.
isCopyProductPriceTemplate
=
false
;
this
.
form
.
isCopyProductPriceTemplate
=
false
;
}
}
this
.
$forceUpdate
()
this
.
$forceUpdate
()
...
@@ -481,15 +482,25 @@ export default {
...
@@ -481,15 +482,25 @@ export default {
},
},
/**跳转价格管理 */
/**跳转价格管理 */
toPriceManager
(
row
)
{
toPriceManager
(
row
,
flag
=
false
)
{
/* localStorage.setItem('product', JSON.stringify(row));
/* localStorage.setItem('product', JSON.stringify(row));
localStorage.setItem('typeList', JSON.stringify(this.typeList)); */
localStorage.setItem('typeList', JSON.stringify(this.typeList)); */
this
.
$router
.
push
({
let
p
name
:
'
ProductPrice
'
,
if
(
flag
){
query
:
{
p
=
{
product_id
:
row
.
id
,
product_id
:
row
.
id
,
product_type
:
row
.
typeId
product_type
:
row
.
typeId
,
transportType
:
3
,
}
}
}
else
{
p
=
{
product_id
:
row
.
id
,
product_type
:
row
.
typeId
,
}
}
this
.
$router
.
push
({
name
:
'
ProductPrice
'
,
query
:
p
})
})
},
},
...
@@ -639,6 +650,7 @@ export default {
...
@@ -639,6 +650,7 @@ export default {
this
.
$router
.
replace
({
path
:
'
/product/product-list
'
})
this
.
$router
.
replace
({
path
:
'
/product/product-list
'
})
}
}
this
.
getList
();
this
.
getList
();
this
.
lineNum
=
0
});
});
return
;
return
;
}
}
...
@@ -647,6 +659,7 @@ export default {
...
@@ -647,6 +659,7 @@ export default {
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
新增成功
"
));
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
新增成功
"
));
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
this
.
lineNum
=
0
});
});
});
});
},
},
...
...
src/views/ecw/productPrice/index.vue
View file @
24e04178
...
@@ -542,7 +542,28 @@ export default {
...
@@ -542,7 +542,28 @@ export default {
}
}
this.handleQuery()
this.handleQuery()
*/
*/
this
.
getList
()
if
(
this
.
$route
.
query
.
product_type
){
this
.
$set
(
this
.
queryParams
,
'
typeId
'
,
+
this
.
$route
.
query
.
product_type
);
}
if
(
this
.
$route
.
query
.
transportType
){
this
.
$set
(
this
.
queryParams
,
'
transportType
'
,
+
this
.
$route
.
query
.
transportType
);
}
// 指定产品获取产品信息
if
(
this
.
$route
.
query
.
product_id
){
this
.
$set
(
this
.
queryParams
,
'
productId
'
,
+
this
.
$route
.
query
.
product_id
);
getProduct
(
this
.
$route
.
query
.
product_id
).
then
(
res
=>
{
this
.
product
=
res
.
data
}
)
}
else
{
if
(
this
.
transportType
)
{
// 如果指定了单个的运输方式则赋值
if
(
this
.
transportType
.
split
(
'
_
'
).
length
==
1
)
{
this
.
$set
(
this
.
queryParams
,
'
transportType
'
,
+
this
.
transportType
)
}
}
this
.
getAttrList
();
}
}
,
}
,
watch
:{
watch
:{
'
$route.query.product_id
'
(){
'
$route.query.product_id
'
(){
...
@@ -560,6 +581,9 @@ export default {
...
@@ -560,6 +581,9 @@ export default {
pageNo
:
1
,
pageNo
:
1
,
pageSize
:
10
,
pageSize
:
10
,
productId
:
this
.
$route
.
query
.
product_id
,
productId
:
this
.
$route
.
query
.
product_id
,
typeId
:
this
.
$route
.
query
.
product_type
,
transportType
:
this
.
$route
.
query
.
transportType
}
}
}
}
getProduct
(
this
.
$route
.
query
.
product_id
).
then
(
res
=>
{
getProduct
(
this
.
$route
.
query
.
product_id
).
then
(
res
=>
{
...
@@ -574,6 +598,9 @@ export default {
...
@@ -574,6 +598,9 @@ export default {
if
(
this
.
$route
.
query
.
product_type
){
if
(
this
.
$route
.
query
.
product_type
){
this
.
$set
(
this
.
queryParams
,
'
typeId
'
,
+
this
.
$route
.
query
.
product_type
);
this
.
$set
(
this
.
queryParams
,
'
typeId
'
,
+
this
.
$route
.
query
.
product_type
);
}
}
if
(
this
.
$route
.
query
.
transportType
){
this
.
$set
(
this
.
queryParams
,
'
transportType
'
,
+
this
.
$route
.
query
.
transportType
);
}
// 指定产品获取产品信息
// 指定产品获取产品信息
if
(
this
.
$route
.
query
.
product_id
){
if
(
this
.
$route
.
query
.
product_id
){
this
.
$set
(
this
.
queryParams
,
'
productId
'
,
+
this
.
$route
.
query
.
product_id
);
this
.
$set
(
this
.
queryParams
,
'
productId
'
,
+
this
.
$route
.
query
.
product_id
);
...
@@ -687,10 +714,12 @@ export default {
...
@@ -687,10 +714,12 @@ export default {
/** 查询列表 */
/** 查询列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
console
.
log
(
this
.
queryParams
,
'
this.queryParams
'
)
// 处理查询参数
// 处理查询参数
let
params
=
{...
this
.
queryParams
}
;
let
params
=
{...
this
.
queryParams
}
;
this
.
addBeginAndEndTime
(
params
,
this
.
dateRangeCreateTime
,
'
createTime
'
);
this
.
addBeginAndEndTime
(
params
,
this
.
dateRangeCreateTime
,
'
createTime
'
);
// 执行查询
// 执行查询
console
.
log
(
params
,
'
params
'
)
getProductPricePage
(
params
).
then
(
response
=>
{
getProductPricePage
(
params
).
then
(
response
=>
{
this
.
list
=
response
.
data
.
list
;
this
.
list
=
response
.
data
.
list
;
this
.
total
=
response
.
data
.
total
;
this
.
total
=
response
.
data
.
total
;
...
...
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