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
c9c44cdf
Commit
c9c44cdf
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
df58e1f4
d746090f
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
122 additions
and
50 deletions
+122
-50
product.js
src/api/ecw/product.js
+3
-2
index.vue
src/components/CustomerContactsSelector/index.vue
+2
-1
index.vue
src/components/CustomersSelector/index.vue
+2
-1
index.vue
src/components/ProductsSelector/index.vue
+19
-4
index.vue
src/views/ecw/box/ladingBill/index.vue
+2
-2
makeLadingBill.vue
src/views/ecw/box/ladingBill/makeLadingBill.vue
+25
-19
edit.vue
src/views/ecw/coupon/edit.vue
+13
-3
cargoControl.vue
src/views/ecw/order/cargoControl.vue
+4
-1
detail.vue
src/views/ecw/order/detail.vue
+6
-2
edit.vue
src/views/ecw/order/edit.vue
+37
-13
index.vue
src/views/ecw/order/exception/index.vue
+4
-1
index.vue
src/views/ecw/order/index.vue
+4
-1
mine.vue
src/views/ecw/order/mine.vue
+1
-0
No files found.
src/api/ecw/product.js
View file @
c9c44cdf
...
@@ -35,10 +35,11 @@ export function getProduct(id) {
...
@@ -35,10 +35,11 @@ export function getProduct(id) {
}
}
// 获得产品列表
// 获得产品列表
export
function
getProductList
()
{
export
function
getProductList
(
params
)
{
return
request
({
return
request
({
url
:
'
/ecw/product/list
'
,
url
:
'
/ecw/product/list
'
,
method
:
'
get
'
method
:
'
get
'
,
params
})
})
}
}
...
...
src/components/CustomerContactsSelector/index.vue
View file @
c9c44cdf
...
@@ -48,6 +48,7 @@ export default {
...
@@ -48,6 +48,7 @@ export default {
list
:[],
list
:[],
queryParams
:{
queryParams
:{
page
:
1
,
page
:
1
,
pageSize
:
500
,
searchKey
:
null
,
searchKey
:
null
,
// level: null
// level: null
},
},
...
@@ -96,7 +97,7 @@ export default {
...
@@ -96,7 +97,7 @@ export default {
},
},
getList
(){
getList
(){
getCustomerContactsSelect
(
this
.
queryParams
).
then
(
res
=>
{
getCustomerContactsSelect
(
this
.
queryParams
).
then
(
res
=>
{
this
.
list
=
res
.
data
this
.
list
=
res
.
data
.
list
})
})
},
},
choose
(
item
){
choose
(
item
){
...
...
src/components/CustomersSelector/index.vue
View file @
c9c44cdf
...
@@ -46,6 +46,7 @@ export default {
...
@@ -46,6 +46,7 @@ export default {
list
:[],
list
:[],
queryParams
:{
queryParams
:{
page
:
1
,
page
:
1
,
pageSize
:
500
,
name
:
null
,
name
:
null
,
level
:
null
level
:
null
},
},
...
@@ -101,7 +102,7 @@ export default {
...
@@ -101,7 +102,7 @@ export default {
},
},
getList
(){
getList
(){
getCustomerSelect
(
this
.
queryParams
).
then
(
res
=>
{
getCustomerSelect
(
this
.
queryParams
).
then
(
res
=>
{
this
.
list
=
res
.
data
this
.
list
=
res
.
data
.
list
})
})
},
},
choose
(
customer
){
choose
(
customer
){
...
...
src/components/ProductsSelector/index.vue
View file @
c9c44cdf
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
script
>
<
script
>
import
{
getProductPage
}
from
'
@/api/ecw/product
'
import
{
getProductPage
,
getProductList
}
from
'
@/api/ecw/product
'
import
{
getProductTypeList
}
from
'
@/api/ecw/productType
'
import
{
getProductTypeList
}
from
'
@/api/ecw/productType
'
import
{
getProductAttrList
}
from
'
@/api/ecw/productAttr
'
import
{
getProductAttrList
}
from
'
@/api/ecw/productAttr
'
...
@@ -94,6 +94,9 @@ export default {
...
@@ -94,6 +94,9 @@ export default {
}
,
}
,
isAllProduct
(
isAllProduct
){
isAllProduct
(
isAllProduct
){
this
.
$emit
(
'
setall
'
,
isAllProduct
)
this
.
$emit
(
'
setall
'
,
isAllProduct
)
}
,
defaultIds
(){
this
.
loadDefaultProds
()
}
}
}
,
}
,
created
()
{
created
()
{
...
@@ -101,11 +104,23 @@ export default {
...
@@ -101,11 +104,23 @@ export default {
getProductAttrList
().
then
(
res
=>
this
.
attrList
=
res
.
data
)
getProductAttrList
().
then
(
res
=>
this
.
attrList
=
res
.
data
)
this
.
reLoad
()
this
.
reLoad
()
this
.
ids
=
this
.
defaultIds
//数据回显
this
.
ids
=
this
.
defaultIds
//数据回显
// 如果有默认商品则获取内容供回显
if
(
this
.
defaultIds
.
length
){
this
.
loadDefaultProds
()
}
}
,
}
,
methods
:
{
methods
:
{
/* setAllProduct(status){
/* setAllProduct(status){
this.isAllProduct = true
this.isAllProduct = true
}
, */
}
, */
loadDefaultProds
(){
getProductList
({
ids
:
this
.
defaultIds
.
join
(
'
,
'
)
}
).
then
(
res
=>
{
res
.
data
.
forEach
(
item
=>
{
this
.
choose
(
item
)
}
)
}
)
}
,
toggleAll
(
status
){
toggleAll
(
status
){
this
.
list
.
forEach
(
item
=>
{
this
.
list
.
forEach
(
item
=>
{
this
.
toggleCheck
(
item
,
status
)
this
.
toggleCheck
(
item
,
status
)
...
@@ -129,8 +144,8 @@ export default {
...
@@ -129,8 +144,8 @@ export default {
this
.
page
=
res
.
data
.
page
this
.
page
=
res
.
data
.
page
this
.
pages
=
res
.
data
.
pages
this
.
pages
=
res
.
data
.
pages
this
.
total
=
res
.
data
.
total
this
.
total
=
res
.
data
.
total
this
.
choosedList
=
[]
//搜搜重置,数据回显
//
this.choosedList = [] //搜搜重置,数据回显
if
(
this
.
defaultIds
.
length
>
0
)
{
/*
if (this.defaultIds.length > 0) {
this.defaultIds.map(item => {
this.defaultIds.map(item => {
this.list.map(items => {
this.list.map(items => {
if (items.id == item) {
if (items.id == item) {
...
@@ -138,7 +153,7 @@ export default {
...
@@ -138,7 +153,7 @@ export default {
}
}
}
)
}
)
}
)
}
)
}
}
*/
}
)
}
)
}
,
}
,
toggleCheck
(
item
,
checked
)
{
toggleCheck
(
item
,
checked
)
{
...
...
src/views/ecw/box/ladingBill/index.vue
View file @
c9c44cdf
...
@@ -118,7 +118,7 @@ export default {
...
@@ -118,7 +118,7 @@ export default {
dialogCfg
:
{
dialogCfg
:
{
title
:
""
,
title
:
""
,
type
:
""
,
type
:
""
,
width
:
"
80%
"
,
width
:
"
100px
"
,
// 是否显示弹出层
// 是否显示弹出层
visible
:
false
,
visible
:
false
,
fullscreen
:
false
,
fullscreen
:
false
,
...
@@ -198,7 +198,7 @@ export default {
...
@@ -198,7 +198,7 @@ export default {
}
}
this
.
currRow
=
row
;
this
.
currRow
=
row
;
this
.
$set
(
this
.
dialogCfg
,
"
type
"
,
type
);
this
.
$set
(
this
.
dialogCfg
,
"
type
"
,
type
);
this
.
$set
(
this
.
dialogCfg
,
"
width
"
,
"
75
0px
"
);
this
.
$set
(
this
.
dialogCfg
,
"
width
"
,
"
100
0px
"
);
this
.
$set
(
this
.
dialogCfg
,
"
visible
"
,
true
);
this
.
$set
(
this
.
dialogCfg
,
"
visible
"
,
true
);
},
},
makeBill
(
row
)
{
makeBill
(
row
)
{
...
...
src/views/ecw/box/ladingBill/makeLadingBill.vue
View file @
c9c44cdf
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<div
class=
"title-orderNo"
>
{{
$t
(
'
订单号
'
)
}}
:
{{
orderNo
}}
</div>
<div
class=
"title-orderNo"
>
{{
$t
(
'
订单号
'
)
}}
:
{{
orderNo
}}
</div>
</el-row>
</el-row>
<el-row
class=
"ueditor-row"
>
<el-row
class=
"ueditor-row"
>
<vue-ueditor-wrap
v-model=
"billContent"
:config=
"editorConfig"
editor-id=
"billUeditor"
style=
"max-width: 690px;"
/>
<vue-ueditor-wrap
v-model=
"billContent"
:config=
"editorConfig"
editor-id=
"billUeditor"
/>
</el-row>
</el-row>
<!-- 审核流程 -->
<!-- 审核流程 -->
...
@@ -71,7 +71,7 @@ export default {
...
@@ -71,7 +71,7 @@ export default {
"
redo
"
,
//重做
"
redo
"
,
//重做
"
bold
"
,
//加粗
"
bold
"
,
//加粗
"
indent
"
,
//首行缩进
"
indent
"
,
//首行缩进
"
snapscreen
"
,
//截图
//
"snapscreen", //截图
"
italic
"
,
//斜体
"
italic
"
,
//斜体
"
underline
"
,
//下划线
"
underline
"
,
//下划线
"
strikethrough
"
,
//删除线
"
strikethrough
"
,
//删除线
...
@@ -86,9 +86,9 @@ export default {
...
@@ -86,9 +86,9 @@ export default {
"
preview
"
,
//预览
"
preview
"
,
//预览
"
horizontal
"
,
//分隔线
"
horizontal
"
,
//分隔线
"
removeformat
"
,
//清除格式
"
removeformat
"
,
//清除格式
"
time
"
,
//时间
//
"time", //时间
"
date
"
,
//日期
//
"date", //日期
"
unlink
"
,
//取消链接
//
"unlink", //取消链接
"
insertrow
"
,
//前插入行
"
insertrow
"
,
//前插入行
"
insertcol
"
,
//前插入列
"
insertcol
"
,
//前插入列
"
mergeright
"
,
//右合并单元格
"
mergeright
"
,
//右合并单元格
...
@@ -104,7 +104,7 @@ export default {
...
@@ -104,7 +104,7 @@ export default {
"
deletetable
"
,
//删除表格
"
deletetable
"
,
//删除表格
"
cleardoc
"
,
//清空文档
"
cleardoc
"
,
//清空文档
"
insertparagraphbeforetable
"
,
//"表格前插入行"
"
insertparagraphbeforetable
"
,
//"表格前插入行"
"
insertcode
"
,
//代码语言
//
"insertcode", //代码语言
"
fontfamily
"
,
//字体
"
fontfamily
"
,
//字体
"
fontsize
"
,
//字号
"
fontsize
"
,
//字号
"
paragraph
"
,
//段落格式
"
paragraph
"
,
//段落格式
...
@@ -112,11 +112,11 @@ export default {
...
@@ -112,11 +112,11 @@ export default {
"
insertimage
"
,
//多图上传
"
insertimage
"
,
//多图上传
"
edittable
"
,
//表格属性
"
edittable
"
,
//表格属性
"
edittd
"
,
//单元格属性
"
edittd
"
,
//单元格属性
"
link
"
,
//超链接
//
"link", //超链接
"
emotion
"
,
//表情
//
"emotion", //表情
"
spechars
"
,
//特殊字符
"
spechars
"
,
//特殊字符
"
searchreplace
"
,
//查询替换
//
"searchreplace", //查询替换
"
insertvideo
"
,
//视频
//
"insertvideo", //视频
"
justifyleft
"
,
//居左对齐
"
justifyleft
"
,
//居左对齐
"
justifyright
"
,
//居右对齐
"
justifyright
"
,
//居右对齐
"
justifycenter
"
,
//居中对齐
"
justifycenter
"
,
//居中对齐
...
@@ -131,25 +131,25 @@ export default {
...
@@ -131,25 +131,25 @@ export default {
"
rowspacingtop
"
,
//段前距
"
rowspacingtop
"
,
//段前距
"
rowspacingbottom
"
,
//段后距
"
rowspacingbottom
"
,
//段后距
"
pagebreak
"
,
//分页
"
pagebreak
"
,
//分页
"
insertframe
"
,
//插入Iframe
//
"insertframe", //插入Iframe
"
imagenone
"
,
//默认
"
imagenone
"
,
//默认
"
imageleft
"
,
//左浮动
"
imageleft
"
,
//左浮动
"
imageright
"
,
//右浮动
"
imageright
"
,
//右浮动
"
attachment
"
,
//附件
//
"attachment", //附件
"
imagecenter
"
,
//居中
"
imagecenter
"
,
//居中
"
wordimage
"
,
//图片转存
"
wordimage
"
,
//图片转存
"
lineheight
"
,
//行间距
"
lineheight
"
,
//行间距
"
edittip
"
,
//编辑提示
//
"edittip ", //编辑提示
"
customstyle
"
,
//自定义标题
"
customstyle
"
,
//自定义标题
"
autotypeset
"
,
//自动排版
"
autotypeset
"
,
//自动排版
"
touppercase
"
,
//字母大写
//
"touppercase", //字母大写
"
tolowercase
"
,
//字母小写
//
"tolowercase", //字母小写
"
background
"
,
//背景
"
background
"
,
//背景
"
scrawl
"
,
//涂鸦
//
"scrawl", //涂鸦
"
music
"
,
//音乐
//
"music", //音乐
"
inserttable
"
,
//插入表格
"
inserttable
"
,
//插入表格
"
drafts
"
,
// 从草稿箱加载
"
drafts
"
,
// 从草稿箱加载
"
charts
"
,
// 图表
//
"charts", // 图表
],
],
],
],
serverUrl
:
serverUrl
:
...
@@ -221,7 +221,7 @@ export default {
...
@@ -221,7 +221,7 @@ export default {
.shipping-makeLadingBill
{
.shipping-makeLadingBill
{
.title-orderNo
{
.title-orderNo
{
text-align
:
center
;
text-align
:
center
;
font-size
:
2
8px
;
font-size
:
1
8px
;
font-weight
:
normal
;
font-weight
:
normal
;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
}
}
...
@@ -245,4 +245,10 @@ export default {
...
@@ -245,4 +245,10 @@ export default {
justify-content
:
center
;
justify-content
:
center
;
}
}
}
}
.shippingSea-dialog
{
::v-deep
.el-dialog__body
{
padding-top
:
0
;
}
}
</
style
>
</
style
>
src/views/ecw/coupon/edit.vue
View file @
c9c44cdf
...
@@ -52,7 +52,8 @@
...
@@ -52,7 +52,8 @@
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"*运费"
v-if=
"[2,3,4,5,6,7].indexOf(form.type) > -1"
>
<el-form-item
label=
"运费"
v-if=
"[2,3,4,5,6,7].indexOf(form.type) > -1"
>
<span
slot=
"label"
><span
style=
"color: red"
>
*
</span>
运费
</span>
<div
class=
"fee-item"
v-for=
"(item, index) in fee[1]"
:key=
"index"
>
<div
class=
"fee-item"
v-for=
"(item, index) in fee[1]"
:key=
"index"
>
<template
v-if=
"[1,2,3,4,5].indexOf(form.type) > -1"
>
<template
v-if=
"[1,2,3,4,5].indexOf(form.type) > -1"
>
{{
$t
(
'
满
'
)
}}
{{
$t
(
'
满
'
)
}}
...
@@ -178,7 +179,8 @@
...
@@ -178,7 +179,8 @@
prop=
"suitableLineType"
prop=
"suitableLineType"
v-if=
"form.type != 1"
v-if=
"form.type != 1"
>
>
<dict-selector
:type=
"DICT_TYPE.ECW_SUITABLE_LINE_TYPE"
v-model=
"form.suitableLineType"
/>
<!---第一个不是全部,所以不能使用defaultable-->
<dict-selector
:type=
"DICT_TYPE.ECW_SUITABLE_LINE_TYPE"
v-model=
"form.suitableLineType"
formatter=
"number"
/>
<routers-selector
v-if=
"showRouterSelector"
v-model=
"form.lineIds"
style=
"margin-top:5px"
/>
<routers-selector
v-if=
"showRouterSelector"
v-model=
"form.lineIds"
style=
"margin-top:5px"
/>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
...
@@ -187,7 +189,7 @@
...
@@ -187,7 +189,7 @@
v-if=
"form.type != 1"
v-if=
"form.type != 1"
>
>
<!-- <dict-selector :type="DICT_TYPE.ECW_SUITABLE_PROD_TYPE" v-model="form.suitableProdType" /> -->
<!-- <dict-selector :type="DICT_TYPE.ECW_SUITABLE_PROD_TYPE" v-model="form.suitableProdType" /> -->
<products-selector
v-model=
"form.prodIds"
/>
<products-selector
v-model=
"form.prodIds"
:default-ids=
"form.prodIds"
/>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
:label=
"$t('订单属性')"
:label=
"$t('订单属性')"
...
@@ -358,6 +360,7 @@ export default {
...
@@ -358,6 +360,7 @@ export default {
this
.
$set
(
this
.
form
,
'
isCargoControlArr
'
,
[
"
0
"
])
this
.
$set
(
this
.
form
,
'
isCargoControlArr
'
,
[
"
0
"
])
this
.
$set
(
this
.
form
,
'
orderAttrArr
'
,
[
"
2
"
,
"
3
"
,
"
1
"
])
this
.
$set
(
this
.
form
,
'
orderAttrArr
'
,
[
"
2
"
,
"
3
"
,
"
1
"
])
this
.
$set
(
this
.
form
,
'
brandArr
'
,
[
"
0
"
,
"
1
"
])
this
.
$set
(
this
.
form
,
'
brandArr
'
,
[
"
0
"
,
"
1
"
])
this
.
$set
(
this
.
form
,
'
suitableLineType
'
,
0
)
}
}
},
},
'
form.isSimilarSuperposition
'
(
val
){
'
form.isSimilarSuperposition
'
(
val
){
...
@@ -420,6 +423,13 @@ export default {
...
@@ -420,6 +423,13 @@ export default {
if
(
this
.
$route
.
query
.
action
==
'
copy
'
){
if
(
this
.
$route
.
query
.
action
==
'
copy
'
){
this
.
form
.
couponId
=
null
this
.
form
.
couponId
=
null
}
}
// 对没有默认值的给一个空表单
[
1
,
2
].
forEach
(
type
=>
{
if
(
!
this
.
fee
[
type
].
length
){
this
.
fee
[
type
]
=
[{
type
}]
}
})
})
})
}
}
// 不是编辑查看则给默认的费用表格
// 不是编辑查看则给默认的费用表格
...
...
src/views/ecw/order/cargoControl.vue
View file @
c9c44cdf
...
@@ -166,7 +166,7 @@ import TransferCargo from '@/views/ecw/order/components/TransferCargo'
...
@@ -166,7 +166,7 @@ import TransferCargo from '@/views/ecw/order/components/TransferCargo'
import
Fallback
from
'
./components/Fallback
'
import
Fallback
from
'
./components/Fallback
'
export
default
{
export
default
{
name
:
"
OrderCargonControl
"
,
name
:
"
Ecw
OrderCargonControl
"
,
components
:
{
components
:
{
CustomerSelector
,
ProductSelector
,
Selector
,
Transfer
,
Release
,
CargoControlEdit
,
TransferCargo
,
Fallback
CustomerSelector
,
ProductSelector
,
Selector
,
Transfer
,
Release
,
CargoControlEdit
,
TransferCargo
,
Fallback
},
},
...
@@ -224,6 +224,9 @@ export default {
...
@@ -224,6 +224,9 @@ export default {
return
Object
.
assign
({},
this
.
queryParams
,
timeParams
)
return
Object
.
assign
({},
this
.
queryParams
,
timeParams
)
}
}
},
},
activated
(){
this
.
handleQuery
()
},
created
()
{
created
()
{
this
.
getList
();
this
.
getList
();
getProductAttrList
().
then
(
res
=>
this
.
productAttrList
=
res
.
data
)
getProductAttrList
().
then
(
res
=>
this
.
productAttrList
=
res
.
data
)
...
...
src/views/ecw/order/detail.vue
View file @
c9c44cdf
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
<el-descriptions
border
:title=
"$t('物流信息')"
:column=
"2"
>
<el-descriptions
border
:title=
"$t('物流信息')"
:column=
"2"
>
<el-descriptions-item
:label=
"$t('始发仓')"
>
{{order.logisticsInfoDto.startTitleZh}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('始发仓')"
>
{{order.logisticsInfoDto.startTitleZh}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('目的仓')"
>
{{order.logisticsInfoDto.destTitleZh}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('目的仓')"
>
{{order.logisticsInfoDto.destTitleZh}}
</el-descriptions-item>
<
el-descriptions-item
:label=
"$t('地址')"
:span=
"2"
>
{{order.logisticsInfoDto.startAddressZh}}
</el-descriptions-item
>
<
!-- <el-descriptions-item :label="$t('地址')" :span="2">{{order.logisticsInfoDto.startAddressZh}}</el-descriptions-item> --
>
<el-descriptions-item
:label=
"$t('运输方式')"
:span=
"2"
>
<el-descriptions-item
:label=
"$t('运输方式')"
:span=
"2"
>
<dict-tag
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
:value=
"order.transportId"
/>
<dict-tag
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
:value=
"order.transportId"
/>
</el-descriptions-item>
</el-descriptions-item>
...
@@ -145,7 +145,11 @@
...
@@ -145,7 +145,11 @@
{{
order
.
inWarehouseState
>
1
&&
row
.
warehouseInInfoVO
?
row
.
warehouseInInfoVO
.
weight
:
row
.
weight
}}
{{
order
.
inWarehouseState
>
1
&&
row
.
warehouseInInfoVO
?
row
.
warehouseInInfoVO
.
weight
:
row
.
weight
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"warehouseInInfoVO.quantityAll"
:label=
"$t('数量') + '(个)'"
width=
"90px"
/>
<el-table-column
prop=
"warehouseInInfoVO.quantityAll"
:label=
"$t('数量') + '(个)'"
width=
"90px"
>
<
template
slot-scope=
"{row}"
>
{{
order
.
inWarehouseState
>
1
?
row
.
warehouseInInfoVO
.
quantityAll
:
row
.
quantity
}}
</
template
>
</el-table-column>
<el-table-column
prop=
""
:label=
"$t('费用类型')"
>
<el-table-column
prop=
""
:label=
"$t('费用类型')"
>
<
template
slot-scope=
"{row}"
>
<
template
slot-scope=
"{row}"
>
<dict-tag
:type=
"DICT_TYPE.ECW_PAY_ADVANCE"
:value=
"row.isPayAdvance"
/>
<dict-tag
:type=
"DICT_TYPE.ECW_PAY_ADVANCE"
:value=
"row.isPayAdvance"
/>
...
...
src/views/ecw/order/edit.vue
View file @
c9c44cdf
...
@@ -163,7 +163,7 @@
...
@@ -163,7 +163,7 @@
{{
$t
(
'
件数
'
)
}}
<span
class=
"red"
>
*
</span>
{{
$t
(
'
件数
'
)
}}
<span
class=
"red"
>
*
</span>
</
template
>
</
template
>
<
template
slot-scope=
"{row}"
>
<
template
slot-scope=
"{row}"
>
<el-input
v-model.number=
"row.num"
:disabled=
"!canAddProduct || !productEditable"
/>
<el-input
v-model.number=
"row.num"
@
keyup.native=
"checkPositiveInterge(row, 'num')"
:disabled=
"!canAddProduct || !productEditable"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('包装单位')"
width=
"100px"
>
<el-table-column
:label=
"$t('包装单位')"
width=
"100px"
>
...
@@ -176,17 +176,33 @@
...
@@ -176,17 +176,33 @@
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('数量') + '(个)'"
width=
"120px"
>
<el-table-column
:label=
"$t('数量') + '(个)'"
width=
"120px"
>
<
template
slot-scope=
"{row}"
>
<
template
slot-scope=
"{row}"
>
<el-input
v-model=
"row.quantity"
type=
"number"
@
keyup.native=
"checkQuantity(row
)"
:disabled=
"!canAddProduct || !productEditable"
/>
<el-input
v-model=
"row.quantity"
@
keyup.native=
"checkPositiveInterge(row, 'quantity'
)"
:disabled=
"!canAddProduct || !productEditable"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('总体积') + '(m³)'"
width=
"100px"
>
<el-table-column
:label=
"$t('总体积') + '(m³)'"
width=
"100px"
>
<
template
slot-scope=
"{row}"
>
<
template
slot-scope=
"scope"
>
<el-input
v-model=
"row.volume"
:disabled=
"!canAddProduct || !productEditable"
/>
<el-form-item
label=
""
:prop=
"`orderItemVOList.$
{scope.$index}.volume`"
:rules="[
{ type: 'number', min: 0, message: $t('体积错误'), trigger: 'blur'}
]"
class="mb-0 mr-0"
>
<el-input
v-model.number=
"scope.row.volume"
:disabled=
"!canAddProduct || !productEditable"
/>
</el-form-item>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('总重量') + '(kg)'"
width=
"100px"
>
<el-table-column
:label=
"$t('总重量') + '(kg)'"
width=
"100px"
>
<
template
slot-scope=
"{row}"
>
<
template
slot-scope=
"scope"
>
<el-input
v-model=
"row.weight"
:disabled=
"!canAddProduct || !productEditable"
/>
<el-form-item
label=
""
:prop=
"`orderItemVOList.$
{scope.$index}.weight`"
:rules="[
{ type: 'number', min: 0, message: $t('重量错误'), trigger: 'blur'}
]"
class="mb-0 mr-0"
>
<el-input
v-model.number=
"scope.row.weight"
:disabled=
"!canAddProduct || !productEditable"
/>
</el-form-item>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('总货值') + '(RMB)'"
width=
"100px"
>
<el-table-column
:label=
"$t('总货值') + '(RMB)'"
width=
"100px"
>
...
@@ -196,12 +212,13 @@
...
@@ -196,12 +212,13 @@
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-form-item
label=
""
<el-form-item
label=
""
:prop=
"`orderItemVOList.$
{scope.$index}.worth`"
:prop=
"`orderItemVOList.$
{scope.$index}.worth`"
:rules="{
:rules="[
required: true, message: $t('货值不能为空'), trigger: 'blur'
{ required: true, message: $t('货值不能为空'), trigger: 'blur'},
}"
{ type: 'number', min: 0, message: $t('货值错误'), trigger: 'blur'}
]"
class="mb-0 mr-0"
class="mb-0 mr-0"
>
>
<el-input
v-model=
"scope.row.worth"
:disabled=
"!canAddProduct"
@
input=
"calculationPrice"
type=
"number"
/>
<el-input
v-model
.number
=
"scope.row.worth"
:disabled=
"!canAddProduct"
@
input=
"calculationPrice"
type=
"number"
/>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -509,7 +526,7 @@ import WorkFlow from '@/components/WorkFlow'
...
@@ -509,7 +526,7 @@ import WorkFlow from '@/components/WorkFlow'
// 缓存默认的表单数据
// 缓存默认的表单数据
let
defaultFormData
=
null
let
defaultFormData
=
null
window
.
Decimal
=
Decimal
export
default
{
export
default
{
name
:
"
EcwOrderEdit
"
,
name
:
"
EcwOrderEdit
"
,
components
:
{
components
:
{
...
@@ -925,9 +942,16 @@ export default {
...
@@ -925,9 +942,16 @@ export default {
this
.
$set
(
row
,
'
link
'
,
value
)
this
.
$set
(
row
,
'
link
'
,
value
)
})
})
},
},
checkQuantity
(
row
){
// 检查正整数
row
.
quantity
=
row
.
quantity
.
replace
(
/
[^\d]
/g
,
''
)
checkPositiveInterge
(
row
,
field
){
row
[
field
]
=
row
[
field
].
replace
(
/
[^\d]
/g
,
''
)
},
},
/* // 检查正数
checkPositive(row, field){
if(row.field < 0){
row[field] = 0
}
}, */
/* onFileChoosed(e){
/* onFileChoosed(e){
window.choosed = e
window.choosed = e
console.log('onFileChoosed', e)
console.log('onFileChoosed', e)
...
...
src/views/ecw/order/exception/index.vue
View file @
c9c44cdf
...
@@ -157,7 +157,7 @@ import CustomerSelector from '@/components/CustomerSelector'
...
@@ -157,7 +157,7 @@ import CustomerSelector from '@/components/CustomerSelector'
import
ProductSelector
from
'
@/components/ProductSelector
'
import
ProductSelector
from
'
@/components/ProductSelector
'
export
default
{
export
default
{
name
:
"
Exception
"
,
name
:
"
E
cwOrderE
xception
"
,
components
:
{
components
:
{
CustomerSelector
,
ProductSelector
CustomerSelector
,
ProductSelector
},
},
...
@@ -181,6 +181,9 @@ export default {
...
@@ -181,6 +181,9 @@ export default {
tradeCityList
:[],
tradeCityList
:[],
};
};
},
},
activated
(){
this
.
handleQuery
()
},
created
()
{
created
()
{
this
.
getList
();
this
.
getList
();
getTradeCityList
().
then
(
res
=>
this
.
tradeCityList
=
res
.
data
)
getTradeCityList
().
then
(
res
=>
this
.
tradeCityList
=
res
.
data
)
...
...
src/views/ecw/order/index.vue
View file @
c9c44cdf
...
@@ -416,7 +416,7 @@ import PickupLog from './components/PickupLog'
...
@@ -416,7 +416,7 @@ import PickupLog from './components/PickupLog'
import
{
getWarehouseList
}
from
'
@/api/ecw/warehouse
'
import
{
getWarehouseList
}
from
'
@/api/ecw/warehouse
'
import
{
getCurrencyPage
}
from
"
@/api/ecw/currency
"
;
import
{
getCurrencyPage
}
from
"
@/api/ecw/currency
"
;
export
default
{
export
default
{
name
:
"
Order
"
,
name
:
"
EcwOrderIndex
"
,
components
:
{
components
:
{
UserSelector
,
UserSelector
,
FeeApplication
,
FeeApplication
,
...
@@ -526,6 +526,9 @@ export default {
...
@@ -526,6 +526,9 @@ export default {
}
}
}
}
},
},
activated
(){
this
.
handleQuery
()
},
created
()
{
created
()
{
this
.
getTransportFromRoute
()
this
.
getTransportFromRoute
()
this
.
getList
();
this
.
getList
();
...
...
src/views/ecw/order/mine.vue
View file @
c9c44cdf
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
<
script
>
<
script
>
import
Index
from
'
./index
'
import
Index
from
'
./index
'
export
default
{
export
default
{
name
:
'
EcwOrderMine
'
,
components
:
{
Index
}
components
:
{
Index
}
}
}
</
script
>
</
script
>
\ 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