Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tianjin
Project
Project
Details
Activity
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
徐来柯
tianjin
Commits
448cfd1f
Commit
448cfd1f
authored
Jan 11, 2021
by
徐来柯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 产品管理 api对接
parent
9ef08298
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
131 additions
and
41 deletions
+131
-41
BomPop.vue
src/views/education/component/BomPop.vue
+7
-1
head.vue
src/views/education/component/head.vue
+48
-5
linePop.vue
src/views/education/component/linePop.vue
+26
-9
materielPop.vue
src/views/education/component/materielPop.vue
+5
-1
materiel.vue
src/views/education/materiel.vue
+1
-1
productManage.vue
src/views/education/productManage.vue
+41
-21
technology.vue
src/views/education/technology.vue
+2
-2
vue.config.js
vue.config.js
+1
-1
No files found.
src/views/education/component/BomPop.vue
View file @
448cfd1f
...
...
@@ -61,6 +61,12 @@
<template
slot-scope=
"scope"
>
<el-input
v-model=
"scope.row.Quantity"
placeholder=
"请输入内容"
></el-input>
</
template
>
</el-table-column>
<el-table-column
prop=
"Prounit"
label=
"单位"
:show-overflow-tooltip=
"true"
>
</el-table-column>
<el-table-column
label=
"操作"
>
...
...
@@ -144,13 +150,13 @@ export default {
url
:
`/api/Product/Product_WindowBomQuery?argID=
${
this
.
id
}
`
,
}).
then
((
res
)
=>
{
this
.
tableData
=
res
.
data
.
data
console
.
log
(
'bomRes==>'
,
this
.
tableData
)
}).
catch
(
function
(
err
){
console
.
log
(
'err'
,
err
)
})
},
//添加值
dataFun
(
data
){
debugger
for
(
let
i
=
0
;
i
<
this
.
tableData
.
length
;
i
++
){
if
(
this
.
tableData
[
i
].
BomInfo
.
ID
==
data
.
BomID
){
this
.
tableData
[
i
].
BomMaterielInfos
.
push
(
data
)
...
...
src/views/education/component/head.vue
View file @
448cfd1f
...
...
@@ -20,18 +20,18 @@
</div>
<div
v-if=
"type==='10' || type=== '11' || type === '12' || type === '8'"
class=
"select"
>
<span>
查询条件:
</span>
<el-select
class=
"selectName"
v-model=
"
valu
e"
placeholder=
"请选择"
>
<el-select
class=
"selectName"
v-model=
"
argWher
e"
placeholder=
"请选择"
>
<el-option
v-for=
"item in productNameArr"
:key=
"item.name"
:label=
"item.
name
"
:label=
"item.
id
"
:value=
"item.name"
>
</el-option>
</el-select>
</div>
<div
v-if=
"type==='10' ||type === '12' || type ==='8'"
class=
"dateTimer"
>
<el-date-picker
class=
"selectName"
class=
"selectName"
v-model=
"dateValue"
type=
"datetimerange"
start-placeholder=
"开始日期"
...
...
@@ -42,7 +42,10 @@
<div
class=
"input"
>
<el-input
type=
"text"
@
input=
"inputchargeFun()"
v-model=
"input"
:placeholder=
"placeText"
></el-input>
</div>
<div
class=
"bottom"
@
click=
"query()"
>
查询
</div>
<div>
<div
v-if=
"type=== '10'"
class=
"bottom"
@
click=
"searchQuery"
>
查询
</div>
<div
class=
"bottom"
v-else
@
click=
"query()"
>
查询
</div>
</div>
<div
v-if=
"type == 9"
class=
"add xy"
>
<span
class=
"addText"
>
导入
</span>
</div>
...
...
@@ -81,6 +84,7 @@ export default {
headText
:
'产品名称'
,
dateValue
:
[
moment
().
format
(
'YYYY-MM-DD 00:00:00'
),
moment
().
format
(
'YYYY-MM-DD 23:59:59'
)],
value
:
'不限'
,
argWhere
:
' '
,
}
},
...
...
@@ -94,7 +98,35 @@ export default {
this
.
placeText
=
'请输入关键字'
this
.
headText
=
'设备名称'
}
else
if
(
this
.
type
===
'10'
||
this
.
type
===
'11'
||
this
.
type
===
'12'
){
this
.
placeText
=
'请输入关键字'
this
.
placeText
=
'请输入关键字'
if
(
this
.
type
===
'10'
)
{
this
.
productNameArr
=
[
{
id
:
'不限'
,
name
:
' '
},
{
id
:
'产品编号'
,
name
:
'产品编号'
},
{
id
:
'产品名称'
,
name
:
'产品名称'
},
{
id
:
'产品描述'
,
name
:
'产品描述'
},
{
id
:
'产品工艺'
,
name
:
'产品工艺'
},
{
id
:
'最近修改时间'
,
name
:
'最近修改时间'
},
]
}
}
else
{
this
.
placeText
=
'请输入名称'
}
...
...
@@ -106,6 +138,7 @@ export default {
},
//查询
query
(){
for
(
let
i
=
0
;
i
<
this
.
productNameArr
.
length
;
i
++
){
if
(
this
.
value
==
this
.
productNameArr
[
i
].
name
){
this
.
argID
=
this
.
productNameArr
[
i
].
id
...
...
@@ -114,6 +147,16 @@ export default {
}
this
.
$parent
.
query
()
},
searchQuery
()
{
var
postData
=
{
argKeyWord
:
this
.
input
,
argWhere
:
this
.
argWhere
,
Stime
:
this
.
dateValue
?
moment
(
this
.
dateValue
[
0
]).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
,
Etime
:
this
.
dateValue
?
moment
(
this
.
dateValue
[
1
]).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
}
this
.
$emit
(
'searchQuery'
,
postData
)
},
//删除
deleteFun
(){
this
.
$parent
.
deletePop
()
...
...
src/views/education/component/linePop.vue
View file @
448cfd1f
...
...
@@ -17,6 +17,12 @@
<span>
{{
name
}}
编号:
</span>
<input
v-model=
"modelV"
class=
"nameipt"
/>
</div>
<div
v-if=
"type==2"
class=
"name"
style=
"margin-top:10px"
>
<span>
{{
name
}}
编号:
</span>
<input
v-model=
"CellNuber"
class=
"nameipt"
/>
</div>
<div
v-if=
"type != 6"
class=
"name"
style=
"margin-top:10px"
>
<span>
{{
name
}}
名称:
</span>
<input
v-model=
"nameV"
class=
"nameipt"
/>
...
...
@@ -73,12 +79,12 @@
<div
v-if=
"type == 5"
style=
"margin-top:20px"
class=
"name"
>
<span>
{{
name
}}
描述:
</span>
<input
v-model=
"
describeV
"
class=
"nameipt"
/>
<input
v-model=
"
prodescribe
"
class=
"nameipt"
/>
</div>
<div
v-if=
"type == 5"
style=
"margin-top:20px"
class=
"name"
>
<span>
单位:
</span>
<input
v-model=
"unit"
class=
"nameipt"
/>
<input
v-model=
"
pro
unit"
class=
"nameipt"
/>
</div>
<div
v-if=
"type == 5"
style=
"margin-top:10px"
class=
"name"
>
...
...
@@ -99,7 +105,7 @@
<div
v-if=
"type == 4"
style=
"margin-top:10px"
class=
"name"
>
<span>
单位:
</span>
<input
v-model=
"
unit
"
class=
"nameipt"
/>
<input
v-model=
"
Company
"
class=
"nameipt"
/>
</div>
<div
v-if=
"type == 6"
class=
"name2"
style=
"margin:15px auto"
>
...
...
@@ -197,6 +203,8 @@ export default {
numberV2
:
''
,
//编号2
modelV
:
''
,
//型号
describeV
:
''
,
//描述
prodescribe
:
''
,
//type === 5 产品描述
prounit
:
''
,
//type ===5 单位
// num:1, //数量
dNum
:
''
,
//订单数量
dtatime
:
''
,
//交货日期
...
...
@@ -205,7 +213,9 @@ export default {
lineValue
:
''
,
editDataArr
:[],
istech
:
false
,
//适用工艺
planNo
:
''
planNo
:
''
,
CellNuber
:
''
,
//工序编号
Company
:
''
,
//单位
}
},
directives
:
{
...
...
@@ -407,7 +417,11 @@ export default {
//编辑转态
this
.
nameV
=
this
.
data
.
Name
this
.
describeV
=
this
.
data
.
Desc
this
.
prodescribe
=
this
.
data
.
Prodescribe
this
.
prounit
=
this
.
data
.
Prounit
this
.
workValue
=
this
.
data
.
CellName
this
.
CellNuber
=
this
.
data
.
CellNuber
this
.
Company
=
this
.
data
.
Company
this
.
lineValue
=
this
.
data
.
LineName
this
.
numberV
=
this
.
data
.
MID
this
.
modelV
=
this
.
data
.
PID
...
...
@@ -439,7 +453,6 @@ export default {
//保存
conserve
(){
if
(
this
.
typePop
==
'add'
){
debugger
var
guid
=
this
.
guid
()
this
.
edit_Add_dataFun
(
guid
)
this
.
$parent
.
addFun
(
this
.
valuedata
)
...
...
@@ -466,10 +479,12 @@ export default {
if
(
this
.
type
==
1
||
this
.
type
==
2
||
this
.
type
==
4
){
this
.
valuedata
=
{
Name
:
this
.
nameV
,
Desc
:
this
.
describeV
Desc
:
this
.
describeV
,
CellNuber
:
this
.
CellNuber
,
}
if
(
this
.
type
==
4
){
this
.
valuedata
.
MID
=
this
.
numberV
this
.
valuedata
.
Company
=
this
.
Company
}
}
else
if
(
this
.
type
==
3
){
this
.
valuedata
=
{
...
...
@@ -479,9 +494,11 @@ export default {
}
else
if
(
this
.
type
==
5
){
console
.
log
(
'technologyOptions'
,
this
.
technologyOptions
)
this
.
valuedata
=
{
Name
:
this
.
nameV
,
PID
:
this
.
modelV
,
ProcessName
:
this
.
applyValue
ProNumber
:
this
.
modelV
,
//产品编号
Name
:
this
.
nameV
,
//产品名称
prodescribe
:
this
.
prodescribe
,
//产品描述
Prounit
:
this
.
prounit
,
//单位
ProcessName
:
this
.
applyValue
,
}
for
(
let
i
=
0
;
i
<
this
.
technologyOptions
.
length
;
i
++
){
if
(
this
.
valuedata
.
ProcessName
==
this
.
technologyOptions
[
i
].
name
){
...
...
src/views/education/component/materielPop.vue
View file @
448cfd1f
...
...
@@ -161,6 +161,7 @@ export default {
},
//添加
saveFun
(){
debugger
if
(
this
.
number
==
''
||
this
.
value
==
''
){
this
.
typeV
=
'8'
this
.
deleteShow
=
true
...
...
@@ -170,10 +171,12 @@ export default {
var
id
=
this
.
guid
()
var
MaterielID
var
materieNum
var
prounit
for
(
let
i
=
0
;
i
<
this
.
MaterielData
.
length
;
i
++
){
if
(
this
.
value
==
this
.
MaterielData
[
i
].
Name
){
materieNum
=
this
.
MaterielData
[
i
].
MID
MaterielID
=
this
.
MaterielData
[
i
].
ID
prounit
=
this
.
MaterielData
[
i
].
Company
}
}
console
.
log
(
'data=4'
,
this
.
data
.
BomMaterielInfos
)
...
...
@@ -186,7 +189,8 @@ export default {
MaterielID
:
MaterielID
,
MaterielName
:
this
.
value
,
MID
:
materieNum
,
Quantity
:
this
.
number
Quantity
:
this
.
number
,
Prounit
:
prounit
}
this
.
$parent
.
dataFun
(
value
)
this
.
$parent
.
closeFun
()
...
...
src/views/education/materiel.vue
View file @
448cfd1f
...
...
@@ -50,7 +50,7 @@
<el-table-column
label=
"单位"
:show-overflow-tooltip=
"true"
prop=
"
Unit
"
prop=
"
Company
"
width=
"200"
>
</el-table-column>
<el-table-column
...
...
src/views/education/productManage.vue
View file @
448cfd1f
...
...
@@ -8,7 +8,7 @@
<
template
>
<div
class=
"lineBox"
>
<div
class=
"LineCenten"
>
<Head
type=
"10"
></Head>
<Head
type=
"10"
ref=
"head"
@
searchQuery=
"query"
></Head>
<div
class=
"conterFool_middle"
style=
"width:98%;margin:auto"
>
<el-table
border
...
...
@@ -32,23 +32,23 @@
<el-table-column
label=
"产品编号"
:show-overflow-tooltip=
"true"
prop=
"
Name
"
prop=
"
ProNumber
"
width=
"200"
>
</el-table-column>
<el-table-column
prop=
"
PID
"
prop=
"
Name
"
label=
"产品名称"
:show-overflow-tooltip=
"true"
width=
"210"
>
</el-table-column>
<el-table-column
prop=
"
descipipt
"
prop=
"
Prodescribe
"
label=
"产品描述"
:show-overflow-tooltip=
"true"
width=
"210"
>
</el-table-column>
<el-table-column
prop=
"unit"
prop=
"
Pro
unit"
label=
"单位"
:show-overflow-tooltip=
"true"
width=
"210"
>
...
...
@@ -162,14 +162,21 @@ export default {
props
:[],
watch
:{},
created
(){
this
.
query
()
var
postData
=
{
argKeyWord
:
''
,
argWhere
:
''
,
Stime
:
this
.
$moment
().
format
(
'YYYY-MM-DD 00:00:00'
),
Etime
:
this
.
$moment
().
format
(
'YYYY-MM-DD 23:59:59'
)
}
this
.
query
(
postData
)
},
methods
:{
//查询
query
(){
query
(
keyWord
){
var
a
=
keyWord
this
.
$axios
({
method
:
"post"
,
url
:
`/api/Product/Product_Query?argKeyWord=
${
this
.
argKeyWord
}
`
,
url
:
`/api/Product/Product_Query?argKeyWord=
${
keyWord
.
argKeyWord
}
&argWhere=
${
keyWord
.
argWhere
}
&Stime=
${
keyWord
.
Stime
}
&Etime=
${
keyWord
.
Etime
}
`
,
}).
then
((
res
)
=>
{
console
.
log
(
'产品res'
,
res
)
if
(
res
.
data
.
data
.
length
!=
0
){
...
...
@@ -230,6 +237,7 @@ export default {
addFun
(
value
){
let
data
=
value
data
.
UpdateTime
=
value
.
CreateTime
var
$this
=
this
console
.
log
(
'产品管理'
,
data
)
this
.
$axios
({
method
:
"post"
,
...
...
@@ -238,14 +246,20 @@ export default {
}).
then
((
res
)
=>
{
console
.
log
(
'添加产品'
,
res
)
if
(
res
.
data
.
code
!=
0
){
this
.
typeV
=
'5'
this
.
deleteShow
=
true
$
this
.
typeV
=
'5'
$
this
.
deleteShow
=
true
}
else
{
this
.
typeV
=
'6'
this
.
cancelFun
()
$
this
.
typeV
=
'6'
$
this
.
cancelFun
()
}
this
.
deletetext
=
res
.
data
.
msg
this
.
query
()
$this
.
deletetext
=
res
.
data
.
msg
var
postData
=
{
argKeyWord
:
$this
.
$refs
.
input
,
argWhere
:
$this
.
$refs
.
argWhere
,
Stime
:
$this
.
$refs
.
dateValue
?
$this
.
moment
(
this
.
dateValue
[
0
]).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
,
Etime
:
$this
.
$refs
.
dateValue
?
$this
.
moment
(
this
.
dateValue
[
1
]).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
}
$this
.
query
(
postData
)
}).
catch
(
function
(
err
){
console
.
log
(
'err'
,
err
)
})
...
...
@@ -254,20 +268,27 @@ export default {
A_editFun
(
value
){
let
data
=
value
data
.
UpdateTime
=
value
.
CreateTime
var
$this
=
this
this
.
$axios
({
method
:
"post"
,
url
:
`/api/Product/Product_WindowEditSave`
,
data
:
data
}).
then
((
res
)
=>
{
if
(
res
.
data
.
code
!=
0
){
this
.
typeV
=
'5'
this
.
deleteShow
=
true
$
this
.
typeV
=
'5'
$
this
.
deleteShow
=
true
}
else
{
this
.
typeV
=
'6'
this
.
cancelFun
()
$
this
.
typeV
=
'6'
$
this
.
cancelFun
()
}
this
.
deletetext
=
res
.
data
.
msg
this
.
query
()
$this
.
deletetext
=
res
.
data
.
msg
var
postData
=
{
argKeyWord
:
$this
.
$refs
.
input
,
argWhere
:
$this
.
$refs
.
argWhere
,
Stime
:
$this
.
$refs
.
dateValue
?
$this
.
$moment
(
this
.
dateValue
[
0
]).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
,
Etime
:
$this
.
$refs
.
dateValue
?
$this
.
$moment
(
this
.
dateValue
[
1
]).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
}
$this
.
query
(
postData
)
}).
catch
(
function
(
err
){
console
.
log
(
'err'
,
err
)
})
...
...
@@ -455,7 +476,6 @@ export default {
},
//bom弹窗
BomFun
(
item
){
console
.
log
(
'item'
,
item
)
this
.
BomShow
=
true
this
.
BomData
=
item
},
...
...
src/views/education/technology.vue
View file @
448cfd1f
...
...
@@ -33,7 +33,7 @@
label=
"工艺编号"
:show-overflow-tooltip=
"true"
width=
"185"
prop=
"Nu
m
"
>
prop=
"Nu
ber
"
>
</el-table-column>
<el-table-column
label=
"工艺名称"
...
...
@@ -44,7 +44,7 @@
<el-table-column
label=
"工艺描述"
:show-overflow-tooltip=
"true"
prop=
"
describe
"
prop=
"
Desc
"
width=
"300"
>
</el-table-column>
<el-table-column
...
...
vue.config.js
View file @
448cfd1f
...
...
@@ -23,7 +23,7 @@ module.exports = {
proxy
:
{
'/api'
:
{
//这里最好有一个 /
target
:
'http://192.168.1.1
64
:8802'
,
// 后台接口域名
target
:
'http://192.168.1.1
25
:8802'
,
// 后台接口域名
ws
:
true
,
//如果要代理 websockets,配置这个参数
secure
:
false
,
// 如果是https接口,需要配置这个参数
changeOrigin
:
true
,
//是否跨域
...
...
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