fix: 修复

20240912_adapter_z
chenhc 1 year ago
parent 8637405823
commit d2ef8d6831

@ -561,11 +561,22 @@ export default {
}, },
linkPage(_this, row) { linkPage(_this, row) {
if (row != null && row.invAlert == 2) { if (row != null && row.invAlert == 2) {
_this.$message.warning("工位存量不足,请及时上货!"); _this.$confirm("该订单目前工位存量不足,是否继续处理?", "提示", {
return; confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
let url = window.location.origin + `/UDI_WMS_NEW#/tagCodeBlank?workplaceId=` + row.workPlaceCode + "&billNo=" + row.billNo + "&busType=" + row.busType
window.open(url, '_blank');
})
.catch(() => {
});
}else {
let url = window.location.origin + `/UDI_WMS_NEW#/tagCodeBlank?workplaceId=` + row.workPlaceCode + "&billNo=" + row.billNo + "&busType=" + row.busType
window.open(url, '_blank');
} }
let url = window.location.origin + `/UDI_WMS_NEW#/tagCodeBlank?workplaceId=` + row.workPlaceCode + "&billNo=" + row.billNo
window.open(url, '_blank');
}, },
// //
orderTop(_this, row) { orderTop(_this, row) {

@ -279,7 +279,38 @@ export default {
}, },
data() { data() {
return { return {
actDateRange: [],
pickerOptions: {
shortcuts: [
{
text: "最近一周",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近一个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近三个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
picker.$emit("pick", [start, end]);
},
},
],
},
// //
// //
tableHeader: [], tableHeader: [],
@ -301,6 +332,8 @@ export default {
billNo: null, billNo: null,
busType: null, busType: null,
workPlaceCode: null, workPlaceCode: null,
startTime: null,
endTime: null,
page: 1, page: 1,
limit: 10, limit: 10,
}, },
@ -401,9 +434,18 @@ export default {
}) })
}, },
downloadData() { downloadData() {
if (this.filterQuery.workPlaceCode == null) { // if (this.filterQuery.workPlaceCode == null) {
return this.$message.error("请先选择工位") // return this.$message.error("")
// }
if (this.actDateRange !== null) {
this.filterQuery.startTime = this.actDateRange[0];
this.filterQuery.endTime = this.actDateRange[1];
} else {
this.filterQuery.startTime = null;
this.filterQuery.endTime = null;
} }
downloadOrder(this.filterQuery).then(res => { downloadOrder(this.filterQuery).then(res => {
if (res.code == 20000) { if (res.code == 20000) {
return this.$message.success(res.data) return this.$message.success(res.data)
@ -440,7 +482,13 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
console.log(this.filterQuery) if (this.actDateRange !== null) {
this.filterQuery.startTime = this.actDateRange[0];
this.filterQuery.endTime = this.actDateRange[1];
} else {
this.filterQuery.startTime = null;
this.filterQuery.endTime = null;
}
orderPage(this.filterQuery).then(res => { orderPage(this.filterQuery).then(res => {
this.loading = false this.loading = false
this.list = res.data.list || [] this.list = res.data.list || []
@ -454,6 +502,13 @@ export default {
, ,
getList2(_this) { getList2(_this) {
_this.loading = true; _this.loading = true;
if (_this.actDateRange !== null) {
_this.filterQuery.startTime = _this.actDateRange[0];
_this.filterQuery.endTime = _this.actDateRange[1];
} else {
_this.filterQuery.startTime = null;
_this.filterQuery.endTime = null;
}
orderPage(_this.filterQuery).then(res => { orderPage(_this.filterQuery).then(res => {
_this.loading = false _this.loading = false
_this.list = res.data.list || [] _this.list = res.data.list || []

@ -470,24 +470,36 @@ export default {
}, },
orderUpload(_this, row){ orderUpload(_this, row){
let params = row; let params = row;
orderUpload({billNo:params.billNo}) _this.$confirm("该订单将上传到外部系统,是否继续?", "提示", {
.then((response) => { confirmButtonText: "确定",
if (response.code == 20000) { cancelButtonText: "取消",
this.getList(); type: "warning",
this.$message({ })
type: "success", .then(() => {
message: "上传成功!", orderUpload({billNo:params.billNo})
.then((response) => {
if (response.code == 20000) {
_this.getList();
_this.$message({
type: "success",
message: "上传成功!",
});
} else if (response.code == 520) {
_this.$message.error(response.message);
_this.getList();
} else {
_this.$message.error(response.message);
_this.getList();
}
})
.catch(() => {
}); });
} else if (response.code == 520) {
this.$message.error(response.message);
this.getList();
} else {
this.$message.error(response.message);
this.getList();
}
}) })
.catch(() => { .catch(() => {
}); });
} }
}, },

Loading…
Cancel
Save