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
1bd6a686
Commit
1bd6a686
authored
Sep 28, 2022
by
wanglianghe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
全包价,费用登记
parent
e82cf240
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
7 deletions
+19
-7
costForm.vue
src/views/ecw/box/costForm.vue
+14
-6
index.vue
src/views/ecw/productPrice/index.vue
+5
-1
No files found.
src/views/ecw/box/costForm.vue
View file @
1bd6a686
<
template
>
<
template
>
<div
class=
"app-costForm shippingSea-dialog"
>
<div
class=
"app-costForm shippingSea-dialog"
>
<el-form
ref=
"costForm"
:model=
"costObj"
label-width=
"80px"
>
<el-form
ref=
"costForm"
:model=
"costObj"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
label=
"操作步骤"
>
<el-form-item
label=
"操作步骤"
prop=
"opStepType"
>
<el-select
v-model=
"costObj.opStepType"
placeholder=
"请选择操作步骤"
>
<el-select
v-model=
"costObj.opStepType"
placeholder=
"请选择操作步骤"
>
<el-option
v-for=
"type in this.getDictDatas(DICT_TYPE.BOX_SHIPPING_PROCESS)"
:key=
"type.value"
:label=
"type.label"
:value=
"type.value"
></el-option>
<el-option
v-for=
"type in this.getDictDatas(DICT_TYPE.BOX_SHIPPING_PROCESS)"
:key=
"type.value"
:label=
"type.label"
:value=
"type.value"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"费用类型"
>
<el-form-item
label=
"费用类型"
prop=
"costType"
>
<el-select
v-model=
"costObj.costType"
placeholder=
"请选择费用类型"
>
<el-select
v-model=
"costObj.costType"
placeholder=
"请选择费用类型"
>
<el-option
v-for=
"type in this.getDictDatas(DICT_TYPE.FEE_TYPE)"
:key=
"type.value"
:label=
"type.label"
:value=
"type.value"
></el-option>
<el-option
v-for=
"type in this.getDictDatas(DICT_TYPE.FEE_TYPE)"
:key=
"type.value"
:label=
"type.label"
:value=
"type.value"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"供应商"
>
<el-form-item
label=
"供应商"
prop=
"supplierId"
>
<el-select
v-model=
"costObj.supplierId"
placeholder=
"请选择供应商"
>
<el-select
v-model=
"costObj.supplierId"
placeholder=
"请选择供应商"
>
<el-option
v-for=
"supplier in allSupplier"
:key=
"supplier.id"
:label=
"supplier.companyZh"
:value=
"supplier.id"
></el-option>
<el-option
v-for=
"supplier in allSupplier"
:key=
"supplier.id"
:label=
"supplier.companyZh"
:value=
"supplier.id"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-row
class=
"two-element-formItem"
>
<el-row
class=
"two-element-formItem"
>
<el-form-item
label=
"金额"
>
<el-form-item
label=
"金额"
prop=
"price"
>
<el-input-number
v-model=
"costObj.price"
controls-position=
"right"
:min=
"1"
></el-input-number>
<el-input-number
v-model=
"costObj.price"
controls-position=
"right"
:min=
"1"
></el-input-number>
</el-form-item>
</el-form-item>
<el-form-item
label=
""
label-width=
"0px"
>
<el-form-item
label=
""
label-width=
"0px"
prop=
"priceUnit"
>
<el-select
v-model=
"costObj.priceUnit"
placeholder=
"请选择单位"
>
<el-select
v-model=
"costObj.priceUnit"
placeholder=
"请选择单位"
>
<el-option
v-for=
"type in this.getDictDatas(DICT_TYPE.BOX_SHIPPING_PRICE_UNIT)"
:key=
"type.value"
:label=
"type.label"
:value=
"type.value"
></el-option>
<el-option
v-for=
"type in this.getDictDatas(DICT_TYPE.BOX_SHIPPING_PRICE_UNIT)"
:key=
"type.value"
:label=
"type.label"
:value=
"type.value"
></el-option>
</el-select>
</el-select>
...
@@ -57,6 +57,14 @@ export default {
...
@@ -57,6 +57,14 @@ export default {
costObj
:
{},
costObj
:
{},
// 供应商
// 供应商
allSupplier
:
[],
allSupplier
:
[],
rules
:
{
opStepType
:
[{
required
:
true
,
message
:
"
操作步骤不能为空
"
,
trigger
:
"
change
"
}],
costType
:
[{
required
:
true
,
message
:
"
费用类型不能为空
"
,
trigger
:
"
change
"
}],
supplierId
:
[{
required
:
true
,
message
:
"
供应商不能为空
"
,
trigger
:
"
blur
"
}],
price
:
[{
required
:
true
,
message
:
"
金额不能为空
"
,
trigger
:
"
blur
"
}],
priceUnit
:
[{
required
:
true
,
message
:
"
金额单位不能为空
"
,
trigger
:
"
blur
"
}]
},
};
};
},
},
created
()
{
created
()
{
...
...
src/views/ecw/productPrice/index.vue
View file @
1bd6a686
...
@@ -145,13 +145,17 @@
...
@@ -145,13 +145,17 @@
<el-table-column
prop=
"price"
:label=
"$t('价格')"
align=
"center"
>
<el-table-column
prop=
"price"
:label=
"$t('价格')"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div>
<div
v-if=
"scope.row.priceType == 0"
>
{{
$t
(
'
运费
'
)
}}
:
{{
getCurrencySymbol
(
scope
.
row
.
transportPriceUnit
)
+
scope
.
row
.
transportPrice
}}
{{
$t
(
'
运费
'
)
}}
:
{{
getCurrencySymbol
(
scope
.
row
.
transportPriceUnit
)
+
scope
.
row
.
transportPrice
}}
{{
getCurrencyTitle
(
scope
.
row
.
transportPriceUnit
)
+
'
/
'
+
getUnitTitle
(
scope
.
row
.
transportVolumeUnit
)
}}
{{
getCurrencyTitle
(
scope
.
row
.
transportPriceUnit
)
+
'
/
'
+
getUnitTitle
(
scope
.
row
.
transportVolumeUnit
)
}}
<br
/>
<br
/>
{{
$t
(
'
清关费
'
)
}}
:
{{
getCurrencySymbol
(
scope
.
row
.
clearancePriceUnit
)
+
scope
.
row
.
clearancePrice
}}
{{
$t
(
'
清关费
'
)
}}
:
{{
getCurrencySymbol
(
scope
.
row
.
clearancePriceUnit
)
+
scope
.
row
.
clearancePrice
}}
{{
getCurrencyTitle
(
scope
.
row
.
clearancePriceUnit
)
+
'
/
'
+
getUnitTitle
(
scope
.
row
.
clearanceVolumeUnit
)
}}
{{
getCurrencyTitle
(
scope
.
row
.
clearancePriceUnit
)
+
'
/
'
+
getUnitTitle
(
scope
.
row
.
clearanceVolumeUnit
)
}}
</div>
</div>
<div
v-if=
"scope.row.priceType == 1"
>
{{
$t
(
'
全包价
'
)
}}
:
{{
getCurrencySymbol
(
scope
.
row
.
allPriceUnit
)
+
scope
.
row
.
allPrice
}}
{{
getCurrencyTitle
(
scope
.
row
.
allPriceUnit
)
+
'
/
'
+
getUnitTitle
(
scope
.
row
.
allVolumeUnit
)
}}
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
...
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