fix:优化关联关系

dev_unify
chenhc 5 months ago
parent d13baee123
commit e15d9553f3

@ -6,7 +6,7 @@
"license": "MIT",
"scripts": {
"dev": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --open",
"build:prod": "vue-cli-service build --mode production",
"build:prod": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build --mode production",
"build:test": "vue-cli-service build --mode test",
"preview": "node build/index.js --preview",
"lint": "eslint --ext .js,.vue src"

@ -4,17 +4,18 @@
<el-form :model="filterQuery" class="query-form" label-width="100px" v-if="showSearch">
<el-row>
<el-col :span="12">
<el-form-item prop="code" label="扫码录入:">
<el-input
id="inputer"
@focus="getInputFocus($event)"
ref="inputRef"
style="ime-mode: disabled"
type="tel"
placeholder="请点击输入框进行扫码设置或者扫码录入"
v-model="filterQuery.code"
></el-input>
</el-form-item>
<el-form-item prop="code" label="扫码录入:">
<el-input
id="inputer"
@focus="getInputFocus($event)"
@keypress.enter.native="enterKey($event)"
ref="inputRef"
style="ime-mode: disabled"
type="tel"
placeholder="请点击输入框进行扫码设置或者扫码录入"
v-model="filterQuery.code"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
@ -88,6 +89,7 @@
<el-table-column label="批次号" prop="batchNo"></el-table-column>
<el-table-column label="生产日期" prop="madeDate"></el-table-column>
<el-table-column label="失效日期" prop="validateDate"></el-table-column>
<el-table-column label="供应商Id" prop="erpId"></el-table-column>
<el-table-column label="备注" prop="comment"></el-table-column>
<el-table-column label="操作" width="120px">
<template slot-scope="scope">
@ -240,6 +242,9 @@ export default {
this.getList();
this.detailList = [];
},
enterKey(event){
this.onSubmitFind()
},
getInputFocus(event) {
event.currentTarget.select();
},

Loading…
Cancel
Save