|
@@ -230,6 +230,7 @@
|
|
|
this.purchaseOrder.settlementPrice = options.basisPrice
|
|
|
this.purchaseOrder.procurementPlanType = options.procurementPlanType
|
|
|
this.purchaseOrder.procurementPlan=options.procurementPlan
|
|
|
+ this.purchaseOrder.compId=options.compId
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['hasLogin','userInfo']),
|
|
@@ -269,15 +270,15 @@
|
|
|
this.$api.msg('出售数量输入错误')
|
|
|
return
|
|
|
}
|
|
|
- if(!this.purchaseOrder.pointPrice){
|
|
|
+ if(this.purchaseOrder.procurementPlanType=='期货'&&!this.purchaseOrder.pointPrice){
|
|
|
this.$api.msg('点价不能为空')
|
|
|
return
|
|
|
}
|
|
|
- if(this.purchaseOrder.pointPrice>10000){
|
|
|
+ if(this.purchaseOrder.procurementPlanType=='期货'&&this.purchaseOrder.pointPrice>10000){
|
|
|
this.$api.msg('点价输入错误')
|
|
|
return
|
|
|
}
|
|
|
- if(this.purchaseOrder.pointPrice.indexOf('.')!=-1){
|
|
|
+ if(this.purchaseOrder.procurementPlanType=='期货'&&this.purchaseOrder.pointPrice.indexOf('.')!=-1){
|
|
|
if(this.purchaseOrder.pointPrice.split(".")[1].length>2){
|
|
|
this.$api.msg('点价输入错误')
|
|
|
return
|