Commit 9d000cb5 authored by CenXinYi's avatar CenXinYi

优化相关废弃的具体信息的查询

Signed-off-by: 's avatarCenXinYi <2810162984@qq.com>
parent 412cb3f5
......@@ -81,7 +81,7 @@ export function BaseTableArguments(selection, loading, processList, queryParams,
}
// TODO: 组件表单所需的所有参数
export function BaseTableArgumentsTest(nIndex, selection, loading, processList, queryParams, columnData) {
export function BaseTableArgumentsTest(nIndex, selection, loading, List, queryParams, columnData) {
// TODO: 选择框是否需要存在 (selection判断表单选择框是否需要存在)
if (typeof selection !== 'boolean') {
console.warn('selection下拉框参数的type类型错误!请检查后重新赋值')
......@@ -108,5 +108,5 @@ export function BaseTableArgumentsTest(nIndex, selection, loading, processList,
this.queryParams = queryParamsType
}
this.columnData = columnData
this.processList = processList
this.List = List
}
......@@ -7,12 +7,12 @@
v-loading="allTableArguments.loading"
class="processList"
border
:data="allTableArguments.processList"
:data="allTableArguments.List"
style="width: 100%"
@selection-change="handleSelectionChange"
>
<el-table-column type="index" label="序号" width="50" :index="nIndex" />
<el-table-column type="index" label="序号" width="50"/>
<!-- TODO: 选择框是否开启,selectable控制是否单行禁用 -->
<el-table-column v-if="allTableArguments.columObj.selection" type="selection" :selectable="allTableArguments.columObj.selectable" width="50px" />
......@@ -30,7 +30,7 @@
:index="columIndex"
show-overflow-tooltip
>
<template slot-scope="{row,$index}">
<template slot-scope="{row,$index}">
<!-- 默认展示 -->
<span v-if="column.text && column.editRow !== $index">{{ row[column.prop] || '-' }}</span>
......@@ -88,7 +88,7 @@ export default {
selection: Boolean,
loading: Boolean,
queryParams: Object,
processList: Array,
List: Array,
columnData: Array
}
}
......
......@@ -128,7 +128,15 @@
/>
<!-- 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-row :gutter="10" justify="start" align="middle">
......@@ -171,7 +179,7 @@
<el-form-item label="fq_dd:" prop="fq_dd">
{{ singleDetails.fq_dd }}
</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 }}
</el-form-item>
<el-form-item label="fq_yy:" prop="fq_yy">
......@@ -364,7 +372,9 @@ export default {
openDetails: false,
isReadOnly: true,
// TODO: 表单里的单项详情参数
singleDetails: {}
singleDetails: {},
// TODO: 获取表单单项详情的参数
singleLogIdAndFqYs: {}
}
},
computed: {
......@@ -383,7 +393,7 @@ export default {
return {
listName: '出入库记录列表',
loading: this.loading,
processList: this.inventoryRecordList,
List: this.inventoryRecordList,
queryParams: this.queryParams,
columObj: this.columObj
}
......@@ -442,14 +452,7 @@ export default {
return ''
}
},
handleClose() {
this.clearVisible = false
this.exportVisible = false
},
// 登录状态字典翻译
// statusFormat(row, column) {
// return this.selectDictLabel(this.statusOptions, row.status)
// },
/** TODO: 查询按钮操作 */
handleQuery() {
this.queryParams.page = 1
......@@ -461,16 +464,19 @@ export default {
this.handleQuery()
},
/* TODO: 控制单项表单关闭的详情 */
handleClose() {
this.singleLogIdAndFqYs = {}
},
/* TODO: 获取详情信息*/
handleDetail: function(row) {
console.log('success!')
/* TODO: 如果库状态为‘废弃’,即为‘4’时,则可以进入 */
if (row.poperate !== '4') {
this.singleDetails = { ...row }
} else {
const singleLogIdAndFqYs = {}
singleLogIdAndFqYs['businessId'] = row.bussinessId
singleLogIdAndFqYs['fqYs'] = row.fqYs
findSingleLogDetail(singleLogIdAndFqYs).then(
this.singleLogIdAndFqYs['businessId'] = row.businessId
this.singleLogIdAndFqYs['fqYs'] = row.fqYs
findSingleLogDetail(this.singleLogIdAndFqYs).then(
response => {
if (response.code === 200) {
this.singleDetails = Object.assign({}, response.data, { ...row })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment