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
213600ae
Commit
213600ae
authored
Sep 29, 2022
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab.jdshangmen.com/jiedao-app/jiedao-app-operator
into dev
parents
9259c5cf
1d24e683
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
80 additions
and
27 deletions
+80
-27
validate.js
src/api/ecw/validate.js
+10
-0
request.js
src/utils/request.js
+1
-1
edit.vue
src/views/ecw/customer/edit.vue
+38
-4
index.vue
src/views/ecw/order/warehousing/index.vue
+7
-8
index.vue
src/views/ecw/productBrank/BrandForm/index.vue
+5
-1
index.vue
src/views/ecw/productBrank/index.vue
+19
-13
No files found.
src/api/ecw/validate.js
0 → 100644
View file @
213600ae
import
request
from
'
@/utils/request
'
// 校验手机号
export
function
validatorMobile
(
params
)
{
return
request
({
url
:
'
/param/validator/mobile
'
,
method
:
'
post
'
,
params
})
}
src/utils/request.js
View file @
213600ae
...
...
@@ -107,7 +107,7 @@ service.interceptors.response.use(res => {
Notification
.
error
({
title
:
msg
})
return
Promise
.
reject
(
'
error
'
)
return
Promise
.
reject
(
msg
||
'
error
'
)
}
else
{
return
res
.
data
}
...
...
src/views/ecw/customer/edit.vue
View file @
213600ae
...
...
@@ -381,7 +381,7 @@
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"开票电话"
prop=
"billingTell"
>
<el-input
v-model=
"form.billingTell"
placeholder=
"请输入开票电话"
/>
<el-input
v-model=
"form.billingTell"
placeholder=
"请输入开票电话"
maxlength=
"50"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
...
...
@@ -417,6 +417,7 @@ import { getZhongPaoBest, getZhongPaoPage } from '@/api/ecw/zhongPao'
import
{
getCustomerContactsListByCustomer
}
from
'
@/api/ecw/customerContacts
'
import
{
getCountryListAll
}
from
'
@/api/ecw/country
'
import
Template
from
"
@/views/cms/template
"
;
import
{
validatorMobile
}
from
"
@/api/ecw/validate
"
export
default
{
name
:
"
edit
"
,
...
...
@@ -436,6 +437,10 @@ export default {
this
.
form
.
customerContacts
=
r
.
data
})
})
}
else
{
const
obj
=
Object
.
assign
({},
this
.
$route
,
{
title
:
"
自定义标题
"
})
this
.
$tab
.
updatePage
(
obj
);
this
.
$tab
.
updatePage
({...
this
.
$route
,
meta
:
{...
this
.
$route
.
meta
,
name
:
'
abc
'
}})
}
getNodeList
().
then
(
r
=>
{
...
...
@@ -492,7 +497,11 @@ export default {
contactRules
:
{
name
:
[{
required
:
true
,
message
:
"
请输入联系人
"
,
trigger
:
"
blur
"
}],
areaCode
:
[{
required
:
true
,
message
:
"
请选择区号
"
,
trigger
:
"
change
"
}],
phoneNew
:
[{
required
:
true
,
message
:
"
请输入联系方式
"
,
trigger
:
"
blur
"
}],
phoneNew
:
[{
required
:
true
,
trigger
:
"
blur
"
,
validator
:
this
.
phoneValidator
}],
},
// 网点
nodeList
:
[],
...
...
@@ -515,6 +524,24 @@ export default {
},
methods
:
{
phoneValidator
(
rule
,
value
,
callback
){
if
(
!
value
)
{
return
callback
(
new
Error
(
'
请输入联系方式
'
));
}
validatorMobile
({
code
:
this
.
form
.
customerContacts
.
find
(
e
=>
e
.
phoneNew
===
value
).
areaCode
,
mobile
:
value
}).
then
(
r
=>
{
if
(
r
.
data
){
callback
()
}
else
{
callback
(
new
Error
(
r
.
msg
||
'
手机号验证失败
'
))
}
}).
catch
(
e
=>
{
console
.
error
(
e
)
callback
(
new
Error
(
'
手机号验证失败
'
))
})
},
handleDefaultChange
(
$index
){
// 只有一个联系人,设置成非默认
if
(
this
.
form
.
customerContacts
.
length
===
1
&&
this
.
form
.
customerContacts
[
0
].
isDefault
===
0
){
...
...
@@ -549,6 +576,10 @@ export default {
},
/** 提交按钮 */
submitForm
()
{
if
(
this
.
form
.
customerContacts
.
length
===
0
){
this
.
$modal
.
alert
(
'
至少添加一位联系人
'
)
return
}
this
.
$refs
[
"
contactForm
"
].
validate
(
valid1
=>
{
this
.
$refs
[
"
form
"
].
validate
(
valid2
=>
{
if
(
!
valid1
||
!
valid2
)
{
...
...
@@ -558,13 +589,16 @@ export default {
this
.
$modal
.
msgError
(
"
至少填写一个联系人信息
"
);
return
}
const
form
=
{...
this
.
form
,
type
:
this
.
form
.
type
?.
join
(
'
,
'
),
taxRate
:
Number
(
this
.
form
.
taxRate
)}
// 修改的提交
if
(
this
.
form
.
id
!=
null
)
{
this
.
form
.
customerContacts
.
forEach
(
e
=>
{
e
.
customerId
=
this
.
customerId
})
updateCustomer
(
this
.
form
).
then
(
response
=>
{
updateCustomer
(
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"
修改成功
"
);
this
.
open
=
false
;
// this.getList();
...
...
@@ -576,7 +610,7 @@ export default {
return
;
}
// 添加的提交
createCustomer
(
this
.
form
).
then
(
response
=>
{
createCustomer
(
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
// this.getList();
...
...
src/views/ecw/order/warehousing/index.vue
View file @
213600ae
...
...
@@ -120,13 +120,8 @@
</div>
</el-card>
<div
style=
"text-align: center;margin-top: 15px"
v-if=
"order.status !== 5"
>
<el-button
@
click=
"escapeBol = true;"
type=
"primary"
>
转异
</el-button>
<el-button
type=
"primary"
@
click=
"finishVisible = true"
>
完成入仓
</el-button>
</div>
<
template
v-if=
"order.status === 5"
>
<h2>
标枪箱号
</h2>
<
template
v-if=
"order.parentOrderId && isEdit"
>
<h2>
标签箱号
</h2>
<div
v-for=
"(item, index) in label.orderLabelDtoList"
:key=
"index"
style=
"margin-bottom: 10px"
>
<el-input-number
v-model=
"item.start"
controls-position=
"right"
></el-input-number>
-
...
...
@@ -138,6 +133,10 @@
<el-button
type=
"primary"
@
click=
"handleLabelSubmit"
>
修改箱号
</el-button>
</div>
</
template
>
<div
style=
"text-align: center;margin-top: 15px"
v-if=
"order.status !== 5"
>
<el-button
@
click=
"escapeBol = true;"
type=
"primary"
>
转异
</el-button>
<el-button
type=
"primary"
@
click=
"finishVisible = true"
>
完成入仓
</el-button>
</div>
</el-form>
<warehouse-area-dialog
ref=
"area"
:visible.sync=
"areaVisible"
v-model=
"form.orderLocationCreateReqVOList"
...
...
@@ -281,7 +280,7 @@ export default {
orderId
:
this
.
orderId
}).
then
(
r
=>
{
if
(
r
.
code
===
0
){
this
.
$message
.
success
(
r
.
msg
||
'
修改标签箱号成功
'
)
}
})
},
...
...
src/views/ecw/productBrank/BrandForm/index.vue
View file @
213600ae
...
...
@@ -2,7 +2,7 @@
<el-form
ref=
"form"
:model=
"form"
label-width=
"80px"
>
<el-card
class=
"box-card"
style=
"margin-bottom: 15px"
>
<div
slot=
"header"
class=
"clearfix"
>
<el-button
style=
"float: right; padding: 3px 0"
type=
"text"
@
click=
"$emit('delete')"
>
删除
</el-button>
<el-button
v-show=
"isShowDelete"
style=
"float: right; padding: 3px 0"
type=
"text"
@
click=
"$emit('delete')"
>
删除
</el-button>
</div>
<el-form-item
:label=
"'商标' + (index + 1)"
>
<el-input
v-model=
"form.brandName"
placeholder=
"商标"
></el-input>
...
...
@@ -37,6 +37,10 @@
export
default
{
name
:
"
BrandForm
"
,
props
:
{
isShowDelete
:
{
type
:
Boolean
,
default
:
true
},
productTypeList
:
{
type
:
Array
,
default
:
[]
...
...
src/views/ecw/productBrank/index.vue
View file @
213600ae
...
...
@@ -110,6 +110,7 @@
<h3>
包含商标列表
</h3>
<brand-form
:is-show-delete=
"form.trademarkList.length > 1"
v-for=
"(item, index) in form.trademarkList"
v-model=
"form.trademarkList[index]"
:index=
"index"
...
...
@@ -119,9 +120,9 @@
@
delete=
"form.trademarkList.splice(index, 1)"
></brand-form>
<el-button
type=
"primary"
@
click=
"form.trademarkList.push({
brandName:
''
,
brandName:
form.titleZh
,
productBrandId: form.id,
trademarkCategoryRelList: []
trademarkCategoryRelList: [
{productCategoryId:0, productId:0}
]
})"
>
添加商标
</el-button>
<div
slot=
"footer"
style=
"text-align: center"
>
...
...
@@ -287,21 +288,26 @@ export default {
if
(
!
valid
)
{
return
;
}
// 修改的提交
if
(
this
.
form
.
id
!=
null
)
{
updateProductBrank
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"
修改成功
"
);
if
(
this
.
form
.
trademarkList
?.
length
>
0
){
// 修改的提交
if
(
this
.
form
.
id
!=
null
)
{
updateProductBrank
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"
修改成功
"
);
this
.
open
=
false
;
this
.
getList
();
});
return
;
}
// 添加的提交
createProductBrank
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
this
.
getList
();
});
return
;
}
else
{
this
.
$modal
.
alert
(
'
请至少添加一个商标
'
)
}
// 添加的提交
createProductBrank
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
this
.
getList
();
});
});
},
/** 删除按钮操作 */
...
...
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