feat: 0702-扫码校验功能

演示数据2.0
chenhc 9 months ago
parent 31e87e7c6a
commit 6861612025

@ -226,6 +226,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
@ -235,6 +236,16 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="11">
<el-form-item label="是否开启校验扫码" prop="codeCheck">
<el-select v-model="inputQuery.codeCheck" style="width: 90%" placeholder="是否开启校验扫码">
<el-option label="不校验" :value="0"></el-option>
<el-option label="只允许录入扫码产品" :value="1"></el-option>
<el-option label="只允许录入不扫码产品" :value="2"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row> </el-row>
</el-form> </el-form>

@ -85,7 +85,6 @@
style="width: 90%" style="width: 90%"
reserve-keyword reserve-keyword
placeholder="请选择" placeholder="请选择"
:remote-method="classifySearch"
:loading="loading" :loading="loading"
@change="classifyChange()" @change="classifyChange()"
> >
@ -211,7 +210,9 @@ export default {
}, },
methods: { methods: {
classifyChange(){ classifyChange(){
this.editQuery.requireScanCode = this.classifyList.find(item => item.code == this.editQuery.flbm).requireScanCode; this.classifyChange(this.newProductData.flbm)
let item = this.classifyList.find(item => item.code == this.newProductData.flbm)
if (item != null) this.newProductData.requireScanCode = item.requireScanCode;
}, },
classifySearch(key) { classifySearch(key) {
let query = { let query = {

@ -339,7 +339,6 @@
style="width: 80%" style="width: 80%"
reserve-keyword reserve-keyword
placeholder="请选择" placeholder="请选择"
:remote-method="classifySearch"
:loading="loading" :loading="loading"
@change="classifyChange()" @change="classifyChange()"
> >
@ -849,11 +848,13 @@ export default {
if (this.editQuery.basicPrductRemak8 != null) { if (this.editQuery.basicPrductRemak8 != null) {
this.findHsflMethod(this.editQuery.basicPrductRemak8); this.findHsflMethod(this.editQuery.basicPrductRemak8);
} }
this.classifySearch() this.classifySearch("")
}, },
methods: { methods: {
classifyChange(){ classifyChange(){
this.editQuery.requireScanCode = this.classifyList.find(item => item.code == this.editQuery.flbm).requireScanCode; this.classifyChange(this.editQuery.flbm)
let item = this.classifyList.find(item => item.code == this.editQuery.flbm)
if (item != null) this.editQuery.requireScanCode = item.requireScanCode;
}, },
classifySearch(key) { classifySearch(key) {
let query = { let query = {

Loading…
Cancel
Save