Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NLT-e-cigarette
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
张伯涛
NLT-e-cigarette
Commits
088795c9
Commit
088795c9
authored
Jun 17, 2022
by
11528
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据字典接口
parent
16adb169
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
470 additions
and
56 deletions
+470
-56
repairRecord.js
src/api/repairRecord.js
+10
-0
workOrder.vue
src/views/ProductionProcess/workOrder.vue
+3
-3
ModelDetails.vue
src/views/productionInfo/ModelDetails.vue
+4
-7
Station.vue
src/views/productionInfo/Station.vue
+4
-7
badDefinition.vue
src/views/productionInfo/badDefinition.vue
+24
-29
repairRecord.vue
src/views/repair/repairRecord.vue
+421
-3
index.vue
src/views/system/device/index.vue
+4
-7
No files found.
src/api/repairRecord.js
0 → 100644
View file @
088795c9
import
request
from
'@/utils/request'
// 查询维修列表
export
function
listRepairRecord
(
query
)
{
return
request
({
url
:
'/nltmaintain/queryNltMaintainByPagination'
,
method
:
'get'
,
params
:
query
})
}
src/views/ProductionProcess/workOrder.vue
View file @
088795c9
...
@@ -631,11 +631,11 @@ export default {
...
@@ -631,11 +631,11 @@ export default {
*/
*/
getStatus
(
status
)
{
getStatus
(
status
)
{
switch
(
status
)
{
switch
(
status
)
{
case
'0'
:
case
0
:
return
'待开工'
return
'待开工'
case
'1'
:
case
1
:
return
'已开工'
return
'已开工'
case
'2'
:
case
2
:
return
'已结束'
return
'已结束'
}
}
},
},
...
...
src/views/productionInfo/ModelDetails.vue
View file @
088795c9
...
@@ -374,7 +374,7 @@
...
@@ -374,7 +374,7 @@
<
script
>
<
script
>
import
{
listMaterial
}
from
'@/api/material'
import
{
listMaterial
}
from
'@/api/material'
import
{
listStation
}
from
'@/api/station'
import
{
listStation
}
from
'@/api/station'
import
{
listData
}
from
'@/api/system/dict/data'
import
{
getDicts
}
from
'@/api/system/dict/data'
import
{
nltmodelAdd
,
nltmodelDetail
,
nltmodelUpdate
,
nltordermodelDetail
,
nltordermodelUpdate
}
from
'@/api/productionInfo'
import
{
nltmodelAdd
,
nltmodelDetail
,
nltmodelUpdate
,
nltordermodelDetail
,
nltordermodelUpdate
}
from
'@/api/productionInfo'
export
default
{
export
default
{
name
:
'ModelDetails'
,
name
:
'ModelDetails'
,
...
@@ -547,12 +547,9 @@ export default {
...
@@ -547,12 +547,9 @@ export default {
},
},
listData
()
{
listData
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
const
params
=
{
const
params
=
'modelType'
dictType
:
'modelType'
,
getDicts
(
params
).
then
(
res
=>
{
flag
:
'1'
this
.
modelOption
=
res
.
data
}
listData
(
params
).
then
(
res
=>
{
this
.
modelOption
=
res
.
rows
resolve
()
resolve
()
}).
catch
(
_
=>
{
}).
catch
(
_
=>
{
reject
()
reject
()
...
...
src/views/productionInfo/Station.vue
View file @
088795c9
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
listData
}
from
'@/api/system/dict/data'
import
{
getDicts
}
from
'@/api/system/dict/data'
import
{
changeStaStatus
,
addStation
,
delStation
,
getStation
,
listStation
,
updateStation
}
from
'@/api/station'
import
{
changeStaStatus
,
addStation
,
delStation
,
getStation
,
listStation
,
updateStation
}
from
'@/api/station'
export
default
{
export
default
{
...
@@ -407,12 +407,9 @@ export default {
...
@@ -407,12 +407,9 @@ export default {
},
},
/** 获取数据字典方法 **/
/** 获取数据字典方法 **/
getDictFun
()
{
getDictFun
()
{
const
params
=
{
const
params
=
'stationType'
dictType
:
'stationType'
,
getDicts
(
params
).
then
(
response
=>
{
flag
:
'1'
this
.
staTypeOptions
=
response
.
data
}
listData
(
params
).
then
(
response
=>
{
this
.
staTypeOptions
=
response
.
rows
})
})
},
},
/** 重置对话框表单方法 **/
/** 重置对话框表单方法 **/
...
...
src/views/productionInfo/badDefinition.vue
View file @
088795c9
...
@@ -209,28 +209,21 @@
...
@@ -209,28 +209,21 @@
</el-row>
</el-row>
<el-row>
<el-row>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<el-form-item
class=
"labelHeight"
label=
"不良描述"
prop=
"
rejectDescrip
tion"
>
<el-form-item
class=
"labelHeight"
label=
"不良描述"
prop=
"
specificExplana
tion"
>
<div
slot=
"label"
class=
"labelClassRequired"
>
<div
slot=
"label"
class=
"labelClassRequired"
>
<div
class=
"labelName"
>
不良描述
</div>
<div
class=
"labelName"
>
不良描述
</div>
</div>
</div>
<el-input
v-model
.
trim=
"form.
rejectDescription"
show-word-limit
:maxlength=
"128"
placeholder=
"请输入不良
描述"
/>
<el-input
v-model
.
trim=
"form.
specificExplanation"
show-word-limit
:maxlength=
"128"
placeholder=
"请输入中文
描述"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row>
<el-row>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<el-form-item
class=
"labelHeight"
prop=
"
specificExplana
tion"
>
<el-form-item
class=
"labelHeight"
prop=
"
rejectDescrip
tion"
>
<div
slot=
"label"
class=
"labelClassRequired"
>
<div
slot=
"label"
class=
"labelClassRequired"
>
<div
class=
"labelName"
>
Reject Description
</div>
<div
class=
"labelName"
>
Reject Description
</div>
</div>
</div>
<el-input
v-model
.
trim=
"form.specificExplanation"
show-word-limit
:maxlength=
"128"
placeholder=
"请输入Reject Description"
/>
<el-input
v-model
.
trim=
"form.rejectDescription"
show-word-limit
:maxlength=
"128"
placeholder=
"请输入英文描述"
/>
<!-- <el-col v-for="(item, index) in form.specificExplanations" :key="item" :span="18" style="width: 70%">-->
<!-- <el-input v-model="item.specificExplanation" :maxlength="200" placeholder="" style="width: 80%;margin-bottom: 10px" />-->
<!-- <el-button v-if="form.specificExplanations.length > 1" style="margin-left: 5%" icon="el-icon-minus" @click.prevent="removeDomain(item,index)" />-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-button type="primary" icon="el-icon-plus" @click="addDomain" />-->
<!-- </el-col>-->
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -267,7 +260,7 @@
...
@@ -267,7 +260,7 @@
<div
slot=
"tip"
class=
"el-upload__tip"
style=
"color:red"
>
提示:仅允许导入“xls”或“xlsx”格式文件!
</div>
<div
slot=
"tip"
class=
"el-upload__tip"
style=
"color:red"
>
提示:仅允许导入“xls”或“xlsx”格式文件!
</div>
</el-upload>
</el-upload>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
class=
"resetBtn"
@
click=
"
upload.uploadData = false
"
>
取 消 Cancel
</el-button>
<el-button
class=
"resetBtn"
@
click=
"
cancelUpload
"
>
取 消 Cancel
</el-button>
<el-button
:loading=
"importLoading"
class=
"redBtn"
type=
"danger"
@
click=
"uploadBad"
>
确 定 Confirm
</el-button>
<el-button
:loading=
"importLoading"
class=
"redBtn"
type=
"danger"
@
click=
"uploadBad"
>
确 定 Confirm
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
...
@@ -290,10 +283,9 @@ import {
...
@@ -290,10 +283,9 @@ import {
exportDisAvdTemplate
,
exportDisAvdTemplate
,
importDisAvd
,
importDisAvd
,
listBad
,
listBad
,
updateData
,
updateData
updateStatus
}
from
'@/api/badDefinition'
}
from
'@/api/badDefinition'
import
{
listData
}
from
'@/api/system/dict/data'
import
{
getDicts
}
from
'@/api/system/dict/data'
export
default
{
export
default
{
name
:
'BadDefinition'
,
name
:
'BadDefinition'
,
...
@@ -302,6 +294,7 @@ export default {
...
@@ -302,6 +294,7 @@ export default {
importLoading
:
false
,
importLoading
:
false
,
// 遮罩层
// 遮罩层
loading
:
false
,
loading
:
false
,
loadingUpdate
:
false
,
// 用户表格数据
// 用户表格数据
badList
:
null
,
badList
:
null
,
// 总条数
// 总条数
...
@@ -429,12 +422,9 @@ export default {
...
@@ -429,12 +422,9 @@ export default {
},
},
/** 新增按钮操作 */
/** 新增按钮操作 */
handleAdd
()
{
handleAdd
()
{
const
params
=
{
const
params
=
'defectType'
dictType
:
'defectType'
,
getDicts
(
params
).
then
(
response
=>
{
flag
:
'1'
this
.
positionOption
=
response
.
data
}
listData
(
params
).
then
(
response
=>
{
this
.
positionOption
=
response
.
rows
if
(
this
.
positionOption
[
0
]
!==
null
)
{
if
(
this
.
positionOption
[
0
]
!==
null
)
{
this
.
form
.
rejectType
=
this
.
positionOption
[
0
].
dictValue
this
.
form
.
rejectType
=
this
.
positionOption
[
0
].
dictValue
this
.
form
.
rejectTypes
=
this
.
positionOption
[
0
].
dictValue
this
.
form
.
rejectTypes
=
this
.
positionOption
[
0
].
dictValue
...
@@ -456,6 +446,9 @@ export default {
...
@@ -456,6 +446,9 @@ export default {
}).
then
(
function
()
{
}).
then
(
function
()
{
return
deleteLogical
(
badId
)
return
deleteLogical
(
badId
)
}).
then
(()
=>
{
}).
then
(()
=>
{
const
totalPage
=
Math
.
ceil
((
this
.
total
-
1
)
/
this
.
queryParams
.
rows
)
const
currentPage
=
this
.
queryParams
.
page
>
totalPage
?
totalPage
:
this
.
queryParams
.
page
this
.
queryParams
.
page
=
currentPage
<
1
?
1
:
currentPage
this
.
getList
()
this
.
getList
()
this
.
$message
({
this
.
$message
({
message
:
'刪除成功'
,
message
:
'刪除成功'
,
...
@@ -465,14 +458,14 @@ export default {
...
@@ -465,14 +458,14 @@ export default {
},
},
/** 修改按钮操作 */
/** 修改按钮操作 */
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
this
.
loadingUpdate
=
true
this
.
getDictFun
()
this
.
getDictFun
()
this
.
reset
()
this
.
reset
()
this
.
openBad
=
true
this
.
openBad
=
true
this
.
form
=
JSON
.
parse
(
JSON
.
stringify
(
row
))
this
.
form
=
JSON
.
parse
(
JSON
.
stringify
(
row
))
this
.
form
.
rejectTypes
=
this
.
form
.
rejectType
this
.
form
.
rejectTypes
=
this
.
form
.
rejectType
this
.
loadingUpdate
=
false
this
.
title
=
'修改'
this
.
title
=
'修改'
console
.
log
(
this
.
form
)
// this.getChildrenDept(userId)
},
},
/** 取消 Cancel按钮操作 */
/** 取消 Cancel按钮操作 */
cancel
()
{
cancel
()
{
...
@@ -539,12 +532,9 @@ export default {
...
@@ -539,12 +532,9 @@ export default {
},
},
/** 获取数据字典方法 **/
/** 获取数据字典方法 **/
getDictFun
()
{
getDictFun
()
{
const
params
=
{
const
params
=
'defectType'
dictType
:
'defectType'
,
getDicts
(
params
).
then
(
response
=>
{
flag
:
'1'
this
.
positionOption
=
response
.
data
}
listData
(
params
).
then
(
response
=>
{
this
.
positionOption
=
response
.
rows
})
})
},
},
/** 新增弹窗增加一行按钮*/
/** 新增弹窗增加一行按钮*/
...
@@ -620,6 +610,7 @@ export default {
...
@@ -620,6 +610,7 @@ export default {
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
res
.
message
)
this
.
$message
.
success
(
res
.
message
)
this
.
upload
.
uploadData
=
false
this
.
upload
.
uploadData
=
false
this
.
fileList
=
[]
this
.
getList
()
this
.
getList
()
this
.
$refs
.
file
.
clearFiles
()
this
.
$refs
.
file
.
clearFiles
()
}
else
{
}
else
{
...
@@ -636,6 +627,10 @@ export default {
...
@@ -636,6 +627,10 @@ export default {
})
})
}
}
},
},
cancelUpload
()
{
this
.
upload
.
uploadData
=
false
this
.
fileList
=
[]
},
cancelMessage
()
{
cancelMessage
()
{
this
.
openError
=
false
this
.
openError
=
false
this
.
messageForm
.
message
=
undefined
this
.
messageForm
.
message
=
undefined
...
...
src/views/repair/repairRecord.vue
View file @
088795c9
This diff is collapsed.
Click to expand it.
src/views/system/device/index.vue
View file @
088795c9
...
@@ -263,7 +263,7 @@ import {
...
@@ -263,7 +263,7 @@ import {
updateDevice
updateDevice
}
from
'@/api/system/device'
}
from
'@/api/system/device'
import
{
listPost
}
from
'@/api/badDefinition'
import
{
listPost
}
from
'@/api/badDefinition'
import
{
listData
}
from
'@/api/system/dict/data'
import
{
getDicts
}
from
'@/api/system/dict/data'
export
default
{
export
default
{
name
:
'Index'
,
name
:
'Index'
,
...
@@ -388,12 +388,9 @@ export default {
...
@@ -388,12 +388,9 @@ export default {
},
},
/** 获取数据字典方法 **/
/** 获取数据字典方法 **/
getDictFun
()
{
getDictFun
()
{
const
params
=
{
const
params
=
'deviceType'
dictType
:
'deviceType'
,
getDicts
(
params
).
then
(
response
=>
{
flag
:
'1'
this
.
typeOptions
=
response
.
data
}
listData
(
params
).
then
(
response
=>
{
this
.
typeOptions
=
response
.
rows
})
})
},
},
/** 对话框取消按钮 **/
/** 对话框取消按钮 **/
...
...
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