Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
supply-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bc753651
authored
Sep 21, 2020
by
wangql
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
分配订单校验号码以及硬件设备支持搜索
1 parent
001ab430
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
13 deletions
src/http/config.js
src/views/orderManage/assignShipment.vue
src/http/config.js
View file @
bc75365
...
@@ -13,6 +13,9 @@ function getUrl() {
...
@@ -13,6 +13,9 @@ function getUrl() {
case
'sc.glsx.com.cn'
:
case
'sc.glsx.com.cn'
:
url
=
'http://sc.glsx.com.cn/admin-supplychain/'
url
=
'http://sc.glsx.com.cn/admin-supplychain/'
break
;
break
;
case
'sso.glsx.com.cn'
:
url
=
'http://sso.glsx.com.cn/admin-supplychain/'
break
;
default
:
default
:
url
=
'http://qcwx.glsx.com.cn/admin-supplychain/'
url
=
'http://qcwx.glsx.com.cn/admin-supplychain/'
break
;
break
;
...
...
src/views/orderManage/assignShipment.vue
View file @
bc75365
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
</div>
</div>
<div
class=
"right"
>
<div
class=
"right"
>
<el-form-item
label=
"硬件设备"
prop=
"deviceId"
>
<el-form-item
label=
"硬件设备"
prop=
"deviceId"
>
<el-select
v-model=
"form.deviceId"
placeholder=
"请选择"
class=
"el_select"
@
change=
"changeDevice(form.deviceId)"
>
<el-select
v-model=
"form.deviceId"
placeholder=
"请选择"
class=
"el_select"
filterable
@
change=
"changeDevice(form.deviceId)"
>
<el-option
v-for=
"item in deviceList"
:key=
"item.deviceCode"
:value=
"item.deviceCode"
:label=
"item.deviceCode + '/' + item.deviceName"
/>
<el-option
v-for=
"item in deviceList"
:key=
"item.deviceCode"
:value=
"item.deviceCode"
:label=
"item.deviceCode + '/' + item.deviceName"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -151,7 +151,7 @@
...
@@ -151,7 +151,7 @@
</div>
</div>
<div
class=
"right"
>
<div
class=
"right"
>
<el-form-item
label=
"联系电话"
prop=
"mobile"
>
<el-form-item
label=
"联系电话"
prop=
"mobile"
>
<el-input
v-model=
"form.mobile"
maxlength=
"1
1
"
clearable
/>
<el-input
v-model=
"form.mobile"
maxlength=
"1
3
"
clearable
/>
</el-form-item>
</el-form-item>
</div>
</div>
</div>
</div>
...
@@ -199,8 +199,8 @@ import {
...
@@ -199,8 +199,8 @@ import {
LISTSPORDERVEHICLE
LISTSPORDERVEHICLE
}
from
'@/http/interface'
}
from
'@/http/interface'
import
{
import
{
Validator
Util
}
from
'@/common/
validator
'
}
from
'@/common/
util
'
export
default
{
export
default
{
name
:
'AssignShipment'
,
name
:
'AssignShipment'
,
props
:
{
props
:
{
...
@@ -239,15 +239,13 @@ export default {
...
@@ -239,15 +239,13 @@ export default {
// }
// }
// },
// },
data
()
{
data
()
{
var
checkPhone
=
(
rule
,
value
,
callback
)
=>
{
function
checkPhone
(
rule
,
value
,
callback
)
{
if
(
!
value
)
{
if
(
!
Util
.
checkPhone
(
value
)
&&
!
Util
.
validationTel
(
value
))
{
return
callback
(
new
Error
(
'请输入联系人电话'
))
callback
(
new
Error
(
"请输入正确的联系电话"
));
}
return
false
;
if
(
!
Validator
.
PHONEREG
.
test
(
value
))
{
}
return
callback
(
new
Error
(
'联系人电话格式不正确'
))
callback
();
}
}
callback
()
}
return
{
return
{
key
:
new
Date
(),
key
:
new
Date
(),
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment