Commit 94b6a758 authored by 邓春圆's avatar 邓春圆

Merge remote-tracking branch 'origin/release' into release

parents 81384456 5a04125e
...@@ -485,10 +485,10 @@ ...@@ -485,10 +485,10 @@
// 执行导出 // 执行导出
this.exportLoading = true; this.exportLoading = true;
exportDetailExcel(params).then(response => { exportDetailExcel(params).then(response => {
this.$download.excel(response, `${this.$t('业绩明细')}.xls`); // this.$download.excel(response, `${this.$t('业绩明细')}.xls`);
this.$message.success(this.$t('已加入导出队列,请稍后在下载日志中下载'))
this.exportLoading = false; }).finally(() => {
}).catch(() => { this.exportLoading = false;
}); });
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
......
...@@ -493,9 +493,9 @@ export default { ...@@ -493,9 +493,9 @@ export default {
this.$message.success(this.$t('操作成功')) this.$message.success(this.$t('操作成功'))
}) })
}, },
// 退仓 // 并箱
async rollback(orderItem){ async rollback(orderItem){
this.$confirm(this.$l(orderItem, 'prodTitle') + this.$t("退仓后不可恢复,是否确认退仓"), this.$t('提示')).then(() => { this.$confirm(this.$l(orderItem, 'prodTitle') + this.$t("并箱后不可恢复,是否确认并箱"), this.$t('提示')).then(() => {
return rollbackDelete({ return rollbackDelete({
orderId: this.orderId, orderId: this.orderId,
orderItemId: orderItem.orderItemId, orderItemId: orderItem.orderItemId,
......
...@@ -179,11 +179,15 @@ export default { ...@@ -179,11 +179,15 @@ export default {
handleChooseOrderProducts(data){ handleChooseOrderProducts(data){
this.showChooseDialog = false this.showChooseDialog = false
if(!data?.length) return if(!data?.length) return
// 如果第一条是空的,则删除先 // 如果最后一条是空的,则删除先
let firstItem = this.dataList[0] if(this.dataList?.length){
if(!firstItem.prodId && !firstItem.brand && !firstItem.prodAttrIds && !firstItem.material && !firstItem.quantityAll){ const index = this.dataList.length - 1
this.dataList.splice(0, 1) let lastItem = this.dataList[index]
if(!lastItem.prodId && !lastItem.brand && !lastItem.prodAttrIds && !lastItem.material && !lastItem.quantityAll){
this.dataList.splice(index, 1)
}
} }
data.forEach(item => { data.forEach(item => {
this.dataList.push({ this.dataList.push({
"boxGauge": "", "boxGauge": "",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment