|
|
@@ -652,18 +652,18 @@ export default {
|
|
|
openValidData(name) {
|
|
|
if (this.$config.routeUrl.order.edit.key === name) { // 编辑校验
|
|
|
if (this.$refs['table-select'].batchRows[0].apvResult === '审-审中') {
|
|
|
- this.$Message.error(this.$t('W_070'))
|
|
|
+ this.$Message.warning(this.$t('W_070'))
|
|
|
return false;
|
|
|
}
|
|
|
} else if (this.$config.routeUrl.order.returnAndExchangeGoods.key === name) { // 退换补校验
|
|
|
// 判断状态是否可以进行退换补(只有成交状态才会进行退换补)
|
|
|
let row = this.$refs['table-select'].batchRows[0];
|
|
|
if (row['orderStatus'] !== this.$config.orderStatus.done) {
|
|
|
- this.$message.error(this.$t('W_050', {'param': this.$v(name)}))
|
|
|
+ this.$Message.warning(this.$t('W_050', {'param': this.$v(name)}))
|
|
|
return false;
|
|
|
}
|
|
|
if (row['apvResult'] !== this.$config.apvResultStatus.adopt) {
|
|
|
- this.$Message.error(this.$t('W_081'))
|
|
|
+ this.$Message.warning(this.$t('W_081'))
|
|
|
return false;
|
|
|
}
|
|
|
} else if (this.$config.routeUrl.order.saleReturn.key === name) { // 销售退货校验
|
|
|
@@ -672,7 +672,7 @@ export default {
|
|
|
if (row['outStatus'] !== this.$config.outStatus.part &&
|
|
|
row['outStatus'] !== this.$config.outStatus.allOut
|
|
|
|| row.orderStatus == this.$config.orderStatus.reverse) {
|
|
|
- this.$message.error(this.$t('W_050', {'param': this.$v(name)}))
|
|
|
+ this.$Message.warning(this.$t('W_050', {'param': this.$v(name)}))
|
|
|
return false;
|
|
|
}
|
|
|
// 查询是否还有可以进行退货的明细
|
|
|
@@ -690,45 +690,45 @@ export default {
|
|
|
if (!table || table.length == 0) {
|
|
|
// 查看子级是否用退货的明细
|
|
|
if (this.tableDataDetail_goodsDetail)
|
|
|
- this.$message.error(this.$t('W_050', {'param': this.$v('saleReturn')}))
|
|
|
+ this.$Message.warning(this.$t('W_050', {'param': this.$v('saleReturn')}))
|
|
|
return false;
|
|
|
}
|
|
|
} else if (this.$config.routeUrl.order.saleReturnReverse.key === name) { // 销售退货冲正
|
|
|
// 没有做销售退货的不能进行销售退货冲正
|
|
|
let row = this.$refs['table-select'].batchRows[0];
|
|
|
if (row.orderStatus == this.$config.orderStatus.reverse) {
|
|
|
- this.$message.error(this.$t('W_050', {'param': this.$v(name)}))
|
|
|
+ this.$Message.warning(this.$t('W_050', {'param': this.$v(name)}))
|
|
|
return false;
|
|
|
}
|
|
|
} else if (this.$config.routeUrl.order.saleRefund.key === name) { // 销售退款
|
|
|
let row = this.$refs['table-select'].batchRows[0];
|
|
|
if (row['orderStatus'] != this.$config.orderStatus.done || row.apvResult != this.$config.approvalStatus.done) {
|
|
|
- this.$message.error(this.$t('W_050', {'param': this.$v(name)}))
|
|
|
+ this.$Message.warning(this.$t('W_050', {'param': this.$v(name)}))
|
|
|
return false;
|
|
|
}
|
|
|
} else if (this.$config.routeUrl.order.revert.key === name) { // 冲正
|
|
|
// 如果做过跟单,就不允许冲正
|
|
|
let row = this.$refs['table-select'].batchRows[0];
|
|
|
if (row && row.bomItems && row.bomItems.length > 0) {
|
|
|
- this.$Message.error(this.$t('W_060'))
|
|
|
+ this.$Message.warning(this.$t('W_060'))
|
|
|
return false;
|
|
|
}
|
|
|
//出库中商品不能进行冲正
|
|
|
if (row && row.outStatus != this.$config.outStatus.noOut) {
|
|
|
- this.$Message.error(this.$t('W_059'))
|
|
|
+ this.$Message.warning(this.$t('W_059'))
|
|
|
return false;
|
|
|
}
|
|
|
//审批中不允许冲正,冲正状态不允许冲正
|
|
|
if (row && (row.apvResult == this.$config.approvalStatus.auditing ||
|
|
|
row.orderStatus == this.$config.orderStatus.reverse)) {
|
|
|
- this.$Message.error(this.$t('W_086'))
|
|
|
+ this.$Message.warning(this.$t('W_086'))
|
|
|
return false;
|
|
|
}
|
|
|
} else if (this.$config.routeUrl.order.deposit.key === name) { // 定金
|
|
|
let batchRow = this.$refs['table-select'].batchRows[0];
|
|
|
if (batchRow.apvResult != this.$config.approvalStatus.done
|
|
|
|| batchRow.orderStatus == this.$config.orderStatus.reverse) {
|
|
|
- this.$Message.error(this.$t('W_084'))
|
|
|
+ this.$Message.warning(this.$t('W_084'))
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
@@ -822,7 +822,7 @@ export default {
|
|
|
this.$router.push('/sale/order/sale-return-detail?returnId=' + row.orderId)
|
|
|
} else {
|
|
|
if (row.apvResult === '审-审中') {
|
|
|
- this.$Message.error(this.$t('W_070'))
|
|
|
+ this.$Message.warning(this.$t('W_070'))
|
|
|
return
|
|
|
}
|
|
|
this.$router.push('/sale/order/edit/' + row.orderId)
|
|
|
@@ -881,7 +881,7 @@ export default {
|
|
|
if (res.code === 200) {
|
|
|
this.tableDataDetail_returnDetail = res.data.orderItem;
|
|
|
} else {
|
|
|
- this.$message.error(res.message)
|
|
|
+ this.$Message.warning(res.message)
|
|
|
}
|
|
|
})
|
|
|
} else if (this.orderType == this.$config.orderType.refund) {
|
|
|
@@ -893,7 +893,7 @@ export default {
|
|
|
if (res.code === 200) {
|
|
|
this.tableDataDetail_refundDetail = res.data.orderItem;
|
|
|
} else {
|
|
|
- this.$message.error(res.message)
|
|
|
+ this.$Message.warning(res.message)
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
@@ -906,7 +906,7 @@ export default {
|
|
|
this.tableDataDetail_goodsDetail = res.data.orderItem;
|
|
|
this.tableDataDetail_collectionDetail = res.data.recepit;
|
|
|
} else {
|
|
|
- this.$message.error(res.message)
|
|
|
+ this.$Message.warning(res.message)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
@@ -929,7 +929,7 @@ export default {
|
|
|
this.searchData() // 查询一览界面
|
|
|
this.$Message.success(this.$t('I_001', {'param': this.$v('edit')}))
|
|
|
} else {
|
|
|
- this.$message.error(res.message)
|
|
|
+ this.$Message.warning(res.message)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -940,7 +940,7 @@ export default {
|
|
|
*/
|
|
|
printOrder() {
|
|
|
if (this.$refs['table-select'].batchKeys.length !== 1) {
|
|
|
- this.$Message.error(this.$t('W_013'))
|
|
|
+ this.$Message.warning(this.$t('W_013'))
|
|
|
return
|
|
|
}
|
|
|
this.$refs['print-btn'].openChooseTemplate()
|
|
|
@@ -983,7 +983,7 @@ export default {
|
|
|
this.$refs['print-btn'].print(row)
|
|
|
}
|
|
|
} else {
|
|
|
- this.$message.error(res.message)
|
|
|
+ this.$Message.warning(res.message)
|
|
|
}
|
|
|
})
|
|
|
},
|