1.修改新增扫码单据页面

master
x_z 3 years ago
parent cc8465da03
commit 67cadfb464

@ -116,35 +116,32 @@
<el-col :span="19"> <el-col :span="19">
<el-form-item prop="code"> <el-form-item prop="code">
<el-input <el-input
id="inputer"
@focus="getInputFocus($event)"
@keypress.enter.native="enterKey($event)" @keypress.enter.native="enterKey($event)"
v-model="formData.code"
ref='inputRef' ref='inputRef'
@focus="getInputFocus($event)" style="ime-mode:disabled"
type="tel"
v-model="formData.code"
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="2"> <el-col :span="2">
<el-button <el-button
type="primary" type="primary"
size="small" size="small"
@click.native.stop="addCode()" @click.native.stop="addCode()"
style="height: 31px; margin-left: 2px" style="height: 31px; margin-left: 20px"
>确定 >添加
</el-button </el-button
> >
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="16" style="margin-left: 40px">
<el-checkbox v-model="sitcomScan"></el-checkbox>
</el-col>
<el-col :span="4"> <el-col :span="4">
<div class="text item" style="margin-left: 30px"> 条码数量{{ total }} <div class="text item" style="margin-left: 30px"> 条码数量{{ total }}
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<el-table v-loading="loading" :data="codeArray" style="width: 100%;" max-height="350" height="350" <el-table v-loading="loading" :data="codeArray" style="width: 100%;" max-height="350" height="350"
:row-style="rowStyle" :row-style="rowStyle"
@ -395,6 +392,7 @@ export default {
tQuery.actDate = parseTime(this.formData.actDate, '{y}-{m}-{d} {h}:{i}:{s}'); tQuery.actDate = parseTime(this.formData.actDate, '{y}-{m}-{d} {h}:{i}:{s}');
tQuery.action = tQuery.billType tQuery.action = tQuery.billType
this.addCodeSubmit(tQuery); this.addCodeSubmit(tQuery);
this.$refs.inputRef.select();
}, },
addCodeSubmit(tQuery) { addCodeSubmit(tQuery) {
@ -406,8 +404,6 @@ export default {
confirmButtonText: '确定', confirmButtonText: '确定',
type: 'warning', type: 'warning',
closeOnClickModal: true, closeOnClickModal: true,
callback: action => {
}
}); });
} }
this.corpOrderIdDisabled = true; this.corpOrderIdDisabled = true;
@ -437,9 +433,7 @@ export default {
}).catch(() => { }).catch(() => {
}); });
} else if (response.code == 505) { } else if (response.code == 505) {
this.$confirm(response.message, "提示", { this.$confirm(response.message, "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "忽略", cancelButtonText: "忽略",
@ -450,7 +444,6 @@ export default {
}).catch(() => { }).catch(() => {
}); });
} else { } else {
this.$alert(response.message, '提示', { this.$alert(response.message, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
@ -466,7 +459,6 @@ export default {
}); });
}, },
deleteCode(index, row) { deleteCode(index, row) {
this.$confirm("是否确定移除一个条码?", "提示", { this.$confirm("是否确定移除一个条码?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",

Loading…
Cancel
Save