界面修改

yanshishuju
yewj 10 months ago
parent 2857963e63
commit baac26c586

@ -64,8 +64,8 @@
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="独占工位库存:" prop="monopoly" class="query-form-item">
<el-select v-model="formData.monopoly" style="width: 80%" placeholder="独占工位库存"
<el-form-item label="独占库存:" prop="monopoly" class="query-form-item">
<el-select v-model="formData.monopoly" style="width: 80%" placeholder="独占库存"
:disabled="formData.autoTag == 0">
<el-option label="否" :value="0"></el-option>
<el-option label="是" :value="1"></el-option>
@ -75,7 +75,7 @@
</el-row>
<el-row :gutter="24" class="el-row">
<el-col :span="12" class="el-col">
<el-form-item label="常用业务名称:" prop="isPopular" class="query-form-item">
<el-form-item label="常用业务:" prop="isPopular" class="query-form-item">
<el-select v-model="formData.isPopular" style="width: 80%" placeholder="业务类型是否常用">
<el-option label="是" :value="1"></el-option>
<el-option label="否" :value="0"></el-option>
@ -498,17 +498,17 @@ export default {
this.formData.checkInsert = 2
}
},
changeShipper(){
changeShipper() {
if (this.formData.shipper == 1) {
this.formData.consignee = 1
} else {
this.formData.consignee = 2
}
},
changeConsignee(){
changeConsignee() {
if (this.formData.consignee == 1) {
this.formData.shipper = 1
} else if(this.formData.consignee == 2) {
} else if (this.formData.consignee == 2) {
this.formData.shipper = 2
}
}

@ -176,6 +176,10 @@
style="margin-left: 15px"
>
</el-button>
<el-button type="primary"
:disabled="!formData.billNo" @click="addGs">ALT+29
</el-button>
<el-button
type="primary"
size="mini"
@ -1237,6 +1241,21 @@ export default {
},
//
addGs() {
const input = this.$refs.inputRef.$refs.input;
const textToInsert = "\u001D";
const start = input.selectionStart;
const end = input.selectionEnd;
this.scanCode = this.scanCode.slice(0, start) + textToInsert + this.scanCode.slice(end);
this.$nextTick(() => {
this.focus = true;
input.selectionStart = input.selectionEnd = start + textToInsert.length;
this.$refs.inputRef.focus();
});
}
,
parseString(str) {
// 1. "MA"
if (str.startsWith("MA")) {

Loading…
Cancel
Save