|
|
|
@ -22,12 +22,19 @@
|
|
|
|
|
>草稿保存
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button size="mini" type="primary" @click.native="submit()"
|
|
|
|
|
|
|
|
|
|
v-if="viewType != 7"
|
|
|
|
|
>立即提交
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button size="mini" type="primary" @click.native="revokeBill()"
|
|
|
|
|
|
|
|
|
|
>撤回单据
|
|
|
|
|
<el-button type="primary" @click="submit(1)"
|
|
|
|
|
v-if="viewType == 7">校验结果提交
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="primary" @click="submit(2)"
|
|
|
|
|
v-if="viewType == 7">扫码结果提交
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
<el-button size="mini" type="primary" @click.native="revokeBill()"
|
|
|
|
|
v-if="viewType == 7">撤回单据
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
<!-- v-if="(viewType != 5 && viewType != 6)&&(curAction.checkWebNew != 2 || viewType !=1)"-->
|
|
|
|
@ -429,7 +436,6 @@
|
|
|
|
|
></codesPanel>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
</el-tabs>
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
:title="editTitle"
|
|
|
|
|
:visible.sync="editOriginCodeVisible"
|
|
|
|
@ -520,11 +526,16 @@
|
|
|
|
|
title="提示"
|
|
|
|
|
:visible.sync="checkTipDialogVisible"
|
|
|
|
|
width="30%"
|
|
|
|
|
append-to-body
|
|
|
|
|
center>
|
|
|
|
|
<span>{{ checkTip }}</span>
|
|
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click="checkTipDialogVisible = false">取消</el-button>
|
|
|
|
|
<el-button type="primary" @click="submit()">确定</el-button>
|
|
|
|
|
<el-tooltip content="" placement="top">
|
|
|
|
|
<i class="el-icon-question"></i>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
<el-button type="primary" @click="submit(1)">校验结果提交</el-button>
|
|
|
|
|
<el-button type="primary" @click="submit(2)">扫码结果提交</el-button>
|
|
|
|
|
</span>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
@ -539,7 +550,7 @@ import {
|
|
|
|
|
submitOrderWeb,
|
|
|
|
|
saveOrderWeb,
|
|
|
|
|
updateCodeBindSup,
|
|
|
|
|
enterCodeWeb, submitAllocateBiz, rollbackWaitcheck,
|
|
|
|
|
enterCodeWeb, submitAllocateBiz, rollbackWaitcheck, submitCodeResult, submitCheckResult,
|
|
|
|
|
} from "../../api/inout/order";
|
|
|
|
|
import {filterSubAll, findByFrom, findInvByUser} from "../../api/system/invSubWarehouse";
|
|
|
|
|
import {parseTime} from "../../utils/coTools";
|
|
|
|
@ -1231,7 +1242,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
//撤回单据
|
|
|
|
|
revokeBill() {
|
|
|
|
|
this.$confirm("是否确定撤回改单据?", "提示", {
|
|
|
|
|
this.$confirm("是否确定撤回单据至草稿状态?", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
type: "warning",
|
|
|
|
@ -1255,14 +1266,32 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//待校验以扫码结果为准
|
|
|
|
|
submitCodeResult() {
|
|
|
|
|
submitCheckDialog() {
|
|
|
|
|
this.checkTipDialogVisible = true;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//待校验以扫码结果为准
|
|
|
|
|
submitCodeResult(query) {
|
|
|
|
|
submitCodeResult(query).then((response) => {
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.$message.success("提交成功");
|
|
|
|
|
this.closeDialog();
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//待校验以正确结果为准
|
|
|
|
|
submitCheckResult() {
|
|
|
|
|
|
|
|
|
|
submitCheckResult(query) {
|
|
|
|
|
submitCheckResult(query).then((response) => {
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.$message.success("提交成功");
|
|
|
|
|
this.closeDialog();
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1289,13 +1318,10 @@ export default {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let tQuery = Object.assign(
|
|
|
|
|
JSON.parse(JSON.stringify(this.orderFormData))
|
|
|
|
|
);
|
|
|
|
|
tQuery.orderId = this.orderFormData.billNo;
|
|
|
|
|
console.log(this.curAction)
|
|
|
|
|
if (this.viewType == 2) { //扫码单据立即提交
|
|
|
|
|
submitCodes(tQuery).then((response) => {
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
@ -1329,8 +1355,31 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (this.viewType = 7) { //待校验提交
|
|
|
|
|
if (val = 1) {
|
|
|
|
|
this.$confirm("此操作将以校验的正确结果重新生成业务单并提交,是否继续?", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
type: "warning",
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
this.submitCheckResult(tQuery);
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
this.$confirm("此操作将以扫码结果重新生成业务单并提交,是否继续?", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
type: "warning",
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
this.submitCodeResult(tQuery);
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
} else { //配货拣货后后提交
|
|
|
|
|
submitOrderWeb(tQuery).then((response) => {
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
@ -1341,7 +1390,6 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
saveOrder() {
|
|
|
|
|
let tQuery = Object.assign(
|
|
|
|
|