|
|
|
@ -8,7 +8,7 @@
|
|
|
|
|
>
|
|
|
|
|
<el-card style="margin: 5px;">
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="0" v-if="isLinkDisabled">
|
|
|
|
|
<el-row :gutter="0" v-if="isLinkDisabled">
|
|
|
|
|
<el-col :span="24" align="right">
|
|
|
|
|
<div class="inv-hos-title">
|
|
|
|
|
<span
|
|
|
|
@ -29,12 +29,12 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-alert
|
|
|
|
|
style="margin-top: 15px;margin-bottom: 10px;font-size: 20px;"
|
|
|
|
|
:title="msgTip"
|
|
|
|
|
:closable="false"
|
|
|
|
|
type="warning">
|
|
|
|
|
</el-alert>
|
|
|
|
|
<el-alert
|
|
|
|
|
style="margin-top: 15px;margin-bottom: 10px;font-size: 20px;"
|
|
|
|
|
:title="msgTip"
|
|
|
|
|
:closable="false"
|
|
|
|
|
type="warning">
|
|
|
|
|
</el-alert>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
@ -52,7 +52,8 @@
|
|
|
|
|
v-if="splitType=='return'" style="margin-right: 8px;border-radius: 5%;"
|
|
|
|
|
>退货完成
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button size="mini" type="primary" @click.native="printLabel()" :loading="submitLoading" style="border-radius: 5%;"
|
|
|
|
|
<el-button size="mini" type="primary" @click.native="printLabel()" :loading="submitLoading"
|
|
|
|
|
style="border-radius: 5%;"
|
|
|
|
|
>打印二维码
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
@ -285,7 +286,7 @@ import {filterNoPage, remoteFilter} from "@/api/basic/sicker/skPersonApi";
|
|
|
|
|
import dialogInvProduct from "@/views/inout/DialogSelectInvProduct";
|
|
|
|
|
import {listPage} from "@/api/basic/workPlace/sysWorkplaceManage";
|
|
|
|
|
import {printSplitLabel} from "@/api/collect/splitCreateOrder";
|
|
|
|
|
import { findInvRemind } from "@/api/inout/splitCode";
|
|
|
|
|
import {findInvRemind} from "@/api/inout/splitCode";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "ioCreateOrder",
|
|
|
|
@ -336,7 +337,7 @@ export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
isLinkDisabled: false,
|
|
|
|
|
userInfo:{
|
|
|
|
|
userInfo: {
|
|
|
|
|
inv: this.$store.getters.locInvName,
|
|
|
|
|
deptName: this.$store.getters.locDeptName,
|
|
|
|
|
userName: this.$store.getters.name,
|
|
|
|
@ -499,47 +500,47 @@ export default {
|
|
|
|
|
DialogSelectUnit, DialogSelectSpace, selectRlDialog, dialogInvProduct
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
changeInvRemind(val){
|
|
|
|
|
changeInvRemind(val) {
|
|
|
|
|
let post = {
|
|
|
|
|
workPlaceCode: val
|
|
|
|
|
}
|
|
|
|
|
findInvRemind(post).then((response) => {
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.msgTip = response.data
|
|
|
|
|
}else {
|
|
|
|
|
this.msgTip = response.data
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
.catch(() => {
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
successCloseData(){
|
|
|
|
|
successCloseData() {
|
|
|
|
|
let workPlaceCode = this.orderFormData.workPlaceCode
|
|
|
|
|
this.orderFormData ={
|
|
|
|
|
this.orderFormData = {
|
|
|
|
|
billNo: null,
|
|
|
|
|
corpOrderId: null,
|
|
|
|
|
action: null,
|
|
|
|
|
invCode: null,
|
|
|
|
|
fromCorp: null,
|
|
|
|
|
fromCorpName: null,
|
|
|
|
|
fromName: null,
|
|
|
|
|
fromInvCode: null,
|
|
|
|
|
remark: null,
|
|
|
|
|
fromType: 2,
|
|
|
|
|
errMsg: null,
|
|
|
|
|
checkPreInOrders: null,
|
|
|
|
|
checkPreInInvCode: null,
|
|
|
|
|
checkPreInSpaceCode: null,
|
|
|
|
|
curSpaceCode: null,
|
|
|
|
|
preSpaceCode: null,
|
|
|
|
|
preCurSpaceCode: null, //单据
|
|
|
|
|
sickerAdNum: null,
|
|
|
|
|
workPlaceCode: null,
|
|
|
|
|
fifoSplit: 1,
|
|
|
|
|
corpOrderId: null,
|
|
|
|
|
action: null,
|
|
|
|
|
invCode: null,
|
|
|
|
|
fromCorp: null,
|
|
|
|
|
fromCorpName: null,
|
|
|
|
|
fromName: null,
|
|
|
|
|
fromInvCode: null,
|
|
|
|
|
remark: null,
|
|
|
|
|
fromType: 2,
|
|
|
|
|
errMsg: null,
|
|
|
|
|
checkPreInOrders: null,
|
|
|
|
|
checkPreInInvCode: null,
|
|
|
|
|
checkPreInSpaceCode: null,
|
|
|
|
|
curSpaceCode: null,
|
|
|
|
|
preSpaceCode: null,
|
|
|
|
|
preCurSpaceCode: null, //单据
|
|
|
|
|
sickerAdNum: null,
|
|
|
|
|
workPlaceCode: null,
|
|
|
|
|
fifoSplit: 1,
|
|
|
|
|
}
|
|
|
|
|
this.orderFormData.workPlaceCode = workPlaceCode
|
|
|
|
|
this.scanCode= "";
|
|
|
|
|
this.scanCode = "";
|
|
|
|
|
this.corpOrderIdDisabled = false;
|
|
|
|
|
this.refreshCodesPanel()
|
|
|
|
|
},
|
|
|
|
@ -663,9 +664,9 @@ export default {
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
// this.$message.success("成功");
|
|
|
|
|
const codeDetailComponent = this.$refs.IoCreateOrderCodeDetail.getOrderDetails();
|
|
|
|
|
if(this.closeDialog != undefined){
|
|
|
|
|
this.closeDialog();
|
|
|
|
|
}
|
|
|
|
|
if (this.closeDialog != undefined) {
|
|
|
|
|
this.closeDialog();
|
|
|
|
|
}
|
|
|
|
|
this.clearOrder();
|
|
|
|
|
} else {
|
|
|
|
|
// this.$message.error(response.message);
|
|
|
|
@ -1208,9 +1209,9 @@ export default {
|
|
|
|
|
this.retractLoading = false
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.$message.success("撤回成功!");
|
|
|
|
|
if(this.closeDialog != undefined){
|
|
|
|
|
this.closeDialog();
|
|
|
|
|
}
|
|
|
|
|
if (this.closeDialog != undefined) {
|
|
|
|
|
this.closeDialog();
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
@ -1236,9 +1237,9 @@ export default {
|
|
|
|
|
this.codeLoading = false
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.$message.success("提交成功");
|
|
|
|
|
if(this.closeDialog != undefined){
|
|
|
|
|
this.closeDialog();
|
|
|
|
|
}
|
|
|
|
|
if (this.closeDialog != undefined) {
|
|
|
|
|
this.closeDialog();
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
@ -1251,9 +1252,9 @@ export default {
|
|
|
|
|
this.checkLoading = false
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.$message.success("提交成功");
|
|
|
|
|
if(this.closeDialog != undefined){
|
|
|
|
|
this.closeDialog();
|
|
|
|
|
}
|
|
|
|
|
if (this.closeDialog != undefined) {
|
|
|
|
|
this.closeDialog();
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
@ -1314,7 +1315,7 @@ export default {
|
|
|
|
|
this.$message.success("提交成功,等待处理,请刷新后查看!");
|
|
|
|
|
this.successCloseData()
|
|
|
|
|
console.log(this.closeDialog())
|
|
|
|
|
if(this.closeDialog != undefined){
|
|
|
|
|
if (this.closeDialog != undefined) {
|
|
|
|
|
this.closeDialog();
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
@ -1339,7 +1340,7 @@ export default {
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.$message.success("提交成功");
|
|
|
|
|
this.successCloseData()
|
|
|
|
|
if(this.closeDialog != undefined){
|
|
|
|
|
if (this.closeDialog != undefined) {
|
|
|
|
|
this.closeDialog();
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
@ -1361,7 +1362,7 @@ export default {
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.$message.success("提交成功");
|
|
|
|
|
this.successCloseData()
|
|
|
|
|
if(this.closeDialog != undefined){
|
|
|
|
|
if (this.closeDialog != undefined) {
|
|
|
|
|
this.closeDialog();
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
@ -1404,7 +1405,7 @@ export default {
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.$message.success("提交成功");
|
|
|
|
|
this.successCloseData()
|
|
|
|
|
if(this.closeDialog != undefined){
|
|
|
|
|
if (this.closeDialog != undefined) {
|
|
|
|
|
this.closeDialog();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1429,9 +1430,9 @@ export default {
|
|
|
|
|
saveOrderWeb(tQuery).then((response) => {
|
|
|
|
|
this.saveLoading = false
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
if(this.closeDialog != undefined){
|
|
|
|
|
this.closeDialog();
|
|
|
|
|
}
|
|
|
|
|
if (this.closeDialog != undefined) {
|
|
|
|
|
this.closeDialog();
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
@ -1750,7 +1751,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.init();
|
|
|
|
|
if (this.$route.query.workplaceId != null){
|
|
|
|
|
if (this.$route.query.workplaceId != null) {
|
|
|
|
|
this.corpOrderIdDisabled = true
|
|
|
|
|
this.isLinkDisabled = true
|
|
|
|
|
this.workplaceId = this.$route.query.workplaceId
|
|
|
|
|