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
f0308b78
Commit
f0308b78
authored
Jun 12, 2022
by
wanglianghe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出货渠道,特殊需求,黑名单
parent
6142d2f7
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
128 additions
and
152 deletions
+128
-152
index.vue
src/views/ecw/product/index.vue
+0
-82
index.vue
src/views/ecw/productPrice/index.vue
+128
-70
No files found.
src/views/ecw/product/index.vue
View file @
f0308b78
...
...
@@ -190,33 +190,6 @@
<
template
slot=
"append"
>
立方米
</
template
>
</el-input>
</el-form-item>
<el-form-item
label=
"默认重货标准"
prop=
"zhongLinjie"
v-if=
"false"
>
<el-row
class=
"mb8"
>
<el-col
:span=
"12"
>
<el-input
v-model.number=
"form.zhongLinjie"
type=
"number"
>
<
template
slot=
"append"
>
kg/cbm
</
template
>
</el-input>
</el-col>
<el-col
:span=
"10"
>
<el-switch
v-model=
"zhongLinjieFlag"
@
change=
"zhongpaoChange('zhong')"
></el-switch>
</el-col>
</el-row>
</el-form-item>
<el-form-item
label=
"默认泡货标准"
prop=
"paoLinjie"
v-if=
"false"
>
<el-row
class=
"mb8"
>
<el-col
:span=
"12"
>
<el-input
v-model.number=
"form.paoLinjie"
type=
"number"
>
<
template
slot=
"append"
>
kg/cbm
</
template
>
</el-input>
</el-col>
<el-col
:span=
"10"
>
<el-switch
v-model=
"paoLinjieFlag"
@
change=
"zhongpaoChange('pao')"
></el-switch>
</el-col>
</el-row>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
...
...
@@ -233,7 +206,6 @@ import { getProductAttrList } from "@/api/ecw/productAttr";
import
{
getProductTypeList
}
from
"
@/api/ecw/productType
"
;
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
{
CommonStatusEnum
,
AuditStatusEnum
}
from
'
@/utils/constants
'
;
import
{
getZhongPaoPage
}
from
"
@/api/ecw/zhongPao
"
;
import
{
uploadFile
}
from
"
@/api/infra/file
"
;
export
default
{
...
...
@@ -252,12 +224,6 @@ export default {
packagingList
:[],
//货柜位置
locationList
:[],
//重货默认开启状态
zhongLinjieFlag
:
true
,
//泡货默认开启状态
paoLinjieFlag
:
true
,
//重泡货默认配置
zhongPaoInfo
:
{},
// 遮罩层
loading
:
true
,
...
...
@@ -297,8 +263,6 @@ export default {
packaging
:[{
required
:
true
,
message
:
"
包装要求不能为空
"
,
trigger
:
"
blur
"
}],
containerLocation
:[{
required
:
true
,
message
:
"
默认货柜位置不能为空
"
,
trigger
:
"
blur
"
}],
square
:[{
required
:
true
,
message
:
"
默认方数不能为空
"
,
trigger
:
"
blur
"
}],
// zhongLinjie:[{ required: true, message: "默认重货标准不能为空", trigger: "blur" }],
// paoLinjie:[{ required: true, message: "默认泡货标准不能为空", trigger: "blur" }],
needBook
:[{
required
:
true
,
message
:
"
预约入仓不能为空
"
,
trigger
:
"
blur
"
}],
},
...
...
@@ -351,27 +315,8 @@ export default {
this
.
getAttrList
();
this
.
getTypeList
();
this
.
getList
();
this
.
getZhongPaoInfo
();
},
methods
:
{
/**获取重泡货默认配置 */
getZhongPaoInfo
()
{
getZhongPaoPage
({}).
then
(
response
=>
{
let
list
=
response
.
data
.
list
;
if
(
list
&&
list
.
length
>
0
)
{
this
.
zhongPaoInfo
=
list
[
0
];
}
})
},
zhongpaoChange
(
type
)
{
if
(
type
==
'
zhong
'
)
{
this
.
setZhongValue
();
}
else
if
(
type
==
'
pao
'
)
{
this
.
setPaoValue
();
}
},
/** 获取产品属性列表 */
getAttrList
()
{
getProductAttrList
().
then
(
response
=>
{
...
...
@@ -460,8 +405,6 @@ export default {
if
(
this
.
queryParams
.
typeId
)
{
this
.
form
.
typeId
=
this
.
queryParams
.
typeId
;
}
this
.
setZhongValue
();
this
.
setPaoValue
();
},
/** 修改按钮操作 */
handleUpdate
(
row
)
{
...
...
@@ -477,34 +420,9 @@ export default {
this
.
form
.
attrArray
=
attrArray
;
this
.
open
=
true
;
this
.
title
=
"
修改商品
"
;
if
(
!
this
.
form
.
zhongLinjie
)
{
this
.
setZhongValue
();
}
if
(
!
this
.
form
.
paoLinjie
)
{
this
.
setPaoValue
();
}
});
},
setZhongValue
()
{
if
(
this
.
zhongLinjieFlag
&&
this
.
zhongPaoInfo
.
zhongLinjie
)
{
this
.
form
.
zhongLinjie
=
parseFloat
(
this
.
zhongPaoInfo
.
zhongLinjie
);
}
else
{
// this.form.zhongLinjie = null;
}
},
setPaoValue
()
{
if
(
this
.
paoLinjieFlag
&&
this
.
zhongPaoInfo
.
paoLinjie
)
{
this
.
form
.
paoLinjie
=
parseFloat
(
this
.
zhongPaoInfo
.
paoLinjie
);
}
else
{
// this.form.paoLinjie = null;
}
},
/** 提交按钮 */
submitForm
()
{
console
.
log
(
this
.
form
);
...
...
src/views/ecw/productPrice/index.vue
View file @
f0308b78
This diff is collapsed.
Click to expand it.
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