Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
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
胡宝山
template_vue
Commits
07f1a295
Commit
07f1a295
authored
Aug 01, 2023
by
高宇
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/project1' into project1
parents
c5506751
0b4f8305
Changes
18
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
755 additions
and
1082 deletions
+755
-1082
check.js
src/api/equipment/check.js
+7
-0
magnagement.js
src/api/magnagement.js
+26
-1
InventoryRecord.js
src/api/processMangement/InventoryRecord.js
+9
-5
inventoryRecord.js
src/api/sample/inventoryRecord.js
+7
-3
BaseTableArguments.js
src/components/Table/AllTableArguments/BaseTableArguments.js
+5
-27
index.vue
src/components/Table/BaseTable/index.vue
+12
-11
boundManagement.vue
src/views/equipment/boundManagement.vue
+28
-12
check.vue
src/views/equipment/check.vue
+68
-14
checkProcess.vue
src/views/equipment/checkProcess.vue
+110
-45
equipmentAbandonment.vue
src/views/equipment/equipmentAbandonment.vue
+11
-11
income.vue
src/views/equipment/income.vue
+30
-9
management.vue
src/views/equipment/management.vue
+43
-28
index.vue
src/views/processManagement/basicProcessManagement/index.vue
+27
-25
index.vue
src/views/processManagement/deviceReuse/index.vue
+130
-447
index.vue
src/views/processManagement/inventoryRecord/index.vue
+91
-64
index.vue
src/views/sample/inventoryRecord/index.vue
+115
-150
index.vue
src/views/sample/sampleLibrary/index.vue
+0
-207
index.vue
src/views/sample/sampleType/index.vue
+36
-23
No files found.
src/api/equipment/check.js
View file @
07f1a295
...
...
@@ -45,3 +45,10 @@ export function deleteByType(data){
method
:
'delete'
})
}
export
function
checkInventory
(
query
)
{
return
request
({
url
:
'/wbwarehouse/checkInventory/'
+
query
,
method
:
'get'
,
});
}
\ No newline at end of file
src/api/magnagement.js
View file @
07f1a295
...
...
@@ -34,4 +34,29 @@ export function add(data) {
}
})
}
// 再利用
export
function
recycle
(
data
)
{
return
request
({
url
:
'/wbwarehouse/recycle'
,
method
:
'post'
,
data
,
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
}
})
}
// 逻辑删除基础信息接口
export
function
deletedevice
(
id
)
{
return
request
({
url
:
'/wbwarehouse/delete/'
+
id
,
method
:
'delete'
})
}
// 导出
export
function
exportdevice
()
{
return
request
({
url
:
'/wbwarehouse/export'
,
method
:
'get'
,
responseType
:
'blob'
})
}
src/api/processMangement/InventoryRecord.js
View file @
07f1a295
import
request
from
'@/utils/request'
// TODO: 用来进行工序库的出入库记录的 分页+时间+普通字段的查询
export
function
listLog
(
queryParams
)
{
export
function
listLog
(
queryParams
,
queryMaps
)
{
return
request
({
url
:
'/wbwarehouselog/queryWbWarehouseLogByPagination'
,
method
:
'get'
,
params
:
queryParams
method
:
'post'
,
params
:
queryParams
,
data
:
queryMaps
,
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
}
})
}
/* TODO: 用来查询单项出入库记录的废弃详情信息 */
export
function
findSingleLogDetail
(
singleLogIdAnd
FqYs
)
{
export
function
findSingleLogDetail
(
singleLogIdAnd
Pn
)
{
return
request
({
url
:
'/wbwarehouselog/detail'
,
method
:
'post'
,
data
:
singleLogIdAnd
FqYs
,
data
:
singleLogIdAnd
Pn
,
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
}
...
...
src/api/sample/inventoryRecord.js
View file @
07f1a295
import
request
from
'@/utils/request'
// TODO: 用来进行工序库的出入库记录的 分页+时间+普通字段的查询
export
function
listLog
(
queryParams
)
{
export
function
listLog
(
queryParams
,
queryMaps
)
{
return
request
({
url
:
'/wbchemistrylog/queryWbChemistryLogByPagination'
,
method
:
'get'
,
params
:
queryParams
method
:
'post'
,
params
:
queryParams
,
data
:
queryMaps
,
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
}
})
}
...
...
src/components/Table/AllTableArguments/BaseTableArguments.js
View file @
07f1a295
...
...
@@ -81,32 +81,10 @@ export function BaseTableArguments(selection, loading, processList, queryParams,
}
// TODO: 组件表单所需的所有参数
export
function
BaseTableArgumentsTest
(
nIndex
,
selection
,
loading
,
List
,
queryParams
,
columnData
)
{
// TODO: 选择框是否需要存在 (selection判断表单选择框是否需要存在)
if
(
typeof
selection
!==
'boolean'
)
{
console
.
warn
(
'selection下拉框参数的type类型错误!请检查后重新赋值'
)
}
else
{
this
.
selection
=
selection
// TODO: 选择框 (根据条件是否可选)
this
.
selectable
=
(
row
,
index
)
=>
{
if
(
row
.
isSwitch
)
{
return
true
}
}
}
// TODO: 加载进度 (判断是否显示加载进度)
if
(
typeof
loading
!==
'boolean'
)
{
console
.
warn
(
'loading进度条参数的type类型错误!请检查后重新赋值'
)
}
else
{
export
function
BaseTableArgumentsTest
(
listName
,
loading
,
List
,
queryParams
,
columObj
)
{
this
.
listName
=
listName
this
.
loading
=
loading
}
// TODO: 查询参数 (判断查询条件是否符合类型)
if
(
queryParams
instanceof
queryParamsType
)
{
this
.
queryParams
=
queryParamsType
}
this
.
columnData
=
columnData
this
.
List
=
List
this
.
queryParams
=
queryParams
this
.
columObj
=
columObj
}
src/components/Table/BaseTable/index.vue
View file @
07f1a295
...
...
@@ -9,7 +9,8 @@
border
:data=
"allTableArguments.List"
style=
"width: 100%;"
@
selection-change=
"handleSelectionChange"
@
selection-change=
"handleSelectionChange(row)"
@
sort-change=
"changeTableSort"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
/>
...
...
@@ -46,17 +47,17 @@
<!-- 图片展示 -->
<el-popover
trigger=
"hover"
placement=
"top"
popper-class=
"popper"
>
<img
v-if=
"column.image"
:src=
"viewUrl + row[column.prop]"
alt=
""
>
<el-image
v-if=
"column.image"
slot=
"reference"
:src=
"viewUrl + row[column.prop]"
/>
<el-image
v-if=
"column.image"
:src=
"viewUrl + row[column.prop]"
/>
</el-popover>
<!-- 图片数组 -->
<el-popover
v-if=
"column.imageArr"
trigger=
"hover"
placement=
"top"
popper-class=
"popper"
>
<img
v-if=
"row[column.prop].length>0"
:src=
"row[column.prop][0]"
alt=
""
>
<el-image
v-if=
"row[column.prop].length >0"
slot=
"reference"
:src=
"row[column.prop][0]"
:preview-src-list=
"row[column.prop]"
/>
<el-image
v-if=
"row[column.prop].length >0"
:src=
"row[column.prop][0]"
:preview-src-list=
"row[column.prop]"
/>
</el-popover>
<!-- 可编辑input,仅在text默认展示类型才可编辑-->
<el-input
v-if=
"column.editRow === $index"
v-model=
"row[column.prop]"
v-focus
@
blur=
"editInputBlur(row,$index,column.prop,columIndex)"
/>
<el-input
v-if=
"column.editRow === $index"
v-model=
"row[column.prop]"
@
blur=
"editInputBlur(row,$index,column.prop,columIndex)"
/>
<!-- 操作按钮 -->
<span
v-if=
"column.isOperation"
class=
"processListBtns"
>
<span
v-for=
"(operations, index) in column.operation"
:key=
"index"
>
...
...
@@ -84,13 +85,7 @@ export default {
allTableArguments
:
{
type
:
BaseTableArgumentsTest
,
default
:
()
=>
{
return
{
selection
:
Boolean
,
loading
:
Boolean
,
queryParams
:
Object
,
List
:
Array
,
columnData
:
Array
}
return
new
BaseTableArgumentsTest
()
}
},
nIndex
:
{
...
...
@@ -107,6 +102,12 @@ export default {
}
},
methods
:
{
changeTableSort
(
val
)
{
this
.
$emit
(
'change-table-sort'
,
val
)
},
handleSelectionChange
(
row
)
{
this
.
$emit
(
'handle-selection-change'
,
row
)
},
handleDetail
(
row
)
{
this
.
$emit
(
'handle-detail'
,
row
)
},
...
...
src/views/equipment/boundManagement.vue
View file @
07f1a295
...
...
@@ -69,9 +69,9 @@
{{
scope
.
row
.
createName
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"
cre
ateDate"
>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"
upd
ateDate"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
cre
ateDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
<span>
{{
scope
.
row
.
upd
ateDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"110px"
>
...
...
@@ -99,27 +99,27 @@
<!-- 添加或修改设备配置对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"500px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
size=
"small"
label-width=
"100px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
size=
"small"
label-width=
"100px"
>
<el-form-item
label=
"pn"
prop=
"pn"
>
<el-input
v-model
.
trim=
"form.pn"
:maxlength=
"30"
placeholder=
"请输入pn
"
/>
<el-input
ref=
"input1"
v-model
.
trim=
"form.pn"
:maxlength=
"30"
placeholder=
"请输入pn"
@
keyup
.
enter
.
native=
"handelTab(1,$event)
"
/>
</el-form-item>
<el-form-item
label=
"lot"
prop=
"lot"
>
<el-input
v-model
.
trim=
"form.lot"
:maxlength=
"30"
placeholder=
"请输入lot
"
/>
<el-input
ref=
"input2"
v-model
.
trim=
"form.lot"
:maxlength=
"30"
placeholder=
"请输入lot"
@
keyup
.
enter
.
native=
"handelTab(2,$event)
"
/>
</el-form-item>
<el-form-item
label=
"plocation"
prop=
"plocation"
>
<el-input
v-model
.
trim=
"form.plocation"
:maxlength=
"30"
placeholder=
"请输入plocation
"
/>
<el-input
ref=
"input3"
v-model
.
trim=
"form.plocation"
:maxlength=
"30"
placeholder=
"请输入plocation"
@
keyup
.
enter
.
native=
"handelTab(3,$event)
"
/>
</el-form-item>
<el-form-item
label=
"厚度"
prop=
"phd"
>
<el-input
v-model
.
trim=
"form.phd"
:maxlength=
"30"
placeholder=
"请输入厚度
"
/>
<el-input
ref=
"input4"
v-model
.
trim=
"form.phd"
:maxlength=
"30"
placeholder=
"请输入厚度"
@
keyup
.
enter
.
native=
"handelTab(4,$event)
"
/>
</el-form-item>
<el-form-item
label=
"psm"
prop=
"psm"
>
<el-input
v-model
.
trim=
"form.psm"
:maxlength=
"30"
placeholder=
"请输入psm
"
/>
<el-input
ref=
"input5"
v-model
.
trim=
"form.psm"
:maxlength=
"30"
placeholder=
"请输入psm"
@
keyup
.
enter
.
native=
"handelTab(5,$event)
"
/>
</el-form-item>
<el-form-item
label=
"pzl"
prop=
"pzl"
>
<el-input
v-model
.
trim=
"form.pzl"
:maxlength=
"30"
placeholder=
"请输入pzl
"
/>
<el-input
ref=
"input6"
v-model
.
trim=
"form.pzl"
:maxlength=
"30"
placeholder=
"请输入pzl"
@
keyup
.
enter
.
native=
"handelTab(6,$event)
"
/>
</el-form-item>
<el-form-item
label=
"parnk"
prop=
"prank"
>
<el-input
v-model
.
trim=
"form.prank"
:maxlength=
"30"
placeholder=
"请输入prank
"
/>
<el-input
ref=
"input7"
v-model
.
trim=
"form.prank"
:maxlength=
"30"
placeholder=
"请输入prank"
@
keyup
.
enter
.
native=
"handelTab(7,$event)
"
/>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
...
...
@@ -176,8 +176,8 @@
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
" 操作时间:"
prop=
"
cre
ateDate"
>
<el-input
v-model
.
trim=
"singleDetails.
cre
ateDate"
:readonly=
"true"
/>
<el-form-item
label=
" 操作时间:"
prop=
"
upd
ateDate"
>
<el-input
v-model
.
trim=
"singleDetails.
upd
ateDate"
:readonly=
"true"
/>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -327,6 +327,11 @@ export default {
formData
:
{}
}
},
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
input1
.
$refs
.
input
.
focus
()
})
},
/** 路由离开前存储筛选条件*/
beforeRouteLeave
(
to
,
from
,
next
)
{
this
.
$store
.
dispatch
(
'searchSave/searchParamsSet'
,
{
...
...
@@ -346,6 +351,17 @@ export default {
this
.
getList
()
},
methods
:
{
handelTab
(
i
,
e
)
{
const
that
=
this
if
(
!
that
.
$refs
[
'input'
+
i
])
{
return
}
that
.
$nextTick
(()
=>
{
e
.
target
.
blur
()
const
index
=
i
+
1
that
.
$refs
[
'input'
+
index
].
focus
()
})
},
// TODO: 获取所选行详情信息操作
handleDetail
(
row
)
{
this
.
singleDetails
=
this
.
formReset
...
...
src/views/equipment/check.vue
View file @
07f1a295
...
...
@@ -37,6 +37,10 @@
<el-button
style=
"padding: 8px 7px;"
icon=
"el-icon-refresh"
size=
"small"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
<div
style=
"float: right"
>
<el-form-item>
<el-button
style=
"padding: 8px 7px;"
:type=
"'warning'"
:size=
"smallSize"
icon=
"el-icon-view"
@
click=
"checkInventory"
>
查看盘点
</el-button>
</el-form-item>
<el-form-item>
<el-button
style=
"padding: 8px 7px;"
:type=
"typePrimary"
:size=
"smallSize"
:icon=
"addIcon"
@
click=
"checkType"
>
开始盘点
{{
check
}}
</el-button>
</el-form-item>
...
...
@@ -49,26 +53,26 @@
</el-form>
<div
class=
"placeholder"
/>
<div
style=
"padding:5px 10px"
>
<div
class=
"mb12 font-small-bold"
>
设备管理
列表
</div>
<div
class=
"mb12 font-small-bold"
>
库存盘点
列表
</div>
<el-table
v-loading=
"loading"
border
:data=
"equipmentList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
/>
<el-table-column
type=
"index"
label=
"序号"
width=
"80"
/>
<el-table-column
label=
"pn"
prop=
"pn"
width=
"
1
20"
>
<el-table-column
label=
"pn"
prop=
"pn"
width=
"
2
20"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
pn
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"lot"
prop=
"lot"
width=
"
1
20"
>
<el-table-column
label=
"lot"
prop=
"lot"
width=
"
2
20"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
lot
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"
位置"
prop=
"plocation
"
>
<el-table-column
label=
"
plocation"
prop=
"plocation"
width=
"220
"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
plocation
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"厚度"
prop=
"phd"
>
<el-table-column
label=
"厚度"
prop=
"phd"
width=
"220"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
phd
||
'-'
}}
</
template
>
...
...
@@ -78,9 +82,9 @@
{{
scope
.
row
.
createName
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"
cre
ateDate"
>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"
upd
ateDate"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
cre
ateDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
<span>
{{
scope
.
row
.
upd
ateDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"80px"
>
...
...
@@ -202,14 +206,44 @@
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
" 操作时间:"
prop=
"
cre
ateDate"
>
<el-input
v-model
.
trim=
"singleDetails.
cre
ateDate"
:readonly=
"true"
/>
<el-form-item
label=
" 操作时间:"
prop=
"
upd
ateDate"
>
<el-input
v-model
.
trim=
"singleDetails.
upd
ateDate"
:readonly=
"true"
/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-dialog>
<el-drawer
title=
"库存盘点列表"
:visible
.
sync=
"table"
direction=
"rtl"
size=
"50%"
>
<el-table
v-loading=
"loading"
border
:data=
"tableList"
@
selection-change=
"handleSelectionChange"
style=
"padding: 0 10px;"
>
<el-table-column
label=
"pn"
prop=
"pn"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
pn
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"lot"
prop=
"lot"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
lot
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"位置"
prop=
"plocation"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
plocation
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"厚度"
prop=
"phd"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
phd
||
'-'
}}
</
template
>
</el-table-column>
</el-table>
</el-drawer>
</div>
</template>
...
...
@@ -223,7 +257,7 @@ import {
getRole
,
updateRole
}
from
'@/api/system/role'
import
{
checkType
,
listCheck
,
addList
,
deleteByType
}
from
'@/api/equipment/check'
import
{
checkType
,
listCheck
,
addList
,
deleteByType
,
checkInventory
}
from
'@/api/equipment/check'
import
{
roleMenuTreeselect
,
roleMenuTreeselectMC
,
treeselect
as
menuTreeselect
}
from
'@/api/system/menu'
import
{
roleDeptTreeselect
,
treeselect
as
deptTreeselect
}
from
'@/api/system/dept'
// import { getRolesByInsId } from '../../../api/businessManage/template'
...
...
@@ -236,6 +270,8 @@ export default {
Ptype
:
''
,
checkList
:
[],
},
table
:
false
,
tableList
:[],
// 选中的列表
selectList
:[],
// TODO: 表单里的单项详情参数
...
...
@@ -246,7 +282,7 @@ export default {
location
:
''
,
thickness
:
''
,
createBy
:
''
,
createTim
e
:
''
updateDat
e
:
''
},
// 是否显示弹出层(数据详情)
openDetails
:
false
,
...
...
@@ -394,6 +430,23 @@ export default {
// });
},
methods
:
{
checkInventory
()
{
this
.
$confirm
(
'确认查询盘点吗?'
)
.
then
(
_
=>
{
this
.
table
=
true
checkInventory
(
1
)
.
then
(
response
=>
{
// 处理返回的数据
this
.
tableList
=
response
.
data
console
.
log
(
response
);
})
.
catch
(
error
=>
{
// 处理请求错误
console
.
error
(
error
);
});
done
();
}).
catch
(
_
=>
{});
},
// TODO: 获取所选行详情信息操作
handleDetail
(
row
)
{
this
.
singleDetails
=
this
.
formReset
...
...
@@ -414,7 +467,7 @@ export default {
if
(
flag
.
data
>
0
&&
flag
.
code
===
200
)
{
this
.
$message
.
success
(
"结束盘点成功"
);
}
else
{
this
.
$message
.
error
(
"
结束盘点失败
"
);
this
.
$message
.
error
(
"
当前未开始盘点
"
);
}
});
})
...
...
@@ -456,6 +509,7 @@ export default {
});
},
handelTab
(
i
,
e
)
{
const
that
=
this
if
(
!
that
.
$refs
[
'input'
+
i
])
{
...
...
src/views/equipment/checkProcess.vue
View file @
07f1a295
This diff is collapsed.
Click to expand it.
src/views/equipment/equipmentAbandonment.vue
View file @
07f1a295
...
...
@@ -51,26 +51,26 @@
</el-form>
<div
class=
"placeholder"
/>
<div
style=
"padding:5px 10px"
>
<div
class=
"mb12 font-small-bold"
>
设备
管理
列表
</div>
<div
class=
"mb12 font-small-bold"
>
设备
废弃
列表
</div>
<el-table
v-loading=
"loading"
border
:data=
"equipmentList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"80"
/>
<el-table-column
label=
"pn"
prop=
"pn"
width=
"
1
20"
>
<el-table-column
label=
"pn"
prop=
"pn"
width=
"
2
20"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
pn
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"lot"
prop=
"lot"
width=
"
1
20"
>
<el-table-column
label=
"lot"
prop=
"lot"
width=
"
2
20"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
lot
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"plocation"
prop=
"plocation"
>
<el-table-column
label=
"plocation"
prop=
"plocation"
width=
"220"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
plocation
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"厚度"
prop=
"phd"
>
<el-table-column
label=
"厚度"
prop=
"phd"
width=
"220"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
phd
||
'-'
}}
</
template
>
...
...
@@ -80,9 +80,9 @@
{{
scope
.
row
.
createName
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"
cre
ateDate"
>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"
upd
ateDate"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
cre
ateDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
<span>
{{
scope
.
row
.
upd
ateDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"150px"
>
...
...
@@ -203,8 +203,8 @@
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
" 操作时间:"
prop=
"
cre
ateDate"
>
<el-input
v-model
.
trim=
"singleDetails.
cre
ateDate"
:readonly=
"true"
/>
<el-form-item
label=
" 操作时间:"
prop=
"
upd
ateDate"
>
<el-input
v-model
.
trim=
"singleDetails.
upd
ateDate"
:readonly=
"true"
/>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -289,7 +289,7 @@ export default {
location
:
''
,
thickness
:
''
,
createBy
:
''
,
createTim
e
:
''
updateDat
e
:
''
},
// 是否显示弹出层(数据详情)
openDetails
:
false
,
...
...
@@ -471,7 +471,7 @@ export default {
handleDetail
(
row
)
{
this
.
singleDetails
=
this
.
formReset
this
.
singleDetails
=
row
this
.
title
=
'
详情
信息'
this
.
title
=
'
废弃
信息'
this
.
openDetails
=
!
this
.
openDetails
},
handelTab
(
i
,
e
)
{
...
...
src/views/equipment/income.vue
View file @
07f1a295
...
...
@@ -5,47 +5,47 @@
<el-row
:gutter=
"40"
>
<el-col
:span=
"12"
style=
"padding-left: 10%;"
>
<el-form-item
label=
"pn:"
style=
"flex-basis: 50%;"
prop=
"pn"
>
<el-input
v-model=
"form.pn"
placeholder=
"请输入pn"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="50
" />
<el-input
ref=
"input1"
v-model=
"form.pn"
placeholder=
"请输入pn"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10" @keyup.enter.native="handelTab(1,$event)
" />
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"lot:"
style=
"flex-basis: 50%;"
prop=
"lot"
>
<el-input
v-model=
"form.lot"
placeholder=
"请输入lot"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10
" />
<el-input
ref=
"input2"
v-model=
"form.lot"
placeholder=
"请输入lot"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10" @keyup.enter.native="handelTab(2,$event)
" />
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"40"
>
<el-col
:span=
"12"
style=
"padding-left: 10%;"
>
<el-form-item
label=
"位置:"
style=
"flex-basis: 50%;"
prop=
"plocation"
>
<el-input
v-model=
"form.plocation"
placeholder=
"请输入位置"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="50
" />
<el-input
ref=
"input3"
v-model=
"form.plocation"
placeholder=
"请输入位置"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10" @keyup.enter.native="handelTab(3,$event)
" />
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"厚度:"
style=
"flex-basis: 50%;"
prop=
"phd"
>
<el-input
v-model=
"form.phd"
placeholder=
"请输入厚度"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10
" />
<el-input
ref=
"input4"
v-model=
"form.phd"
placeholder=
"请输入厚度"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10" @keyup.enter.native="handelTab(4,$event)
" />
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"40"
>
<el-col
:span=
"12"
style=
"padding-left: 10%;"
>
<el-form-item
label=
"psm:"
style=
"flex-basis: 50%;"
prop=
"psm"
>
<el-input
v-model=
"form.psm"
placeholder=
"请输入psm"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="50
" />
<el-input
ref=
"input5"
v-model=
"form.psm"
placeholder=
"请输入psm"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="50" @keyup.enter.native="handelTab(5,$event)
" />
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"pzl:"
style=
"flex-basis: 50%;"
prop=
"pzl"
>
<el-input
v-model=
"form.pzl"
placeholder=
"请输入pzl"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10
" />
<el-input
ref=
"input6"
v-model=
"form.pzl"
placeholder=
"请输入pzl"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10" @keyup.enter.native="handelTab(6,$event)
" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
style=
"padding-left: 8.6%;"
>
<el-form-item
label=
"prank:"
style=
"flex-basis: 50%;"
prop=
"prank"
>
<el-input
v-model=
"form.prank"
placeholder=
"请输入prank"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10
" />
<el-input
ref=
"input7"
v-model=
"form.prank"
placeholder=
"请输入prank"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10" @keyup.enter.native="handelTab(7,$event)
" />
</el-form-item>
</el-col>
</el-row>
<div
class=
"button"
>
<div
class=
"button"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
提交
</el-button>
</div>
</el-form>
...
...
@@ -81,10 +81,31 @@ export default {
}
}
},
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
input1
.
$refs
.
input
.
focus
()
})
},
created
()
{
this
.
init
()
},
methods
:
{
focusNextInput
(
refName
)
{
this
.
$nextTick
(()
=>
{
this
.
$refs
[
refName
].
$refs
.
input
.
focus
()
})
},
handelTab
(
i
,
e
)
{
const
that
=
this
if
(
!
that
.
$refs
[
'input'
+
i
])
{
return
}
that
.
$nextTick
(()
=>
{
e
.
target
.
blur
()
const
index
=
i
+
1
that
.
$refs
[
'input'
+
index
].
focus
()
})
},
// 重置
resetFrom
()
{
this
.
form
=
{
...
...
@@ -165,7 +186,7 @@ export default {
}
.button
{
margin-top
:
7%
;
margin-left
:
1
1
%
;
margin-left
:
1
5
.6
%
;
}
}
...
...
src/views/equipment/management.vue
View file @
07f1a295
...
...
@@ -38,6 +38,17 @@
<el-button
type=
"primary"
style=
"padding: 8px 7px;"
icon=
"el-icon-search"
size=
"small"
@
click=
"handleQuery"
>
查询
</el-button>
<el-button
style=
"padding: 8px 7px;"
icon=
"el-icon-refresh"
size=
"small"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
<el-form-item
style=
"float: right"
>
<el-button
style=
"padding: 8px 7px;"
type=
"success"
size=
"small"
icon=
"el-icon-download"
@
click=
"handleExport"
>
导出
</el-button>
</el-form-item>
</el-form>
<div
class=
"placeholder"
/>
<div
style=
"padding:5px 10px"
>
...
...
@@ -69,16 +80,22 @@
{{
scope
.
row
.
createName
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"
cre
ateDate"
>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"
upd
ateDate"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
cre
ateDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
<span>
{{
scope
.
row
.
upd
ateDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"
8
0px"
>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"
12
0px"
>
<
template
slot-scope=
"scope"
>
<el-button
:type=
"typeParent"
:size=
"size"
@
click=
"handleDetail(scope.row)"
>
详情
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -174,7 +191,7 @@
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"
操作时间
:"
prop=
"createDate"
>
<el-form-item
label=
"
入库日期
:"
prop=
"createDate"
>
<el-input
v-model
.
trim=
"singleDetails.createDate"
:readonly=
"true"
/>
</el-form-item>
</el-col>
...
...
@@ -189,15 +206,12 @@ import {
addRole
,
changeRoleStatus
,
dataScope
,
delRole
,
exportRole
,
getRole
,
updateRole
}
from
'@/api/system/role'
import
{
listdevice
}
from
'@/api/magnagement'
import
{
listdevice
,
deletedevice
,
exportdevice
}
from
'@/api/magnagement'
import
{
roleMenuTreeselect
,
roleMenuTreeselectMC
,
treeselect
as
menuTreeselect
}
from
'@/api/system/menu'
import
{
roleDeptTreeselect
,
treeselect
as
deptTreeselect
}
from
'@/api/system/dept'
// import { getRolesByInsId } from '../../../api/businessManage/template'
export
default
{
name
:
'Role'
,
data
()
{
...
...
@@ -306,7 +320,7 @@ export default {
lot
:
undefined
,
plocation
:
undefined
,
pstatus
:
0
,
ptype
:
1
,
ptype
:
2
,
delFlag
:
0
},
// 表单参数
...
...
@@ -648,41 +662,42 @@ export default {
},
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
roleIds
=
row
.
businessId
||
this
.
ids
this
.
$confirm
(
'是否确认操作
?
'
,
'提示'
,
{
const
id
=
row
.
businessId
this
.
$confirm
(
'是否确认操作
?
'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
return
delRole
(
roleIds
)
}).
then
(()
=>
{
}).
then
(
res
=>
{
deletedevice
(
id
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
'操作成功'
)
this
.
getList
()
this
.
$message
({
message
:
'删除成功'
,
type
:
'success'
}
})
}).
catch
(
function
()
{
})
},
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
this
.
$confirm
(
'是否确认操作?'
,
'警告'
,
{
this
.
$confirm
(
'是否确认导出设备管理信息?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
return
export
Role
(
queryParams
).
then
(
response
=>
{
return
export
device
(
).
then
(
response
=>
{
const
blob
=
new
Blob
([
response
])
const
downloadElement
=
document
.
createElement
(
'a'
)
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
// 创建下载的链接
// TODO: 创建下载的链接
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
downloadElement
.
href
=
href
downloadElement
.
download
=
'角色信息'
+
'.xls'
// 下载后文件名
// TODO: 下载后文件名
downloadElement
.
download
=
'设备管理信息'
+
'.xls'
document
.
body
.
appendChild
(
downloadElement
)
downloadElement
.
click
()
// 点击下载
document
.
body
.
removeChild
(
downloadElement
)
// 下载完成移除元素
window
.
URL
.
revokeObjectURL
(
href
)
// 释放掉blob对象
// this.download(response.msg);
// TODO: 点击下载
downloadElement
.
click
()
// TODO: 下载完成移除元素
document
.
body
.
removeChild
(
downloadElement
)
// TODO: 释放掉blob对象
window
.
URL
.
revokeObjectURL
(
href
)
})
})
}
...
...
src/views/processManagement/basicProcessManagement/index.vue
View file @
07f1a295
...
...
@@ -38,10 +38,19 @@
<el-button
type=
"primary"
style=
"padding: 8px 7px;"
icon=
"el-icon-search"
size=
"small"
@
click=
"handleQuery"
>
查询
</el-button>
<el-button
style=
"padding: 8px 7px;"
icon=
"el-icon-refresh"
size=
"small"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
<el-form-item
style=
"float: right"
>
<el-button
style=
"padding: 8px 7px;"
type=
"success"
size=
"small"
icon=
"el-icon-download"
@
click=
"handleExport"
>
导出
</el-button>
</el-form-item>
</el-form>
<div
class=
"placeholder"
/>
<div
style=
"padding:5px 10px"
>
<div
class=
"mb12 font-small-bold"
>
工序库
列表
</div>
<div
class=
"mb12 font-small-bold"
>
设备管理
列表
</div>
<el-table
v-loading=
"loading"
border
:data=
"equipmentList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"80"
/>
<el-table-column
label=
"pn"
prop=
"businessId"
>
...
...
@@ -69,9 +78,9 @@
{{
scope
.
row
.
createName
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"
cre
ateDate"
>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"
upd
ateDate"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
cre
ateDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
<span>
{{
scope
.
row
.
upd
ateDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"80px"
>
...
...
@@ -119,15 +128,6 @@
@
check-change=
"handleMenuCheckChange"
/>
</el-form-item>
<el-form-item
label=
"备注"
>
<el-input
v-model
.
trim=
"form.remark"
maxlength=
"200"
show-word-limit
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
...
...
@@ -183,8 +183,8 @@
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
" 操作时间:"
prop=
"
cre
ateDate"
>
<el-input
v-model
.
trim=
"singleDetails.
cre
ateDate"
:readonly=
"true"
/>
<el-form-item
label=
" 操作时间:"
prop=
"
upd
ateDate"
>
<el-input
v-model
.
trim=
"singleDetails.
upd
ateDate"
:readonly=
"true"
/>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -199,11 +199,10 @@ import {
changeRoleStatus
,
dataScope
,
delRole
,
exportRole
,
getRole
,
updateRole
}
from
'@/api/system/role'
import
{
listdevice
}
from
'@/api/magnagement'
import
{
listdevice
,
exportdevice
}
from
'@/api/magnagement'
import
{
roleMenuTreeselect
,
roleMenuTreeselectMC
,
treeselect
as
menuTreeselect
}
from
'@/api/system/menu'
import
{
roleDeptTreeselect
,
treeselect
as
deptTreeselect
}
from
'@/api/system/dept'
// import { getRolesByInsId } from '../../../api/businessManage/template'
...
...
@@ -675,22 +674,26 @@ export default {
},
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
this
.
$confirm
(
'是否确认操作?'
,
'警告'
,
{
this
.
$confirm
(
'是否确认导出工序库信息?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
return
export
Role
(
queryParams
).
then
(
response
=>
{
return
export
device
(
).
then
(
response
=>
{
const
blob
=
new
Blob
([
response
])
const
downloadElement
=
document
.
createElement
(
'a'
)
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
// 创建下载的链接
// TODO: 创建下载的链接
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
downloadElement
.
href
=
href
downloadElement
.
download
=
'角色信息'
+
'.xls'
// 下载后文件名
// TODO: 下载后文件名
downloadElement
.
download
=
'设备工序库信息'
+
'.xls'
document
.
body
.
appendChild
(
downloadElement
)
downloadElement
.
click
()
// 点击下载
document
.
body
.
removeChild
(
downloadElement
)
// 下载完成移除元素
window
.
URL
.
revokeObjectURL
(
href
)
// 释放掉blob对象
// TODO: 点击下载
downloadElement
.
click
()
// TODO: 下载完成移除元素
document
.
body
.
removeChild
(
downloadElement
)
// TODO: 释放掉blob对象
window
.
URL
.
revokeObjectURL
(
href
)
// this.download(response.msg);
})
})
...
...
@@ -699,7 +702,6 @@ export default {
}
</
script
>
<
style
lang=
"scss"
scoped
>
/* TODO: 专门用来解决input 的边框问题 */
.aboutSingleDetails
{
.el-form-item
{
.el-input
>>>
.el-input__inner
{
...
...
src/views/processManagement/deviceReuse/index.vue
View file @
07f1a295
This diff is collapsed.
Click to expand it.
src/views/processManagement/inventoryRecord/index.vue
View file @
07f1a295
<
template
>
<div
class=
"app-container"
>
<div
class=
"ToolBar"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"query
Params
"
:inline=
"true"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"query
Entity
"
:inline=
"true"
>
<el-form-item
label=
"pn"
prop=
"pn"
>
<el-input
v-model=
"queryParams.pn"
ref=
"autoGetFocusInput"
v-model=
"queryEntity.entity.pn"
placeholder=
"请输入pn"
clearable
:maxlength=
"20"
...
...
@@ -16,7 +17,7 @@
<el-form-item
label=
"lot"
prop=
"lot"
>
<el-input
v-model=
"query
Params
.lot"
v-model=
"query
Entity.entity
.lot"
placeholder=
"请输入lot"
clearable
:maxlength=
"20"
...
...
@@ -27,7 +28,7 @@
<el-form-item
label=
"plocation"
prop=
"plocation"
>
<el-input
v-model=
"query
Params
.plocation"
v-model=
"query
Entity.entity
.plocation"
placeholder=
"请输入plocation"
clearable
:maxlength=
"20"
...
...
@@ -38,7 +39,7 @@
<el-form-item
label=
"库类型"
prop=
"ptype"
>
<el-select
v-model=
"query
Params
.ptype"
v-model=
"query
Entity.entity
.ptype"
placeholder=
"请选择库类型"
filterable
clearable
...
...
@@ -55,7 +56,7 @@
<el-form-item
label=
"库状态"
prop=
"poperate"
>
<el-select
v-model=
"query
Params
.poperate"
v-model=
"query
Entity.entity
.poperate"
placeholder=
"请选择库状态"
filterable
clearable
...
...
@@ -113,9 +114,9 @@
<component
:is=
"BaseTable"
:key=
"queryParams.rows"
:n-index=
"nIndex"
:all-table-arguments=
"allTableArguments"
@
handle-detail=
"handleDetail"
@
change-table-sort=
"changeTableSort"
/>
</transition>
<!--TODO: 分页组件-->
...
...
@@ -137,7 +138,7 @@
append-to-body
@
closed=
"handleClose"
>
<el-form
ref=
"formDetails"
:model=
"singleDetails"
size=
"small"
label-width=
"
9
0px"
>
<el-form
ref=
"formDetails"
:model=
"singleDetails"
size=
"small"
label-width=
"
10
0px"
>
<el-row
:gutter=
"10"
justify=
"start"
align=
"middle"
>
<el-col
:span=
"12"
>
...
...
@@ -164,7 +165,6 @@
<!-- TODO: 这里是 库状态为废弃时才会触发显示的模块 -->
<transition
name=
"fade-transform"
mode=
"out-in"
>
<el-row
v-if=
" activateAbandonedState "
style=
"height: 160px"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"fq_ys:"
prop=
"fq_ys"
>
...
...
@@ -181,7 +181,7 @@
<el-form-item
label=
"fq_dd:"
prop=
"fq_dd"
>
{{
singleDetails
.
fq_dd
}}
</el-form-item>
<el-form-item
label=
"fq_mcode:"
:label-width=
"10"
prop=
"fq_mcode"
>
<el-form-item
label=
"fq_mcode:"
prop=
"fq_mcode"
>
{{
singleDetails
.
fq_mcode
}}
</el-form-item>
<el-form-item
label=
"fq_yy:"
prop=
"fq_yy"
>
...
...
@@ -189,7 +189,7 @@
</el-form-item>
</el-col>
</el-row>
<transition
/
>
</transition
>
<el-row>
<el-col
:span=
"12"
>
...
...
@@ -205,15 +205,16 @@
</el-col>
</el-row>
</transition>
</el-form>
</el-form>
</el-dialog>
</div>
</
template
>
<
script
>
import
{
listLog
,
findSingleLogDetail
,
exportInventoryRecord
}
from
'@/api/processMangement/InventoryRecord'
import
{
exportInventoryRecord
,
findSingleLogDetail
,
listLog
}
from
'@/api/processMangement/InventoryRecord'
import
BaseTable
from
'@/components/Table/BaseTable/index.vue'
import
{
BaseTableArgumentsTest
}
from
'@/components/Table/AllTableArguments/BaseTableArguments'
export
default
{
name
:
'InventoryRecord'
,
...
...
@@ -278,18 +279,28 @@ export default {
dateRange
:
[],
queryParams
:
{
page
:
1
,
rows
:
10
,
rows
:
10
},
queryEntity
:
{
// TODO: 0表示倒序排序,1表示顺序排序
tableSortMark
:
0
,
entity
:
{
// TODO: 设备编码
pn
:
undefined
,
pn
:
''
,
// TODO: lot
lot
:
undefined
,
lot
:
''
,
// TODO: 位置
plocation
:
undefined
,
plocation
:
''
,
// TODO: 库状态 1 入,2出,3修正,4废弃
poperate
:
undefined
,
poperate
:
''
,
// TODO: 库类型 1设备库 2工序库
ptype
:
undefined
ptype
:
''
}
},
// TODO: list记录表名
listName
:
'出入库记录列表'
,
// TODO: 用来接收数据源
inventoryRecordList
:
[],
// TODO: 用来说明每一列的类型
...
...
@@ -349,6 +360,7 @@ export default {
{
time
:
true
,
prop
:
'createDate'
,
sortable
:
'custom'
,
label
:
'操作时间'
,
align
:
'center'
},
...
...
@@ -377,7 +389,7 @@ export default {
// TODO: 表单里的单项详情参数
singleDetails
:
{},
// TODO: 获取表单单项详情的参数
singleLogIdAnd
FqYs
:
{},
singleLogIdAnd
Pn
:
{},
activateAbandonedState
:
false
}
},
...
...
@@ -394,13 +406,13 @@ export default {
},
// TODO: 用来汇总Table组件所需要的全部数据并一次性传输给子组件
allTableArguments
()
{
return
{
listName
:
'出入库记录列表'
,
loading
:
this
.
loading
,
List
:
this
.
inventoryRecordList
,
queryParams
:
this
.
queryParams
,
columObj
:
this
.
columObj
}
const
baseTableArgumentsTest
=
new
BaseTableArgumentsTest
()
baseTableArgumentsTest
.
listName
=
this
.
listName
baseTableArgumentsTest
.
loading
=
this
.
loading
baseTableArgumentsTest
.
List
=
this
.
inventoryRecordList
baseTableArgumentsTest
.
queryParams
=
this
.
queryParams
baseTableArgumentsTest
.
columObj
=
this
.
columObj
return
baseTableArgumentsTest
}
},
/** 路由离开前存储筛选条件*/
...
...
@@ -416,12 +428,15 @@ export default {
created
()
{
this
.
getList
()
},
mounted
()
{
this
.
$refs
.
autoGetFocusInput
.
focus
()
},
methods
:
{
/** TODO:查询工序库的出入库记录列表 */
getList
()
{
this
.
loading
=
true
listLog
(
this
.
addDateRange
(
this
.
queryParams
,
this
.
dateRange
)).
then
(
response
=>
{
listLog
(
this
.
queryParams
,
this
.
addDateRange
(
this
.
queryEntity
,
this
.
dateRange
)).
then
(
response
=>
{
this
.
inventoryRecordList
=
response
.
rows
this
.
total
=
response
.
total
// 暂时还没写后端 this.selectOptionsAboutPoperate = selectOptionsAboutPoperate
...
...
@@ -464,14 +479,36 @@ export default {
},
/** TODO: 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
'queryForm'
)
this
.
queryEntity
=
{
tableSortMark
:
0
,
entity
:
{
pn
:
''
,
lot
:
''
,
plocation
:
''
,
poperate
:
''
,
ptype
:
''
}
}
this
.
dateRange
=
[]
this
.
handleQuery
()
},
/* TODO: 控制单项表单关闭的详情 */
handleClose
()
{
this
.
activateAbandonedState
=
false
this
.
singleLogIdAndFqYs
=
{}
this
.
singleLogIdAndPn
=
{}
},
/* TODO: 进行排序 */
changeTableSort
:
function
(
val
)
{
console
.
log
(
'column'
,
val
)
// TODO:按照降序排序
if
(
val
.
order
===
'descending'
)
{
this
.
queryEntity
.
tableSortMark
=
0
}
else
{
// TODO:按照升序排序
this
.
queryEntity
.
tableSortMark
=
1
}
this
.
getList
()
},
/* TODO: 获取详情信息*/
handleDetail
:
function
(
row
)
{
...
...
@@ -480,28 +517,18 @@ export default {
this
.
singleDetails
=
{
...
row
}
}
else
{
/* TODO: 设置单项详情的查询的条件 */
this
.
singleLogIdAnd
FqYs
[
'businessId'
]
=
row
.
businessId
this
.
singleLogIdAnd
FqYs
[
'fqYs'
]
=
row
.
fqYs
this
.
singleLogIdAnd
Pn
[
'businessId'
]
=
row
.
businessId
this
.
singleLogIdAnd
Pn
[
'pn'
]
=
row
.
pn
/* TODO: 进行查询,如果返回的code为200,则表示返回的值成功 */
findSingleLogDetail
(
this
.
singleLogIdAnd
FqYs
).
then
(
findSingleLogDetail
(
this
.
singleLogIdAnd
Pn
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
singleDetails
=
Object
.
assign
({},
response
.
data
,
{
...
row
})
/* TODO: 如果库状态==='4' 并且返回的状态码为200的时候,才会将可变的详情字段设置为true,去激活并打开 */
/* 激活打开废弃信息栏 */
this
.
activateAbandonedState
=
true
}
else
{
/* TODO: 如果状态码不对则不会激活可变字段,只会对普通字段进行赋值,并且抛出错误信息response.message */
this
.
$message
({
showClose
:
true
,
message
:
response
.
message
,
type
:
'warning'
})
this
.
singleDetails
=
{
...
row
}
}
this
.
title
=
'记录详情'
this
.
singleDetails
=
Object
.
assign
({},
response
.
data
,
{
...
row
})
}
)
}
this
.
title
=
'记录详情'
this
.
openDetails
=
true
},
handleExport
()
{
...
...
src/views/sample/inventoryRecord/index.vue
View file @
07f1a295
This diff is collapsed.
Click to expand it.
src/views/sample/sampleLibrary/index.vue
deleted
100644 → 0
View file @
c5506751
<
template
>
<div
class=
"basicInformation-module app-container"
>
<!-- 搜索区 -->
<el-form
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"queryParams"
:inline=
"true"
>
<el-form-item
label=
"pn"
prop=
"pn"
>
<el-input
v-model=
"queryParams.pn"
placeholder=
"请输入pn"
clearable
:maxlength=
"30"
size=
"small"
style=
"width: 150px"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"name"
prop=
"name"
>
<el-input
v-model=
"queryParams.name"
placeholder=
"请输入名称"
clearable
size=
"small"
style=
"width: 150px"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
style=
"padding: 8px 7px;"
icon=
"el-icon-search"
size=
"small"
@
click=
"handleQuery"
>
查询
</el-button>
<el-button
type=
"primary"
style=
"padding: 8px 7px;"
icon=
"el-icon-refresh"
size=
"small"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
<div
style=
"float: right"
>
<el-form-item>
<el-button
type=
"primary"
size=
"small"
icon=
"el-icon-plus"
@
click=
"handleAdd"
>
新增
</el-button>
<el-button
style=
"padding: 8px 7px;"
type=
"success"
size=
"small"
icon=
"el-icon-download"
@
click=
"handleExport"
>
导出
</el-button>
</el-form-item>
</div>
</el-form>
<!-- 分割线 -->
<div
class=
"placeholder"
/>
<!-- 表单区 -->
<div
style=
"padding:5px 10px"
>
<div
class=
"mb12 font-small-bold"
>
基础样式列表
</div>
<el-table
v-loading=
"loading"
border
:data=
"basicinfoMationList"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
/>
<el-table-column
label=
"pn"
prop=
"pn"
:show-overflow-tooltip=
"true"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
pn
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"qty"
prop=
"qty"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
qty
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"name"
prop=
"name"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
name
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"max_qty"
prop=
"max_qty"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
max_qty
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"min_qty"
prop=
"min_qty"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
min_qty
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"unit"
prop=
"unit"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
unit
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作人"
prop=
"createName"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
createName
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作时间"
prop=
"create_date"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
create_date
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
style=
"color: #49cec9"
@
click=
"handleUpdate(scope.row)"
>
修改
</el-button>
<!--
<el-button-->
<!-- v-hasPermi="['sys:role:update']"-->
<!-- size="mini"-->
<!-- type="text"-->
<!-- icon="el-icon-circle-check"-->
<!-- @click="handleMenu(scope.row)"-->
<!-- >数据权限
</el-button>
-->
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
</div>
<!-- 分页区-->
<pagination
v-show=
"total>0"
:total=
"total"
:page
.
sync=
"queryParams.page"
:limit
.
sync=
"queryParams.page"
@
pagination=
"getList"
/>
<!-- 新增修改弹出 -->
</div>
</template>
<
script
>
import
{
queryList
}
from
'@/api/sample/basicInformation'
export
default
{
name
:
'Index'
,
data
()
{
return
{
total
:
0
,
loading
:
false
,
queryParams
:
{
page
:
1
,
rows
:
10
,
pn
:
''
,
name
:
''
},
statusOptions
:
{},
basicinfoMationList
:
[]
}
},
created
()
{
this
.
getList
()
},
methods
:
{
handleDelete
()
{
},
handleUpdate
()
{
},
// 初始化获取数据
getList
()
{
this
.
loading
=
true
queryList
(
this
.
queryParams
).
then
(
res
=>
{
console
.
log
(
'res'
,
res
)
this
.
total
=
res
.
total
this
.
basicinfoMationList
=
res
.
rows
this
.
loading
=
false
})
},
// 查询
handleQuery
()
{
this
.
queryParams
.
page
=
1
this
.
getList
()
},
// 重置
resetQuery
()
{
this
.
queryParams
=
{
page
:
1
,
rows
:
10
,
pn
:
''
,
name
:
''
}
this
.
getList
()
},
handleAdd
()
{
},
handleExport
()
{
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.basicInformation-module
{
font-size
:
18px
;
padding
:
0
;
.placeholder
{
height
:
1
.3vh
;
background-color
:
#F4F4F4
;
margin-bottom
:
10px
}
}
</
style
>
src/views/sample/sampleType/index.vue
View file @
07f1a295
...
...
@@ -13,7 +13,7 @@
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"
name"
prop=
"
name"
>
<el-form-item
label=
"
dname"
prop=
"d
name"
>
<el-input
v-model=
"queryParams.dname"
placeholder=
"请输入名称"
...
...
@@ -23,6 +23,16 @@
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"dno"
prop=
"dno"
>
<el-input
v-model=
"queryParams.dno"
placeholder=
"请输入dno"
clearable
size=
"small"
style=
"width: 150px"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
style=
"padding: 8px 7px;"
icon=
"el-icon-search"
size=
"small"
@
click=
"handleQuery"
>
查询
</el-button>
<el-button
style=
"padding: 8px 7px;"
icon=
"el-icon-refresh"
size=
"small"
@
click=
"resetQuery"
>
重置
</el-button>
...
...
@@ -36,13 +46,13 @@
icon=
"el-icon-plus"
@
click=
"handleAdd"
>
新增
</el-button>
<el-button
style=
"padding: 8px 7px;"
type=
"success"
size=
"small"
icon=
"el-icon-download"
@
click=
"handleExport"
>
导出
</el-button
>
<!--
<el-button-->
<!-- style="padding: 8px 7px;"-->
<!-- type="success"-->
<!-- size="small"-->
<!-- icon="el-icon-download"-->
<!-- @click="handleExport"-->
<!-- >导出
</el-button>
--
>
</el-form-item>
</div>
</el-form>
...
...
@@ -68,22 +78,22 @@
{{
scope
.
row
.
dno
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"remarks"
prop=
"remarks"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
remarks
||
'-'
}}
</
template
>
</el-table-column
>
<!-- <el-table-column label="remarks" prop="remarks" :show-overflow-tooltip="true">--
>
<!-- <template slot-scope="scope">--
>
<!-- {{ scope.row.remarks || '-' }}-->
<!-- </template>--
>
<!-- </el-table-column>--
>
<el-table-column
label=
"操作人"
prop=
"createName"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
createName
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作时间"
prop=
"
cre
ateDate"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"操作时间"
prop=
"
upd
ateDate"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
parseTime
(
scope
.
row
.
cre
ateDate
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
'
)
||
'-'
}}
{{
parseTime
(
scope
.
row
.
upd
ateDate
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
'
)
||
'-'
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"操作"
>
<
el
-
table
-
column
label
=
"操作"
width
=
"150px"
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
button
size
=
"mini"
...
...
@@ -128,9 +138,9 @@
<
el
-
form
-
item
label
=
"dno"
prop
=
"dno"
>
<
el
-
input
v
-
model
.
trim
=
"form.dno"
:
maxlength
=
"30"
placeholder
=
"请输入dno"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"remarks"
prop
=
"remarks"
>
<
el
-
input
v
-
model
.
trim
=
"form.remarks"
:
maxlength
=
"30"
placeholder
=
"请输入remarks"
/
>
<
/el-form-item
>
<!--
<
el
-
form
-
item
label
=
"remarks"
prop
=
"remarks"
>--
>
<!--
<
el
-
input
v
-
model
.
trim
=
"form.remarks"
:
maxlength
=
"30"
placeholder
=
"请输入remarks"
/>--
>
<!--
<
/el-form-item>--
>
<
/el-form
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
@
click
=
"cancel"
>
取
消
<
/el-button
>
...
...
@@ -154,7 +164,8 @@ export default {
form
:
{
}
,
rules
:
{
pn
:
[{
required
:
true
,
message
:
'请输入pn'
,
trigger
:
'blur'
}
],
dname
:
[{
required
:
true
,
message
:
'请输入name'
,
trigger
:
'blur'
}
]
dname
:
[{
required
:
true
,
message
:
'请输入dname'
,
trigger
:
'blur'
}
],
dno
:
[{
required
:
true
,
message
:
'请输入dno'
,
trigger
:
'blur'
}
]
}
,
total
:
0
,
loading
:
false
,
...
...
@@ -162,7 +173,8 @@ export default {
page
:
1
,
rows
:
10
,
pn
:
''
,
dname
:
''
dname
:
''
,
dno
:
''
}
,
statusOptions
:
{
}
,
basicinfoMationList
:
[]
...
...
@@ -232,7 +244,7 @@ export default {
getList
()
{
this
.
loading
=
true
queryList
(
this
.
queryParams
).
then
(
res
=>
{
res
.
rows
.
createDate
=
parseTime
(
res
.
rows
.
cre
ateDate
,
'{y
}
-{m
}
-{d
}
'
)
res
.
rows
.
updateDate
=
parseTime
(
res
.
rows
.
upd
ateDate
,
'{y
}
-{m
}
-{d
}
'
)
this
.
total
=
res
.
total
this
.
basicinfoMationList
=
res
.
rows
this
.
loading
=
false
...
...
@@ -249,7 +261,8 @@ export default {
page
:
1
,
rows
:
10
,
pn
:
''
,
dname
:
''
dname
:
''
,
dno
:
''
}
this
.
getList
()
}
,
...
...
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