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
97c24f24
Commit
97c24f24
authored
Nov 02, 2022
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理几个bug
parent
d746090f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
20 deletions
+44
-20
jsconfig.json
jsconfig.json
+5
-1
index.vue
src/components/CustomerContactsSelector/index.vue
+1
-1
index.vue
src/components/ProductSelector/index.vue
+4
-5
Navbar.vue
src/layout/components/Navbar.vue
+1
-1
cargoControl.vue
src/views/ecw/order/cargoControl.vue
+15
-7
edit.vue
src/views/ecw/order/edit.vue
+18
-5
No files found.
jsconfig.json
View file @
97c24f24
...
...
@@ -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 @
97c24f24
...
...
@@ -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 @
97c24f24
...
...
@@ -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/layout/components/Navbar.vue
View file @
97c24f24
...
...
@@ -90,7 +90,7 @@ export default {
setInterval
(()
=>
{
this
.
$store
.
dispatch
(
'
getNotMessage
'
);
this
.
$store
.
dispatch
(
'
getToDoList
'
);
},
3
000
)
},
10
000
)
},
components
:
{
Breadcrumb
,
...
...
src/views/ecw/order/cargoControl.vue
View file @
97c24f24
...
...
@@ -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/edit.vue
View file @
97c24f24
...
...
@@ -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
){
...
...
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