|
|
|
@ -162,79 +162,79 @@
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<!-- <div style="border: 1px solid #ebeef5;border-radius: 2px;margin-top: 15px;padding: 15px">-->
|
|
|
|
|
<!-- <el-row :gutter="0" style="margin-top: 5px">-->
|
|
|
|
|
<!-- <el-col :span="20">-->
|
|
|
|
|
<!-- <el-form-item prop="code" :label="scanTip" label-width="80px">-->
|
|
|
|
|
<!-- <el-input-->
|
|
|
|
|
<!-- id="inputer"-->
|
|
|
|
|
<!-- @focus="getInputFocus($event)"-->
|
|
|
|
|
<!-- @keypress.enter.native="enterKey($event)"-->
|
|
|
|
|
<!-- ref="inputRef"-->
|
|
|
|
|
<!-- style="ime-mode: disabled"-->
|
|
|
|
|
<!-- type="tel"-->
|
|
|
|
|
<!-- :placeholder="this.placeholder"-->
|
|
|
|
|
<!-- v-model="scanCode"-->
|
|
|
|
|
<!-- ></el-input>-->
|
|
|
|
|
<!-- <!– :disabled="scanDisabled"–>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- <el-col :span="4">-->
|
|
|
|
|
<!-- <el-button-group style="display: flex;">-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- type="primary"-->
|
|
|
|
|
<!-- size="mini"-->
|
|
|
|
|
<!-- icon="el-icon-search"-->
|
|
|
|
|
<!-- @click.native.stop="addCode()"-->
|
|
|
|
|
<!-- style="margin-left: 15px"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- <!– :disabled="!formData.billNo || (this.formDataVisible != null && this.formDataVisible.scanType == 1)"–>-->
|
|
|
|
|
<div style="border: 1px solid #ebeef5;border-radius: 2px;margin-top: 15px;padding: 15px">
|
|
|
|
|
<el-row :gutter="0" style="margin-top: 5px">
|
|
|
|
|
<el-col :span="20">
|
|
|
|
|
<el-form-item prop="code" :label="scanTip" label-width="80px">
|
|
|
|
|
<el-input
|
|
|
|
|
id="inputer"
|
|
|
|
|
@focus="getInputFocus($event)"
|
|
|
|
|
@keypress.enter.native="enterKey($event)"
|
|
|
|
|
ref="inputRef"
|
|
|
|
|
style="ime-mode: disabled"
|
|
|
|
|
type="tel"
|
|
|
|
|
:placeholder="this.placeholder"
|
|
|
|
|
v-model="scanCode"
|
|
|
|
|
></el-input>
|
|
|
|
|
<!-- :disabled="scanDisabled"-->
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
<el-button-group style="display: flex;">
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
size="mini"
|
|
|
|
|
icon="el-icon-search"
|
|
|
|
|
@click.native.stop="enterKey()"
|
|
|
|
|
style="margin-left: 15px"
|
|
|
|
|
>
|
|
|
|
|
</el-button>
|
|
|
|
|
<!-- :disabled="!formData.billNo || (this.formDataVisible != null && this.formDataVisible.scanType == 1)"-->
|
|
|
|
|
<!-- <el-button type="primary"-->
|
|
|
|
|
<!-- @click="addGs">ALT+29-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- type="primary"-->
|
|
|
|
|
<!-- size="mini"-->
|
|
|
|
|
<!-- icon="el-icon-delete"-->
|
|
|
|
|
<!-- @click.native.stop="clearCode()"-->
|
|
|
|
|
<!-- >清空-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- </el-button-group>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- </el-row>-->
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
size="mini"
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
@click.native.stop="clearCode()"
|
|
|
|
|
>清空
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-button-group>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<!-- <el-row :gutter="0">-->
|
|
|
|
|
<!-- <el-col :span="20" style="margin-top: 0px;margin-bottom: 10px;margin-left: 80px">-->
|
|
|
|
|
<!-- <el-checkbox v-model="checked" v-if="!this.formData.billNo && this.formDataVisible.scanType != 1">定向查询-->
|
|
|
|
|
<!-- </el-checkbox>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- </el-row>-->
|
|
|
|
|
<!-- <el-alert-->
|
|
|
|
|
<!-- :title="scanTitle"-->
|
|
|
|
|
<!-- :type="scanResultType"-->
|
|
|
|
|
<!-- :closable="false"-->
|
|
|
|
|
<!-- :dangerouslyUseHTMLString="true"-->
|
|
|
|
|
<!-- :description="result">-->
|
|
|
|
|
<!-- </el-alert>-->
|
|
|
|
|
<!-- <el-alert-->
|
|
|
|
|
<!-- v-if="warnVisible"-->
|
|
|
|
|
<!-- title="警告信息:"-->
|
|
|
|
|
<!-- type="warning"-->
|
|
|
|
|
<!-- :closable="true"-->
|
|
|
|
|
<!-- :dangerouslyUseHTMLString="true"-->
|
|
|
|
|
<!-- :description="warnResult">-->
|
|
|
|
|
<!-- </el-alert>-->
|
|
|
|
|
<!-- <el-alert-->
|
|
|
|
|
<!-- v-if="errVisible"-->
|
|
|
|
|
<!-- title="错误信息:"-->
|
|
|
|
|
<!-- type="warning"-->
|
|
|
|
|
<!-- :closable="true"-->
|
|
|
|
|
<!-- :dangerouslyUseHTMLString="true"-->
|
|
|
|
|
<!-- :description="errResult">-->
|
|
|
|
|
<!-- </el-alert>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<el-alert
|
|
|
|
|
:title="scanTitle"
|
|
|
|
|
:type="scanResultType"
|
|
|
|
|
:closable="false"
|
|
|
|
|
:dangerouslyUseHTMLString="true"
|
|
|
|
|
:description="result">
|
|
|
|
|
</el-alert>
|
|
|
|
|
<el-alert
|
|
|
|
|
v-if="warnVisible"
|
|
|
|
|
title="警告信息:"
|
|
|
|
|
type="warning"
|
|
|
|
|
:closable="true"
|
|
|
|
|
:dangerouslyUseHTMLString="true"
|
|
|
|
|
:description="warnResult">
|
|
|
|
|
</el-alert>
|
|
|
|
|
<el-alert
|
|
|
|
|
v-if="errVisible"
|
|
|
|
|
title="错误信息:"
|
|
|
|
|
type="warning"
|
|
|
|
|
:closable="true"
|
|
|
|
|
:dangerouslyUseHTMLString="true"
|
|
|
|
|
:description="errResult">
|
|
|
|
|
</el-alert>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<el-descriptions title="单据信息" :column="4" border style="margin-top: 15px">
|
|
|
|
|
<el-descriptions-item label="业务单号">{{ formData.billNo }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="发货方">{{ formData.shipperName }}</el-descriptions-item>
|
|
|
|
@ -251,6 +251,7 @@
|
|
|
|
|
<prescribeOriginPanel
|
|
|
|
|
v-if="panelALive"
|
|
|
|
|
:prescribeData="curRow"
|
|
|
|
|
:fifoSplitResult="this.fifoSplitResult"
|
|
|
|
|
></prescribeOriginPanel>
|
|
|
|
|
<!-- 在表格下方添加说明 -->
|
|
|
|
|
<el-row style="text-align: right;font-size: 12px;margin-top: 10px">
|
|
|
|
@ -413,7 +414,7 @@ import {
|
|
|
|
|
getNextOrder,
|
|
|
|
|
findByBill,
|
|
|
|
|
findFromCorp,
|
|
|
|
|
orderDetail,
|
|
|
|
|
orderDetail,bizConfirm,
|
|
|
|
|
removeByScanCode,confirmFinish
|
|
|
|
|
} from "@/api/collect/collectOrder";
|
|
|
|
|
import PanelOrderAllDetail from "@/views/collect/PanelOrderAllDetail";
|
|
|
|
@ -497,7 +498,7 @@ export default {
|
|
|
|
|
scanCode: "",
|
|
|
|
|
isSuccess: false,
|
|
|
|
|
checked: true,
|
|
|
|
|
scanTitle: "扫码结果:",
|
|
|
|
|
scanTitle: "单据录入结果:",
|
|
|
|
|
result: " \n",
|
|
|
|
|
msgTip: "信息提醒:",
|
|
|
|
|
originCode: "",
|
|
|
|
@ -522,10 +523,12 @@ export default {
|
|
|
|
|
errResult: "",
|
|
|
|
|
warnVisible: false,
|
|
|
|
|
errVisible: false,
|
|
|
|
|
needSplitConfirm: false,
|
|
|
|
|
workplaceId: null,
|
|
|
|
|
ws: null,
|
|
|
|
|
scanTip: "扫码录入:",
|
|
|
|
|
scanTip: "单据录入:",
|
|
|
|
|
scanSplit: false,
|
|
|
|
|
info: {},
|
|
|
|
|
//
|
|
|
|
|
labels: {
|
|
|
|
|
1: '扫码录入:',
|
|
|
|
@ -552,6 +555,34 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
fifoHandleClick(scanCode){
|
|
|
|
|
this.info.confirmSplitCode = scanCode
|
|
|
|
|
bizConfirm(this.info).then((response) => {
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.$message.success('操作成功!')
|
|
|
|
|
this.getPrescribeDetail(this);
|
|
|
|
|
return
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//是否拆零的组件调用父级方法
|
|
|
|
|
fifoSplitResult(data,info){
|
|
|
|
|
this.info = info
|
|
|
|
|
if (data == null)
|
|
|
|
|
return;
|
|
|
|
|
if (data.needSplitConfirm){//需要
|
|
|
|
|
this.needSplitConfirm = data.needSplitConfirm
|
|
|
|
|
this.scanTitle = "拆零扫码结果:";
|
|
|
|
|
this.scanTip = "拆零扫码:";
|
|
|
|
|
this.result = "";
|
|
|
|
|
return;
|
|
|
|
|
}else {//不需要
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
getBillNo(billNo) {
|
|
|
|
|
let post = {
|
|
|
|
|
billNo: billNo,
|
|
|
|
@ -786,130 +817,17 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
enterKey() {
|
|
|
|
|
if (this.formData.billNo == null && this.formDataVisible.scanType != 1) {
|
|
|
|
|
this.enterBillNoKey()
|
|
|
|
|
return;
|
|
|
|
|
if (this.$isBlank(this.scanCode)) {
|
|
|
|
|
this.$message.error("请先扫码")
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
this.checkSuccess = true;
|
|
|
|
|
this.filterQuery.code = this.scanCode.trim();
|
|
|
|
|
if (this.filterQuery.code.includes(";")) {
|
|
|
|
|
const codeArray = this.filterQuery.code.split(";");
|
|
|
|
|
let params = {
|
|
|
|
|
codeList: codeArray,
|
|
|
|
|
};
|
|
|
|
|
this.batchVailCode(params)
|
|
|
|
|
if (!this.needSplitConfirm) {
|
|
|
|
|
this.enterBillNoKey()
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (this.filterQuery.code)
|
|
|
|
|
if (!this.parseString(this.filterQuery.code)) {
|
|
|
|
|
this.$refs.inputRef.focus();
|
|
|
|
|
this.$refs.inputRef.select();
|
|
|
|
|
this.$message.error("无效追溯码");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
let tQuery = {
|
|
|
|
|
viewType: "tagCode",
|
|
|
|
|
workPlaceCode: this.workplaceId,
|
|
|
|
|
originCode: this.originCode,
|
|
|
|
|
busType: this.formData.busType,
|
|
|
|
|
code: this.filterQuery.code.trim(),
|
|
|
|
|
};
|
|
|
|
|
if (this.scanStatus == 1) {
|
|
|
|
|
const codeArray = this.filterQuery.code.split(";");
|
|
|
|
|
let query = {
|
|
|
|
|
orderId: this.formData.billNo,
|
|
|
|
|
codeList: codeArray
|
|
|
|
|
}
|
|
|
|
|
//剔除码
|
|
|
|
|
this.removeCodesTemp(query)
|
|
|
|
|
} else if (this.scanSplit) {
|
|
|
|
|
|
|
|
|
|
//todo 拆零扫码确认
|
|
|
|
|
const codeArray = this.filterQuery.code.split(";");
|
|
|
|
|
let query = {
|
|
|
|
|
orderId: this.formData.billNo,
|
|
|
|
|
codeList: codeArray
|
|
|
|
|
}
|
|
|
|
|
//更新扫码确认
|
|
|
|
|
batchUpdateCode(query).then((response) => {
|
|
|
|
|
this.saveLoading = false
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.$message.success('确认成功')
|
|
|
|
|
this.result = ''
|
|
|
|
|
this.$refs.inputRef.focus()
|
|
|
|
|
this.getBizDetailList();
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message)
|
|
|
|
|
}
|
|
|
|
|
this.loading = false
|
|
|
|
|
this.saveLoading = false
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
enterCodeWeb(tQuery).then((response) => {
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.$refs.inputRef.focus();
|
|
|
|
|
this.$refs.inputRef.select();
|
|
|
|
|
this.isSuccess = true;
|
|
|
|
|
this.printCodeResult(response.data, response.message)
|
|
|
|
|
this.filterQuery.code = response.data.code;
|
|
|
|
|
this.scanCode = ""
|
|
|
|
|
this.originCode = ""
|
|
|
|
|
this.addCode();
|
|
|
|
|
} else {
|
|
|
|
|
if (response.code == 502) {
|
|
|
|
|
this.checkSuccess = false;
|
|
|
|
|
this.isSuccess = false;
|
|
|
|
|
this.printCodeResult(response.data, response.message)
|
|
|
|
|
this.filterQuery.code = response.data.code;
|
|
|
|
|
this.originCode = response.data.code;
|
|
|
|
|
this.scanCode = ""
|
|
|
|
|
} else if (response.code == 501) {
|
|
|
|
|
this.checkSuccess = false;
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
this.scanCode = ""
|
|
|
|
|
} else if (response.code == 503) {
|
|
|
|
|
this.checkSuccess = false;
|
|
|
|
|
this.isSuccess = false;
|
|
|
|
|
this.printCodeResult(response.data, response.message)
|
|
|
|
|
this.filterQuery.code = response.data.code;
|
|
|
|
|
this.scanCode = ""
|
|
|
|
|
this.$confirm(response.message, "提示", {
|
|
|
|
|
type: "warning",
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
this.filterQuery.code = response.data.code;
|
|
|
|
|
this.addCode();
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.filterQuery.code = response.data.code;
|
|
|
|
|
});
|
|
|
|
|
} else if (response.code == 508) {
|
|
|
|
|
this.originCode = "";
|
|
|
|
|
this.filterQuery.code = "01" + response.data.nameCode;
|
|
|
|
|
this.originCode = this.filterQuery.code;
|
|
|
|
|
} else if (response.code == 601) {
|
|
|
|
|
this.formData.billNo = response.data.billNo
|
|
|
|
|
this.placeholder = "已选入单据,请扫UDI码进行作业"
|
|
|
|
|
this.getBillNo(this.formData.billNo)
|
|
|
|
|
this.startDeal();
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
this.scanCode = ""
|
|
|
|
|
this.$alert(response.message, "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
type: "warning",
|
|
|
|
|
closeOnClickModal: true,
|
|
|
|
|
callback: (action) => {
|
|
|
|
|
this.$refs.inputRef.focus();
|
|
|
|
|
this.$refs.inputRef.select();
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.loading = false;
|
|
|
|
|
});
|
|
|
|
|
this.fifoHandleClick(this.scanCode)
|
|
|
|
|
this.startDeal();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
@ -971,6 +889,7 @@ export default {
|
|
|
|
|
this.filterQuery.code = "01" + response.data.nameCode;
|
|
|
|
|
this.originCode = this.filterQuery.code;
|
|
|
|
|
} else if (response.code == 601) {
|
|
|
|
|
this.result = "已选入单据"
|
|
|
|
|
this.placeholder = "已选入单据,请扫UDI码进行作业"
|
|
|
|
|
this.formData.billNo = response.data.billNo
|
|
|
|
|
this.getBillNo(this.formData.billNo)
|
|
|
|
@ -1360,7 +1279,7 @@ export default {
|
|
|
|
|
this.originCode = "";
|
|
|
|
|
this.formData.code = "";
|
|
|
|
|
this.scanCode = "";
|
|
|
|
|
this.scanTitle = "扫码结果:";
|
|
|
|
|
this.scanTitle = "单据录入结果:";
|
|
|
|
|
this.result = "";
|
|
|
|
|
this.warnResult = ""
|
|
|
|
|
this.errResult = ""
|
|
|
|
@ -1642,7 +1561,7 @@ export default {
|
|
|
|
|
overdeleteCode() {
|
|
|
|
|
this.labelName = 1
|
|
|
|
|
this.scanStatus = null
|
|
|
|
|
this.scanTip = "扫码录入:"
|
|
|
|
|
this.scanTip = "单据录入:"
|
|
|
|
|
this.placeholder = '请点击输入框进行选扫码'
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|