|
|
@ -125,7 +125,7 @@
|
|
|
|
@click="onReset"
|
|
|
|
@click="onReset"
|
|
|
|
>重置
|
|
|
|
>重置
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="onSubmit"
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="onSubmit(this)"
|
|
|
|
>查询
|
|
|
|
>查询
|
|
|
|
</el-button
|
|
|
|
</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
@ -421,10 +421,10 @@ import bindWorkDialog from "@/views/collect/bindWorkDialog";
|
|
|
|
import prescribeOriginPanel from "./PannelOrderBiz";
|
|
|
|
import prescribeOriginPanel from "./PannelOrderBiz";
|
|
|
|
import CollectOrderAllotDetail from "./CollectOrderAllotDetail";
|
|
|
|
import CollectOrderAllotDetail from "./CollectOrderAllotDetail";
|
|
|
|
import {filterWorkOptimize} from "@/api/basic/workPlace/sysWorkplaceManage";
|
|
|
|
import {filterWorkOptimize} from "@/api/basic/workPlace/sysWorkplaceManage";
|
|
|
|
import { getUserBindWork } from '@/api/basic/collectPoint/userWorkplace'
|
|
|
|
import {getUserBindWork} from '@/api/basic/collectPoint/userWorkplace'
|
|
|
|
import { decideOrder, deleteByOrder, orderPage, orderTop } from '@/api/collect/collectOrder'
|
|
|
|
import {decideOrder, deleteByOrder, orderPage, orderTop} from '@/api/collect/collectOrder'
|
|
|
|
import {getWorkBindBusTypes, removeBusTypeById} from '@/api/basic/workPlace/sysWorkplaceDocuments'
|
|
|
|
import {getWorkBindBusTypes, removeBusTypeById} from '@/api/basic/workPlace/sysWorkplaceDocuments'
|
|
|
|
import { isBlank } from '@/utils/strUtil'
|
|
|
|
import {isBlank} from '@/utils/strUtil'
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "prescribePanel",
|
|
|
|
name: "prescribePanel",
|
|
|
@ -524,7 +524,7 @@ export default {
|
|
|
|
getBusType: [],
|
|
|
|
getBusType: [],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
showType: 1,
|
|
|
|
showType: 1,
|
|
|
|
routerParam:this.$route.query.routerParam
|
|
|
|
routerParam: this.$route.query.routerParam
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
@ -532,8 +532,8 @@ export default {
|
|
|
|
addOrder, errOrder, bindWorkDialog, prescribeOriginPanel, CollectOrderAllotDetail
|
|
|
|
addOrder, errOrder, bindWorkDialog, prescribeOriginPanel, CollectOrderAllotDetail
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
changePlace(_this,query) {
|
|
|
|
changePlace(_this, query) {
|
|
|
|
_this.getWorkBindBusTypes(_this,query)
|
|
|
|
_this.getWorkBindBusTypes(_this, query)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getWorkBindBusTypes(_this, query) {
|
|
|
|
getWorkBindBusTypes(_this, query) {
|
|
|
|
_this.busQuery.workplaceCode = query
|
|
|
|
_this.busQuery.workplaceCode = query
|
|
|
@ -592,12 +592,12 @@ export default {
|
|
|
|
// return _this.$message.error("请先绑定工位")
|
|
|
|
// return _this.$message.error("请先绑定工位")
|
|
|
|
// } 2处理中
|
|
|
|
// } 2处理中
|
|
|
|
let query = {
|
|
|
|
let query = {
|
|
|
|
workPlaceCode : row.workPlaceCode,
|
|
|
|
workPlaceCode: row.workPlaceCode,
|
|
|
|
billNo: row.billNo,
|
|
|
|
billNo: row.billNo,
|
|
|
|
tagStatus: 2
|
|
|
|
tagStatus: 2
|
|
|
|
}
|
|
|
|
}
|
|
|
|
decideOrder(query).then(res => {
|
|
|
|
decideOrder(query).then(res => {
|
|
|
|
if (res.code == 20000){
|
|
|
|
if (res.code == 20000) {
|
|
|
|
//当前工位没有正在处理单据
|
|
|
|
//当前工位没有正在处理单据
|
|
|
|
if (row != null && row.invAlert == 2) {
|
|
|
|
if (row != null && row.invAlert == 2) {
|
|
|
|
_this.$confirm("该订单目前工位存量不足,是否继续处理?", "提示", {
|
|
|
|
_this.$confirm("该订单目前工位存量不足,是否继续处理?", "提示", {
|
|
|
@ -611,19 +611,17 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}else {
|
|
|
|
} else {
|
|
|
|
let url = window.location.origin + `/UDI_WMS_NEW#/tagCodeBlank?workplaceId=` + row.workPlaceCode + "&billNo=" + row.billNo + "&busType=" + row.busType
|
|
|
|
let url = window.location.origin + `/UDI_WMS_NEW#/tagCodeBlank?workplaceId=` + row.workPlaceCode + "&billNo=" + row.billNo + "&busType=" + row.busType
|
|
|
|
window.open(url, '_blank');
|
|
|
|
window.open(url, '_blank');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else {
|
|
|
|
} else {
|
|
|
|
return _this.$message.error(res.message)
|
|
|
|
return _this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch()
|
|
|
|
.catch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//置顶
|
|
|
|
//置顶
|
|
|
|
orderTop(_this, row) {
|
|
|
|
orderTop(_this, row) {
|
|
|
@ -700,9 +698,12 @@ export default {
|
|
|
|
this.bindWorkPlaceVisible = false;
|
|
|
|
this.bindWorkPlaceVisible = false;
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onSubmit() {
|
|
|
|
onSubmit(_this) {
|
|
|
|
this.filterQuery.page = 1;
|
|
|
|
debugger
|
|
|
|
this.getList();
|
|
|
|
if (_this == null)
|
|
|
|
|
|
|
|
_this = this
|
|
|
|
|
|
|
|
_this.filterQuery.page = 1;
|
|
|
|
|
|
|
|
_this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
getList() {
|
|
|
|
getList() {
|
|
|
|