Commit 6da18ce7 authored by CenXinYi's avatar CenXinYi

优化详情设置

Signed-off-by: 's avatarCenXinYi <2810162984@qq.com>
parent 9484b7c3
......@@ -9,7 +9,7 @@
v-model="queryEntity.entity.pn"
placeholder="请输入pn"
clearable
:maxlength="20"
:maxlength="inputMaxLength"
size="small"
@keyup.enter.native="handleQuery"
/>
......@@ -20,7 +20,7 @@
v-model="queryEntity.entity.lot"
placeholder="请输入lot"
clearable
:maxlength="20"
:maxlength="inputMaxLength"
size="small"
@keyup.enter.native="handleQuery"
/>
......@@ -31,7 +31,7 @@
v-model="queryEntity.entity.plocation"
placeholder="请输入plocation"
clearable
:maxlength="20"
:maxlength="inputMaxLength"
size="small"
@keyup.enter.native="handleQuery"
/>
......@@ -234,6 +234,9 @@ export default {
delIcon: 'el-icon-delete',
exportIcon: 'el-icon-download',
// TODO: 限制搜索输入框的最大能输入数
inputMaxLength: 100,
// TODO:遮罩层
loading: true,
// 非多个禁用
......@@ -599,8 +602,6 @@ export default {
}
}
/* TODO: 专门用来解决el-input边框的问题 */
.aboutSingleDetails{
.el-form{
......
......@@ -9,7 +9,7 @@
v-model="queryEntity.entity.pn"
placeholder="请输入pn"
clearable
:maxlength="20"
:maxlength="inputMaxLength"
size="small"
@keyup.enter.native="handleQuery"
/>
......@@ -20,7 +20,7 @@
v-model="queryEntity.entity.lot"
placeholder="请输入lot"
clearable
:maxlength="20"
:maxlength="inputMaxLength"
size="small"
@keyup.enter.native="handleQuery"
/>
......@@ -180,7 +180,8 @@ export default {
exportSize: 'small',
delIcon: 'el-icon-delete',
exportIcon: 'el-icon-download',
// TODO: 限制搜索输入框的最大能输入数
inputMaxLength: 100,
// TODO:遮罩层
loading: true,
// 非多个禁用
......@@ -414,23 +415,17 @@ export default {
}
this.getList()
},
/* TODO: 获取详情信息*/
handleDetail: function(row) {
/* TODO: 如果库状态为‘废弃’,即为‘4’时,则可以进入 */
if (row.poperate !== '4') {
this.singleDetails = { ...row }
} else {
/* TODO: 设置单项详情的查询的条件 */
this.singleLogIdAndPn['businessId'] = row.businessId
this.singleLogIdAndPn['pn'] = row.pn
/* TODO: 进行单项详情的查询 */
findSingleLogDetail(this.singleLogIdAndPn).then(
response => {
this.title = '记录详情'
this.singleDetails = Object.assign({}, response.data, { ...row })
}
)
}
this.singleDetails = { ...row }
/* TODO: 设置单项详情的查询的条件 */
this.singleLogIdAndPn['businessId'] = row.businessId
this.singleLogIdAndPn['pn'] = row.pn
/* TODO: 进行单项详情的查询 */
findSingleLogDetail(this.singleLogIdAndPn).then(
response => {
this.singleDetails = Object.assign({}, response.data, { ...row })
}
)
this.title = '记录详情'
this.openDetails = true
},
......
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