替换接口

20240912_adapter_z
anthonywj 8 months ago
parent 7cc82ec060
commit 6cb99e90b8

@ -61,6 +61,20 @@ export function autoCodeDetail(query) {
});
}
/**
* 自动扫码明细
* @param query
* @returns {AxiosPromise}
*/
export function autoCodeResult(query) {
return axios({
url: "/udiwms/ioSplit/collect/auto/order/result",
method: "get",
params: query
});
}

@ -325,7 +325,7 @@ export default {
this.formDataVisible = item
}
})
if (this.formDataVisible.operationType == 1){
if (this.formDataVisible.operationType == 1) {
this.findFromInvList("");
}
return
@ -458,12 +458,13 @@ export default {
addCode() {
if (this.$isBlank(this.filterQuery.code)) {
this.filterQuery.code = this.scanCode.trim();
return;
}
if (this.$isBlank(this.filterQuery.code) && this.$isBlank(this.scanCode)) {
return;
}
let tagQuery = {
workPlaceCode: this.formData.workPlaceCode,
fromCorp: this.formData.fromCorp,
billNo: this.formData.billNo,
code: this.filterQuery.code.trim(),
};

@ -126,7 +126,7 @@
<script>
import {convertDate} from "@/utils/date";
import {executeFuc, getHead} from "@/utils/customConfig";
import {autoCodeDetail, manualCodeDetail} from "@/api/collect/collectOrder";
import {autoCodeDetail, autoCodeResult, manualCodeDetail} from "@/api/collect/collectOrder";
export default {
@ -214,7 +214,7 @@ export default {
})
} else {
_this.codeQuery.fifoSplit = this.fifoSplit
autoCodeDetail(_this.codeQuery).then(res => {
autoCodeResult(_this.codeQuery).then(res => {
_this.codeLoading = false
if (res.code != 20000) {
_this.$message.error(res.message)

Loading…
Cancel
Save