Commit 6da18ce7 authored by CenXinYi's avatar CenXinYi

优化详情设置

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