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
688d28d8
Commit
688d28d8
authored
Oct 02, 2022
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品包装单位字典统一
parent
05ee367f
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
63 additions
and
63 deletions
+63
-63
dict.js
src/utils/dict.js
+1
-1
preinstall.vue
src/views/ecw/box/shippingSea/nodePage/preinstall.vue
+1
-1
detail.vue
src/views/ecw/offer/detail.vue
+1
-1
edit.vue
src/views/ecw/offer/edit.vue
+27
-27
special.vue
src/views/ecw/offer/special.vue
+2
-2
detail.vue
src/views/ecw/order/detail.vue
+6
-6
edit.vue
src/views/ecw/order/edit.vue
+17
-17
editDialog.vue
src/views/ecw/order/warehousing/components/editDialog.vue
+8
-8
No files found.
src/utils/dict.js
View file @
688d28d8
...
...
@@ -89,7 +89,7 @@ export const DICT_TYPE = {
ECW_COOPERATION_TYPE
:
'
cooperation_type
'
,
// 合作类型
ECW_SHIPPING_DECLARATION_TYPE
:
'
shipping_declaration_type
'
,
// 出货报关方式(与订单报关方式相同)
ECW_CUSTOMS_TYPE
:
'
customs_type
'
,
// 订单报关方式(非出货报关),优惠券中的单证报关
ECW_PACKAGE_TYPE
:
'
packageType
'
,
// 包装单位
//
ECW_PACKAGE_TYPE: 'packageType', // 包装单位
ECW_DOUBLE_CLEAR
:
'
double_clear
'
,
// 是否双清
ECW_TRADE_TYPE
:
'
trade_type
'
,
// 交货放肆
ECW_OFFER_RESULT
:
'
offer_result
'
,
// 报单结果 赢单 输单
...
...
src/views/ecw/box/shippingSea/nodePage/preinstall.vue
View file @
688d28d8
...
...
@@ -243,7 +243,7 @@
</el-table-column>
<el-table-column
label=
"包装类型"
align=
"center"
prop=
""
>
<
template
slot-scope=
"scope"
>
<dict-tag
:type=
"DICT_TYPE.ECW_PACKAG
E
_TYPE"
:value=
"scope.row.unit"
/>
<dict-tag
:type=
"DICT_TYPE.ECW_PACKAG
ING
_TYPE"
:value=
"scope.row.unit"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"材质"
align=
"center"
prop=
"material"
>
、
...
...
src/views/ecw/offer/detail.vue
View file @
688d28d8
...
...
@@ -105,7 +105,7 @@
<el-table-column
:label=
"$t('件数')"
width=
"90px"
prop=
"num"
/>
<el-table-column
:label=
"$t('包装单位')"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:value=
"scope.row.unit"
:type=
"DICT_TYPE.ECW_PACKAG
E
_TYPE"
defaultable
/>
<dict-tag
:value=
"scope.row.unit"
:type=
"DICT_TYPE.ECW_PACKAG
ING
_TYPE"
defaultable
/>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('箱规(m)')"
width=
"120px"
prop=
"boxGauge"
/>
...
...
src/views/ecw/offer/edit.vue
View file @
688d28d8
...
...
@@ -75,7 +75,7 @@
</el-descriptions>
<el-descriptions
:column=
"3"
border
>
<el-descriptions-item
:label=
"$t('收货人')"
:labelStyle=
"labelStyle"
>
<el-form-item
label=
""
label-width=
"0"
style=
"margin-bottom: 0"
prop=
"consigneeId"
required
:error=
"$t('收货人不能为空')"
>
<customer-contact-selector
v-model=
"form.consigneeId"
@
change=
"consignee = $event"
type=
"2"
/>
</el-form-item>
...
...
@@ -90,7 +90,7 @@
{{
consignee
.
email
||
this
.
$t
(
'
无
'
)
}}
</el-descriptions-item>
</el-descriptions>
-->
<div
class=
"form-section"
>
<el-form-item
:label=
"$t('运输方式')"
prop=
"transportId"
>
<dict-selector
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
v-model=
"form.transportId"
@
input=
"calculationPrice"
class=
"w-200"
/>
...
...
@@ -174,7 +174,7 @@
</el-form-item>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('件数')"
width=
"90px"
>
<
template
slot-scope=
"{row}"
>
<el-input
v-model.number=
"row.num"
@
input=
"calculationPrice"
:disabled=
"!canAddProduct"
/>
...
...
@@ -182,7 +182,7 @@
</el-table-column>
<el-table-column
:label=
"$t('包装单位')"
>
<
template
slot-scope=
"{row}"
>
<dict-selector
v-model=
"row.unit"
:type=
"DICT_TYPE.ECW_PACKAG
E
_TYPE"
defaultable
@
input=
"calculationPrice"
:disabled=
"!canAddProduct"
/>
<dict-selector
v-model=
"row.unit"
:type=
"DICT_TYPE.ECW_PACKAG
ING
_TYPE"
defaultable
@
input=
"calculationPrice"
:disabled=
"!canAddProduct"
/>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('数量') + '(个)'"
>
...
...
@@ -263,7 +263,7 @@
</
template
>
</el-table-column>
</el-table>
<!--
<!--
</el-card>
<el-card class="mt-10"> -->
<div
class=
"card-title"
style=
"padding:20px 0;"
>
{{$t('合计')}}
</div>
...
...
@@ -280,7 +280,7 @@
<el-descriptions-item
label=
"总数量"
>
{{sum.totalQuatity.toFixed() || 0}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('总货值') + '(RMB)'"
>
{{sum.totalWorth.toFixed() || 0}}{{$t('元')}}
</el-descriptions-item>
...
...
@@ -289,7 +289,7 @@
<el-card
class=
"mt-10"
>
<div
class=
"card-title"
slot=
"header"
>
{{$t('预计费用')}}
</div>
<el-descriptions
:column=
"5"
border
>
<el-descriptions-item
:label=
"$t('保价费')"
>
{{fee.insuranceFee || 0}} {{$t('美元')}}
...
...
@@ -316,7 +316,7 @@
</el-descriptions-item>
</el-descriptions>
<div
class=
"card-title"
style=
"padding:20px 0;"
>
{{$t('优惠信息')}}
</div>
<el-table
:data=
"couponList"
:show-header=
"false"
>
<el-table-column
label=
""
>
...
...
@@ -337,7 +337,7 @@
</el-table-column>
<el-table-column
label=
""
>
<
template
slot-scope=
"{row}"
>
-
{{
row
.
reduceAmount
}}
-
{{
row
.
reduceAmount
}}
{{
currencyMap
[
row
.
reduceCurrencyId
]
}}
</
template
>
</el-table-column>
...
...
@@ -361,7 +361,7 @@
</el-descriptions-item>
</el-descriptions>
</el-card>
<el-card
class=
"mt-10"
>
<div
class=
"card-title"
slot=
"header"
>
{{$t('通用')}}
</div>
<div
class=
"form-section"
>
...
...
@@ -369,7 +369,7 @@
<el-input
v-model=
"form.marks"
placeholder=
""
class=
"w-200"
></el-input>
</el-form-item>
</div>
<div
class=
"form-section"
>
<div
class=
"form-section"
>
<el-form-item
:label=
"$t('报关方式')"
prop=
"customsType"
>
<dict-selector
:type=
"DICT_TYPE.ECW_CUSTOMS_TYPE"
v-model=
"form.customsType"
form-type=
"radio"
defaultable
/>
</el-form-item>
...
...
@@ -398,7 +398,7 @@
<el-date-picker
v-model=
"form.endTime"
placeholder=
""
value-format=
"yyyy-MM-dd HH:mm:ss"
class=
"w-200"
></el-date-picker>
</el-form-item>
</div>
<div
class=
"form-section"
>
<el-form-item
:label=
"$t('交货方式')"
>
<!--
...
...
@@ -406,7 +406,7 @@
FOB(离岸价),CIF(到岸价),CNF(成本加运费),EXW(出厂价)
-->
<dict-selector
:type=
"DICT_TYPE.ECW_TRADE_TYPE"
fomtter=
"number"
v-model=
"form.tradeType"
class=
"w-200"
/>
</el-form-item>
<el-form-item
:label=
"$t('交货地址')"
>
<el-input
v-model=
"form.tradeAdress"
placeholder=
"港口或地点"
></el-input>
...
...
@@ -433,7 +433,7 @@
</el-select> -->
<supplier-selector
v-model=
"form.transportVO.airlineCompany"
companyType=
"10"
/>
</el-form-item>
<el-form-item
:label=
"$t('船公司')"
v-if=
"[2].indexOf(+form.transportId) > -1"
>
<!-- <el-select placeholder="" v-model="form.shippingCompany">
</el-select> -->
...
...
@@ -462,12 +462,12 @@
<el-input
v-model=
"form.transportVO.packageRemarks"
></el-input>
</el-form-item>
</el-card>
<el-form-item
label=
""
class=
"mt-20"
>
<!-- 非草稿状态显示为编辑按钮 -->
<el-button
v-if=
"form.offerId && form.status != 2"
type=
"primary"
@
click=
"submitForm(2)"
>
{{$t('编辑')}}
</el-button>
<
template
v-else
>
<el-button
type=
"primary"
@
click=
"submitForm(2)"
>
{{
$t
(
'
保存草稿
'
)
}}
</el-button>
<!-- 草稿 -->
<el-button
type=
"primary"
@
click=
"submitForm(3)"
>
{{
$t
(
'
确认报价
'
)
}}
</el-button>
<!-- 需求确认 -->
...
...
@@ -714,7 +714,7 @@ export default {
}
arr
.
push
(
it
)
})
// 没有累加保价费(没有美元计价)但是有保价费则需要加上去
if
(
!
withInsuranceFee
&&
this
.
fee
&&
this
.
fee
.
insuranceFee
){
arr
.
push
({
...
...
@@ -771,7 +771,7 @@ export default {
},
'
form.lineId
'
(
lineId
){
let
router
=
this
.
routerList
.
find
(
item
=>
item
.
id
==
lineId
)
if
(
!
router
)
return
if
(
!
router
)
return
this
.
$set
(
this
.
form
,
'
departureId
'
,
router
.
startCityId
)
this
.
$set
(
this
.
form
,
'
objectiveId
'
,
router
.
destCityId
)
},
...
...
@@ -869,7 +869,7 @@ export default {
titleEn
:
product
.
titleEn
})
}
this
.
calculationPrice
()
},
onLineChange
(
row
){
...
...
@@ -934,14 +934,14 @@ export default {
if
(
!
valid
)
{
return
this
.
$showFormValidateErrors
(
errors
)
}
this
.
form
.
prodCreateReqVOList
.
map
(
item
=>
{
item
.
prodAttrIds
=
item
.
prodAttrArr
.
join
(
'
,
'
)
item
.
lineId
=
this
.
form
.
lineId
item
.
channelId
=
this
.
form
.
channelId
item
.
transportId
=
this
.
form
.
transportId
})
// 修改的提交
if
(
this
.
form
.
offerId
!=
null
)
{
let
data
=
Object
.
assign
({},
this
.
form
,
{
...
...
@@ -986,9 +986,9 @@ export default {
})
if
(
this
.
calculating
||
!
calcable
)
return
false
this
.
calculating
=
true
console
.
log
(
'
calculationPrice
'
)
calculationPrice
({
lineId
:
this
.
form
.
lineId
,
transportId
:
this
.
form
.
transportId
,
...
...
@@ -1005,8 +1005,8 @@ export default {
this
.
$set
(
this
,
'
couponTotalAmountList
'
,
res
.
data
.
availableDto
.
couponTotalAmountList
)
this
.
$set
(
this
,
'
couponAvailableGroupDtoList
'
,
res
.
data
.
availableDto
.
couponAvailableGroupDtoList
)
}
this
.
form
.
prodCreateReqVOList
.
map
((
item
,
index
)
=>
{
this
.
$set
(
item
,
'
fee
'
,
res
.
data
.
prodCostDtoList
[
index
]
||
null
)
})
...
...
@@ -1049,9 +1049,9 @@ export default {
cursor
:
pointer
;
}
}
}
::v-deep
.product-list
.el-form-item__error
{
position
:
static
;
}
</
style
>
\ No newline at end of file
</
style
>
src/views/ecw/offer/special.vue
View file @
688d28d8
...
...
@@ -40,7 +40,7 @@
<el-table-column
:label=
"$t('包装')"
>
<
template
v-slot=
"{row}"
>
<dict-tag
:value=
"row.unit"
:type=
"DICT_TYPE.ECW_PACKAG
E
_TYPE"
/>
<dict-tag
:value=
"row.unit"
:type=
"DICT_TYPE.ECW_PACKAG
ING
_TYPE"
/>
</
template
>
</el-table-column>
...
...
@@ -95,7 +95,7 @@
</el-table-column>
</el-table>
<!-- <div style="text-align: center;margin-top: 80px">
<el-button type="primary">申请重货优惠</el-button>
<el-button type="primary">申请泡货优惠</el-button>
...
...
src/views/ecw/order/detail.vue
View file @
688d28d8
...
...
@@ -68,10 +68,10 @@
{{order.costVO.totalQuantity}}{{$t('个')}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('仓库实测')"
>
{{order.sumNum}}{{$t('箱')}}
{{order.sumWeight}}Kg
{{order.sumNum}}{{$t('箱')}}
{{order.sumWeight}}Kg
{{order.sumVolume}}m³
{{order.sumQuantity}}{{$t('个')}}
{{order.sumQuantity}}{{$t('个')}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('收款数据')"
>
{{order.sumNum}}{{$t('箱')}}
...
...
@@ -117,7 +117,7 @@
</el-table-column>
<el-table-column
prop=
"unit"
:label=
"$t('单位')"
width=
"90px"
>
<
template
slot-scope=
"{row}"
>
<dict-tag
:type=
"DICT_TYPE.ECW_PACKAG
E
_TYPE"
:value=
"row.unit"
/>
<dict-tag
:type=
"DICT_TYPE.ECW_PACKAG
ING
_TYPE"
:value=
"row.unit"
/>
</
template
>
</el-table-column>
...
...
@@ -145,7 +145,7 @@
</el-table-column>
<el-table-column
prop=
""
:label=
"$t('成交单价')"
width=
"220px"
>
<
template
slot-scope=
"{row}"
>
<template
v-if=
"row.charging ==1"
>
<template
v-if=
"!row.seaFreight"
>
未报价
</
template
>
<
template
>
{{
$t
(
'
全包价
'
)
}}
{{
row
.
oneSeaFreight
}}
{{
currencyMap
[
row
.
seaFreightCurrency
]
}}
/
{{
unitMap
[
row
.
seaFreightVolume
]
}}
</
template
>
...
...
@@ -346,7 +346,7 @@ export default {
});
},
getChannel
(){
if
(
!
this
.
order
||
!
this
.
order
.
channelId
)
return
if
(
!
this
.
order
||
!
this
.
order
.
channelId
)
return
getChannel
(
this
.
order
.
channelId
).
then
(
res
=>
{
this
.
channelName
=
res
.
data
.
nameZh
})
...
...
src/views/ecw/order/edit.vue
View file @
688d28d8
...
...
@@ -11,7 +11,7 @@
<el-checkbox
label=
"2"
v-if=
"!selectedRouter || routeOtherServices.indexOf('2') > -1"
>
{{
$t
(
'
海外仓
'
)
}}
</el-checkbox>
</el-checkbox-group>
</el-form-item>
<div
class=
"form-section"
>
<el-form-item
:label=
"$t('发货人')"
prop=
"consignorContactsId"
>
<!--
<customer-contact-selector
v-model=
"form.consignorContactsId"
@
change=
"consignorContact = $event"
type=
"1"
/>
-->
...
...
@@ -146,7 +146,7 @@
</el-table-column>
<el-table-column
:label=
"$t('包装单位')"
>
<
template
slot-scope=
"{row}"
>
<dict-selector
v-model=
"row.unit"
:type=
"DICT_TYPE.ECW_PACKAG
E
_TYPE"
defaultable
:disabled=
"!canAddProduct || !productEditable"
/>
<dict-selector
v-model=
"row.unit"
:type=
"DICT_TYPE.ECW_PACKAG
ING
_TYPE"
defaultable
:disabled=
"!canAddProduct || !productEditable"
/>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('数量') + '(个)'"
width=
"120px"
>
...
...
@@ -184,7 +184,7 @@
</el-checkbox-group>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('是否预付')"
>
<
template
slot-scope=
"{row}"
>
<dict-tag
v-if=
"row.fee"
:type=
"DICT_TYPE.ECW_PAY_ADVANCE"
:value=
"row.fee.isPayAdvance"
/>
...
...
@@ -208,9 +208,9 @@
<el-button
size=
"mini"
type=
"danger"
@
click=
"delProduct(scope.$index)"
>
{{
$t
(
'
删除
'
)
}}
</el-button>
</
template
>
</el-table-column>
</el-table>
<!--
<!--
</el-card>
<el-card class="mt-10"> -->
<div
class=
"card-title"
style=
"padding:20px 0;"
>
{{$t('合计')}}
</div>
...
...
@@ -355,7 +355,7 @@
<dict-selector
v-model=
"form.doubleClear"
form-type=
"radio"
:type=
"DICT_TYPE.ECW_DOUBLE_CLEAR"
defaultable
/>
</el-form-item>
</div>
<div
v-if=
"[3,4].indexOf(+form.transportId) > -1"
>
<el-form-item
:label=
"$t('航空公司')"
>
<supplier-selector
v-model=
"form.airlineCompany"
company-type=
"10"
/>
...
...
@@ -366,7 +366,7 @@
<supplier-selector
v-model=
"form.shippingCompany"
company-type=
"9"
/>
</el-form-item>
</div>
<div
v-if=
"[2,3,4].indexOf(+form.transportId) > -1"
>
<div
v-if=
"[2,3,4].indexOf(+form.transportId) > -1"
>
<el-form-item
:label=
"$t('清关证书')"
>
<dict-selector
v-model=
"form.customsClearCert"
form-type=
"radio"
:type=
"DICT_TYPE.INFRA_BOOLEAN_STRING"
formatter=
"bool"
defaultable
/>
</el-form-item>
...
...
@@ -394,7 +394,7 @@
<el-input
v-model=
"form.packageRemarks"
></el-input>
</el-form-item>
</el-card>
<el-form-item
label=
""
style=
"margin: 30px 0"
>
<el-button
type=
"primary"
@
click=
"submitForm(0)"
>
{{$t('保存')}}
</el-button>
<!--草稿-->
...
...
@@ -459,7 +459,7 @@ import {getDictData, getDictDatas} from '@/utils/dict'
import
{
getCurrencyList
}
from
'
@/api/ecw/currency
'
import
{
getUnitList
}
from
'
@/api/ecw/unit
'
import
AreaSelector
from
'
@/components/AreaSelector
'
import
FileUpload
from
'
@/components/FileUpload
'
import
FileUpload
from
'
@/components/FileUpload
'
import
AreaCodeSelector
from
'
@/components/AreaCodeSelector
'
import
ChooseContactDialog
from
'
@/components/ChooseContactDialog
'
import
QuickCreateCustomer
from
'
@/components/QuickCreateCustomer
'
...
...
@@ -639,7 +639,7 @@ export default {
// 是否可以编辑商品基本信息(货值除外)
productEditable
(){
// 非编辑模式 或者 草稿状态就可以编辑
return
!
this
.
editMode
||
this
.
form
.
status
==
0
return
!
this
.
editMode
||
this
.
form
.
status
==
0
},
// 路线开通的服务
routeOtherServices
(){
...
...
@@ -698,7 +698,7 @@ export default {
this
.
form
.
type
.
splice
(
this
.
form
.
type
.
findIndex
(
item
=>
item
==
service
),
1
)
}
})
}
},
activated
(){
...
...
@@ -743,7 +743,7 @@ export default {
this
.
$set
(
this
.
form
,
'
consignorId
'
,
res
.
data
.
consignorVO
.
customerId
)
this
.
$set
(
this
.
form
,
'
consignorName
'
,
res
.
data
.
consignorVO
.
name
)
this
.
$set
(
this
.
form
,
'
consignorPhone
'
,
res
.
data
.
consignorVO
.
phone
)
this
.
$set
(
this
.
form
,
'
consigneeCompany
'
,
res
.
data
.
consigneeVO
.
company
)
this
.
$set
(
this
.
form
,
'
consigneeContactsId
'
,
res
.
data
.
consigneeVO
.
customerContactsId
)
this
.
$set
(
this
.
form
,
'
consigneeCountryCode
'
,
res
.
data
.
consigneeVO
.
countryCode
.
replace
(
'
+
'
,
''
))
...
...
@@ -780,7 +780,7 @@ export default {
this
.
importList
=
res
.
data
.
list
this
.
$set
(
this
.
form
,
'
packingListUrl
'
,
res
.
data
.
packingListUrl
)
})
},
addToProductList
(){
...
...
@@ -845,7 +845,7 @@ export default {
onProductAttrChange
(
row
,
attr
){
console
.
log
(
attr
)
},
addProduct
(
data
){
this
.
form
.
orderItemVOList
.
push
(
data
||
{
prodAttrArr
:[]})
},
...
...
@@ -888,7 +888,7 @@ export default {
if
(
!
valid
)
{
return
this
.
$showFormValidateErrors
(
errors
)
}
this
.
form
.
orderItemVOList
.
map
(
item
=>
{
item
.
prodAttrIds
=
item
.
prodAttrArr
.
join
(
'
,
'
)
})
...
...
@@ -996,9 +996,9 @@ export default {
cursor
:
pointer
;
}
}
}
::v-deep
.product-list
.el-form-item__error
{
position
:
static
;
}
</
style
>
\ No newline at end of file
</
style
>
src/views/ecw/order/warehousing/components/editDialog.vue
View file @
688d28d8
...
...
@@ -64,10 +64,10 @@
<el-form-item
:rules=
"tableFormRules.cartonsNum"
:prop=
"$index + '.cartonsNum'"
>
<span
v-if=
"tableData[$index].id && !edit"
>
{{
tableData
[
$index
].
cartonsNum
}}
{{
getDictDataLabel
(
DICT_TYPE
.
ECW_PACKAG
E
_TYPE
,
tableData
[
$index
].
unit
)
}}
{{
getDictDataLabel
(
DICT_TYPE
.
ECW_PACKAG
ING
_TYPE
,
tableData
[
$index
].
unit
)
}}
</span>
<el-input
v-else
v-model=
"tableData[$index].cartonsNum"
placeholder=
""
>
<span
slot=
"append"
>
{{
getDictDataLabel
(
DICT_TYPE
.
ECW_PACKAG
E
_TYPE
,
tableData
[
$index
].
unit
)
}}
</span>
<span
slot=
"append"
>
{{
getDictDataLabel
(
DICT_TYPE
.
ECW_PACKAG
ING
_TYPE
,
tableData
[
$index
].
unit
)
}}
</span>
</el-input>
</el-form-item>
</
template
>
...
...
@@ -75,8 +75,8 @@
<el-table-column
label=
"包装类型"
width=
"100px"
>
<
template
v-slot=
"{r,c,$index}"
>
<el-form-item>
<span
v-if=
"tableData[$index].id && !edit"
>
{{
getDictDataLabel
(
DICT_TYPE
.
ECW_PACKAG
E
_TYPE
,
tableData
[
$index
].
unit
)
}}
</span>
<dict-selector
v-else
:type=
"DICT_TYPE.ECW_PACKAG
E
_TYPE"
v-model=
"tableData[$index].unit"
></dict-selector>
<span
v-if=
"tableData[$index].id && !edit"
>
{{
getDictDataLabel
(
DICT_TYPE
.
ECW_PACKAG
ING
_TYPE
,
tableData
[
$index
].
unit
)
}}
</span>
<dict-selector
v-else
:type=
"DICT_TYPE.ECW_PACKAG
ING
_TYPE"
v-model=
"tableData[$index].unit"
></dict-selector>
</el-form-item>
</
template
>
</el-table-column>
...
...
@@ -195,10 +195,10 @@
<el-form-item
:rules=
"tableFormRules.cartonsNum"
:prop=
"$index + '.cartonsNum'"
>
<span
v-if=
"tableData1[$index].id"
>
{{
tableData1
[
$index
].
cartonsNum
}}
{{
getDictDataLabel
(
DICT_TYPE
.
ECW_PACKAG
E
_TYPE
,
tableData1
[
$index
].
unit
)
}}
{{
getDictDataLabel
(
DICT_TYPE
.
ECW_PACKAG
ING
_TYPE
,
tableData1
[
$index
].
unit
)
}}
</span>
<el-input
v-else
v-model=
"tableData1[$index].cartonsNum"
placeholder=
""
>
<span
slot=
"append"
>
{{
getDictDataLabel
(
DICT_TYPE
.
ECW_PACKAG
E
_TYPE
,
tableData1
[
$index
].
unit
)
}}
</span>
<span
slot=
"append"
>
{{
getDictDataLabel
(
DICT_TYPE
.
ECW_PACKAG
ING
_TYPE
,
tableData1
[
$index
].
unit
)
}}
</span>
</el-input>
</el-form-item>
</
template
>
...
...
@@ -206,8 +206,8 @@
<el-table-column
label=
"包装类型"
width=
"100px"
>
<
template
v-slot=
"{r,c,$index}"
>
<el-form-item>
<span
v-if=
"tableData1[$index].id"
>
{{
getDictDataLabel
(
DICT_TYPE
.
ECW_PACKAG
E
_TYPE
,
tableData1
[
$index
].
unit
)
}}
</span>
<dict-selector
v-else
:type=
"DICT_TYPE.ECW_PACKAG
E
_TYPE"
v-model=
"tableData1[$index].unit"
></dict-selector>
<span
v-if=
"tableData1[$index].id"
>
{{
getDictDataLabel
(
DICT_TYPE
.
ECW_PACKAG
ING
_TYPE
,
tableData1
[
$index
].
unit
)
}}
</span>
<dict-selector
v-else
:type=
"DICT_TYPE.ECW_PACKAG
ING
_TYPE"
v-model=
"tableData1[$index].unit"
></dict-selector>
</el-form-item>
</
template
>
</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