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
6b511633
Commit
6b511633
authored
Oct 12, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
空运价格复制没有回填是否预付和阶梯单位
parent
aff24d12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
14 deletions
+17
-14
batchEdit.vue
src/views/ecw/productPrice/batchEdit.vue
+17
-14
No files found.
src/views/ecw/productPrice/batchEdit.vue
View file @
6b511633
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
-
-
<
el
-
input
v
-
model
=
"
item.endNum
"
type
=
"
number
"
placeholder
=
""
class
=
"
w100
"
><
/el-input
>
<
el
-
input
v
-
model
=
"
item.endNum
"
type
=
"
number
"
placeholder
=
""
class
=
"
w100
"
><
/el-input
>
/
/
<
selector
:
disabled
=
"
index > 0
"
@
input
=
"
syncAllUnit
"
v
-
model
=
"
for
m.weightUnit
"
:
options
=
"
unitList
"
:
label
-
field
=
"
$l('title')
"
value
-
field
=
"
id
"
defaultable2
class
=
"
w100
"
/>
<
selector
:
disabled
=
"
index > 0
"
@
input
=
"
syncAllUnit
"
v
-
model
=
"
ite
m.weightUnit
"
:
options
=
"
unitList
"
:
label
-
field
=
"
$l('title')
"
value
-
field
=
"
id
"
defaultable2
class
=
"
w100
"
/>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
:
label
=
"
$t('默认运费')
"
v
-
if
=
"
form.priceType != 1
"
>
<
el
-
form
-
item
:
label
=
"
$t('默认运费')
"
v
-
if
=
"
form.priceType != 1
"
>
<
inputor
default2
=
"
0
"
v
-
model
.
number
=
"
item.transportPrice
"
type
=
"
number
"
:
placeholder
=
"
$t('整数或者两位小数')
"
class
=
"
w100 mr10
"
/>
<
inputor
default2
=
"
0
"
v
-
model
.
number
=
"
item.transportPrice
"
type
=
"
number
"
:
placeholder
=
"
$t('整数或者两位小数')
"
class
=
"
w100 mr10
"
/>
...
@@ -178,7 +178,7 @@
...
@@ -178,7 +178,7 @@
<
/template
>
<
/template
>
<
el
-
form
-
item
:
label
=
"
$t('是否单询')
"
prop
=
"
inquiry
"
>
<
el
-
form
-
item
:
label
=
"
$t('是否单询')
"
prop
=
"
inquiry
"
>
<
dict
-
selector
:
type
=
"
DICT_TYPE.NEED_ORDER_INQUIRY
"
v
-
model
=
"
form.needOrderInquiry
"
form
-
type
=
"
radio
"
><
/dict-selector
>
<
dict
-
selector
:
type
=
"
DICT_TYPE.NEED_ORDER_INQUIRY
"
v
-
model
=
"
form.needOrderInquiry
"
form
-
type
=
"
radio
"
formatter
=
"
number
"
><
/dict-selector
>
<
/el-form-item
>
<
/el-form-item
>
<
/el-card
>
<
/el-card
>
<
/el-form
>
<
/el-form
>
...
@@ -298,10 +298,16 @@ export default {
...
@@ -298,10 +298,16 @@ export default {
getCurrencyList
().
then
(
res
=>
this
.
currencyList
=
res
.
data
)
getCurrencyList
().
then
(
res
=>
this
.
currencyList
=
res
.
data
)
getUnitList
().
then
(
res
=>
this
.
unitList
=
res
.
data
)
getUnitList
().
then
(
res
=>
this
.
unitList
=
res
.
data
)
// 如果是复制,则获取数据并填充,先复制,然后填充特需,避免数据的特需不全导致部分不显示
this
.
$nextTick
(
async
()
=>
{
if
(
this
.
$route
.
query
.
templateId
){
// 如果是空运,阶梯价格默认为1
await
this
.
getTemplateDetail
(
this
.
$route
.
query
.
templateId
)
if
(
this
.
type
==
'
air
'
){
}
this
.
$set
(
this
.
form
,
'
stepPrice
'
,
1
)
}
// 如果是复制,则获取数据并填充,先复制,然后填充特需,避免数据的特需不全导致部分不显示
if
(
this
.
$route
.
query
.
templateId
){
await
this
.
getTemplateDetail
(
this
.
$route
.
query
.
templateId
)
}
}
)
this
.
getDictDatas
(
this
.
DICT_TYPE
.
ECW_SPECIAL_REQ_FOR_LINE_PRODUCTS
).
forEach
(
item
=>
{
this
.
getDictDatas
(
this
.
DICT_TYPE
.
ECW_SPECIAL_REQ_FOR_LINE_PRODUCTS
).
forEach
(
item
=>
{
// 没有的才push,已有的可能是从复制模板携带过来的数据
// 没有的才push,已有的可能是从复制模板携带过来的数据
...
@@ -318,12 +324,7 @@ export default {
...
@@ -318,12 +324,7 @@ export default {
}
}
}
)
}
)
this
.
$nextTick
(()
=>
{
// 如果是空运,阶梯价格默认为1
if
(
this
.
type
==
'
air
'
){
this
.
$set
(
this
.
form
,
'
stepPrice
'
,
1
)
}
}
)
}
,
}
,
methods
:
{
methods
:
{
// 获取模板数据(复制的源路线价格信息)
// 获取模板数据(复制的源路线价格信息)
...
@@ -355,7 +356,8 @@ export default {
...
@@ -355,7 +356,8 @@ export default {
minWeight
,
minWeight
,
minWeightUnit
,
minWeightUnit
,
needOrderInquiry
,
needOrderInquiry
,
needBook
needBook
,
needPay
}
=
res
.
data
}
=
res
.
data
const
data
=
{
const
data
=
{
...
@@ -375,7 +377,8 @@ export default {
...
@@ -375,7 +377,8 @@ export default {
minWeight
,
minWeight
,
minWeightUnit
,
minWeightUnit
,
needOrderInquiry
,
needOrderInquiry
,
needBook
needBook
,
needPay
}
}
// 海运需要填充货柜位置和订单方数上限
// 海运需要填充货柜位置和订单方数上限
if
(
this
.
type
==
'
sea
'
){
if
(
this
.
type
==
'
sea
'
){
...
...
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