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
9d000cb5
Commit
9d000cb5
authored
Jul 30, 2023
by
CenXinYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化相关废弃的具体信息的查询
Signed-off-by:
CenXinYi
<
2810162984@qq.com
>
parent
412cb3f5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
23 deletions
+29
-23
BaseTableArguments.js
src/components/Table/AllTableArguments/BaseTableArguments.js
+2
-2
index.vue
src/components/Table/BaseTable/index.vue
+4
-4
index.vue
src/views/processManagement/inventoryRecord/index.vue
+23
-17
No files found.
src/components/Table/AllTableArguments/BaseTableArguments.js
View file @
9d000cb5
...
@@ -81,7 +81,7 @@ export function BaseTableArguments(selection, loading, processList, queryParams,
...
@@ -81,7 +81,7 @@ export function BaseTableArguments(selection, loading, processList, queryParams,
}
}
// TODO: 组件表单所需的所有参数
// TODO: 组件表单所需的所有参数
export
function
BaseTableArgumentsTest
(
nIndex
,
selection
,
loading
,
process
List
,
queryParams
,
columnData
)
{
export
function
BaseTableArgumentsTest
(
nIndex
,
selection
,
loading
,
List
,
queryParams
,
columnData
)
{
// TODO: 选择框是否需要存在 (selection判断表单选择框是否需要存在)
// TODO: 选择框是否需要存在 (selection判断表单选择框是否需要存在)
if
(
typeof
selection
!==
'boolean'
)
{
if
(
typeof
selection
!==
'boolean'
)
{
console
.
warn
(
'selection下拉框参数的type类型错误!请检查后重新赋值'
)
console
.
warn
(
'selection下拉框参数的type类型错误!请检查后重新赋值'
)
...
@@ -108,5 +108,5 @@ export function BaseTableArgumentsTest(nIndex, selection, loading, processList,
...
@@ -108,5 +108,5 @@ export function BaseTableArgumentsTest(nIndex, selection, loading, processList,
this
.
queryParams
=
queryParamsType
this
.
queryParams
=
queryParamsType
}
}
this
.
columnData
=
columnData
this
.
columnData
=
columnData
this
.
processList
=
process
List
this
.
List
=
List
}
}
src/components/Table/BaseTable/index.vue
View file @
9d000cb5
...
@@ -7,12 +7,12 @@
...
@@ -7,12 +7,12 @@
v-loading=
"allTableArguments.loading"
v-loading=
"allTableArguments.loading"
class=
"processList"
class=
"processList"
border
border
:data=
"allTableArguments.
process
List"
:data=
"allTableArguments.List"
style=
"width: 100%"
style=
"width: 100%"
@
selection-change=
"handleSelectionChange"
@
selection-change=
"handleSelectionChange"
>
>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
:index=
"nIndex"
/>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
/>
<!-- TODO: 选择框是否开启,selectable控制是否单行禁用 -->
<!-- TODO: 选择框是否开启,selectable控制是否单行禁用 -->
<el-table-column
v-if=
"allTableArguments.columObj.selection"
type=
"selection"
:selectable=
"allTableArguments.columObj.selectable"
width=
"50px"
/>
<el-table-column
v-if=
"allTableArguments.columObj.selection"
type=
"selection"
:selectable=
"allTableArguments.columObj.selectable"
width=
"50px"
/>
...
@@ -88,7 +88,7 @@ export default {
...
@@ -88,7 +88,7 @@ export default {
selection
:
Boolean
,
selection
:
Boolean
,
loading
:
Boolean
,
loading
:
Boolean
,
queryParams
:
Object
,
queryParams
:
Object
,
process
List
:
Array
,
List
:
Array
,
columnData
:
Array
columnData
:
Array
}
}
}
}
...
...
src/views/processManagement/inventoryRecord/index.vue
View file @
9d000cb5
...
@@ -128,7 +128,15 @@
...
@@ -128,7 +128,15 @@
/>
/>
<!-- TODO: 单项详情信息表单配置 -->
<!-- TODO: 单项详情信息表单配置 -->
<el-dialog
class=
"aboutSingleDetails"
:title=
"title"
:visible
.
sync=
"openDetails"
:close-on-click-modal=
"false"
width=
"800px"
append-to-body
>
<el-dialog
class=
"aboutSingleDetails"
:title=
"title"
:visible
.
sync=
"openDetails"
:close-on-click-modal=
"false"
width=
"800px"
append-to-body
@
closed=
"handleClose"
>
<el-form
ref=
"formDetails"
:model=
"singleDetails"
size=
"small"
label-width=
"90px"
>
<el-form
ref=
"formDetails"
:model=
"singleDetails"
size=
"small"
label-width=
"90px"
>
<el-row
:gutter=
"10"
justify=
"start"
align=
"middle"
>
<el-row
:gutter=
"10"
justify=
"start"
align=
"middle"
>
...
@@ -171,7 +179,7 @@
...
@@ -171,7 +179,7 @@
<el-form-item
label=
"fq_dd:"
prop=
"fq_dd"
>
<el-form-item
label=
"fq_dd:"
prop=
"fq_dd"
>
{{
singleDetails
.
fq_dd
}}
{{
singleDetails
.
fq_dd
}}
</el-form-item>
</el-form-item>
<el-form-item
label=
"fq_mcode:"
prop=
"fq_mcode"
>
<el-form-item
label=
"fq_mcode:"
:label-width=
"10"
prop=
"fq_mcode"
>
{{
singleDetails
.
fq_mcode
}}
{{
singleDetails
.
fq_mcode
}}
</el-form-item>
</el-form-item>
<el-form-item
label=
"fq_yy:"
prop=
"fq_yy"
>
<el-form-item
label=
"fq_yy:"
prop=
"fq_yy"
>
...
@@ -364,7 +372,9 @@ export default {
...
@@ -364,7 +372,9 @@ export default {
openDetails
:
false
,
openDetails
:
false
,
isReadOnly
:
true
,
isReadOnly
:
true
,
// TODO: 表单里的单项详情参数
// TODO: 表单里的单项详情参数
singleDetails
:
{}
singleDetails
:
{},
// TODO: 获取表单单项详情的参数
singleLogIdAndFqYs
:
{}
}
}
},
},
computed
:
{
computed
:
{
...
@@ -383,7 +393,7 @@ export default {
...
@@ -383,7 +393,7 @@ export default {
return
{
return
{
listName
:
'出入库记录列表'
,
listName
:
'出入库记录列表'
,
loading
:
this
.
loading
,
loading
:
this
.
loading
,
process
List
:
this
.
inventoryRecordList
,
List
:
this
.
inventoryRecordList
,
queryParams
:
this
.
queryParams
,
queryParams
:
this
.
queryParams
,
columObj
:
this
.
columObj
columObj
:
this
.
columObj
}
}
...
@@ -442,14 +452,7 @@ export default {
...
@@ -442,14 +452,7 @@ export default {
return
''
return
''
}
}
},
},
handleClose
()
{
this
.
clearVisible
=
false
this
.
exportVisible
=
false
},
// 登录状态字典翻译
// statusFormat(row, column) {
// return this.selectDictLabel(this.statusOptions, row.status)
// },
/** TODO: 查询按钮操作 */
/** TODO: 查询按钮操作 */
handleQuery
()
{
handleQuery
()
{
this
.
queryParams
.
page
=
1
this
.
queryParams
.
page
=
1
...
@@ -461,16 +464,19 @@ export default {
...
@@ -461,16 +464,19 @@ export default {
this
.
handleQuery
()
this
.
handleQuery
()
},
},
/* TODO: 控制单项表单关闭的详情 */
handleClose
()
{
this
.
singleLogIdAndFqYs
=
{}
},
/* TODO: 获取详情信息*/
handleDetail
:
function
(
row
)
{
handleDetail
:
function
(
row
)
{
console
.
log
(
'success!'
)
/* TODO: 如果库状态为‘废弃’,即为‘4’时,则可以进入 */
/* TODO: 如果库状态为‘废弃’,即为‘4’时,则可以进入 */
if
(
row
.
poperate
!==
'4'
)
{
if
(
row
.
poperate
!==
'4'
)
{
this
.
singleDetails
=
{
...
row
}
this
.
singleDetails
=
{
...
row
}
}
else
{
}
else
{
const
singleLogIdAndFqYs
=
{}
this
.
singleLogIdAndFqYs
[
'businessId'
]
=
row
.
businessId
singleLogIdAndFqYs
[
'businessId'
]
=
row
.
bussinessId
this
.
singleLogIdAndFqYs
[
'fqYs'
]
=
row
.
fqYs
singleLogIdAndFqYs
[
'fqYs'
]
=
row
.
fqYs
findSingleLogDetail
(
this
.
singleLogIdAndFqYs
).
then
(
findSingleLogDetail
(
singleLogIdAndFqYs
).
then
(
response
=>
{
response
=>
{
if
(
response
.
code
===
200
)
{
if
(
response
.
code
===
200
)
{
this
.
singleDetails
=
Object
.
assign
({},
response
.
data
,
{
...
row
})
this
.
singleDetails
=
Object
.
assign
({},
response
.
data
,
{
...
row
})
...
...
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