界面扫码的一些调整

20240912_adapter_z
yewj 8 months ago
parent da62e9963f
commit 2e38cfdc34

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

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

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

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

Loading…
Cancel
Save