|
@@ -396,6 +396,7 @@ import {
|
|
|
salesWriteAuditPass,
|
|
|
salesWriteUpAuditPass,
|
|
|
salesWriteAuditReject,
|
|
|
+ salesWriteUpAuditReject,
|
|
|
salesWriteAuditPush,
|
|
|
getThirdStockQty,
|
|
|
salesPromoValidaAudit,
|
|
@@ -811,7 +812,6 @@ export default {
|
|
|
_this.verificationSuccess(isBatch)
|
|
|
} else {
|
|
|
// 审核或上级审核,弹框表格提示
|
|
|
- d[0].type = 'audit_price_less_cost'
|
|
|
_this.openVaildPrice(d[0])
|
|
|
}
|
|
|
} else {
|
|
@@ -893,16 +893,29 @@ export default {
|
|
|
},
|
|
|
// 价格低于成本校验提示,继续审核
|
|
|
vaildPriceOk (type) {
|
|
|
+ console.log(type, this.isSupAudit)
|
|
|
if (type == 'confirm') {
|
|
|
this.auditOrder(type)
|
|
|
return
|
|
|
}
|
|
|
- // 不通过 或 是 如果是待上级审核,调用
|
|
|
- if (type == 'AUDIT_REJECT' || this.isSupAudit) {
|
|
|
+ // 不通过,调用
|
|
|
+ if (type == 'AUDIT_REJECT') { // 价格低于成本审核不通过
|
|
|
this.auditOrder(type)
|
|
|
- } else {
|
|
|
+ } else if (type == 'AUDIT_UP_REJECT') { // 待上级审核不通过
|
|
|
+ this.spinning = true
|
|
|
+ salesWriteUpAuditReject({
|
|
|
+ salesBillSn: this.bizSn || this.$route.params.sn
|
|
|
+ }).then(res => {
|
|
|
+ if (res.status == 200) {
|
|
|
+ this.$message.success(res.message)
|
|
|
+ this.closeVaildPrice()
|
|
|
+ this.handleBack()
|
|
|
+ }
|
|
|
+ this.$refs.vaildPriceModal.spinning = false
|
|
|
+ this.spinning = false
|
|
|
+ })
|
|
|
+ } else { // 通过审核,业务状态变更 待上级审核
|
|
|
this.spinning = true
|
|
|
- // 通过审核,业务状态变更 待上级审核
|
|
|
salesWriteUpAuditPass({
|
|
|
salesBillSn: this.bizSn || this.$route.params.sn,
|
|
|
billStatus: type
|