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
262ff4a2
Commit
262ff4a2
authored
Nov 02, 2022
by
我在何方
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab.jdshangmen.com/jiedao-app/jiedao-app-operator
into dev
parents
201fdd77
d6ae5a8e
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
71 additions
and
31 deletions
+71
-31
jsconfig.json
jsconfig.json
+5
-1
index.vue
src/components/CustomerContactsSelector/index.vue
+1
-1
index.vue
src/components/ProductSelector/index.vue
+4
-5
index.vue
src/components/ProductsSelector/index.vue
+6
-2
Navbar.vue
src/layout/components/Navbar.vue
+1
-1
edit.vue
src/views/ecw/coupon/edit.vue
+13
-2
index.vue
src/views/ecw/customer/index.vue
+3
-1
cargoControl.vue
src/views/ecw/order/cargoControl.vue
+15
-7
warehouseDetails.vue
src/views/ecw/order/components/warehouseDetails.vue
+1
-1
edit.vue
src/views/ecw/order/edit.vue
+18
-5
index.vue
src/views/ecw/order/index.vue
+1
-2
editDialog.vue
src/views/ecw/order/warehousing/components/editDialog.vue
+2
-2
index.vue
src/views/ecw/order/warehousing/index.vue
+1
-1
No files found.
jsconfig.json
View file @
262ff4a2
...
...
@@ -9,6 +9,10 @@
}
},
"exclude"
:
[
"node_modules"
"node_modules"
,
"dist"
,
"bin"
,
"public"
,
"src/i18n/"
]
}
\ No newline at end of file
src/components/CustomerContactsSelector/index.vue
View file @
262ff4a2
...
...
@@ -87,7 +87,7 @@ export default {
}
getCustomerContactsSelect
({
ids
:
this
.
value
.
join
(
'
,
'
)})
.
then
(
res
=>
{
this
.
$set
(
this
,
'
choosedList
'
,
res
.
data
)
this
.
$set
(
this
,
'
choosedList
'
,
res
.
data
.
list
)
})
},
reLoad
(){
...
...
src/components/ProductSelector/index.vue
View file @
262ff4a2
...
...
@@ -40,20 +40,19 @@ export default {
}
},
watch
:{
index
(
val
){
index
(
val
,
oldVal
){
let
productId
=
val
!==
''
&&
val
!==
null
?
this
.
list
[
val
].
id
:
null
console
.
log
(
'
index val
'
,
v
al
,
productId
)
// console.log('index val', val, oldV
al, productId)
this
.
$emit
(
'
input
'
,
productId
)
this
.
$emit
(
'
change
'
,
val
!==
''
&&
val
!==
null
?
this
.
list
[
val
]
:
null
)
// 0 != '' 是 false
},
value
(
val
){
console
.
log
(
'
初始化内容
'
,
val
)
//
console.log('初始化内容', val)
this
.
init
()
}
},
created
(){
console
.
log
(
'
created
'
,
this
.
value
)
// console.log('created', this.value, this.lang
)
this
.
init
()
},
methods
:{
...
...
src/components/ProductsSelector/index.vue
View file @
262ff4a2
...
...
@@ -53,7 +53,8 @@ export default {
return
[]
}
}
,
showAll
:
Boolean
showAll
:
Boolean
,
isall
:
Boolean
}
,
data
()
{
return
{
...
...
@@ -97,6 +98,9 @@ export default {
}
,
defaultIds
(){
this
.
loadDefaultProds
()
}
,
isall
(
isall
){
this
.
isAllProduct
=
isall
}
}
,
created
()
{
...
...
@@ -104,7 +108,7 @@ export default {
getProductAttrList
().
then
(
res
=>
this
.
attrList
=
res
.
data
)
this
.
reLoad
()
this
.
ids
=
this
.
defaultIds
//数据回显
this
.
isAllProduct
=
this
.
isall
// 如果有默认商品则获取内容供回显
if
(
this
.
defaultIds
.
length
){
this
.
loadDefaultProds
()
...
...
src/layout/components/Navbar.vue
View file @
262ff4a2
...
...
@@ -90,7 +90,7 @@ export default {
setInterval
(()
=>
{
this
.
$store
.
dispatch
(
'
getNotMessage
'
);
this
.
$store
.
dispatch
(
'
getToDoList
'
);
},
3
000
)
},
10
000
)
},
components
:
{
Breadcrumb
,
...
...
src/views/ecw/coupon/edit.vue
View file @
262ff4a2
...
...
@@ -189,7 +189,7 @@
v-if=
"form.type != 1"
>
<!-- <dict-selector :type="DICT_TYPE.ECW_SUITABLE_PROD_TYPE" v-model="form.suitableProdType" /> -->
<products-selector
v-model=
"form.prodIds"
:default-ids=
"form.prodIds"
/>
<products-selector
v-model=
"form.prodIds"
:default-ids=
"form.prodIds"
show-all
@
setall=
"isAllProduct=$event"
:isall=
"isAllProduct"
/>
</el-form-item>
<el-form-item
:label=
"$t('订单属性')"
...
...
@@ -287,7 +287,8 @@ export default {
1
:
[],
2
:
[],
3
:
[]
}
},
isAllProduct
:
false
,
// 是否全部商品
};
},
computed
:{
...
...
@@ -395,6 +396,11 @@ export default {
if
(
this
.
$route
.
query
.
id
)
{
getCoupon
(
this
.
$route
.
query
.
id
).
then
((
res
)
=>
{
this
.
form
=
res
.
data
// 没有商品则表示全部
if
(
!
this
.
form
.
prodIds
){
this
.
isAllProduct
=
true
}
if
(
this
.
form
.
couponIds
){
let
couponIds
=
this
.
form
.
couponIds
.
split
(
'
,
'
).
filter
(
item
=>
item
&&
item
!=
''
)
console
.
log
({
couponIds
})
...
...
@@ -516,6 +522,11 @@ export default {
data
.
costType
=
3
}
// 没勾选全部就需要选择商品
if
(
!
this
.
isAllProduct
&&
!
this
.
form
.
prodIds
){
return
this
.
$message
.
error
(
'
请选择商品
'
)
}
// 修改的提交
if
(
data
.
couponId
!=
null
)
{
updateCoupon
(
data
).
then
((
response
)
=>
{
...
...
src/views/ecw/customer/index.vue
View file @
262ff4a2
...
...
@@ -720,7 +720,9 @@ export default {
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
id
=
row
.
id
;
this
.
$modal
.
confirm
(
this
.
$t
(
'
是否确认删除客户编号为"
'
)
+
id
+
this
.
$t
(
'
"的数据项?
'
)).
then
(
function
()
{
const
name
=
row
.
name
;
const
number
=
row
.
number
;
this
.
$modal
.
confirm
(
this
.
$t
(
'
是否确认删除客户编号为"
'
)
+
number
+
this
.
$t
(
'
"的数据项?
'
)).
then
(
function
()
{
return
deleteCustomer
(
id
);
}).
then
(()
=>
{
this
.
getList
();
...
...
src/views/ecw/order/cargoControl.vue
View file @
262ff4a2
...
...
@@ -7,14 +7,14 @@
<dict-selector
defaultable
:type=
"DICT_TYPE.ECW_BEGINTIME_TYPE_ENDTIME"
v-model=
"dateFilterType"
class=
"w-100 mr-10"
/>
<el-date-picker
v-model=
"dateFilter"
type=
"daterange"
range-separator=
"-"
:start-placeholder=
"$t('开始日期')"
:end-placeholder=
"$t('结束日期')"
value-format=
"yyyy-MM-dd HH:mm:ss"
@
change=
"handleQuery"
></el-date-picker>
</el-form-item>
<el-form-item
:label=
"$t('始发
地
')"
prop=
"startWarehouseId"
>
<el-form-item
:label=
"$t('始发
仓
')"
prop=
"startWarehouseId"
>
<el-select
v-model=
"queryParams.startWarehouseId"
:placeholder=
"$t('请选择始发地')"
clearable
@
change=
"handleQuery"
>
<el-option
v-for=
"item in expo
erCity
List"
:label=
"item.titleZh"
:value=
"item.id"
:key=
"item.id"
></el-option>
<el-option
v-for=
"item in expo
rtWarehouse
List"
:label=
"item.titleZh"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('目的
地
')"
prop=
"destWarehouseId"
>
<el-form-item
:label=
"$t('目的
仓
')"
prop=
"destWarehouseId"
>
<el-select
v-model=
"queryParams.destWarehouseId"
:placeholder=
"$t('请选择目的地')"
clearable
@
change=
"handleQuery"
>
<el-option
v-for=
"item in import
City
List"
:label=
"item.titleZh"
:value=
"item.id"
:key=
"item.id"
></el-option>
<el-option
v-for=
"item in import
Warehouse
List"
:label=
"item.titleZh"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('运输方式')"
prop=
"transportId"
>
...
...
@@ -157,14 +157,14 @@ import Selector from '@/components/Selector'
import
ProductSelector
from
'
@/components/ProductSelector
'
import
{
getProductAttrList
}
from
'
@/api/ecw/productAttr
'
import
CustomerSelector
from
'
@/components/CustomerSelector
'
import
{
getTradeCityList
}
from
'
@/api/ecw/region
'
/* import { getTradeCityList } from '@/api/ecw/region' */
import
Transfer
from
'
@/views/ecw/order/components/Transfer
'
import
Release
from
'
./components/Release
'
import
CargoControlEdit
from
'
./components/CargoControlEdit
'
import
{
getCargoControlOrderPage
,
batchReview
,
orderReview
,
getPickRleaseInfo
}
from
"
@/api/ecw/orderCargoControl
"
import
TransferCargo
from
'
@/views/ecw/order/components/TransferCargo
'
import
Fallback
from
'
./components/Fallback
'
import
{
getWarehouseList
}
from
'
@/api/ecw/warehouse
'
export
default
{
name
:
"
EcwOrderCargonControl
"
,
components
:
{
...
...
@@ -196,6 +196,7 @@ export default {
rows
:
10
},
tradeCityList
:
[],
warehouseList
:
[],
productAttrList
:
[],
// 商品属性
molecule
:
''
,
//重货比分子
denominator
:
''
,
//重货比分母
...
...
@@ -215,6 +216,12 @@ export default {
importCityList
()
{
return
this
.
tradeCityList
.
filter
(
item
=>
item
.
type
==
1
)
},
exportWarehouseList
(){
return
this
.
warehouseList
.
filter
(
item
=>
item
.
tradeType
==
2
||
item
.
tradeType
==
3
)
},
importWarehouseList
(){
return
this
.
warehouseList
.
filter
(
item
=>
item
.
tradeType
==
1
||
item
.
tradeType
==
3
)
},
combinedQueryParams
(){
let
timeParams
=
{}
if
(
this
.
dateFilterType
&&
this
.
dateFilter
){
...
...
@@ -230,7 +237,8 @@ export default {
created
()
{
this
.
getList
();
getProductAttrList
().
then
(
res
=>
this
.
productAttrList
=
res
.
data
)
getTradeCityList
().
then
(
res
=>
this
.
tradeCityList
=
res
.
data
)
// getTradeCityList().then(res => this.tradeCityList = res.data)
getWarehouseList
().
then
(
res
=>
this
.
warehouseList
=
res
.
data
)
},
methods
:
{
/** 查询列表 */
...
...
src/views/ecw/order/components/warehouseDetails.vue
View file @
262ff4a2
...
...
@@ -260,7 +260,7 @@ export default {
getOrder
(
res
.
data
.
orderIds
).
then
(
r
=>
{
this
.
FeeDetails
=
r
.
data
this
.
FeeDetails
.
details
=
JSON
.
parse
(
res
.
data
.
details
)
const
orderItem
=
this
.
FeeDetails
.
orderItemVOList
.
find
(
e
=>
e
.
brand
===
this
.
FeeDetails
.
details
.
bran
d
)
const
orderItem
=
this
.
FeeDetails
.
orderItemVOList
.
find
(
e
=>
e
.
orderItemId
===
this
.
FeeDetails
.
details
.
orderItemI
d
)
if
(
orderItem
){
this
.
prodName
=
orderItem
.
prodTitleZh
+
'
(
'
+
orderItem
.
prodTitleEn
+
'
)
'
}
...
...
src/views/ecw/order/edit.vue
View file @
262ff4a2
...
...
@@ -96,7 +96,7 @@
<el-button
type=
"primary"
size=
"mini"
@
click=
"addProduct(null)"
:disabled=
"!canAddProduct"
>
{{$t('添加货物')}}
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"showBatchImportDialog=true"
:disabled=
"!canAddProduct"
>
{{$t('批量添加货物')}}
</el-button>
</div>
<el-table
:data=
"form.orderItemVOList"
border
class=
"product-list"
>
<el-table
:data=
"form.orderItemVOList"
border
class=
"product-list"
v-if=
"!initing"
>
<el-table-column
:label=
"$t('序号')"
width=
"60px"
fixed
>
<
template
slot-scope=
"scope"
>
{{
scope
.
$index
+
1
}}
...
...
@@ -115,6 +115,7 @@
class="mb-0 mr-0"
>
<product-selector
@
hook:mounted=
"onTableMounted"
v-model=
"scope.row.prodId"
@
change=
"onProductChange(scope.row, $event)"
:disabled=
"!canAddProduct || !productEditable"
...
...
@@ -606,6 +607,7 @@ export default {
quickCreateType
:
null
,
// 快速新建客户类型,1发货人,2收货人
showWorkFlow
:
false
,
// 是否显示工作流表单
calculating
:
false
,
// 是否正在计算费用,防止频繁重新请求
initing
:
true
,
// 初始化中
};
},
computed
:{
...
...
@@ -787,9 +789,10 @@ export default {
}
else
if
(
!
this
.
form
.
externalWarehouseDtoList
.
length
){
this
.
$set
(
this
.
form
,
'
externalWarehouseDtoList
'
,
[{}])
}
},
/* 'form.orderItemVOList'(){
console.log('form.orderItemVOList', this.form.orderItemVOList.length, this.form.orderItemVOList)
}, */
// 选择的路线变化后,需要判断是否开通了对应的服务,如果没开通需要取消对应的服务选择
selectedRouter
(
val
){
if
(
!
val
)
return
...
...
@@ -826,13 +829,20 @@ export default {
value
:
2
// 1 发货人,2收货人,默认收货人,可修改
})
})
this
.
$nextTick
(()
=>
{
this
.
initing
=
false
})
},
methods
:
{
onTableMounted
(
e
){
// console.warn('onTableMounted', e)
},
getOrder
(){
getUpdateInfo
(
this
.
$route
.
query
.
id
).
then
(
res
=>
{
this
.
form
=
{...
res
.
data
}
this
.
form
=
Object
.
assign
({},
res
.
data
,
{
orderItemVOList
:
[]})
this
.
form
.
orderItemVOList
=
[];
/* this.form.orderItemVOList = []; */
this
.
form
.
type
=
this
.
form
.
type
?
this
.
form
.
type
.
split
(
'
,
'
).
filter
(
item
=>
item
!=
''
)
:
[]
this
.
form
.
packageTypeArr
=
this
.
form
.
packageType
?
this
.
form
.
packageType
.
split
(
'
,
'
).
filter
(
item
=>
item
!=
''
)
:
[]
...
...
@@ -880,7 +890,10 @@ export default {
})
})
}
this
.
initing
=
false
})
}).
catch
(()
=>
{
this
.
initing
=
false
})
},
onContactChoose
(
contact
){
...
...
src/views/ecw/order/index.vue
View file @
262ff4a2
...
...
@@ -209,8 +209,7 @@
<!-- 费用申请 -->
<
template
v-if=
"
exclude(scope.row.status, [0]) &&
exclude(scope.row.abnormalState, [1 ,99 ,2 ,3 ,4 ,9 ,10 ,11 ,12 ,14]) &&
exclude(scope.row.shipmentState, [320,322,323])
exclude(scope.row.abnormalState, [1 ,99 ,2 ,3 ,4 ,9 ,10 ,11 ,12 ,14])
"
>
<el-dropdown-item
@
click.native=
"feeApplicationBol = true; orderId = scope.row.orderId"
>
{{
$t
(
'
费用申请
'
)
}}
</el-dropdown-item>
</
template
>
...
...
src/views/ecw/order/warehousing/components/editDialog.vue
View file @
262ff4a2
...
...
@@ -624,8 +624,8 @@ export default {
orderItemId
:
this
.
warehousing
.
orderItemId
,
orderNo
:
this
.
warehousing
.
orderNo
,
num
:
this
.
warehousing
.
num
,
volume
:
this
.
warehousing
.
volume
?.
toFixed
(
2
)
||
''
,
weight
:
this
.
warehousing
.
weight
?.
toFixed
(
2
)
||
''
,
volume
:
(
+
this
.
warehousing
.
volume
)
?.
toFixed
(
2
)
||
''
,
weight
:
(
+
this
.
warehousing
.
weight
)
?.
toFixed
(
2
)
||
''
,
prodId
:
this
.
warehousing
.
prodId
,
"
orderWarehouseInUpdateItemDoList
"
:
this
.
tableData
.
map
(
e
=>
{
return
{
...
...
src/views/ecw/order/warehousing/index.vue
View file @
262ff4a2
...
...
@@ -69,7 +69,7 @@
:label=
"$t('状态')"
>
<dict-tag
v-if=
"row.warehouseInInfoVO && row.warehouseInInfoVO.diffType"
:type=
"DICT_TYPE.ORDER_WAREHOUSE_IN_STATUS"
:value=
"row.warehouseInInfoVO.diffType"
class=
"red"
:class=
"{green: row.warehouseInInfoVO.diffType === 4}"
/>
<span
class=
"red"
v-else-if=
"row.warehouseInInfoVO && row.warehouseInInfoVO.cartonsNumDiff"
>
{{ row.warehouseInInfoVO.cartonsNumDiff }}{{$t('箱')}}
</span>
<span
v-else
>
{{
$t('待入仓') }}
</span>
<span
:class=
"{red: row.itemStatus === 3}"
v-else
>
{{ row.itemStatus === 3 ? ($t('少了') + row.num + $t('箱')) :
$t('待入仓') }}
</span>
</el-table-column>
<el-table-column
prop=
"address"
...
...
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