|
@@ -819,7 +819,8 @@ export default {
|
|
|
</ol>
|
|
|
</div>,
|
|
|
onOk () {
|
|
|
- _this.verificationSuccess(isBatch)
|
|
|
+ // 售价是否低于参考成本价
|
|
|
+ _this.validPriceLessCost(d, isBatch)
|
|
|
},
|
|
|
onCancel () {
|
|
|
_this.spinning = false
|
|
@@ -835,16 +836,21 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
// 售价是否低于参考成本价
|
|
|
- if (d.length) {
|
|
|
- if (isBatch) { // 一键审核,弹框文字提示
|
|
|
- _this.tempData = { vaildPriceList: d[0].data.map(item => item.productCode) }
|
|
|
- _this.verificationSuccess(isBatch)
|
|
|
- } else {
|
|
|
- // 审核或上级审核,弹框表格提示
|
|
|
- _this.openVaildPrice(d[0])
|
|
|
- }
|
|
|
- } else {
|
|
|
+ _this.validPriceLessCost(d, isBatch)
|
|
|
+ } else {
|
|
|
+ _this.verificationSuccess(isBatch)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 售价是否低于参考成本价提示弹框
|
|
|
+ validPriceLessCost (d, isBatch) {
|
|
|
+ const _this = this
|
|
|
+ if (d.length) {
|
|
|
+ if (isBatch) { // 一键审核,弹框文字提示
|
|
|
+ _this.tempData = { vaildPriceList: d[0].data.map(item => item.productCode) }
|
|
|
_this.verificationSuccess(isBatch)
|
|
|
+ } else {
|
|
|
+ // 审核或上级审核,弹框表格提示
|
|
|
+ _this.openVaildPrice(d[0])
|
|
|
}
|
|
|
} else {
|
|
|
_this.verificationSuccess(isBatch)
|