|
@@ -446,16 +446,16 @@
|
|
|
return
|
|
|
}
|
|
|
if(this.deptList.procurementPlanType == '现货'){
|
|
|
- if (!this.deptList.unitPrice) {
|
|
|
+ if (!this.deptList.procurementPrice) {
|
|
|
this.$api.msg('单价不能为空')
|
|
|
return
|
|
|
}
|
|
|
- if (this.deptList.unitPrice>100000||this.deptList.unitPrice<1) {
|
|
|
+ if (this.deptList.procurementPrice>100000||this.deptList.procurementPrice<1) {
|
|
|
this.$api.msg('单价输入错误')
|
|
|
return
|
|
|
}
|
|
|
- if (this.deptList.unitPrice.indexOf('.')!=-1) {
|
|
|
- if(this.deptList.unitPrice.split('.')[1].length>2){
|
|
|
+ if (this.deptList.procurementPrice.indexOf('.')!=-1) {
|
|
|
+ if(this.deptList.procurementPrice.split('.')[1].length>2){
|
|
|
this.$api.msg('单价输入错误')
|
|
|
return
|
|
|
}
|