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
cf4ca788
Commit
cf4ca788
authored
Dec 25, 2024
by
Smile
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/jd_dev' into jd_dev
parents
1536c0d1
8e9cb974
Changes
23
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
1189 additions
and
238 deletions
+1189
-238
.env.dev
.env.dev
+2
-2
.env.development
.env.development
+1
-1
orderCargoControl.js
src/api/ecw/orderCargoControl.js
+18
-0
SidebarItem.vue
src/layout/components/Sidebar/SidebarItem.vue
+16
-23
startPacking.vue
...ews/ecw/box/shippingAir/nodePage/cabinet/startPacking.vue
+16
-1
supplementOrder.vue
.../ecw/box/shippingAir/nodePage/cabinet/supplementOrder.vue
+2
-0
settlement.vue
src/views/ecw/box/shippingAir/nodePage/settlement.vue
+15
-0
index.vue
src/views/ecw/box/shippingAir/nodePage/tally/index.vue
+21
-1
startPacking.vue
...ews/ecw/box/shippingSea/nodePage/cabinet/startPacking.vue
+16
-1
supplementOrder.vue
.../ecw/box/shippingSea/nodePage/cabinet/supplementOrder.vue
+2
-0
settlement.vue
src/views/ecw/box/shippingSea/nodePage/settlement.vue
+15
-0
index.vue
src/views/ecw/box/shippingSea/nodePage/tally/index.vue
+22
-2
edit.vue
src/views/ecw/customer/edit.vue
+90
-42
index.vue
src/views/ecw/customer/index.vue
+29
-19
query.vue
src/views/ecw/customer/query.vue
+5
-4
edit.vue
src/views/ecw/offer/edit.vue
+1
-1
cargoControlDetailList.vue
src/views/ecw/order/cargoControlDetailList.vue
+444
-0
detail.vue
src/views/ecw/order/detail.vue
+2
-0
edit.vue
src/views/ecw/order/edit.vue
+15
-7
index.vue
src/views/ecw/order/index.vue
+12
-8
index.vue
src/views/ecw/order/stocking/index.vue
+6
-2
smsLog.vue
src/views/system/sms/smsLog.vue
+78
-2
smsNode.vue
src/views/system/sms/smsNode.vue
+361
-122
No files found.
.env.dev
View file @
cf4ca788
...
...
@@ -5,7 +5,7 @@ NODE_ENV = 'production'
VUE_APP_TITLE = 捷道管理系统 - 测试版
# 捷道管理系统/开发环境
VUE_APP_BASE_API = 'http://
127.0.0.1:48080
'
VUE_APP_BASE_API = 'http://
admdp.groupage.cn
'
# VUE_APP_BASE_API = 'http://110.41.143.128:48080'
# VUE_APP_BASE_API = '/api'
...
...
@@ -19,4 +19,4 @@ VUE_APP_TENANT_ENABLE = false
VUE_APP_DOC_ENABLE = true
# 百度统计
VUE_APP_BAIDU_CODE = fadc1bd5db1a1d6f581df60a1807f8ab
\ No newline at end of file
VUE_APP_BAIDU_CODE = fadc1bd5db1a1d6f581df60a1807f8ab
.env.development
View file @
cf4ca788
...
...
@@ -6,7 +6,7 @@ VUE_APP_TITLE = 捷道管理系统-测试站
# 捷道管理系统/开发环境
VUE_APP_BASE_API = 'http
s://devapi.jd.qipx.top
'
VUE_APP_BASE_API = 'http
://admdp.groupage.cn
'
# VUE_APP_BASE_API = 'https://apitest.groupage.cn'
# VUE_APP_BASE_API = 'http://110.41.143.128:48080'
# VUE_APP_BASE_API = 'http://127.0.0.1:48080'
...
...
src/api/ecw/orderCargoControl.js
View file @
cf4ca788
...
...
@@ -189,3 +189,21 @@ export function getReleaseTypeUpdateInfo(orderId) {
method
:
"
get
"
})
}
//获得控货订单列表查询订单分页
export
function
getCargoControlDetailListPage
(
params
)
{
return
request
({
url
:
"
/ecw/order-cargo-control-pick/cargo/control/orderDetail
"
,
method
:
"
get
"
,
params
})
}
//查询控货订单列表统计
export
function
statisticsOrderControl
(
params
)
{
return
request
({
url
:
"
/ecw/order-cargo-control-pick/cargo/control/statistics
"
,
method
:
"
get
"
,
params
})
}
src/layout/components/Sidebar/SidebarItem.vue
View file @
cf4ca788
<
template
>
<div
v-if=
"!item.hidden"
>
<template
v-if=
"hasOneShowingChild(item.children,
item) && (!onlyOneChild.children||onlyOneChild.noShowingChildren)&&
!item.alwaysShow"
>
<template
v-if=
"hasOneShowingChild(item.children,
item) && (!onlyOneChild.children || onlyOneChild.noShowingChildren) &&
!item.alwaysShow"
>
<app-link
v-if=
"onlyOneChild.meta"
:to=
"resolvePath(onlyOneChild.path)"
>
<el-menu-item
:index=
"resolvePath(onlyOneChild.path)"
:class=
"
{
'submenu-title-noDropdown':!isNest
}">
<item
:icon=
"onlyOneChild.meta.icon
||(item.meta&&
item.meta.icon)"
:title=
"$l(onlyOneChild.meta, 'title')"
:badge=
"badge"
/>
<el-menu-item
:index=
"resolvePath(onlyOneChild.path)"
:class=
"
{
'submenu-title-noDropdown': !isNest
}">
<item
:icon=
"onlyOneChild.meta.icon
|| (item.meta &&
item.meta.icon)"
:title=
"$l(onlyOneChild.meta, 'title')"
:badge=
"badge"
/>
</el-menu-item>
</app-link>
</
template
>
...
...
@@ -12,27 +12,20 @@
<
template
slot=
"title"
>
<item
v-if=
"item.meta"
:icon=
"item.meta && item.meta.icon"
:title=
"$l(item.meta, 'title')"
:badge=
"badge"
/>
</
template
>
<sidebar-item
v-for=
"child in item.children"
:key=
"child.path"
:is-nest=
"true"
:item=
"child"
:base-path=
"resolvePath(child.path)"
class=
"nest-menu"
/>
<sidebar-item
v-for=
"(child, index) in item.children"
:key=
"index"
:is-nest=
"true"
:item=
"child"
:base-path=
"resolvePath(child.path)"
class=
"nest-menu"
/>
</el-submenu>
</div>
</template>
<
script
>
import
path
from
'
path
'
import
{
isExternal
}
from
'
@/utils/validate
'
import
Item
from
'
./Item
'
import
AppLink
from
'
./Link
'
import
FixiOSBug
from
'
./FixiOSBug
'
import
path
from
"
path
"
import
{
isExternal
}
from
"
@/utils/validate
"
import
Item
from
"
./Item
"
import
AppLink
from
"
./Link
"
import
FixiOSBug
from
"
./FixiOSBug
"
export
default
{
name
:
'
SidebarItem
'
,
name
:
"
SidebarItem
"
,
components
:
{
Item
,
AppLink
},
mixins
:
[
FixiOSBug
],
props
:
{
...
...
@@ -47,24 +40,24 @@ export default {
},
basePath
:
{
type
:
String
,
default
:
''
default
:
""
}
},
data
()
{
this
.
onlyOneChild
=
null
return
{}
},
computed
:{
badge
(){
computed
:
{
badge
()
{
return
this
.
$store
.
getters
.
badgeData
[
this
.
item
.
meta
?.
badgeField
]
}
},
methods
:
{
hasOneShowingChild
(
children
=
[],
parent
)
{
if
(
!
children
)
{
children
=
[]
;
children
=
[]
}
const
showingChildren
=
children
.
filter
(
item
=>
{
const
showingChildren
=
children
.
filter
(
(
item
)
=>
{
if
(
item
.
hidden
)
{
return
false
}
else
{
...
...
@@ -81,7 +74,7 @@ export default {
// Show parent if there are no child router to display
if
(
showingChildren
.
length
===
0
)
{
this
.
onlyOneChild
=
{
...
parent
,
path
:
''
,
noShowingChildren
:
true
}
this
.
onlyOneChild
=
{
...
parent
,
path
:
""
,
noShowingChildren
:
true
}
return
true
}
...
...
src/views/ecw/box/shippingAir/nodePage/cabinet/startPacking.vue
View file @
cf4ca788
...
...
@@ -67,6 +67,12 @@
</div>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('关联单')"
align=
"center"
prop=
"hasRelationOrder"
width=
"120"
>
<
template
slot-scope=
"scope"
>
<el-link
type=
"primary"
v-if=
"scope.row.hasRelationOrder"
@
click.native=
"showRelatedOrder(scope.row)"
>
{{
$t
(
'
有
'
)
}}
</el-link>
<span
v-else
>
{{
$t
(
'
无
'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('计划箱数')"
align=
"center"
prop=
"num"
>
<
template
slot-scope=
"scope"
>
{{
getTotlContent
(
scope
.
row
,[
'
num
'
])
}}
...
...
@@ -74,7 +80,7 @@
</el-table-column>
<el-table-column
:label=
"$t('实装箱数')"
align=
"center"
prop=
"installNum"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
installNum
}}{{
$t
(
'
箱
'
)
}}
{{
scope
.
row
.
installNum
}}{{
$t
(
'
箱
'
)
}}
<span
v-if=
"scope.row.mixStatus === 1"
>
(
{{
$t
(
'
混箱
'
)
}}
)
</span>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('体积')"
align=
"center"
prop=
"volume"
>
...
...
@@ -237,12 +243,15 @@
<!-- 拆单 -->
<splitOrder
v-bind=
"$attrs"
v-on=
"$listeners"
:shipmentObj=
"shipmentObj"
v-if=
"dialogConfig.type === 'splitOrder' && dialogConfig.dialogVisible"
:currRow=
"currRow"
@
closeDialog2=
"closeDialog2"
/>
</el-dialog>
<!-- 关联单 -->
<realated-order
:orderItemId=
"showRelatedItemId"
v-if=
"showRelatedItemId"
@
close=
"showRelatedItemId=null"
></realated-order>
</div>
</template>
<
script
>
import
dayjs
from
"
dayjs
"
;
import
supplementOrder
from
"
./supplementOrder.vue
"
;
import
RealatedOrder
from
"
../../../shippingSea/nodePage/tally/realatedOrder.vue
"
;
import
{
getCabinetPage
}
from
"
@/api/ecw/cabinet
"
;
import
{
getbox
}
from
"
@/api/ecw/box
"
;
import
{
...
...
@@ -280,12 +289,14 @@ export default {
supplementOrder
,
splitOrder
,
WorkFlow
,
RealatedOrder
,
},
props
:
{
shipmentObj
:
Object
,
},
data
()
{
return
{
showRelatedItemId
:
null
,
// 表格数据
listData
:
[],
// 表格数据
...
...
@@ -524,6 +535,10 @@ export default {
});
}
},
// 显示关联单
showRelatedOrder
(
row
)
{
this
.
showRelatedItemId
=
row
.
orderId
},
/* 移出 */
moveOut
(
row
)
{
let
params
=
{
...
...
src/views/ecw/box/shippingAir/nodePage/cabinet/supplementOrder.vue
View file @
cf4ca788
...
...
@@ -278,6 +278,7 @@ export default {
let
params
=
{
secId
:
this
.
partData
.
id
,
shipmentId
:
this
.
$attrs
.
shipmentObj
.
id
,
isTally
:
this
.
$attrs
.
shipmentObj
.
isTally
,
orderId
:
item
.
orderId
,
};
if
(
type
===
"
all
"
)
{
...
...
@@ -354,6 +355,7 @@ export default {
createSection
({
shipmentId
:
this
.
$attrs
.
shipmentObj
.
id
,
isCover
:
1
,
isTally
:
this
.
$attrs
.
shipmentObj
.
isTally
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
getSecGoods
();
...
...
src/views/ecw/box/shippingAir/nodePage/settlement.vue
View file @
cf4ca788
...
...
@@ -36,6 +36,21 @@ export default {
const
voName
=
this
.
$attrs
.
currNode
.
voName
;
let
oldData
=
{
...
this
.
$attrs
.
shipmentObj
[
voName
]
};
oldData
=
formatDateStr
(
oldData
,
[
"
slSettlementTime
"
,
"
slSettledTime
"
]);
// 2024-12-13,可结算和已结算默认赋值当前完整时间
// 获取当前时间精确至[年、月、日、时、分、秒]
let
nTime
=
new
Date
();
let
nYear
=
nTime
.
getFullYear
();
let
nMonth
=
nTime
.
getMonth
()
+
1
;
let
nDay
=
nTime
.
getDate
();
let
nHour
=
nTime
.
getHours
();
let
nMin
=
nTime
.
getMinutes
();
let
nSecond
=
nTime
.
getSeconds
();
if
(
oldData
[
'
slSettlementTime
'
]
==
undefined
){
oldData
[
'
slSettlementTime
'
]
=
nYear
+
'
-
'
+
nMonth
+
'
-
'
+
nDay
+
'
'
+
nHour
+
'
:
'
+
nMin
+
'
:
'
+
nSecond
}
if
(
oldData
[
'
slSettledTime
'
]
==
undefined
){
oldData
[
'
slSettledTime
'
]
=
nYear
+
'
-
'
+
nMonth
+
'
-
'
+
nDay
+
'
'
+
nHour
+
'
:
'
+
nMin
+
'
:
'
+
nSecond
}
this
.
settlementObj
=
oldData
;
},
methods
:
{
...
...
src/views/ecw/box/shippingAir/nodePage/tally/index.vue
View file @
cf4ca788
...
...
@@ -142,6 +142,7 @@
</el-row>
<el-row
style=
"margin-top: 15px"
class=
"operate-button"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"supplementClick('supplementOrder',$t('补单'))"
>
{{$t('补单')}}
</el-button>
<el-button
:disabled=
"shipmentObj.approvaling"
size=
"small"
type=
"primary"
@
click=
"tallyFinish"
>
{{$t('完成理货')}}
</el-button>
<el-button
size=
"small"
@
click=
"cancel"
>
{{$t('取消')}}
</el-button>
</el-row>
...
...
@@ -149,7 +150,9 @@
</el-row>
<!-- 对话框 -->
<el-dialog
custom-class=
"shipping-dialog"
:title=
"dialogConfig.title"
:visible.sync=
"dialogConfig.dialogVisible"
:fullscreen=
"dialogConfig.fullscreen"
:width=
"dialogConfig.width"
:modal-append-to-body=
false
append-to-body
>
<batchTally
v-if=
"dialogConfig.dialogVisible"
v-bind=
"$attrs"
@
closeDialog=
"closeDialog"
:type=
"dialogConfig.type"
:tallyRows=
"tallyRows"
:shipmentObj=
"shipmentObj"
/>
<!-- 补单 -->
<supplementOrder
v-if=
"dialogConfig.type === 'supplementOrder' && dialogConfig.dialogVisible"
v-bind=
"$attrs"
:shipmentObj=
"shipmentObj"
@
supplementFinish=
"supplementFinish"
/>
<batchTally
v-if=
"dialogConfig.type !== 'supplementOrder' && dialogConfig.dialogVisible"
v-bind=
"$attrs"
@
closeDialog=
"closeDialog"
:type=
"dialogConfig.type"
:tallyRows=
"tallyRows"
:shipmentObj=
"shipmentObj"
/>
</el-dialog>
<warehouse-detail
:order=
"order"
:orderItemId=
"showWarehouseInItemId"
v-if=
"showWarehouseInItemId"
@
close=
"showWarehouseInItemId=null"
/>
<exception
...
...
@@ -241,6 +244,7 @@
</template>
<
script
>
import
supplementOrder
from
"
../cabinet/supplementOrder.vue
"
;
import
batchTally
from
"
./batchTally.vue
"
;
import
{
getTallyList
,
tallyRemove
,
tallyCommit
,
getOrderDetailByBoxNo
}
from
"
@/api/ecw/boxSea
"
;
import
{
checkInfoSingleCreate
,
checkInfoBatchCreate
,
getOrderTagList
,
checkInfoSingleDelete
,
checkInfoBatchDelete
}
from
"
@/api/ecw/boxAir
"
;
...
...
@@ -255,6 +259,7 @@ export default {
inheritAttrs
:
false
,
components
:
{
Exception
,
supplementOrder
,
batchTally
,
WarehouseDetail
,
RealatedOrder
,
...
...
@@ -397,6 +402,15 @@ export default {
checkboxSelect
(
selection
)
{
this
.
selectedRows
=
selection
;
},
/** 点击补单 */
supplementClick
(
type
,
title
)
{
this
.
shipmentObj
.
isTally
=
1
this
.
showDialog
(
type
);
},
/* 补单完成 */
supplementFinish
()
{
this
.
closeDialog
();
},
// 理货点击
tallyClick
(
type
,
data
)
{
if
(
this
.
shipmentObj
.
approvaling
){
...
...
@@ -486,11 +500,17 @@ export default {
// 打开弹窗
showDialog
(
type
)
{
switch
(
type
)
{
case
"
supplementOrder
"
:
this
.
$set
(
this
.
dialogConfig
,
"
fullscreen
"
,
true
);
this
.
$set
(
this
.
dialogConfig
,
"
title
"
,
this
.
$t
(
"
补单
"
));
break
;
case
"
batchTally
"
:
this
.
$set
(
this
.
dialogConfig
,
"
fullscreen
"
,
false
);
this
.
$set
(
this
.
dialogConfig
,
"
title
"
,
this
.
$t
(
"
批量理货
"
));
this
.
$set
(
this
.
dialogConfig
,
"
width
"
,
"
500px
"
);
break
;
case
"
singleTally
"
:
this
.
$set
(
this
.
dialogConfig
,
"
fullscreen
"
,
false
);
this
.
$set
(
this
.
dialogConfig
,
"
title
"
,
this
.
$t
(
"
理货确认
"
));
this
.
$set
(
this
.
dialogConfig
,
"
width
"
,
"
500px
"
);
break
;
...
...
src/views/ecw/box/shippingSea/nodePage/cabinet/startPacking.vue
View file @
cf4ca788
...
...
@@ -67,6 +67,12 @@
</div>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('关联单')"
align=
"center"
prop=
"hasRelationOrder"
width=
"120"
>
<
template
slot-scope=
"scope"
>
<el-link
type=
"primary"
v-if=
"scope.row.hasRelationOrder"
@
click.native=
"showRelatedOrder(scope.row)"
>
{{
$t
(
'
有
'
)
}}
</el-link>
<span
v-else
>
{{
$t
(
'
无
'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('计划箱数')"
align=
"center"
prop=
"num"
>
<
template
slot-scope=
"scope"
>
{{
getTotlContent
(
scope
.
row
,[
'
num
'
])
}}
...
...
@@ -74,7 +80,7 @@
</el-table-column>
<el-table-column
:label=
"$t('实装箱数')"
align=
"center"
prop=
"installNum"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
installNum
}}{{
$t
(
'
箱
'
)
}}
{{
scope
.
row
.
installNum
}}{{
$t
(
'
箱
'
)
}}
<span
v-if=
"scope.row.mixStatus === 1"
>
(
{{
$t
(
'
混箱
'
)
}}
)
</span>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('体积')"
align=
"center"
prop=
"volume"
>
...
...
@@ -237,12 +243,15 @@
<!-- 拆单 -->
<splitOrder
v-bind=
"$attrs"
v-on=
"$listeners"
:shipmentObj=
"shipmentObj"
v-if=
"dialogConfig.type === 'splitOrder' && dialogConfig.dialogVisible"
:currRow=
"currRow"
@
closeDialog2=
"closeDialog2"
/>
</el-dialog>
<!-- 关联单 -->
<realated-order
:orderItemId=
"showRelatedItemId"
v-if=
"showRelatedItemId"
@
close=
"showRelatedItemId=null"
></realated-order>
</div>
</template>
<
script
>
import
dayjs
from
"
dayjs
"
;
import
supplementOrder
from
"
./supplementOrder.vue
"
;
import
RealatedOrder
from
"
../tally/realatedOrder.vue
"
;
import
{
getCabinetPage
}
from
"
@/api/ecw/cabinet
"
;
import
{
getbox
}
from
"
@/api/ecw/box
"
;
import
{
...
...
@@ -280,12 +289,14 @@ export default {
supplementOrder
,
splitOrder
,
WorkFlow
,
RealatedOrder
,
},
props
:
{
shipmentObj
:
Object
,
},
data
()
{
return
{
showRelatedItemId
:
null
,
// 表格数据
listData
:
[],
// 表格数据
...
...
@@ -524,6 +535,10 @@ export default {
});
}
},
// 显示关联单
showRelatedOrder
(
row
)
{
this
.
showRelatedItemId
=
row
.
orderId
},
/* 移出 */
moveOut
(
row
)
{
let
params
=
{
...
...
src/views/ecw/box/shippingSea/nodePage/cabinet/supplementOrder.vue
View file @
cf4ca788
...
...
@@ -303,6 +303,7 @@ export default {
secId
:
this
.
partData
.
id
,
shipmentId
:
this
.
$attrs
.
shipmentObj
.
id
,
orderId
:
item
.
orderId
,
isTally
:
this
.
$attrs
.
shipmentObj
.
isTally
,
isCover
:
1
};
if
(
type
===
"
all
"
)
{
...
...
@@ -387,6 +388,7 @@ export default {
createSection
({
shipmentId
:
this
.
$attrs
.
shipmentObj
.
id
,
isCover
:
1
,
isTally
:
this
.
$attrs
.
shipmentObj
.
isTally
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
getSecGoods
();
...
...
src/views/ecw/box/shippingSea/nodePage/settlement.vue
View file @
cf4ca788
...
...
@@ -36,6 +36,21 @@ export default {
const
voName
=
this
.
$attrs
.
currNode
.
voName
;
let
oldData
=
{
...
this
.
$attrs
.
shipmentObj
[
voName
]
};
oldData
=
formatDateStr
(
oldData
,
[
"
slSettlementTime
"
,
"
slSettledTime
"
]);
// 2024-12-13,可结算和已结算默认赋值当前完整时间
// 获取当前时间精确至[年、月、日、时、分、秒]
let
nTime
=
new
Date
();
let
nYear
=
nTime
.
getFullYear
();
let
nMonth
=
nTime
.
getMonth
()
+
1
;
let
nDay
=
nTime
.
getDate
();
let
nHour
=
nTime
.
getHours
();
let
nMin
=
nTime
.
getMinutes
();
let
nSecond
=
nTime
.
getSeconds
();
if
(
oldData
[
'
slSettlementTime
'
]
==
undefined
){
oldData
[
'
slSettlementTime
'
]
=
nYear
+
'
-
'
+
nMonth
+
'
-
'
+
nDay
+
'
'
+
nHour
+
'
:
'
+
nMin
+
'
:
'
+
nSecond
}
if
(
oldData
[
'
slSettledTime
'
]
==
undefined
){
oldData
[
'
slSettledTime
'
]
=
nYear
+
'
-
'
+
nMonth
+
'
-
'
+
nDay
+
'
'
+
nHour
+
'
:
'
+
nMin
+
'
:
'
+
nSecond
}
this
.
settlementObj
=
oldData
;
},
methods
:
{
...
...
src/views/ecw/box/shippingSea/nodePage/tally/index.vue
View file @
cf4ca788
...
...
@@ -129,6 +129,7 @@
</el-row>
<el-row
style=
"margin-top: 15px"
class=
"operate-button"
>
<el-button
type=
"small"
size=
"primary"
@
click=
"supplementClick('supplementOrder')"
>
{{$t('补单')}}
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"tallyFinish"
>
{{$t('完成理货')}}
</el-button>
<el-button
size=
"small"
@
click=
"cancel"
>
{{$t('取消')}}
</el-button>
</el-row>
...
...
@@ -136,14 +137,17 @@
</el-row>
<!-- 对话框 -->
<el-dialog
custom-class=
"shipping-dialog"
:title=
"dialogConfig.title"
:visible.sync=
"dialogConfig.dialogVisible"
:fullscreen=
"dialogConfig.fullscreen"
:width=
"dialogConfig.width"
:modal-append-to-body=
false
append-to-body
>
<batchTally
v-if=
"dialogConfig.dialogVisible"
v-bind=
"$attrs"
@
closeDialog=
"closeDialog"
:type=
"dialogConfig.type"
:tallyRows=
"tallyRows"
:shipmentObj=
"shipmentObj"
/>
<!-- 补单 -->
<supplementOrder
v-if=
"dialogConfig.type === 'supplementOrder' && dialogConfig.dialogVisible"
v-bind=
"$attrs"
:shipmentObj=
"shipmentObj"
@
supplementFinish=
"supplementFinish"
/>
<batchTally
v-if=
"dialogConfig.type !== 'supplementOrder' && dialogConfig.dialogVisible"
v-bind=
"$attrs"
@
closeDialog=
"closeDialog"
:type=
"dialogConfig.type"
:tallyRows=
"tallyRows"
:shipmentObj=
"shipmentObj"
/>
</el-dialog>
<warehouse-detail
:order=
"order"
:orderItemId=
"showWarehouseInItemId"
v-if=
"showWarehouseInItemId"
@
close=
"showWarehouseInItemId=null"
/>
<realated-order
:order
=
"order"
:order
ItemId=
"showRelatedItemId"
v-if=
"showRelatedItemId"
@
close=
"showRelatedItemId=null"
></realated-order>
<realated-order
:orderItemId=
"showRelatedItemId"
v-if=
"showRelatedItemId"
@
close=
"showRelatedItemId=null"
></realated-order>
</div>
</template>
<
script
>
import
supplementOrder
from
"
../cabinet/supplementOrder.vue
"
;
import
batchTally
from
"
./batchTally.vue
"
;
import
{
getTallyList
,
tallyRemove
,
tallyCommit
}
from
"
@/api/ecw/boxSea
"
;
import
{
formatDate
,
serviceMsg
}
from
"
../../utils
"
;
...
...
@@ -155,6 +159,7 @@ export default {
name
:
"
tally
"
,
inheritAttrs
:
false
,
components
:
{
supplementOrder
,
batchTally
,
WarehouseDetail
,
RealatedOrder
,
...
...
@@ -253,6 +258,15 @@ export default {
checkboxSelect
(
selection
)
{
this
.
selectedRows
=
selection
;
},
/** 点击补单 */
supplementClick
(
type
,
title
)
{
this
.
shipmentObj
.
isTally
=
1
this
.
showDialog
(
type
);
},
/* 补单完成 */
supplementFinish
()
{
this
.
closeDialog
();
},
// 理货点击
tallyClick
(
type
,
data
)
{
if
(
type
===
"
batch
"
)
{
...
...
@@ -339,11 +353,17 @@ export default {
// 打开弹窗
showDialog
(
type
)
{
switch
(
type
)
{
case
"
supplementOrder
"
:
this
.
$set
(
this
.
dialogConfig
,
"
fullscreen
"
,
true
);
this
.
$set
(
this
.
dialogConfig
,
"
title
"
,
this
.
$t
(
"
补单
"
));
break
;
case
"
batchTally
"
:
this
.
$set
(
this
.
dialogConfig
,
"
fullscreen
"
,
false
);
this
.
$set
(
this
.
dialogConfig
,
"
title
"
,
this
.
$t
(
"
批量理货
"
));
this
.
$set
(
this
.
dialogConfig
,
"
width
"
,
"
500px
"
);
break
;
case
"
singleTally
"
:
this
.
$set
(
this
.
dialogConfig
,
"
fullscreen
"
,
false
);
this
.
$set
(
this
.
dialogConfig
,
"
title
"
,
this
.
$t
(
"
理货确认
"
));
this
.
$set
(
this
.
dialogConfig
,
"
width
"
,
"
500px
"
);
break
;
...
...
src/views/ecw/customer/edit.vue
View file @
cf4ca788
This diff is collapsed.
Click to expand it.
src/views/ecw/customer/index.vue
View file @
cf4ca788
...
...
@@ -164,8 +164,8 @@
<el-date-picker
type=
"datetimerange"
clearable
v-model=
"firstDealTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
range-separator=
"-"
:start-placeholder=
"$t('开始日期')"
:end-placeholder=
"$t('结束日期')"
/>
</el-form-item>
<el-form-item
:label=
"$t('创建时间')"
v-show=
"showSearch"
>
<el-date-picker
type=
"datetimerange"
clearable
v-model=
"
dateRangeC
reateTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
range-separator=
"-"
:start-placeholder=
"$t('开始日期')"
:end-placeholder=
"$t('结束日期')"
/>
<el-form-item
:label=
"$t('创建时间')"
>
<el-date-picker
type=
"datetimerange"
clearable
v-model=
"
c
reateTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
range-separator=
"-"
:start-placeholder=
"$t('开始日期')"
:end-placeholder=
"$t('结束日期')"
/>
</el-form-item>
<el-form-item
style=
"padding-left: 20px"
>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
{{ $t("搜索") }}
</el-button>
...
...
@@ -794,7 +794,6 @@ export default {
title
:
""
,
// 是否显示弹出层
open
:
false
,
dateRangeCreateTime
:
[],
// 查询参数
queryParams
:
{
pageNo
:
1
,
...
...
@@ -890,6 +889,7 @@ export default {
enterOpenSeaTime
:
[],
customerServiceConfirmedTime
:
[],
firstDealTime
:
[],
createTime
:
[],
customerSelect
:
[],
recommended
:
[],
getNodeLists
:
[],
...
...
@@ -966,14 +966,14 @@ export default {
queryParams
.
beginCustomerServiceConfirmedTime
=
this
.
customerServiceConfirmedTime
[
0
]
queryParams
.
endCustomerServiceConfirmedTime
=
this
.
customerServiceConfirmedTime
[
1
]
}
if
(
this
.
dateRangeCreateTime
&&
this
.
dateRangeCreateTime
.
length
==
2
)
{
queryParams
.
beginCreateTime
=
this
.
dateRangeCreateTime
[
0
]
queryParams
.
endCreateTime
=
this
.
dateRangeCreateTime
[
1
]
}
if
(
this
.
firstDealTime
&&
this
.
firstDealTime
.
length
==
2
)
{
queryParams
.
beginFirstDealTime
=
this
.
firstDealTime
[
0
]
queryParams
.
endFirstDealTime
=
this
.
firstDealTime
[
1
]
}
if
(
this
.
createTime
&&
this
.
createTime
.
length
==
2
)
{
queryParams
.
beginCreateTime
=
this
.
createTime
[
0
]
queryParams
.
endCreateTime
=
this
.
createTime
[
1
]
}
if
(
this
.
weightYearly
.
value
)
{
let
key
=
"
eqWeightYearly
"
if
(
this
.
weightYearly
.
key
==
"
leNumberKey
"
)
{
...
...
@@ -1006,10 +1006,13 @@ export default {
},
created
()
{
console
.
log
(
"
created
"
)
getCreditPage
({
page
:
1
,
rows
:
999
}).
then
((
r
)
=>
{
this
.
creditList
=
r
.
data
.
list
})
this
.
getList
()
// 获取当前时间的年份开始时间与结束时间值,并赋值给创建时间,再查询当年创建的客户
this
.
getCurrentYearList
()
// this.getList()
listServiceUser
().
then
((
r
)
=>
{
this
.
customerServiceList
=
r
.
data
})
...
...
@@ -1062,6 +1065,17 @@ export default {
})
}
},
getCurrentYearList
(){
const
today
=
new
Date
();
const
targetday_milliseconds
=
today
.
getTime
();
today
.
setTime
(
targetday_milliseconds
);
//注意,这行是关键代码
const
tYear
=
today
.
getFullYear
();
console
.
log
(
"
年份:
"
,
tYear
)
if
(
tYear
){
this
.
createTime
=
[(
tYear
+
"
-01-01 00:00:00
"
),(
tYear
+
"
-12-31 23:59:59
"
)]
}
this
.
getList
()
},
//合并客户
handleMergeCus
()
{
this
.
customerMergeVisible
=
true
...
...
@@ -1155,10 +1169,11 @@ export default {
//报价
quote
(
row
)
{
//lanbm 2024-05-23 添加报价是判断客户所属客户经理,不是就不能报价
if
(
row
.
customerService
!=
this
.
userId
)
{
this
.
$message
.
error
(
this
.
$t
(
"
此客户属于其他客户经理名下的客户。
"
))
return
}
//jayden 2024-12-12 添加报价是判断客户所属客户经理,不是就不能报价(删除限制)
// if (row.customerService != this.userId) {
// this.$message.error(this.$t("此客户属于其他客户经理名下的客户。"))
// return
// }
//this.$router.push({path:'/offer/create',query:{id:row.id}})
this
.
$router
.
push
({
path
:
"
/offer/create
"
,
query
:
{
customerId
:
row
.
id
,
customerType
:
row
.
type
,
type
:
1
}
}).
then
({
//this.$refs.push({path:'/customer-contacts/select',query:{pageNo:1,pageSize:10,searchKey:row.defaultContactPhone}})
...
...
@@ -1169,12 +1184,7 @@ export default {
this
.
loading
=
true
// 处理查询参数}
let
params
=
{
...
this
.
queryParams
,
...
this
.
combinedQueryParams
}
/*this.addBeginAndEndTime(
params,
this.dateRangeCreateTime,
"createTime",
false
);*/
// 执行查询
switch
(
this
.
$route
.
path
)
{
case
"
/customer/customer
"
:
...
...
@@ -1343,10 +1353,10 @@ export default {
},
/** 重置按钮操作 */
resetQuery
()
{
this
.
dateRangeCreateTime
=
[]
this
.
enterOpenSeaTime
=
[]
this
.
customerServiceConfirmedTime
=
[]
this
.
firstDealTime
=
[]
this
.
createTime
=
[]
this
.
resetForm
(
"
queryForm
"
)
this
.
queryParams
=
{
pageNo
:
1
,
...
...
src/views/ecw/customer/query.vue
View file @
cf4ca788
...
...
@@ -1126,10 +1126,11 @@ export default {
},
quote
()
{
const
row
=
this
.
customer
if
(
row
.
customerService
!=
this
.
userId
)
{
this
.
$message
.
error
(
this
.
$t
(
"
此客户属于其他客户经理名下的客户。
"
))
return
}
//jayden 2024-12-12 添加报价是判断客户所属客户经理,不是就不能报价(删除限制)
// if (row.customerService != this.userId) {
// this.$message.error(this.$t("此客户属于其他客户经理名下的客户。"))
// return
// }
this
.
$router
.
push
({
path
:
"
/offer/create
"
,
query
:
{
customerId
:
row
.
id
,
customerType
:
row
.
type
,
type
:
1
}
})
},
...
...
src/views/ecw/offer/edit.vue
View file @
cf4ca788
...
...
@@ -540,7 +540,7 @@
</el-form-item>
</el-form>
<choose-contact-dialog
v-if=
"!!contactChooseType"
:type=
"
1
"
@
choose=
"onContactChoose"
@
close=
"contactChooseType = null"
/>
<choose-contact-dialog
v-if=
"!!contactChooseType"
:type=
"
2
"
@
choose=
"onContactChoose"
@
close=
"contactChooseType = null"
/>
<quick-create-customer
v-if=
"quickCreateType"
:type=
"quickCreateType"
@
success=
"onContactChoose"
@
close=
"quickCreateType = null"
/>
</div>
</template>
...
...
src/views/ecw/order/cargoControlDetailList.vue
0 → 100644
View file @
cf4ca788
This diff is collapsed.
Click to expand it.
src/views/ecw/order/detail.vue
View file @
cf4ca788
...
...
@@ -124,6 +124,8 @@
<el-descriptions-item
:label=
"$t('特殊要求备注')"
>
{{ order.packageRemarks }}
</el-descriptions-item>
</el-descriptions>
<el-descriptions
class=
"mr-10"
border
:column=
"2"
:class=
"showMore?'showInfo':'hiddenInfo'"
:labelStyle=
"{width:'110px'}"
:contentStyle=
"{width:'150px'}"
>
<el-descriptions-item
:label=
"$t('到仓数据')"
>
{{ order.checkNum }}{{ $t("箱") }} {{ order.checkWeight }}Kg {{ order.checkVolume }}m³ {{ order.checkQuantity }}{{ $t("个") }}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('提货数据')"
>
{{ order.pickNum }} {{ $t("箱") }} {{ order.pickRatio }}%
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('送货时间')"
v-if=
"!order.isExternalWarehouse"
>
{{ order.deliveryDate }}
</el-descriptions-item>
...
...
src/views/ecw/order/edit.vue
View file @
cf4ca788
...
...
@@ -1087,7 +1087,9 @@ export default {
// this.$set(this.form, 'drawee', 1)
// 清除收货人必填校验
this
.
$refs
.
form
?.
clearValidate
(
"
consigneeContactsId
"
)
this
.
setDefaultDrawee
()
if
(
!
this
.
initing
){
this
.
setDefaultDrawee
()
}
}
},
ccIdArr
(
arr
)
{
...
...
@@ -1423,6 +1425,10 @@ export default {
this
.
form
.
lockConsigneeDay
=
null
this
.
form
.
lockConsigneeTime
=
null
this
.
form
.
firstStockedTime
=
null
this
.
form
.
adjustToStartWarehouseId
=
null
this
.
form
.
adjustToDestWarehouseId
=
null
this
.
form
.
destAdjustToStartWarehouseId
=
null
this
.
form
.
destAdjustToDestWarehouseId
=
null
// 状态重置
this
.
form
.
status
=
0
this
.
form
.
cargoControlStatus
=
0
...
...
@@ -1438,6 +1444,7 @@ export default {
this
.
form
.
oldInWarehouseState
=
null
this
.
form
.
oldStatus
=
null
this
.
form
.
oldShipmentState
=
null
this
.
form
.
orderType
=
null
// 时间重置
this
.
form
.
takeTime
=
null
this
.
form
.
unloadTime
=
null
...
...
@@ -1556,7 +1563,6 @@ export default {
newItem
.
num
=
item
.
num
newItem
.
worth
=
item
.
worth
newItem
.
boxGauge
=
item
.
boxGauge
newItem
.
brand
=
item
.
brand
newItem
.
brandType
=
item
.
brandType
}
else
{
newItem
=
item
...
...
@@ -1628,7 +1634,9 @@ export default {
if
(
this
.
contactChooseType
==
'
consignor
'
)
{
this
.
noConsignee
=
contact
.
noConsignee
}
this
.
setDefaultDrawee
()
if
(
!
this
.
initing
)
{
this
.
setDefaultDrawee
()
}
this
.
contactChooseType
=
null
this
.
quickCreateType
=
null
if
(
this
.
form
.
lineId
)
this
.
getOfferData
()
...
...
@@ -1873,10 +1881,10 @@ export default {
// 校验手机号跟目的国是否匹配
if
(
this
.
hasConsignee
&&
this
.
form
.
consigneeCountryCode
&&
this
.
form
.
consigneePhone
)
{
if
(
this
.
form
.
consigneeCountryCode
==
"
86
"
||
this
.
form
.
consigneeCountryCode
==
"
+86
"
)
{
this
.
$message
.
error
(
this
.
$t
(
"
控货订单的收货人手机号不能是国内号码
"
))
return
}
//
if (this.form.consigneeCountryCode == "86" || this.form.consigneeCountryCode == "+86") {
//
this.$message.error(this.$t("控货订单的收货人手机号不能是国内号码"))
//
return
//
}
const
res
=
await
checkCountryCode
({
areaCode
:
this
.
form
.
consigneeCountryCode
,
currencyId
:
this
.
form
.
destCountryId
...
...
src/views/ecw/order/index.vue
View file @
cf4ca788
...
...
@@ -17,11 +17,11 @@
<!-- <el-form-item :label="$t('唛头')" prop="marks">
<el-input v-model="queryParams.marks" :placeholder="$t('唛头')" clearable @keyup.enter.native="handleQuery" />
</el-form-item> -->
<el-form-item
:label=
"$t('发货人电话')"
prop=
"consign
eeKey
"
>
<el-input
v-model.trim=
"queryParams.consignorPhone"
:placeholder=
"$t('发货人电话')"
clearable
@
keyup.enter.native=
"handleQuery"
class=
"w-200"
/>
<el-form-item
:label=
"$t('发货人电话')"
prop=
"consign
orPhone
"
>
<el-input
v-model.trim=
"queryParams.consignorPhone"
:placeholder=
"$t('发货人电话')"
clearable
@
keyup.enter.native=
"handleQuery"
@
input=
"queryParams.consignorPhone = queryParams.consignorPhone.replace(/\s+/g, '')"
class=
"w-200"
/>
</el-form-item>
<el-form-item
:label=
"$t('收货人电话')"
prop=
"consign
eeKey
"
>
<el-input
v-model.trim=
"queryParams.consigneePhone"
:placeholder=
"$t('收货人电话')"
clearable
@
keyup.enter.native=
"handleQuery"
class=
"w-200"
/>
<el-form-item
:label=
"$t('收货人电话')"
prop=
"consign
orPhone
"
>
<el-input
v-model.trim=
"queryParams.consigneePhone"
:placeholder=
"$t('收货人电话')"
clearable
@
keyup.enter.native=
"handleQuery"
@
input=
"queryParams.consigneePhone = queryParams.consigneePhone.replace(/\s+/g, '')"
class=
"w-200"
/>
</el-form-item>
<el-form-item
:label=
"$t('控货')"
prop=
"isCargoControl"
v-show=
"showSearch"
>
...
...
@@ -340,7 +340,10 @@
<el-dropdown-menu
slot=
"dropdown"
>
<!--出货订单编辑,shipmentState > 0表示出货后,inWarehouseState == 0 表示预装未审核或者是卸柜到仓 , shipmentState==307 表示已预装,待封柜, shipmentState==407 表示已预装,待封柜)-->
<template
v-if=
"scope.row.shipmentState > 0 && scope.row.inWarehouseState == 0 && scope.row.shipmentState != 305 && scope.row.shipmentState != 307 && scope.row.shipmentState != 407"
v-if=
"scope.row.shipmentState > 0 &&
scope.row.inWarehouseState == 0 &&
exclude(scope.row.auditType, [1, 2, 3, 4, 5, 6, 11, 23, 28, 31, 32]) &&
exclude(scope.row.shipmentState, [305, 307, 309, 310, 311, 313, 407,409,411])"
>
<el-dropdown-item
@
click.native=
"handleUpdate(scope.row)"
...
...
@@ -354,7 +357,7 @@
(scope.row.status < 12 ||
(scope.row.status == 12 &&
scope.row.shipmentState == 314)) &&
!scope.row.abnormalState
&&
exclude(scope.row.auditType, [1, 2, 3, 4, 5, 6, 11, 23, 28, 31, 32])
&&
exclude(scope.row.inWarehouseState, [204, 205, 206]) &&
exclude(scope.row.shipmentState, [305, 307, 407])
"
...
...
@@ -497,7 +500,7 @@
</
template
>
<!-- 入仓补充 -->
<
template
v-if=
"scope.row.shipmentState > 0 && scope.row.inWarehouseState == 0 &&
scope.row.shipmentState != 305 && scope.row.shipmentState != 307 && scope.row.shipmentState != 407
"
v-if=
"scope.row.shipmentState > 0 && scope.row.inWarehouseState == 0 &&
exclude(scope.row.shipmentState, [305, 307, 309, 310, 311, 313, 407,409,411])
"
>
<el-dropdown-item
@
click.native=
"$router.push('/order/warehousing-add?shipment=1&id=' + scope.row.orderId)"
...
...
@@ -525,7 +528,8 @@
</
template
>
<!-- 入仓修改 -->
<
template
v-if=
"scope.row.shipmentState > 0 && scope.row.inWarehouseState == 0 && scope.row.shipmentState != 305 && scope.row.shipmentState != 307 && scope.row.shipmentState != 407"
v-if=
"scope.row.shipmentState > 0 && scope.row.inWarehouseState == 0
&& exclude(scope.row.shipmentState, [305, 307, 309, 310, 311, 313, 407,409,411])"
>
<el-dropdown-item
@
click.native=
"$router.push('/order/warehousing-update?shipment=1&id=' + scope.row.orderId)"
...
...
src/views/ecw/order/stocking/index.vue
View file @
cf4ca788
...
...
@@ -26,7 +26,7 @@
@
select=
"checkboxSelect"
@
select-all=
"checkboxSelect"
>
<el-table-column
type=
"selection"
align=
"center"
width=
"55"
fixed=
"left"
/>
<el-table-column
type=
"selection"
align=
"center"
width=
"55"
fixed=
"left"
:selectable=
"checkSelectable"
/>
<!--入仓记录-->
<el-table-column
type=
"expand"
>
<template
slot-scope=
"props"
>
...
...
@@ -690,7 +690,11 @@ export default {
this
.
getList
();
});
},
// 批量打包
checkSelectable
(
row
)
{
console
.
log
(
this
.
wareItem
(
row
.
orderItemId
).
packStatus
)
return
this
.
wareItem
(
row
.
orderItemId
).
packStatus
==
1
},
// 批量无需打包
noNeedPacks
()
{
this
.
$confirm
(
"
确认货物无需打包
"
).
then
(()
=>
{
if
(
this
.
selectedRows
.
length
===
0
)
{
...
...
src/views/system/sms/smsLog.vue
View file @
cf4ca788
...
...
@@ -92,9 +92,9 @@
</el-table-column>
<el-table-column
:label=
"$t('模板编号')"
align=
"center"
prop=
"templateId"
>
<
template
slot-scope=
"{ row }"
>
<
router-link
:to=
"`/system/sms/sms-template?apiTemplateId=$
{row.apiTemplateId}`" class="link-type
">
<
el-button
size=
"mini"
type=
"text"
@
click=
"look(row.templateId)
"
>
{{
row
.
templateId
}}
</
router-link
>
</
el-button
>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('短信类型')"
align=
"center"
prop=
"templateType"
>
...
...
@@ -196,12 +196,80 @@
</div>
</el-dialog>
<!-- 预览模板 -->
<el-dialog
:visible.sync=
"open2"
width=
"500px"
append-to-body
>
<el-form
label-width=
"140px"
>
<el-form-item
:label=
"$t('短信渠道编号')"
prop=
"channelId"
>
<el-select
v-model=
"form2.channelId"
:placeholder=
"$t('请选择短信渠道编号')"
>
<el-option
v-for=
"channel in channelOptions"
:key=
"channel.id"
:value=
"channel.id"
:label=
"channel.signature + '【' + getDictDataLabel(DICT_TYPE.SYSTEM_SMS_CHANNEL_CODE, channel.code) + '】'"
/>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('发送类型')"
prop=
"messageType"
>
<el-select
v-model=
"form2.messageType"
placeholder=
"请选择发送类型"
>
<el-option
v-for=
"dict in this.getDictDatas(DICT_TYPE.SYSTEM_SMS_TEMPLATE_MESSAGE_TYPE)"
:key=
"dict.value"
:label=
"dict.label"
:value=
"parseInt(dict.value)"
/>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('短信类型')"
prop=
"type"
>
<el-select
v-model=
"form2.type"
:placeholder=
"$t('请选择短信类型')"
>
<el-option
v-for=
"dict in this.getDictDatas(DICT_TYPE.SYSTEM_SMS_TEMPLATE_TYPE)"
:key=
"dict.value"
:label=
"dict.label"
:value=
"parseInt(dict.value)"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"节点"
prop=
"nodeValue"
>
<el-select
v-model=
"form2.nodeValue"
placeholder=
"请选择节点类型"
>
<el-option
v-for=
"dict in this.getDictDatas(DICT_TYPE.SYSTEM_SMS_NODE_NODE)"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('运输方式')"
prop=
"transportId"
>
<el-select
v-model=
"form2.transportId"
:placeholder=
"$t('请选择运输方式类型')"
>
<el-option
v-for=
"dict in this.getDictDatas(DICT_TYPE.ECW_TRANSPORT_TYPE)"
:key=
"dict.value"
:label=
"dict.label"
:value=
"parseInt(dict.value)"
/>
<el-option
key=
"0"
label=
"无"
:value=
"parseInt(0)"
/>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('模板编号')"
prop=
"code"
>
<el-input
v-model=
"form2.code"
:placeholder=
"$t('请输入模板编号')"
/>
</el-form-item>
<el-form-item
:label=
"$t('模板名称')"
prop=
"name"
>
<el-input
v-model=
"form2.name"
:placeholder=
"$t('请输入模板名称')"
/>
</el-form-item>
<el-form-item
:label=
"$t('开启状态')"
prop=
"status"
>
<el-radio-group
v-model=
"form2.status"
>
<el-radio
v-for=
"dict in this.getDictDatas(DICT_TYPE.COMMON_STATUS)"
:key=
"dict.value"
:label=
"parseInt(dict.value)"
>
{{dict.label}}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"短信API模板编号"
prop=
"apiTemplateId"
>
<el-input
v-model=
"form2.apiTemplateId"
placeholder=
"请输入短信 API 的模板编号"
/>
</el-form-item>
<el-form-item
:label=
"$t('模板内容')"
prop=
"content"
>
<el-input
type=
"textarea"
v-model=
"form2.content"
:placeholder=
"$t('请输入模板内容')"
/>
</el-form-item>
<el-form-item
:label=
"$t('备注')"
prop=
"remark"
>
<el-input
v-model=
"form2.remark"
:placeholder=
"$t('请输入备注')"
/>
</el-form-item>
<el-form-item
label=
"语言"
prop=
"language"
>
<el-select
v-model=
"form2.language"
placeholder=
"请选择语言"
>
<el-option
v-for=
"dict in this.getDictDatas(DICT_TYPE.SYSTEM_SMS_TEMPLATE_LANGUAGE)"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-form-item>
</el-form>
</el-dialog>
</div>
</template>
<
script
>
import
{
getSmsLogPage
,
exportSmsLogExcel
}
from
"
@/api/system/sms/smsLog
"
;
import
{
getSimpleSmsChannels
}
from
"
@/api/system/sms/smsChannel
"
;
import
{
getSmsTemplate
}
from
'
@/api/system/sms/smsTemplate
'
export
default
{
name
:
"
SmsLog
"
,
...
...
@@ -239,6 +307,8 @@ export default {
},
// 短信渠道
channelOptions
:
[],
form2
:
{},
open2
:
false
,
};
},
created
()
{
...
...
@@ -310,6 +380,12 @@ export default {
}
}
return
this
.
$t
(
'
找不到签名:
'
)
+
channelId
;
},
look
(
templateId
)
{
getSmsTemplate
(
templateId
).
then
(
response
=>
{
this
.
form2
=
response
.
data
this
.
open2
=
true
});
}
}
};
...
...
src/views/system/sms/smsNode.vue
View file @
cf4ca788
This diff is collapsed.
Click to expand it.
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