界面扫码的一些调整

20240912_adapter_z
yewj 10 months ago
parent da62e9963f
commit 2e38cfdc34

@ -317,18 +317,19 @@ export default {
corpTypeChange(value) { corpTypeChange(value) {
switch (value) { switch (value) {
case 1: case 1:
this.formData.unitTittle = "客户" this.formData = {...this.formData, unitTittle: "客户"}
break; break;
case 2: case 2:
this.formData.unitTittle = "供应商" this.formData = {...this.formData, unitTittle: "供应商"}
break; break;
case 3: case 3:
this.formData.unitTittle = "内部科室" this.formData = {...this.formData, unitTittle: "内部科室"}
break; break;
case 4: case 4:
this.formData.unitTittle = "特殊往来" this.formData = {...this.formData, unitTittle: "特殊往来"}
break; break;
case 5: case 5:
this.formData = {...this.formData, unitTittle: ""}
break; break;
} }
}, },

@ -438,9 +438,7 @@
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<el-form-item label="所属组别:" prop="constituencies" class="query-form-item"> <el-form-item label="所属组别:" prop="constituencies" class="query-form-item">
<el-select v-model="formData.constituencies" placeholder="请选择所属组别" <el-select v-model="formData.constituencies" placeholder="请选择所属组别"
style="width: 80%" style="width: 80%">
clearable
>
<el-option <el-option
v-for="item in fromDeptOptions" v-for="item in fromDeptOptions"
:key="item.code" :key="item.code"
@ -767,8 +765,8 @@ export default {
3: '根据提醒决定' 3: '根据提醒决定'
}, },
orderCirTypes: { orderCirTypes: {
1: '配送流通', 1: '流通计量单位',
2: '出库使用', 2: '使用计量单位',
}, },
workplaceStatusMap: { workplaceStatusMap: {
0: '暂停', 0: '暂停',

@ -648,6 +648,7 @@ export default {
this.formData.insert = false; this.formData.insert = false;
this.formData = res.data; this.formData = res.data;
this.curRow = this.formData; this.curRow = this.formData;
this.$refs.inputRef.focus();
this.refreshCodesPanel(this); this.refreshCodesPanel(this);
} else { } else {
if (res.code == 502) { if (res.code == 502) {
@ -660,9 +661,12 @@ export default {
this.addCode(); this.addCode();
}).catch(() => { }).catch(() => {
}); });
} else } else{
this.$refs.inputRef.focus();
this.$message.error(res.message) this.$message.error(res.message)
} }
}
}).catch(() => { }).catch(() => {
this.loading = false this.loading = false
}) })

@ -1241,6 +1241,10 @@ export default {
refreshOrder(orderQuery) { refreshOrder(orderQuery) {
this.orderFormData = orderQuery; this.orderFormData = orderQuery;
this.scanCode = "";
this.result = "";
this.refreshCodesPanel()
this.init();
}, },
// //
@ -1479,7 +1483,7 @@ export default {
}, },
handleChoose(currentRow) { handleChoose(currentRow) {
this.orderQuery = currentRow this.orderQuery = currentRow
this.refreshCodesPanel(); this.refreshOrder(this.orderQuery)
}, },
draftOrder() { draftOrder() {
let tQuery = Object.assign( let tQuery = Object.assign(
@ -1741,8 +1745,6 @@ export default {
init() { init() {
// //
this.codeFormData.code = ""; this.codeFormData.code = "";
this.splitType = this.$route.query.splitType;
if (this.splitType == "search") { if (this.splitType == "search") {
} else if (this.splitType == "out") { } else if (this.splitType == "out") {
this.orderFormData.action = 'SC72197936495755'; this.orderFormData.action = 'SC72197936495755';
@ -1816,6 +1818,7 @@ export default {
inputer.focus(); inputer.focus();
}, },
created() { created() {
this.splitType = this.$route.query.splitType;
this.init(); this.init();
if (this.$route.query.workplaceId != null) { if (this.$route.query.workplaceId != null) {
this.corpOrderIdDisabled = true this.corpOrderIdDisabled = true

Loading…
Cancel
Save