UDI待校验修改

dev
anthonywj 2 years ago
parent a9b1ea3f75
commit a22b6520d7

@ -554,7 +554,6 @@ export function orderChange(query) {
} }
export function rollbackWaitcheck(params) { export function rollbackWaitcheck(params) {
return axios({ return axios({
url: "/udiwms/inout/order/waitCheck/rollback", url: "/udiwms/inout/order/waitCheck/rollback",
@ -564,4 +563,20 @@ export function rollbackWaitcheck(params) {
} }
export function submitCodeResult(query) {
return axios({
url: "/warehouse/inout/codeResult/submitOrderWeb",
method: "post",
data: query
});
}
export function submitCheckResult(query) {
return axios({
url: "/warehouse/inout/codeCheck/submitOrderWeb",
method: "post",
data: query
});
}

@ -9,6 +9,15 @@ export function getDetailCodes(query) {
}); });
} }
export function getCheckDetailCodes(query) {
return axios({
url: "/admin/warehouse/inout/findCheckCode",
method: "get",
params: query
});
}
//获取业务明细 //获取业务明细
export function getDetailBizs(query) { export function getDetailBizs(query) {
return axios({ return axios({

@ -22,12 +22,19 @@
>草稿保存 >草稿保存
</el-button> </el-button>
<el-button size="mini" type="primary" @click.native="submit()" <el-button size="mini" type="primary" @click.native="submit()"
v-if="viewType != 7"
>立即提交 >立即提交
</el-button> </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> </el-button>
<!-- v-if="(viewType != 5 && viewType != 6)&&(curAction.checkWebNew != 2 || viewType !=1)"--> <!-- v-if="(viewType != 5 && viewType != 6)&&(curAction.checkWebNew != 2 || viewType !=1)"-->
@ -429,7 +436,6 @@
></codesPanel> ></codesPanel>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<el-dialog <el-dialog
:title="editTitle" :title="editTitle"
:visible.sync="editOriginCodeVisible" :visible.sync="editOriginCodeVisible"
@ -520,11 +526,16 @@
title="提示" title="提示"
:visible.sync="checkTipDialogVisible" :visible.sync="checkTipDialogVisible"
width="30%" width="30%"
append-to-body
center> center>
<span>{{ checkTip }}</span> <span>{{ checkTip }}</span>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="checkTipDialogVisible = false">取消</el-button> <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> </span>
</el-dialog> </el-dialog>
@ -539,7 +550,7 @@ import {
submitOrderWeb, submitOrderWeb,
saveOrderWeb, saveOrderWeb,
updateCodeBindSup, updateCodeBindSup,
enterCodeWeb, submitAllocateBiz, rollbackWaitcheck, enterCodeWeb, submitAllocateBiz, rollbackWaitcheck, submitCodeResult, submitCheckResult,
} from "../../api/inout/order"; } from "../../api/inout/order";
import {filterSubAll, findByFrom, findInvByUser} from "../../api/system/invSubWarehouse"; import {filterSubAll, findByFrom, findInvByUser} from "../../api/system/invSubWarehouse";
import {parseTime} from "../../utils/coTools"; import {parseTime} from "../../utils/coTools";
@ -1231,7 +1242,7 @@ export default {
// //
revokeBill() { revokeBill() {
this.$confirm("是否确定撤回单据?", "提示", { this.$confirm("是否确定撤回单据至草稿状态?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
@ -1255,14 +1266,32 @@ export default {
}, },
// submitCheckDialog() {
submitCodeResult() { 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; return;
} }
} }
let tQuery = Object.assign( let tQuery = Object.assign(
JSON.parse(JSON.stringify(this.orderFormData)) JSON.parse(JSON.stringify(this.orderFormData))
); );
tQuery.orderId = this.orderFormData.billNo; tQuery.orderId = this.orderFormData.billNo;
console.log(this.curAction)
if (this.viewType == 2) { // if (this.viewType == 2) { //
submitCodes(tQuery).then((response) => { submitCodes(tQuery).then((response) => {
if (response.code === 20000) { if (response.code === 20000) {
@ -1329,8 +1355,31 @@ export default {
}); });
} }
if (this.viewType = 7) { // 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 { // } else { //
submitOrderWeb(tQuery).then((response) => { submitOrderWeb(tQuery).then((response) => {
if (response.code === 20000) { if (response.code === 20000) {
@ -1341,7 +1390,6 @@ export default {
} }
}); });
} }
}, },
saveOrder() { saveOrder() {
let tQuery = Object.assign( let tQuery = Object.assign(

@ -94,13 +94,24 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-row>
<el-col span="2">
<span><div style="background-color: #FC4A45;width: 10px;height: 10px"></div>红色:多余条码</span>
</el-col>
<el-col span="2">
<div style="background-color: #F4BD25;width: 10px;height: 10px"></div>
<span>黄色:包含多余条码</span>
</el-col>
</el-row>
<div class="block"> <div class="block">
<pagination <pagination
v-show="total>0" v-show="total>0"
:total="total" :total="total"
:page.sync="query.page" :page.sync="query.page"
:limit.sync="query.limit" :limit.sync="query.limit"
@pagination="getList" @pagination="getCodeList"
/> />
</div> </div>
@ -166,6 +177,7 @@ import selectRlDialog from "./DialogSelectRl";
import DialogSelectUnit from "./DialogSelectUnit"; import DialogSelectUnit from "./DialogSelectUnit";
import editCodeDialog from "./DialogEditCode"; import editCodeDialog from "./DialogEditCode";
import {parseTime} from "@/utils/coTools"; import {parseTime} from "@/utils/coTools";
import {getCheckDetailCodes} from "@/api/inout/orderDetailCode";
export default { export default {
name: "IoAddCodeDetail", name: "IoAddCodeDetail",
@ -189,6 +201,10 @@ export default {
editTitle: { editTitle: {
type: Object, type: Object,
required: true, required: true,
},
viewType: {
type: Object,
required: true,
} }
}, },
@ -214,22 +230,41 @@ export default {
getCodeList() { getCodeList() {
this.loading = true; this.loading = true;
this.query.orderId = this.idQuery.billNo; this.query.orderId = this.idQuery.billNo;
errorCodeList(this.query) //
.then((response) => { if (this.viewType == 7) {
this.codeArray = response.data.list || []; //
this.total = response.data.total || 0; getCheckDetailCodes(this.query) //
for (let i = 0; i < this.codeArray.length; i++) { .then((response) => {
this.codeArray[i].fromType = this.formData.fromType; this.codeArray = response.data.list || [];
this.codeArray[i].billType = this.formData.billType; this.total = response.data.total || 0;
} this.loading = false;
this.tableSelection(); })
this.loading = false; .catch(() => {
}) this.loading = false;
.catch(() => { this.detailList = [];
this.loading = false; this.total = 0;
this.list = []; });
this.total = 0;
}); } else {
errorCodeList(this.query) //
.then((response) => {
this.codeArray = response.data.list || [];
this.total = response.data.total || 0;
for (let i = 0; i < this.codeArray.length; i++) {
this.codeArray[i].fromType = this.formData.fromType;
this.codeArray[i].billType = this.formData.billType;
}
this.tableSelection();
this.loading = false;
})
.catch(() => {
this.loading = false;
this.list = [];
this.total = 0;
});
}
}, },
deleteCode(index, row) { deleteCode(index, row) {
@ -277,6 +312,11 @@ export default {
if (!this.$isNotBlank(row.supId) || !this.$isNotBlank(row.relId)) { if (!this.$isNotBlank(row.supId) || !this.$isNotBlank(row.relId)) {
rowBackground.color = '#f60303'; rowBackground.color = '#f60303';
} }
if (row.checkStatus == 2) {
rowBackground.color = '#F7BB29';
} else if (row.checkStatus == 1) {
rowBackground.color = '#FC4A45';
}
return rowBackground; return rowBackground;
}, },

Loading…
Cancel
Save