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
0aac82ea
Commit
0aac82ea
authored
Dec 26, 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
b6c2de2b
3e7cbec4
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
449 additions
and
262 deletions
+449
-262
index.vue
src/views/ecw/deptTarget/index.vue
+56
-23
SplitDetail.vue
src/views/ecw/order/components/SplitDetail.vue
+37
-24
splitApply.vue
src/views/ecw/order/splitApply.vue
+2
-2
batchEdit.vue
src/views/ecw/productPrice/batchEdit.vue
+125
-137
edit.vue
src/views/ecw/productPrice/edit.vue
+34
-76
index.vue
src/views/ecw/warehouse/index.vue
+7
-0
tpl.js
src/views/ecw/warehouse/tpl.js
+188
-0
No files found.
src/views/ecw/deptTarget/index.vue
View file @
0aac82ea
...
@@ -4,18 +4,18 @@
...
@@ -4,18 +4,18 @@
<!-- 搜索工作栏 -->
<!-- 搜索工作栏 -->
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
:label=
"$t('部门')"
prop=
"deptId"
>
<el-form-item
:label=
"$t('部门')"
prop=
"deptId"
>
<el-select
v-model=
"queryParams.deptId"
style=
"width: 300px;"
:placeholder=
"$t('请选择部门')"
>
<el-select
v-model=
"queryParams.deptId"
style=
"width: 300px;"
:placeholder=
"$t('请选择部门')"
clearable
>
<el-option
v-for=
"item in this.deptData"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
/>
<el-option
v-for=
"item in this.deptData"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('目标类型')"
prop=
"targetType"
>
<el-form-item
:label=
"$t('目标类型')"
prop=
"targetType"
>
<dict-selector
:type=
"DICT_TYPE.TARGET_TYPE"
v-model=
"queryParams.targetType"
formatter=
"number"
/>
<dict-selector
:type=
"DICT_TYPE.TARGET_TYPE"
v-model=
"queryParams.targetType"
formatter=
"number"
clearable
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('运输方式')"
prop=
"transportType"
>
<el-form-item
:label=
"$t('运输方式')"
prop=
"transportType"
>
<dict-selector
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
v-model=
"queryParams.transportType"
formatter=
"number"
/>
<dict-selector
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
v-model=
"queryParams.transportType"
formatter=
"number"
clearable
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('出货渠道')"
prop=
"shippingChannel"
>
<el-form-item
:label=
"$t('出货渠道')"
prop=
"shippingChannel"
>
<el-select
v-model=
"queryParams.shippingChannel"
:placeholder=
"$t('请选择出货渠道')"
>
<el-select
v-model=
"queryParams.shippingChannel"
:placeholder=
"$t('请选择出货渠道')"
clearable
>
<el-option
v-for=
"item in channelList"
:label=
"item.nameZh"
:value=
"item.channelId"
<el-option
v-for=
"item in channelList"
:label=
"item.nameZh"
:value=
"item.channelId"
:key=
"item.channelId"
></el-option>
:key=
"item.channelId"
></el-option>
</el-select>
</el-select>
...
@@ -148,7 +148,7 @@
...
@@ -148,7 +148,7 @@
getCreateInitData
,
getCreateInitData
,
getPersonTargetPage
getPersonTargetPage
}
from
"
@/api/ecw/deptTarget
"
;
}
from
"
@/api/ecw/deptTarget
"
;
import
{
listSimpleDepts
}
from
"
@/api/system/dept
"
;
import
{
list
Dept
,
list
SimpleDepts
}
from
"
@/api/system/dept
"
;
import
{
getChannelList
}
from
'
@/api/ecw/channel
'
;
import
{
getChannelList
}
from
'
@/api/ecw/channel
'
;
import
dayjs
from
"
dayjs
"
;
import
dayjs
from
"
dayjs
"
;
import
{
parseTime
}
from
'
@/utils/ruoyi
'
;
import
{
parseTime
}
from
'
@/utils/ruoyi
'
;
...
@@ -237,24 +237,27 @@ import { parseTime } from '@/utils/ruoyi';
...
@@ -237,24 +237,27 @@ import { parseTime } from '@/utils/ruoyi';
}
}
},
},
created
()
{
created
()
{
listSimpleDepts
().
then
(
res
=>
{
this
.
getDeptList
();
res
.
data
.
forEach
((
item
)
=>
{
if
(
item
.
parentId
==
0
)
{
this
.
deptArr
.
push
(
item
)
}
else
{
this
.
deptData
.
push
(
item
)
}
})
this
.
deptData
.
forEach
((
value
)
=>
{
var
dept
=
this
.
deptArr
.
filter
(
itt
=>
itt
.
id
==
value
.
parentId
)
if
(
dept
.
length
>
0
)
{
value
.
name
=
dept
[
0
].
name
+
'
|
'
+
value
.
name
}
})
// listSimpleDepts().then(res => {
});
// this.deptList = this.handleTree(res, "id");
// console.log("this.deptList:"+JSON.stringify(this.deptList));
// res.data.forEach((item) => {
// if (item.parentId == 0) {
// this.deptArr.push(item)
// }
// else {
// this.deptData.push(item)
// }
// })
// this.deptData.forEach((value) => {
// var dept = this.deptArr.filter(itt => itt.id == value.parentId)
// if (dept.length > 0) {
// value.name = dept[0].name + ' | ' + value.name
// }
//
// })
// });
getCreateInitData
().
then
(
res
=>
{
getCreateInitData
().
then
(
res
=>
{
this
.
monthList
=
res
.
data
.
month
;
this
.
monthList
=
res
.
data
.
month
;
this
.
quarterList
=
res
.
data
.
quarter
;
this
.
quarterList
=
res
.
data
.
quarter
;
...
@@ -264,6 +267,36 @@ import { parseTime } from '@/utils/ruoyi';
...
@@ -264,6 +267,36 @@ import { parseTime } from '@/utils/ruoyi';
this
.
getList
();
this
.
getList
();
},
},
methods
:
{
methods
:
{
/** 查询部门列表 */
getDeptList
(){
this
.
loading
=
true
;
listDept
(
this
.
queryParams
).
then
(
response
=>
{
this
.
deptList
=
this
.
handleTree
(
response
.
data
,
"
id
"
);
console
.
log
(
"
this.deptList:
"
+
JSON
.
stringify
(
this
.
deptList
));
this
.
deptList
.
forEach
((
item
)
=>
{
this
.
normalizer
(
item
);
// this.deptData.push(item);
// if(item.children!=null&&item.children.length>0){
// item.children.forEach((c) => {
// c.name = item.name +"|"+ c.name;
// this.deptData.push(c);
// });
// }
});
// this.loading = false;
});
},
normalizer
(
item
)
{
this
.
deptData
.
push
(
item
);
if
(
item
.
children
!=
null
&&
item
.
children
.
length
>
0
){
item
.
children
.
forEach
((
c
)
=>
{
c
.
name
=
item
.
name
+
"
|
"
+
c
.
name
;
this
.
normalizer
(
c
);
// this.deptData.push(c);
});
}
return
item
;
},
getChannelList
()
{
getChannelList
()
{
getChannelList
().
then
(
res
=>
this
.
channelList
=
res
.
data
)
getChannelList
().
then
(
res
=>
this
.
channelList
=
res
.
data
)
},
},
...
...
src/views/ecw/order/components/SplitDetail.vue
View file @
0aac82ea
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</el-descriptions-item>
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
<template
v-for=
"item in
detail.
orderSplitBackVOList"
>
<template
v-for=
"item in orderSplitBackVOList"
>
<div
class=
"title mt-20"
:key=
"item.orderNo"
>
<div
class=
"title mt-20"
:key=
"item.orderNo"
>
<span
class=
"mr-10"
>
{{
item
.
orderNo
}}
</span>
<span
class=
"mr-10"
>
{{
item
.
orderNo
}}
</span>
<dict-tag
class=
"mr-10"
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
:value=
"item.transportId"
/>
<dict-tag
class=
"mr-10"
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
:value=
"item.transportId"
/>
...
@@ -52,7 +52,11 @@
...
@@ -52,7 +52,11 @@
<
template
slot-scope=
"{row}"
>
{{
row
.
weight
}}
kg
</
template
>
<
template
slot-scope=
"{row}"
>
{{
row
.
weight
}}
kg
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('箱数')"
>
<el-table-column
:label=
"$t('箱数')"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
num
}}
</
template
></el-table-column>
<
template
slot-scope=
"{row}"
>
{{
row
.
num
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('备注')"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
remark
}}
</
template
>
</el-table-column>
</el-table>
</el-table>
</template>
</template>
</div>
</div>
...
@@ -60,6 +64,7 @@
...
@@ -60,6 +64,7 @@
<
script
>
<
script
>
import
{
getApproval
,
getOrder
}
from
'
@/api/ecw/order
'
import
{
getApproval
,
getOrder
}
from
'
@/api/ecw/order
'
import
{
getChannel
}
from
'
@/api/ecw/channel
'
import
{
getChannel
}
from
'
@/api/ecw/channel
'
import
{
getSplitList
}
from
'
@/api/ecw/orderHandle
'
export
default
{
export
default
{
props
:{
props
:{
id
:
[
String
,
Number
]
id
:
[
String
,
Number
]
...
@@ -68,7 +73,8 @@ export default {
...
@@ -68,7 +73,8 @@ export default {
return
{
return
{
detail
:
null
,
detail
:
null
,
order
:
null
,
order
:
null
,
channel
:
null
channel
:
null
,
orderSplitBackVOList
:
[]
}
}
},
},
watch
:{
watch
:{
...
@@ -76,6 +82,7 @@ export default {
...
@@ -76,6 +82,7 @@ export default {
this
.
getData
()
this
.
getData
()
},
},
detail
(){
detail
(){
this
.
getSplit
()
this
.
getOrder
()
this
.
getOrder
()
},
},
order
(){
order
(){
...
@@ -95,6 +102,12 @@ export default {
...
@@ -95,6 +102,12 @@ export default {
this
.
detail
=
JSON
.
parse
(
res
.
data
.
details
)
this
.
detail
=
JSON
.
parse
(
res
.
data
.
details
)
})
})
},
},
getSplit
(){
getSplitList
({
orderId
:
this
.
detail
.
orderId
,
lang
:
this
.
$i18n
.
locale
.
toLowerCase
().
indexOf
(
'
zh
'
)
>
-
1
?
0
:
1
}).
then
(
res
=>
{
console
.
log
(
'
getSplitList
'
,
res
)
this
.
orderSplitBackVOList
=
res
.
data
.
orderSplitBackVOList
})
},
getOrder
(){
getOrder
(){
getOrder
(
this
.
detail
.
orderId
).
then
(
res
=>
{
getOrder
(
this
.
detail
.
orderId
).
then
(
res
=>
{
this
.
order
=
res
.
data
this
.
order
=
res
.
data
...
...
src/views/ecw/order/splitApply.vue
View file @
0aac82ea
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
<el-input-number
v-model=
"shopForm.quantity"
controls-position=
"right"
:min=
"1"
:max=
"quantitySum"
></el-input-number>
<el-input-number
v-model=
"shopForm.quantity"
controls-position=
"right"
:min=
"1"
:max=
"quantitySum"
></el-input-number>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('备注信息')+':'"
>
<el-form-item
:label=
"$t('备注信息')+':'"
>
<el-input
v-model=
"shopForm.remark
s
"
></el-input>
<el-input
v-model=
"shopForm.remark"
></el-input>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
</el-form>
</el-form>
...
@@ -552,7 +552,7 @@ export default {
...
@@ -552,7 +552,7 @@ export default {
num
:
this
.
shopForm
.
num
,
num
:
this
.
shopForm
.
num
,
orderItemId
:
this
.
shopForm
.
orderItemId
,
orderItemId
:
this
.
shopForm
.
orderItemId
,
orderSplitId
:
this
.
splitData
[
this
.
splitItemIndex
].
id
,
orderSplitId
:
this
.
splitData
[
this
.
splitItemIndex
].
id
,
remark
s
:
this
.
shopForm
.
remarks
remark
:
this
.
shopForm
.
remark
}
}
createSplitItem
(
params
).
then
(
res
=>
{
createSplitItem
(
params
).
then
(
res
=>
{
this
.
$message
.
success
(
this
.
$t
(
"
放入成功
"
));
this
.
$message
.
success
(
this
.
$t
(
"
放入成功
"
));
...
...
src/views/ecw/productPrice/batchEdit.vue
View file @
0aac82ea
This diff is collapsed.
Click to expand it.
src/views/ecw/productPrice/edit.vue
View file @
0aac82ea
This diff is collapsed.
Click to expand it.
src/views/ecw/warehouse/index.vue
View file @
0aac82ea
...
@@ -313,6 +313,7 @@
...
@@ -313,6 +313,7 @@
<el-input
v-model=
"ladingform.prefixCounter"
:placeholder=
"$t('请输入货柜前缀')"
/>
<el-input
v-model=
"ladingform.prefixCounter"
:placeholder=
"$t('请输入货柜前缀')"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('抬头')"
prop=
"titleZh"
>
<el-form-item
:label=
"$t('抬头')"
prop=
"titleZh"
>
<el-link
type=
"primary"
@
click.native=
"setTpl('sea')"
>
海运模板
</el-link>
|
<el-link
type=
"primary"
@
click.native=
"setTpl('air')"
>
空运模板
</el-link>
<ueditor
v-model=
"ladingform.titleZh"
:min-height=
"192"
style=
"width:960px"
/>
<ueditor
v-model=
"ladingform.titleZh"
:min-height=
"192"
style=
"width:960px"
/>
</el-form-item>
</el-form-item>
...
@@ -393,6 +394,9 @@ import RoutersSelectorWithoutChannel from '@/components/RoutersSelectorWithoutCh
...
@@ -393,6 +394,9 @@ import RoutersSelectorWithoutChannel from '@/components/RoutersSelectorWithoutCh
import
{
has
}
from
'
min-dash
'
;
import
{
has
}
from
'
min-dash
'
;
import
Template
from
"
../../cms/template/index
"
;
import
Template
from
"
../../cms/template/index
"
;
// 海运和空运的抬头模板
import
tpl
from
'
./tpl
'
console
.
log
(
tpl
)
export
default
{
export
default
{
name
:
"
Warehouse
"
,
name
:
"
Warehouse
"
,
components
:
{
components
:
{
...
@@ -642,6 +646,9 @@ export default {
...
@@ -642,6 +646,9 @@ export default {
console
.
log
(
"
transportDatas:
"
+
JSON
.
stringify
(
this
.
transportDatas
));
console
.
log
(
"
transportDatas:
"
+
JSON
.
stringify
(
this
.
transportDatas
));
},
},
methods
:
{
methods
:
{
setTpl
(
type
){
this
.
ladingform
.
titleZh
=
tpl
[
type
]
},
/** 查询列表 */
/** 查询列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
...
...
src/views/ecw/warehouse/tpl.js
0 → 100644
View file @
0aac82ea
const
sea
=
`
<table style="width:96%;">
<tbody>
<tr class="firstRow">
<td style="text-align:center;">
<img src="https://static2.groupage.cn/logo.png" alt="" style="width:118px;"/>
</td>
<td class="laymain" style="vertical-align:text-top;">
<p style="font-size:36px;color:#008fd7;font-family:'Times New Roman';text-align:center;">
E&C LOGISTICS LIMITED
</p>
<p style="font-size:16px;color:#008fd7;font-family:'Times New Roman';text-align:center;">
China Head Add.: +8618058993570/ 13556084412/13660548225/
</p>
<p style="font-size:16px;color:#008fd7;font-family:'Times New Roman';text-align:center;">
Yiwu Branch: +15957997302/ 18058993571/13105572235
</p>
<p style="font-size:16px;color:#008fd7;font-family:'Times New Roman';text-align:center;">
NGR head office: 07011331745/ 08140352000/
</p>
<p style="font-size:16px;color:#008fd7;font-family:'Times New Roman';text-align:center;">
Alaba Branch (Air-Cargo) : 07082148641/ 08105496751/ 07011331745
</p>
</td>
<td style="text-align:center;">
<img src="https://static2.groupage.cn/weixin.jpg" alt="" style="width:142px;"/>
<p style="font-size:16px;color:#008fd7;font-family:'Times New Roman';text-align:center;">
Website: www.groupage.cn
</p>
</td>
</tr>
</tbody>
</table>
<table style="width:96%;">
<tbody>
<tr class="firstRow">
<td style="font-size: 16px; color: rgb(0, 143, 215); word-break: break-all;">
<span style="color: rgb(0, 143, 215); font-family: "></span><span style="color: rgb(0, 143, 215); font-family: ">Lagos Airport Branch</span>: 07018291182/07082148641
</td>
<td style="font-size:16px;color:#008fd7;font-family:'Times New Roman';text-align:center;">
Trade fair Branch: 07013178195/ 09023762194
</td>
</tr>
</tbody>
</table>
<p style="font-size:16px;color:#008fd7;font-family:'Times New Roman';text-align:center;">
IDUMOTA/ISLAND : 07010775374/09025168630/09024538636
</p>
<p style="font-size:16px;color:#008fd7;font-family:'Times New Roman';text-align:center;">
Complaint Line:+86 15920356527(CHINA) / +2349021774695 (NIGERIA)
</p>
<p style="font-size:33px;color:#000;font-family:'Times New Roman';text-align:center;">
PACKING LIST
</p>
`
const
air
=
`
<table style="width:96%;">
<tbody>
<tr class="firstRow">
<td style="text-align:center;">
<img src="https://jd.static.jdshangmen.com/logo.png" alt="" style="width:118px;"/>
</td>
<td class="laymain" style="vertical-align:text-top;">
<p style="font-size:36px;color:#008fd7;font-family:'Times New Roman';text-align:center;">
E&C LOGISTICS LIMITED
</p>
<p style="font-size:16px;color:#008fd7;font-family:'Times New Roman';text-align:center;">
China Head Add.: +8618058993570/ 13556084412/13660548225/
</p>
<p style="font-size:16px;color:#008fd7;font-family:'Times New Roman';text-align:center;">
Yiwu Branch: +15957997302/ 18058993571/13105572235
</p>
<p style="font-size:16px;color:#008fd7;font-family:'Times New Roman';text-align:center;">
NGR head office: 07011331745/ 08140352000/
</p>
<p style="font-size:16px;color:#008fd7;font-family:'Times New Roman';text-align:center;">
Alaba Branch (Air-Cargo) : 07082148641/ 08105496751/ 07011331745
</p>
</td>
<td style="text-align:center;">
<img src="https://jd.static.jdshangmen.com/weixin.jpg" alt="" style="width:142px;"/>
<p style="font-size:16px;color:#008fd7;font-family:'Times New Roman';text-align:center;">
Website: www.groupage.cn
</p>
</td>
</tr>
</tbody>
</table>
<table style="width:96%;">
<tbody>
<tr class="firstRow">
<td style="font-size:16px;color:#008fd7;font-family:'Times New Roman';text-align:center;">
Lagos Airport Branch: 07018291182/07082148641
</td>
<td style="font-size:16px;color:#008fd7;font-family:'Times New Roman';text-align:center;">
Trade fair Branch: 07013178195/ 09023762194
</td>
</tr>
</tbody>
</table>
<p style="font-size:16px;color:#008fd7;font-family:'Times New Roman';text-align:center;">
IDUMOTA/ISLAND : 07010775374/09025168630/09024538636
</p>
<p style="font-size:16px;color:#008fd7;font-family:'Times New Roman';text-align:center;">
Complaint Line:+86 15920356527(CHINA) / +2349021774695 (NIGERIA)
</p>
<p style="font-size:33px;color:#000;font-family:'Times New Roman';text-align:center;">
AIR WAY BILL
</p>
`
module
.
exports
=
{
sea
,
air
}
\ No newline at end of file
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