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
67e0c018
Commit
67e0c018
authored
Oct 12, 2023
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出入库记录添加两个字段
parent
db8a702a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
81 additions
and
64 deletions
+81
-64
index.vue
src/views/equipment/inventoryRecord/index.vue
+8
-1
index.vue
src/views/processManagement/inventoryRecord/index.vue
+73
-63
No files found.
src/views/equipment/inventoryRecord/index.vue
View file @
67e0c018
...
@@ -145,7 +145,7 @@
...
@@ -145,7 +145,7 @@
append-to-body
append-to-body
@
closed=
"handleClose"
@
closed=
"handleClose"
>
>
<el-form
ref=
"formDetails"
:model=
"singleDetails"
size=
"small"
label-width=
"1
0
0px"
>
<el-form
ref=
"formDetails"
:model=
"singleDetails"
size=
"small"
label-width=
"1
4
0px"
>
<el-row
:gutter=
"10"
justify=
"start"
align=
"middle"
>
<el-row
:gutter=
"10"
justify=
"start"
align=
"middle"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
...
@@ -158,6 +158,9 @@
...
@@ -158,6 +158,9 @@
<el-form-item
label=
"plocation:"
prop=
"plocation"
>
<el-form-item
label=
"plocation:"
prop=
"plocation"
>
<el-input
v-model
.
trim=
"singleDetails.plocation"
:readonly=
"isReadOnly"
/>
<el-input
v-model
.
trim=
"singleDetails.plocation"
:readonly=
"isReadOnly"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"unlockUsername:"
prop=
"unlockUsername"
>
<el-input
v-model
.
trim=
"singleDetails.unlockUsername"
:readonly=
"isReadOnly"
/>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
...
@@ -170,6 +173,9 @@
...
@@ -170,6 +173,9 @@
<el-form-item
label=
"fqYs:"
prop=
"fqYs"
>
<el-form-item
label=
"fqYs:"
prop=
"fqYs"
>
{{
singleDetails
.
fqYs
}}
{{
singleDetails
.
fqYs
}}
</el-form-item>
</el-form-item>
<el-form-item
label=
"unlockDate:"
prop=
"unlockDate"
>
<el-input
v-model
.
trim=
"singleDetails.unlockDate"
:readonly=
"isReadOnly"
/>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -578,6 +584,7 @@ export default {
...
@@ -578,6 +584,7 @@ export default {
type
:
'warning'
type
:
'warning'
})
})
}
else
{
}
else
{
console
.
log
(
'详情'
)
var
{
fqYs
,
fqBz
,
fqDbxi
,
fqDd
,
fqMcode
,
fqYy
}
=
response
.
data
var
{
fqYs
,
fqBz
,
fqDbxi
,
fqDd
,
fqMcode
,
fqYy
}
=
response
.
data
var
fq
=
{
fqYs
,
fqBz
,
fqDbxi
,
fqDd
,
fqMcode
,
fqYy
}
var
fq
=
{
fqYs
,
fqBz
,
fqDbxi
,
fqDd
,
fqMcode
,
fqYy
}
this
.
singleDetails
=
Object
.
assign
({},
{
...
row
},
{
...
fq
})
this
.
singleDetails
=
Object
.
assign
({},
{
...
row
},
{
...
fq
})
...
...
src/views/processManagement/inventoryRecord/index.vue
View file @
67e0c018
...
@@ -100,20 +100,20 @@
...
@@ -100,20 +100,20 @@
</el-button>
</el-button>
</el-form-item>
</el-form-item>
<!-- <!–TODO: 导出按钮所在 –>-->
<!-- <!–TODO: 导出按钮所在 –>-->
<!--
<div
style=
"float: right; padding:3px 10px;"
>
-->
<!--
<div
style=
"float: right; padding:3px 10px;"
>
-->
<!--
<el-row
:gutter=
"10"
>
-->
<!--
<el-row
:gutter=
"10"
>
-->
<!--
<el-col
:span=
"1.5"
>
-->
<!--
<el-col
:span=
"1.5"
>
-->
<!--
</el-col>
-->
<!--
</el-col>
-->
<!--
</el-row>
-->
<!--
</el-row>
-->
<!--
</div>
-->
<!--
</div>
-->
</el-form>
</el-form>
</div>
</div>
<!-- TODO: 分隔符-->
<!-- TODO: 分隔符-->
<div
class=
"placeholder"
/>
<div
class=
"placeholder"
/>
<!--TODO: Table表单-->
<!--TODO: Table表单-->
<transition
name=
"fade-transform"
mode=
"out-in"
>
<transition
name=
"fade-transform"
mode=
"out-in"
>
...
@@ -145,18 +145,21 @@
...
@@ -145,18 +145,21 @@
append-to-body
append-to-body
@
closed=
"handleClose"
@
closed=
"handleClose"
>
>
<el-form
ref=
"formDetails"
:model=
"singleDetails"
size=
"small"
label-width=
"1
0
0px"
>
<el-form
ref=
"formDetails"
:model=
"singleDetails"
size=
"small"
label-width=
"1
4
0px"
>
<el-row
:gutter=
"10"
justify=
"start"
align=
"middle"
>
<el-row
:gutter=
"10"
justify=
"start"
align=
"middle"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"pn:"
prop=
"pn"
>
<el-form-item
label=
"pn:"
prop=
"pn"
>
<el-input
v-model
.
trim=
"singleDetails.pn"
:readonly=
"isReadOnly"
/>
<el-input
v-model
.
trim=
"singleDetails.pn"
:readonly=
"isReadOnly"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"lot:"
prop=
"lot"
>
<el-form-item
label=
"lot:"
prop=
"lot"
>
<el-input
v-model
.
trim=
"singleDetails.lot"
:readonly=
"isReadOnly"
/>
<el-input
v-model
.
trim=
"singleDetails.lot"
:readonly=
"isReadOnly"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"plocation:"
prop=
"plocation"
>
<el-form-item
label=
"plocation:"
prop=
"plocation"
>
<el-input
v-model
.
trim=
"singleDetails.plocation"
:readonly=
"isReadOnly"
/>
<el-input
v-model
.
trim=
"singleDetails.plocation"
:readonly=
"isReadOnly"
/>
</el-form-item>
<el-form-item
label=
"unlockUsername:"
prop=
"unlockUsername"
>
<el-input
v-model
.
trim=
"singleDetails.unlockUsername"
:readonly=
"isReadOnly"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -170,6 +173,9 @@
...
@@ -170,6 +173,9 @@
<el-form-item
label=
"fqYs:"
prop=
"fqYs"
>
<el-form-item
label=
"fqYs:"
prop=
"fqYs"
>
{{
singleDetails
.
fqYs
}}
{{
singleDetails
.
fqYs
}}
</el-form-item>
</el-form-item>
<el-form-item
label=
"unlockDate:"
prop=
"unlockDate"
>
<el-input
v-model
.
trim=
"singleDetails.unlockDate"
:readonly=
"isReadOnly"
/>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -201,13 +207,13 @@
...
@@ -201,13 +207,13 @@
<el-row>
<el-row>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"操作员:"
prop=
"userName"
>
<el-form-item
label=
"操作员:"
prop=
"userName"
>
<el-input
v-model
.
trim=
"singleDetails.userName"
:readonly=
"isReadOnly"
/>
<el-input
v-model
.
trim=
"singleDetails.userName"
:readonly=
"isReadOnly"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"操作时间:"
prop=
"createDate"
>
<el-form-item
label=
"操作时间:"
prop=
"createDate"
>
<el-input
v-model
.
trim=
"singleDetails.createDate"
:readonly=
"isReadOnly"
/>
<el-input
v-model
.
trim=
"singleDetails.createDate"
:readonly=
"isReadOnly"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -219,10 +225,10 @@
...
@@ -219,10 +225,10 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
exportInventoryRecord
,
findSingleLogDetail
,
listLog
}
from
'@/api/processMangement/InventoryRecord'
import
{
exportInventoryRecord
,
findSingleLogDetail
,
listLog
}
from
'@/api/processMangement/InventoryRecord'
import
BaseTable
from
'@/components/Table/BaseTable/index.vue'
import
BaseTable
from
'@/components/Table/BaseTable/index.vue'
import
{
BaseTableArgumentsTest
}
from
'@/components/Table/AllTableArguments/BaseTableArguments'
import
{
BaseTableArgumentsTest
}
from
'@/components/Table/AllTableArguments/BaseTableArguments'
import
{
getDictData
}
from
'@/api/equipment/application'
import
{
getDictData
}
from
'@/api/equipment/application'
export
default
{
export
default
{
name
:
'InventoryRecord'
,
name
:
'InventoryRecord'
,
...
@@ -446,9 +452,10 @@ export default {
...
@@ -446,9 +452,10 @@ export default {
},
},
created
()
{
created
()
{
if
(
this
.
$store
.
getters
.
searchParams
[
this
.
$route
.
path
])
{
if
(
this
.
$store
.
getters
.
searchParams
[
this
.
$route
.
path
])
{
const
{
searchParams
}
=
this
.
$store
.
getters
;
const
{
path
}
=
this
.
$route
const
{
searchParams
}
=
this
.
$store
.
getters
;
const
{
path
}
=
this
.
$route
const
param
=
JSON
.
parse
(
searchParams
[
path
])
// 保留着的查询条件
const
param
=
JSON
.
parse
(
searchParams
[
path
])
// 保留着的查询条件
this
.
queryParams
=
{
...
param
}
this
.
queryParams
=
{
...
param
}
}
}
this
.
getList
()
this
.
getList
()
this
.
getDict
()
this
.
getDict
()
...
@@ -544,7 +551,7 @@ export default {
...
@@ -544,7 +551,7 @@ export default {
this
.
singleLogIdAndPn
=
{}
this
.
singleLogIdAndPn
=
{}
},
},
/* TODO: 进行排序 */
/* TODO: 进行排序 */
changeTableSort
:
function
(
val
)
{
changeTableSort
:
function
(
val
)
{
console
.
log
(
'column'
,
val
)
console
.
log
(
'column'
,
val
)
// TODO:按照降序排序
// TODO:按照降序排序
if
(
val
.
order
===
'descending'
)
{
if
(
val
.
order
===
'descending'
)
{
...
@@ -556,10 +563,10 @@ export default {
...
@@ -556,10 +563,10 @@ export default {
this
.
getList
()
this
.
getList
()
},
},
/* TODO: 获取详情信息*/
/* TODO: 获取详情信息*/
handleDetail
:
function
(
row
)
{
handleDetail
:
function
(
row
)
{
/* TODO: 如果库状态为‘废弃’,即为‘4’时,则可以进入 */
/* TODO: 如果库状态为‘废弃’,即为‘4’时,则可以进入 */
if
(
row
.
poperate
!==
'4'
)
{
if
(
row
.
poperate
!==
'4'
)
{
this
.
singleDetails
=
{
...
row
}
this
.
singleDetails
=
{
...
row
}
}
else
{
}
else
{
/* TODO: 设置单项详情的查询的条件 */
/* TODO: 设置单项详情的查询的条件 */
this
.
singleLogIdAndPn
[
'businessId'
]
=
row
.
businessId
this
.
singleLogIdAndPn
[
'businessId'
]
=
row
.
businessId
...
@@ -571,16 +578,16 @@ export default {
...
@@ -571,16 +578,16 @@ export default {
this
.
activateAbandonedState
=
true
this
.
activateAbandonedState
=
true
this
.
title
=
'记录详情'
this
.
title
=
'记录详情'
if
(
response
.
data
===
'fail'
)
{
if
(
response
.
data
===
'fail'
)
{
this
.
singleDetails
=
Object
.
assign
({},
{
...
row
})
this
.
singleDetails
=
Object
.
assign
({},
{
...
row
})
this
.
$message
({
this
.
$message
({
showClose
:
true
,
showClose
:
true
,
message
:
response
.
message
,
message
:
response
.
message
,
type
:
'warning'
type
:
'warning'
})
})
}
else
{
}
else
{
var
{
fqYs
,
fqBz
,
fqDbxi
,
fqDd
,
fqMcode
,
fqYy
}
=
response
.
data
var
{
fqYs
,
fqBz
,
fqDbxi
,
fqDd
,
fqMcode
,
fqYy
}
=
response
.
data
var
fq
=
{
fqYs
,
fqBz
,
fqDbxi
,
fqDd
,
fqMcode
,
fqYy
}
var
fq
=
{
fqYs
,
fqBz
,
fqDbxi
,
fqDd
,
fqMcode
,
fqYy
}
this
.
singleDetails
=
Object
.
assign
({},
{
...
row
},
{
...
fq
})
this
.
singleDetails
=
Object
.
assign
({},
{
...
row
},
{...
fq
})
}
}
}
}
)
)
...
@@ -621,51 +628,54 @@ export default {
...
@@ -621,51 +628,54 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.app-container
{
.app-container
{
padding
:
0
;
padding
:
0
;
font-size
:
18px
;
font-size
:
18px
;
.placeholder
{
height
:
1
.3vh
;
.placeholder
{
background-color
:
#F4F4F4
;
height
:
1
.3vh
;
margin-bottom
:
10px
background-color
:
#F4F4F4
;
}
margin-bottom
:
10px
}
/*TODO: 这里是调整ToolBar的样式的噢!*/
/*TODO: 这里是调整ToolBar的样式的噢!*/
.ToolBar
{
.ToolBar
{
.el-form
{
.el-form
{
.el-form-item
{
.el-form-item
{
.el-select
{
.el-select
{
width
:
160px
width
:
160px
}
}
.el-input
{
width
:
180px
.el-input
{
}
width
:
180px
}
}
}
}
/* TODO: 定义按钮样式 */
}
.el-button
{
padding
:
8px
7px
;
/* TODO: 定义按钮样式 */
}
.el-button
{
padding
:
8px
7px
;
}
}
}
}
}
/* TODO: 专门用来解决el-input边框的问题 */
/* TODO: 专门用来解决el-input边框的问题 */
.aboutSingleDetails
{
.aboutSingleDetails
{
.el-form
{
.el-form
{
.el-form-item
{
.el-form-item
{
.el-input
>>>
.el-input__inner
{
.el-input
>
>
>
.el-input__inner
{
-webkit-appearance
:
none
;
-webkit-appearance
:
none
;
background-color
:
#FFF
;
background-color
:
#FFF
;
background-image
:
none
;
background-image
:
none
;
border-radius
:
4px
;
border-radius
:
4px
;
border
:
0
;
border
:
0
;
width
:
100%
;
width
:
100%
;
}
}
}
}
}
}
}
</
style
>
}
</
style
>
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