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 61422b4f
authored
Nov 04, 2021
by
wangql
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
BUG修复
1 parent
9c2ea782
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
115 additions
and
48 deletions
src/http/interface.js
src/router/routes.js
src/views/orderManage/addRules.vue
src/views/orderManage/assignOrder.vue
src/views/orderManage/assignShipment.vue
src/views/orderManage/detail.vue
src/http/interface.js
View file @
61422b4
...
@@ -87,7 +87,14 @@ export const ASSIGNORDERLIST = (params) => {
...
@@ -87,7 +87,14 @@ export const ASSIGNORDERLIST = (params) => {
}
}
//分配订单-导出订单列表
//分配订单-导出订单列表
export
const
EXPORTSPORDER
=
BASEURL
+
'/JXCSPOrder/exportSpOrder'
// export const EXPORTSPORDER = BASEURL + '/JXCSPOrder/exportSpOrder'
export
const
EXPORTSPORDER
=
(
params
)
=>
{
return
axios
({
url
:
'/JXCSPOrder/exportSpOrder'
,
method
:
'POST'
,
data
:
params
,
})
}
// 获取设备类型列表
// 获取设备类型列表
export
const
GETDEVICETYPE
=
(
params
)
=>
{
export
const
GETDEVICETYPE
=
(
params
)
=>
{
...
...
src/router/routes.js
View file @
61422b4
...
@@ -178,6 +178,18 @@ export const resources = {
...
@@ -178,6 +178,18 @@ export const resources = {
component
:
_import
(
'equipment/initialize'
),
component
:
_import
(
'equipment/initialize'
),
auth
:
[]
auth
:
[]
},
},
'10308'
:
{
path
:
'/orderManage/rules'
,
name
:
'fimsTable10308'
,
meta
:
{
title
:
'设备分发规则'
,
authId
:
'10308'
,
parentId
:
'103'
,
cache
:
true
},
component
:
_import
(
'orderManage/rules'
),
auth
:
[]
},
'104'
:
{
'104'
:
{
path
:
'/orderManage'
,
path
:
'/orderManage'
,
icon
:
'document'
,
icon
:
'document'
,
...
@@ -212,18 +224,18 @@ export const resources = {
...
@@ -212,18 +224,18 @@ export const resources = {
component
:
_import
(
'orderManage/invoice'
),
component
:
_import
(
'orderManage/invoice'
),
auth
:
[]
auth
:
[]
},
},
'10403'
:
{
//
'10403': {
path
:
'/orderManage/rules'
,
//
path: '/orderManage/rules',
name
:
'fimsTable10403'
,
//
name: 'fimsTable10403',
meta
:
{
//
meta: {
title
:
'设备分发规则'
,
//
title: '设备分发规则',
authId
:
'10403'
,
//
authId: '10403',
parentId
:
'104'
,
//
parentId: '104',
cache
:
true
//
cache: true
},
//
},
component
:
_import
(
'orderManage/rules'
),
//
component: _import('orderManage/rules'),
auth
:
[]
//
auth: []
},
//
},
// '10404': {
// '10404': {
// path: '/orderManage/codeRules',
// path: '/orderManage/codeRules',
// name: 'fimsTable10404',
// name: 'fimsTable10404',
...
...
src/views/orderManage/addRules.vue
View file @
61422b4
...
@@ -26,14 +26,14 @@
...
@@ -26,14 +26,14 @@
<el-table-column
label=
"设备型号"
>
<el-table-column
label=
"设备型号"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-form-item
:prop=
"'tableData.' + scope.$index + '.mnumName'"
:rules=
"[
{ required: true, message: '请输入设备型号', trigger: 'blur'}]">
<el-form-item
:prop=
"'tableData.' + scope.$index + '.mnumName'"
:rules=
"[
{ required: true, message: '请输入设备型号', trigger: 'blur'}]">
<el-input
v-model=
"scope.row.mnumName"
size=
"small"
></el-input>
<el-input
v-model=
"scope.row.mnumName"
size=
"small"
maxlength=
"10"
></el-input>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"设备号开头编码"
>
<el-table-column
label=
"设备号开头编码"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-form-item
:prop=
"'tableData.' + scope.$index + '.snHead'"
:rules=
"[
{ required: true, message: '请输入设备号开头编码', trigger: 'blur'}]">
<el-form-item
:prop=
"'tableData.' + scope.$index + '.snHead'"
:rules=
"[
{ required: true, message: '请输入设备号开头编码', trigger: 'blur'}]">
<el-input
v-model=
"scope.row.snHead"
size=
"small"
></el-input>
<el-input
v-model=
"scope.row.snHead"
size=
"small"
maxlength=
"10"
></el-input>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
...
src/views/orderManage/assignOrder.vue
View file @
61422b4
...
@@ -319,16 +319,15 @@ export default {
...
@@ -319,16 +319,15 @@ export default {
*/
*/
exportInfo
:
function
()
{
exportInfo
:
function
()
{
const
_this
=
this
const
_this
=
this
const
_data
=
_this
.
getParams
()
const
oParams
=
_this
.
getParams
()
const
params
=
{
fileName
:
'订单列表'
}
params
.
url
=
EXPORTSPORDER
params
.
method
=
'post'
params
.
data
=
_data
params
.
success
=
function
()
{
_this
.
exportLoading
=
false
}
_this
.
exportLoading
=
true
_this
.
exportLoading
=
true
exportExcel
(
params
)
EXPORTSPORDER
(
oParams
)
.
then
((
res
)
=>
{
_this
.
exportLoading
=
false
})
.
catch
((
error
)
=>
{
_this
.
exportLoading
=
false
})
},
},
/**
/**
...
...
src/views/orderManage/assignShipment.vue
View file @
61422b4
<
template
>
<
template
>
<div>
<div>
<glsx-dialog
:show=
"show"
width=
"
6
0%"
title=
"分配发货"
usefooter
@
closed=
"cancel"
>
<glsx-dialog
:show=
"show"
width=
"
8
0%"
title=
"分配发货"
usefooter
@
closed=
"cancel"
>
<el-form
ref=
"assignShipmentFrom"
:model=
"form"
:rules=
"formRules"
label-width=
"110px"
>
<el-form
ref=
"assignShipmentFrom"
:model=
"form"
:rules=
"formRules"
label-width=
"110px"
>
<el-form-item
label=
"是否扫码"
>
<el-form-item
label=
"是否扫码"
>
<el-radio
v-model=
"form.deviceScanType"
label=
"Y"
:disabled=
"disabled_need"
>
需扫码
</el-radio>
<el-radio
v-model=
"form.deviceScanType"
label=
"Y"
:disabled=
"disabled_need"
>
需扫码
</el-radio>
...
@@ -105,25 +105,26 @@
...
@@ -105,25 +105,26 @@
</div>
</div>
</div>
</div>
<br
/>
<br
/>
<
div
v-if=
"showCarInfo"
>
<
!-- <div v-if="showCarInfo"> --
>
<h3>
车辆信息:
</h3>
<h3>
车辆信息:
</h3>
<div
class=
"table_box"
>
<div
class=
"table_box"
>
<el-table
v-loading=
"tableLoading"
:data=
"carList"
stripe
style=
"width: 100%"
border
>
<el-table
v-loading=
"tableLoading"
:data=
"carList"
stripe
style=
"width: 100%"
border
>
<el-table-column
prop=
"bsParentBrandName"
label=
"品牌"
width=
"100"
/>
<el-table-column
prop=
"bsParentBrandName"
label=
"品牌"
width=
"100"
/>
<el-table-column
prop=
"bsSubBrandName"
label=
"子品牌"
:width=
"car_tdWidth"
/>
<el-table-column
prop=
"bsSubBrandName"
label=
"子品牌"
:width=
"car_tdWidth"
/>
<el-table-column
prop=
"bsAudiName"
label=
"车系"
:width=
"car_tdWidth"
/>
<el-table-column
prop=
"bsAudiName"
label=
"车系"
:width=
"car_tdWidth"
/>
<el-table-column
prop=
"bsMotorcycle"
label=
"车型"
style=
"width: 100%
"
/>
<el-table-column
prop=
"bsMotorcycle"
label=
"车型"
width=
"200
"
/>
<el-table-column
prop=
"bsMotorHmdName"
label=
"高中低配"
width=
"
10
0"
/>
<el-table-column
prop=
"bsMotorHmdName"
label=
"高中低配"
width=
"
8
0"
/>
<el-table-column
prop=
"bsRemark"
label=
"车价/颜色/备注"
width=
"1
6
0"
/>
<el-table-column
prop=
"bsRemark"
label=
"车价/颜色/备注"
width=
"1
2
0"
/>
<el-table-column
prop=
"bsCheckMaterialName"
label=
"审核物料"
width=
"1
6
0"
>
<el-table-column
prop=
"bsCheckMaterialName"
label=
"审核物料"
width=
"1
7
0"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
bsCheckMaterialCode
+
'/'
+
row
.
bsCheckMaterialName
}}
</
template
>
<
template
slot-scope=
"{row}"
>
{{
row
.
bsCheckMaterialCode
+
'/'
+
row
.
bsCheckMaterialName
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"bsCheckQuantity"
label=
"审核数量"
width=
"1
2
0"
/>
<el-table-column
prop=
"bsCheckQuantity"
label=
"审核数量"
width=
"1
0
0"
/>
<el-table-column
prop=
"bsCheckMaterialName"
label=
"分配实发物料"
width=
"1
6
0"
v-if=
"info.deviceScanType == 'Y'"
>
<el-table-column
prop=
"bsCheckMaterialName"
label=
"分配实发物料"
width=
"1
7
0"
v-if=
"info.deviceScanType == 'Y'"
>
<
template
slot-scope=
"{row}"
>
<
template
slot-scope=
"{row}"
>
<el-select
v-model=
"row.sendMaterialCode"
filterable
>
<el-select
v-model=
"row.sendMaterialCode"
filterable
>
<el-option
v-for=
"(k,idx) in list"
:key=
"idx"
:value=
"k.attribCode"
:label=
"k.attribCode +'/'+ k.attribName"
></el-option>
<el-option
v-for=
"(k,idx) in list"
:key=
"idx"
:value=
"k.attribCode"
:label=
"k.attribCode +'/'+ k.attribName"
></el-option>
</el-select>
</el-select>
<div
class=
"warningFont"
>
{{
judageMater
(
row
.
sendMaterialCode
)
}}
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"fastenConfigDesc"
label=
"固定配置"
width=
"200"
>
<el-table-column
prop=
"fastenConfigDesc"
label=
"固定配置"
width=
"200"
>
...
@@ -139,7 +140,7 @@
...
@@ -139,7 +140,7 @@
</el-table>
</el-table>
</div>
</div>
<
/div
>
<
!-- </div> --
>
<!-- 附件信息 开始 -->
<!-- 附件信息 开始 -->
<h3>
附件信息:
</h3>
<h3>
附件信息:
</h3>
...
@@ -403,8 +404,8 @@ export default {
...
@@ -403,8 +404,8 @@ export default {
],
],
},
},
fileList
:[]
fileList
:[]
,
materialFlag
:
false
}
}
},
},
created
()
{},
created
()
{},
...
@@ -646,21 +647,23 @@ export default {
...
@@ -646,21 +647,23 @@ export default {
const
{
data
}
=
res
const
{
data
}
=
res
data
.
map
((
k
)
=>
{
data
.
map
((
k
)
=>
{
k
.
sendMaterialCode
=
_this
.
radio
// k.sendMaterialCode = _this.radio
k
.
sendMaterialCode
=
k
.
bsCheckMaterialCode
})
})
_this
.
carList
=
data
||
[]
_this
.
carList
=
data
||
[]
if
(
_this
.
carList
.
length
>
0
)
{
//
if (_this.carList.length > 0) {
for
(
var
key
in
_this
.
carList
)
{
//
for (var key in _this.carList) {
if
(
_this
.
carList
[
key
].
bsParentBrandId
)
{
//
if (_this.carList[key].bsParentBrandId) {
this
.
showCarInfo
=
true
//
this.showCarInfo = true
break
//
break
}
//
}
}
//
}
}
else
{
//
} else {
this
.
showCarInfo
=
false
//
this.showCarInfo = false
}
//
}
})
})
},
},
...
@@ -697,13 +700,25 @@ export default {
...
@@ -697,13 +700,25 @@ export default {
return
false
return
false
}
}
if
(
!
this
.
materialFlag
){
this
.
$message
({
message
:
'请选择物料选项里存在的物料!'
,
type
:
'error'
,
duration
:
2000
,
center
:
true
,
})
return
false
}
let
checkRadio
=
_this
.
list
.
find
((
k
)
=>
{
let
checkRadio
=
_this
.
list
.
find
((
k
)
=>
{
return
k
.
attribCode
==
_this
.
radio
return
k
.
attribCode
==
_this
.
radio
})
})
if
(
_this
.
form
.
deviceScanType
==
'Y'
&&
!
checkRadio
)
{
if
(
_this
.
form
.
deviceScanType
==
'Y'
&&
!
checkRadio
)
{
if
(
!
_this
.
carList
||
_this
.
carList
.
length
==
0
){
//无车型情况下必选
//未选择物料
//未选择物料
_this
.
showMaterialCodeError
=
true
_this
.
showMaterialCodeError
=
true
return
false
return
false
}
}
else
{
}
else
{
_this
.
showMaterialCodeError
=
false
_this
.
showMaterialCodeError
=
false
}
}
...
@@ -802,6 +817,40 @@ export default {
...
@@ -802,6 +817,40 @@ export default {
let
obj
=
res
.
data
||
{}
let
obj
=
res
.
data
||
{}
this
.
fileList
=
obj
.
listDto
||
[]
this
.
fileList
=
obj
.
listDto
||
[]
})
})
},
// nextStep(){
// let isPass = this.judageMater();
// if(!isPass){
// return
// }
// },
// 判断车型审核物料是否在现有物料列表里
judageMater
(
code
){
let
list
=
this
.
list
;
let
m
=
list
.
findIndex
(
k
=>
k
.
attribCode
==
code
);
let
arr
=
[];
this
.
carList
.
map
(
k
=>
{
let
o
=
list
.
findIndex
(
kk
=>
kk
.
attribCode
==
code
);
if
(
o
<
0
){
arr
.
push
(
code
)
}
})
if
(
arr
.
length
>
0
){
this
.
materialFlag
=
false
}
else
{
this
.
materialFlag
=
true
}
if
(
m
<
0
){
//this.arr.push(code)
return
`物料
${
code
}
不存在`
}
}
}
},
},
...
...
src/views/orderManage/detail.vue
View file @
61422b4
...
@@ -20,8 +20,8 @@
...
@@ -20,8 +20,8 @@
<el-table-column
prop=
"updatedDate"
label=
"发货时间"
show-overflow-tooltip
v-if=
"ndScan == 'N' || ndScan == 'D'"
>
<el-table-column
prop=
"updatedDate"
label=
"发货时间"
show-overflow-tooltip
v-if=
"ndScan == 'N' || ndScan == 'D'"
>
<
template
slot-scope=
"scope"
>
{{
DATEFORMATE
(
scope
.
row
.
updatedDate
,
'YYYY-MM-DD'
)
}}
</
template
>
<
template
slot-scope=
"scope"
>
{{
DATEFORMATE
(
scope
.
row
.
updatedDate
,
'YYYY-MM-DD'
)
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"logisticsCompany"
label=
"物流公司"
show-overflow-tooltip
:width=
"tdWidth"
v-if=
"ndScan == 'N' || ndScan == 'D'"
/>
<el-table-column
prop=
"logisticsCompany"
label=
"物流公司"
show-overflow-tooltip
:width=
"tdWidth"
/>
<el-table-column
prop=
"logisticsNum"
label=
"物流单号"
show-overflow-tooltip
:width=
"tdWidth"
v-if=
"ndScan == 'N' || ndScan == 'D'"
/>
<el-table-column
prop=
"logisticsNum"
label=
"物流单号"
show-overflow-tooltip
:width=
"tdWidth"
/>
<el-table-column
prop=
"sendQulities"
label=
"发货数量"
width=
"80"
v-if=
"ndScan == 'N' || ndScan == 'D'"
/>
<el-table-column
prop=
"sendQulities"
label=
"发货数量"
width=
"80"
v-if=
"ndScan == 'N' || ndScan == 'D'"
/>
<!-- <el-table-column prop="sendQulities" label="发货物流">
<!-- <el-table-column prop="sendQulities" label="发货物流">
<template slot-scope="{row}">
<template slot-scope="{row}">
...
...
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