Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
周远喜
mes-ui
Commits
f94fa56e
Commit
f94fa56e
authored
Apr 13, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报价单bug
parent
094fd58a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
76 additions
and
78 deletions
+76
-78
metalQuotationGeneration.vue
...s/order/quotation/components/metalQuotationGeneration.vue
+1
-1
photosensitiveGeneration.vue
...s/order/quotation/components/photosensitiveGeneration.vue
+73
-75
index.vue
pages/order/quotation/index.vue
+2
-2
No files found.
pages/order/quotation/components/metalQuotationGeneration.vue
View file @
f94fa56e
...
@@ -247,7 +247,7 @@ export default {
...
@@ -247,7 +247,7 @@ export default {
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
success
)
{
if
(
res
.
success
)
{
this
.
$Message
.
success
(
'订单报价送审成功!'
)
this
.
$Message
.
success
(
'订单报价送审成功!'
)
this
.
$emit
(
'on-close'
)
this
.
$emit
(
"update"
)
this
.
modalShow
=
false
this
.
modalShow
=
false
this
.
easySearch
(
''
)
this
.
easySearch
(
''
)
}
else
{
}
else
{
...
...
pages/order/quotation/components/photosensitiveGeneration.vue
View file @
f94fa56e
...
@@ -105,9 +105,9 @@
...
@@ -105,9 +105,9 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Process
from
'@/components/orderOperator/process'
import
Process
from
"@/components/orderOperator/process"
;
export
default
{
export
default
{
name
:
''
,
name
:
""
,
components
:
{
components
:
{
Process
Process
},
},
...
@@ -118,149 +118,147 @@ export default {
...
@@ -118,149 +118,147 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
model1
:
''
,
model1
:
""
,
modalShow
:
false
,
modalShow
:
false
,
columns
:
[
columns
:
[
{
{
title
:
'序号'
,
title
:
"序号"
,
type
:
'index'
,
type
:
"index"
,
width
:
50
,
width
:
50
,
align
:
'center'
align
:
"center"
},
},
{
{
title
:
'订单编号'
,
title
:
"订单编号"
,
key
:
'mesCode'
,
key
:
"mesCode"
,
align
:
'center'
,
align
:
"center"
,
minWidth
:
120
minWidth
:
120
},
},
{
{
title
:
'产品名称'
,
title
:
"产品名称"
,
key
:
'productName'
,
key
:
"productName"
,
align
:
'center'
,
align
:
"center"
,
minWidth
:
80
minWidth
:
80
},
},
{
{
title
:
'重量(g)'
,
title
:
"重量(g)"
,
key
:
'materialWeight'
,
key
:
"materialWeight"
,
align
:
'center'
,
align
:
"center"
,
minWidth
:
80
minWidth
:
80
},
},
{
{
title
:
'单价(元/g)'
,
title
:
"单价(元/g)"
,
key
:
'materialUnitPrice'
,
key
:
"materialUnitPrice"
,
align
:
'center'
,
align
:
"center"
,
minWidth
:
80
minWidth
:
80
},
},
{
{
title
:
'3D打印费'
,
title
:
"3D打印费"
,
key
:
'printPrice'
,
key
:
"printPrice"
,
align
:
'center'
,
align
:
"center"
,
minWidth
:
60
minWidth
:
60
},
},
{
{
title
:
'尺寸检测费'
,
title
:
"尺寸检测费"
,
key
:
'sizeCheckPrice'
,
key
:
"sizeCheckPrice"
,
align
:
'center'
,
align
:
"center"
,
minWidth
:
60
minWidth
:
60
},
},
{
{
title
:
'单价(元)'
,
title
:
"单价(元)"
,
key
:
'unitPrice'
,
key
:
"unitPrice"
,
align
:
'center'
,
align
:
"center"
,
minWidth
:
80
minWidth
:
80
},
},
{
{
title
:
'数量'
,
title
:
"数量"
,
key
:
'num'
,
key
:
"num"
,
align
:
'center'
,
align
:
"center"
,
minWidth
:
80
minWidth
:
80
},
},
{
{
title
:
'价格(元)'
,
title
:
"价格(元)"
,
key
:
'unitPrice'
,
key
:
"unitPrice"
,
align
:
'center'
,
align
:
"center"
,
minWidth
:
80
minWidth
:
80
},
},
{
{
title
:
'备注'
,
title
:
"备注"
,
key
:
'itemremark'
,
key
:
"itemremark"
,
align
:
'center'
,
align
:
"center"
,
minWidth
:
60
minWidth
:
60
}
}
],
],
dataTable
:
[],
dataTable
:
[],
dataListRetrunNew
:
{
dataListRetrunNew
:
{
schemaId
:
'cf192e27-1e81-4000-98ee-392eeb539616'
,
//订单报价的schemaId
schemaId
:
"cf192e27-1e81-4000-98ee-392eeb539616"
,
//订单报价的schemaId
idList
:
[],
//订单id List
idList
:
[],
//订单id List
codeList
:
[],
//订单编号List
codeList
:
[],
//订单编号List
operatorIdList
:
[]
//操作员id
operatorIdList
:
[]
//操作员id
}
//确定后返回数据
}
//确定后返回数据
}
}
;
},
},
created
()
{},
created
()
{},
methods
:
{
methods
:
{
submitCensorship
()
{
submitCensorship
()
{
//alert(JSON.stringify(this.childData))
//alert(JSON.stringify(this.childData))
this
.
dataListRetrunNew
.
idList
=
[]
this
.
dataListRetrunNew
.
idList
=
[]
;
this
.
dataListRetrunNew
.
codeList
=
[]
this
.
dataListRetrunNew
.
codeList
=
[]
;
this
.
dataListRetrunNew
.
operatorIdList
=
[]
this
.
dataListRetrunNew
.
operatorIdList
=
[]
;
this
.
dataListRetrunNew
.
idList
.
push
(
this
.
childData
.
result
[
0
].
quotationId
)
this
.
dataListRetrunNew
.
idList
.
push
(
this
.
childData
.
result
[
0
].
quotationId
)
;
this
.
dataListRetrunNew
.
codeList
.
push
(
this
.
childData
.
result
[
0
].
code
)
this
.
dataListRetrunNew
.
codeList
.
push
(
this
.
childData
.
result
[
0
].
code
)
;
let
ues
=
this
.
$refs
.
userProcess
let
ues
=
this
.
$refs
.
userProcess
;
this
.
dataListRetrunNew
.
operatorIdList
=
ues
.
immutData
this
.
dataListRetrunNew
.
operatorIdList
=
ues
.
immutData
;
// alert('photo__' + JSON.stringify(this.dataListRetrunNew))
// alert('photo__' + JSON.stringify(this.dataListRetrunNew))
this
.
$http
.
order
this
.
$http
.
order
.
batchstart
(
this
.
dataListRetrunNew
).
then
(
res
=>
{
.
batchstart
(
this
.
dataListRetrunNew
)
.
then
((
res
)
=>
{
if
(
res
.
success
)
{
if
(
res
.
success
)
{
this
.
$Message
.
success
(
'订单报价送审成功!'
)
this
.
$Message
.
success
(
"订单报价送审成功!"
);
this
.
$emit
(
'on-close'
)
this
.
$emit
(
"update"
);
this
.
easySearch
(
''
)
this
.
easySearch
(
""
);
this
.
modalShow
=
false
this
.
modalShow
=
false
;
}
else
{
}
else
{
this
.
$Message
.
error
(
'订单报价送审失败!'
)
this
.
$Message
.
error
(
"订单报价送审失败!"
);
}
}
})
});
// .catch((error) => {
// .catch((error) => {
// this.$Message.error('送审失败')
// this.$Message.error('送审失败')
// })
// })
},
},
//老的报价
//老的报价
submitCensorship1
()
{
submitCensorship1
()
{
var
str
=
''
var
str
=
""
;
this
.
childData
.
result
.
forEach
(
(
element
)
=>
{
this
.
childData
.
result
.
forEach
(
element
=>
{
console
.
log
(
element
.
orderId
)
console
.
log
(
element
.
orderId
)
;
str
+=
element
.
orderId
+
','
str
+=
element
.
orderId
+
","
;
})
})
;
str
=
str
.
substr
(
0
,
str
.
length
-
1
)
str
=
str
.
substr
(
0
,
str
.
length
-
1
)
;
var
data
=
{
var
data
=
{
id
:
this
.
childData
.
result
[
0
].
quotationId
,
id
:
this
.
childData
.
result
[
0
].
quotationId
,
auditUser
:
this
.
model1
,
auditUser
:
this
.
model1
,
orderIds
:
str
,
orderIds
:
str
,
status
:
2
status
:
2
}
}
;
var
url
=
`
${
PlanUrl
}
/quotationmain/submit`
var
url
=
`
${
PlanUrl
}
/quotationmain/submit`
;
this
.
$api
this
.
$api
.
post
(
url
,
data
)
.
post
(
url
,
data
)
.
then
((
res
)
=>
{
.
then
(
res
=>
{
this
.
$Message
.
success
(
'送审成功'
)
this
.
$Message
.
success
(
"送审成功"
);
})
.
catch
((
error
)
=>
{
this
.
$Message
.
error
(
'送审失败'
)
})
})
.
catch
(
error
=>
{
this
.
$Message
.
error
(
"送审失败"
);
});
},
},
previousStep
()
{
previousStep
()
{
this
.
modalShow
=
false
this
.
modalShow
=
false
;
}
}
}
}
}
}
;
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
...
...
pages/order/quotation/index.vue
View file @
f94fa56e
...
@@ -126,8 +126,8 @@
...
@@ -126,8 +126,8 @@
<Metal-Details
ref=
"metalDetail"
:resultDetils=
"resultDetils"
></Metal-Details>
<Metal-Details
ref=
"metalDetail"
:resultDetils=
"resultDetils"
></Metal-Details>
<Photosensitive-Details
ref=
"photosensitiveDetail"
:resultDetils=
"resultDetils"
></Photosensitive-Details>
<Photosensitive-Details
ref=
"photosensitiveDetail"
:resultDetils=
"resultDetils"
></Photosensitive-Details>
<!-- 报价记录里送审 -->
<!-- 报价记录里送审 -->
<MetalQuotation-Generation
ref=
"metalQuotationExamine"
:childData=
"zPhotosensitive"
></MetalQuotation-Generation>
<MetalQuotation-Generation
ref=
"metalQuotationExamine"
:childData=
"zPhotosensitive"
@
update=
"update"
></MetalQuotation-Generation>
<Photosensitive-Generation
ref=
"photosensitiveExamine"
:childData=
"zPhotosensitive"
></Photosensitive-Generation>
<Photosensitive-Generation
ref=
"photosensitiveExamine"
:childData=
"zPhotosensitive"
@
update=
"update"
></Photosensitive-Generation>
</Layout>
</Layout>
</
template
>
</
template
>
...
...
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