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
9f3fb039
Commit
9f3fb039
authored
Oct 26, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
89a952df
50756dbd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
110 additions
and
44 deletions
+110
-44
prepayDeal.vue
src/views/ecw/order/prepayDeal.vue
+9
-1
WarehouseRecordDetail.vue
...cw/order/warehousing/components/WarehouseRecordDetail.vue
+20
-11
WarehouseRecordDetailItem.vue
...rder/warehousing/components/WarehouseRecordDetailItem.vue
+80
-31
weightDeal.vue
src/views/ecw/order/weightDeal.vue
+1
-1
No files found.
src/views/ecw/order/prepayDeal.vue
View file @
9f3fb039
...
...
@@ -114,7 +114,15 @@
<
/el-row
>
<
el
-
row
v
-
if
=
"
orderExceptionData.orderExceptionType=='order_pay_exception'||orderExceptionData.orderExceptionType!='goods_add_exception'
"
>
<
el
-
form
-
item
:
label
=
"
$t('收费参数')+':'
"
>
<
span
>
{{
shopData
.
num
||
0
}}
{{
$t
(
'
箱
'
)
}}
{{
shopData
.
wvolume
||
0
}}
m
³
{{
shopData
.
vweight
||
0
}}
Kg
{{
shopData
.
warehouseInInfoVO
?
shopData
.
warehouseInInfoVO
.
quantityAll
:
shopData
.
quantity
}}
{{
$t
(
'
个
'
)
}}
<
/span
>
<
div
v
-
if
=
"
shopData
"
>
{{
$t
(
'
{num
}
箱 {volume
}
m³ {weight
}
kg {quantity
}
个
'
,
{
num
:
shopData
.
num
||
0
,
volume
:
shopData
.
wvolume
||
0
,
weight
:
shopData
.
vweight
||
0
,
quantity
:
shopData
.
quantity
||
0
}
)
}}
<
/div
>
<
span
v
-
else
>
{{
orderData
.
sumNum
||
0
}}
{{
$t
(
'
箱
'
)
}}
{{
orderData
.
wvolume
||
0
}}
m
³
{{
orderData
.
vweight
||
0
}}
Kg
{{
orderData
.
warehouseInInfoVO
?
orderData
.
warehouseInInfoVO
.
quantityAll
:
orderData
.
sumQuantity
}}
{{
$t
(
'
个
'
)
}}
<
/span
>
<
/el-form-item
>
<
/el-row
>
<
el
-
row
>
...
...
src/views/ecw/order/warehousing/components/WarehouseRecordDetail.vue
View file @
9f3fb039
...
...
@@ -8,13 +8,19 @@
width=
"1024px"
:before-close=
"handleClose"
>
<el-form>
<WarehouseRecordDetailItem
v-for=
"(item, index) in dataList"
:key=
"index"
v-model=
"dataList[index]"
:index=
"index"
:attr-list=
"attrList"
/>
<el-form
v-if=
"dialogVisible"
>
<WarehouseRecordDetailItem
v-for=
"(item, index) in dataList"
:key=
"index"
v-model=
"dataList[index]"
:index=
"index"
:attr-list=
"attrList"
@
handle-delete=
"handleDelete(index)"
:readonly=
"readonly"
/>
</el-form>
<el-button
type=
"primary"
size=
"mini"
@
click=
"handleAddItem"
>
添加一条明细
</el-button>
<el-button
v-show=
"!readonly"
type=
"primary"
size=
"mini"
@
click=
"handleAddItem"
>
添加一条明细
</el-button>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
v-show=
"!readonly"
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"dialogVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"handleSave"
>
确 定
</el-button>
</span>
...
...
@@ -39,7 +45,7 @@ export default {
type
:
Array
,
default
:
()
=>
[]
},
read
O
nly
:
{
read
o
nly
:
{
type
:
Boolean
,
default
:
false
}
...
...
@@ -63,9 +69,6 @@ export default {
if
(
!
this
.
value
||
this
.
value
.
length
===
0
)
{
this
.
dataList
=
[{
"
boxGauge
"
:
""
,
"
boxGauge1
"
:
""
,
"
boxGauge2
"
:
""
,
"
boxGauge3
"
:
""
,
"
brand
"
:
undefined
,
"
cartonsNum
"
:
undefined
,
"
createTime
"
:
""
,
...
...
@@ -92,9 +95,6 @@ export default {
handleAddItem
()
{
this
.
dataList
.
push
({
"
boxGauge
"
:
""
,
"
boxGauge1
"
:
""
,
"
boxGauge2
"
:
""
,
"
boxGauge3
"
:
""
,
"
brand
"
:
undefined
,
"
cartonsNum
"
:
undefined
,
"
createTime
"
:
""
,
...
...
@@ -109,11 +109,17 @@ export default {
"
weight
"
:
undefined
})
},
handleDelete
(
index
)
{
this
.
dataList
.
splice
(
index
,
1
)
},
handleOpen
()
{
this
.
init
()
this
.
dialogVisible
=
true
},
handleClose
(
done
)
{
if
(
this
.
readonly
)
{
return
done
()
}
this
.
$confirm
(
'
确认关闭?
'
)
.
then
(
_
=>
{
done
();
...
...
@@ -128,6 +134,9 @@ export default {
computed
:
{
title
()
{
if
(
this
.
readonly
)
{
return
'
查看箱明细
'
}
return
!
this
.
value
||
this
.
value
.
length
===
0
?
'
添加箱明细
'
:
'
编辑箱明细
'
}
}
...
...
src/views/ecw/order/warehousing/components/WarehouseRecordDetailItem.vue
View file @
9f3fb039
...
...
@@ -2,12 +2,12 @@
<el-card
style=
"margin-bottom: 10px"
>
<div
slot=
"header"
>
<span>
序号
{{
index
+
1
}}
</span>
<el-link
v-show=
"!readonly"
type=
"danger"
@
click=
"handleDelete"
style=
"float: right"
>
删除
</el-link>
</div>
<el-row
:gutter=
"10"
>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('中文品名')"
>
<product-selector
v-if=
"!readOnly"
v-model=
"value.prodId"
determined
protect-once
/>
<span
v-else
>
{{
value
.
prodTitleZh
}}
</span>
<product-selector
v-model=
"value.prodId"
determined
protect-once
:disabled=
"readonly"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
...
...
@@ -17,8 +17,8 @@
:placeholder=
"$t('可修改')"
filterable
remote
@
change=
"handleBrandChange"
:remote-method=
"getProductBrandPage"
:disabled=
"readonly"
clearable
>
<el-option
v-for=
"item in brandList"
...
...
@@ -33,18 +33,19 @@
<el-row
:gutter=
"10"
>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('商品特性')"
>
<el-checkbox-group
v-model=
"
value.
prodAttrIds"
>
<el-checkbox
v-for=
"item in attrList"
:key=
"item.id"
:label=
"item.id"
>
{{
item
.
attrName
}}
</el-checkbox>
<el-checkbox-group
v-model=
"prodAttrIds"
>
<el-checkbox
v-for=
"item in attrList"
:key=
"item.id"
:label=
"item.id"
:disabled=
"readonly"
>
{{
item
.
attrName
}}
</el-checkbox>
</el-checkbox-group>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('用途')"
>
<dict-selector
v-model=
"
value.
usageIds"
v-model=
"usageIds"
:type=
"DICT_TYPE.WAREHOUSING_RECORD_DETAIL_USAGE"
multiple
form-type=
"checkbox"
:disabled=
"readonly"
></dict-selector>
</el-form-item>
</el-col>
...
...
@@ -52,44 +53,44 @@
<el-row
:gutter=
"10"
>
<el-col
:span=
"4"
>
<el-form-item
:label=
"$t('长')"
>
<el-input
v-model=
"
value.boxGauge1
"
/>
<el-input
v-model=
"
boxGauge1"
:disabled=
"readonly
"
/>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
:label=
"$t('宽')"
>
<el-input
v-model=
"
value.boxGauge2
"
/>
<el-input
v-model=
"
boxGauge2"
:disabled=
"readonly
"
/>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
:label=
"$t('高')"
>
<el-input
v-model=
"
value.boxGauge3
"
/>
<el-input
v-model=
"
boxGauge3"
:disabled=
"readonly
"
/>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
:label=
"$t('重量')"
>
<el-input
v-model=
"value.weight"
/>
<el-input
v-model=
"value.weight"
:disabled=
"readonly"
/>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
:label=
"$t('体积')"
>
<el-input
v-model=
"value.volume"
/>
<el-input
v-model=
"value.volume"
:disabled=
"readonly"
/>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"10"
>
<el-col
:span=
"4"
>
<el-form-item
:label=
"$t('快递单号')"
>
<el-input
v-model=
"value.expressNo"
/>
<el-input
v-model=
"value.expressNo"
:disabled=
"readonly"
/>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
:label=
"$t('包装类型')"
>
<dict-selector
:type=
"DICT_TYPE.ECW_PACKAGING_TYPE"
v-model=
"value.unit"
></dict-selector>
<dict-selector
:type=
"DICT_TYPE.ECW_PACKAGING_TYPE"
v-model=
"value.unit"
:disabled=
"readonly"
></dict-selector>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
:label=
"$t('数量')"
>
<el-input
v-model=
"value.quantityAll"
/>
<el-input
v-model=
"value.quantityAll"
:disabled=
"readonly"
/>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -97,13 +98,18 @@
</
template
>
<
script
>
import
ProductSelector
from
"
@/components/ProductSelector/index.vue
"
;
import
{
getProductBrankPage
}
from
"
@/api/ecw/productBrank
"
;
import
{
getProductAttrList
}
from
"
@/api/ecw/productAttr
"
;
// import {getFeeTypeByOrderProduct} from "@/api/ecw/productBrank";
import
ProductSelector
from
"
@/components/ProductSelector/index.vue
"
import
{
getProductBrank
,
getProductBrankPage
}
from
'
@/api/ecw/productBrank
'
import
{
getProductAttrList
}
from
"
@/api/ecw/productAttr
"
import
{
DICT_TYPE
}
from
'
@/utils/dict
'
export
default
{
name
:
"
WarehouseRecordDetailItem
"
,
computed
:
{
DICT_TYPE
()
{
return
DICT_TYPE
}
},
components
:
{
ProductSelector
},
props
:
{
value
:
{
...
...
@@ -114,7 +120,7 @@ export default {
type
:
Number
,
default
:
0
},
read
O
nly
:
{
read
o
nly
:
{
type
:
Boolean
,
default
:
false
},
...
...
@@ -127,6 +133,38 @@ export default {
data
()
{
return
{
brandList
:
[],
prodAttrIds
:
[],
usageIds
:
[],
boxGauge1
:
''
,
boxGauge2
:
''
,
boxGauge3
:
''
,
}
},
mounted
()
{
// 品牌回显
if
(
this
.
value
.
brand
)
{
getProductBrank
(
this
.
value
.
brand
).
then
(
r
=>
{
this
.
brandList
=
[
r
.
data
]
})
}
if
(
typeof
this
.
value
.
prodAttrIds
===
'
string
'
)
{
this
.
prodAttrIds
=
this
.
value
.
prodAttrIds
.
split
(
'
,
'
).
map
(
e
=>
+
e
)
||
[]
}
if
(
this
.
value
.
usageIds
)
{
console
.
log
(
'
this.value.usageIds
'
,
this
.
value
.
usageIds
)
this
.
usageIds
=
this
.
value
.
usageIds
.
split
(
'
,
'
)
||
[]
}
if
(
this
.
value
.
boxGauge
)
{
const
boxGauge
=
this
.
value
.
boxGauge
.
split
(
'
*
'
)
if
(
boxGauge
?.
length
===
3
)
{
this
.
boxGauge1
=
boxGauge
[
0
]
this
.
boxGauge2
=
boxGauge
[
1
]
this
.
boxGauge3
=
boxGauge
[
2
]
}
}
},
methods
:
{
...
...
@@ -136,23 +174,34 @@ export default {
this
.
attrList
=
response
.
data
;
})
},
handleBrandChange
(
v
){
// getFeeTypeByOrderProduct({
// brandId: parseInt(v),
// productId: this.warehousing.prodId,
// orderId: this.orderId
// }).then(r => {
// if(r.code === 0){
// (this.activeName === "first" ? this.form : this.form1).feeType = parseInt(r.data.feeType);
// (this.activeName === "first" ? this.form : this.form1).recordMode = parseInt(r.data.recordMode)
// }
// })
},
getProductBrandPage
(
titleZh
=
undefined
)
{
getProductBrankPage
({
pageSize
:
20
,
titleZh
}).
then
(
r
=>
{
this
.
brandList
=
r
.
data
.
list
})
},
handleDelete
()
{
this
.
$emit
(
'
handle-delete
'
)
}
},
watch
:
{
prodAttrIds
(
val
)
{
this
.
value
.
prodAttrIds
=
val
.
join
(
'
,
'
)
},
usageIds
(
val
)
{
console
.
log
(
'
val
'
,
val
)
this
.
$nextTick
(()
=>
{
this
.
value
.
usageIds
=
val
.
join
(
'
,
'
)
})
},
boxGauge1
()
{
this
.
value
.
boxGauge
=
this
.
boxGauge1
+
'
*
'
+
this
.
boxGauge2
+
'
*
'
+
this
.
boxGauge3
},
boxGauge2
()
{
this
.
value
.
boxGauge
=
this
.
boxGauge1
+
'
*
'
+
this
.
boxGauge2
+
'
*
'
+
this
.
boxGauge3
},
boxGauge3
()
{
this
.
value
.
boxGauge
=
this
.
boxGauge1
+
'
*
'
+
this
.
boxGauge2
+
'
*
'
+
this
.
boxGauge3
}
}
}
</
script
>
...
...
src/views/ecw/order/weightDeal.vue
View file @
9f3fb039
...
...
@@ -59,7 +59,7 @@
<span
style=
"margin-right:10px"
>
{{
(
orderData
.
sumWeight
||
0
)
+
'
kg
'
}}
</span>
<span>
{{
(
orderData
.
sumQuantity
||
0
)
+
$t
(
'
个
'
)
}}
</span>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('收费
参数
')"
>
<el-descriptions-item
:label=
"$t('收费
数据
')"
>
<span
style=
"margin-right:10px"
>
{{
(
orderData
.
sumNum
||
0
)
+
$t
(
'
箱
'
)
}}
</span>
<span
style=
"margin-right:10px"
>
{{
(
orderData
.
wvolume
||
0
)
+
'
m³
'
}}
</span>
<span
style=
"margin-right:10px"
>
{{
(
orderData
.
vweight
||
0
)
+
'
kg
'
}}
</span>
...
...
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