|
@@ -950,36 +950,43 @@
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
- //潮粮单价改变事件
|
|
|
|
- if (
|
|
|
|
- this.gridList.goodsName &&
|
|
|
|
- this.gridList.waterContent &&
|
|
|
|
- this.gridList.grade
|
|
|
|
- ) {
|
|
|
|
- console.log('123123')
|
|
|
|
- this.$api.doRequest('get', '/purchasePrice/tidalGrainPrice', {
|
|
|
|
- warehouseId: this.cangid,
|
|
|
|
- goodsName: this.gridList.goodsName,
|
|
|
|
- waterContent: this.gridList.waterContent,
|
|
|
|
- grade: this.gridList.grade,
|
|
|
|
- }).then(res => {
|
|
|
|
- that.gridList.waterPriceIncrease=0
|
|
|
|
- that.gridList.waterPriceDeduction=0
|
|
|
|
- that.gridList.qualityPriceIncrease=0
|
|
|
|
- that.gridList.qualityPriceDeduction=0
|
|
|
|
- if (that.gridList.paramType == '1') {
|
|
|
|
- that.gridList.tidalGrainPrice = parseFloat(parseFloat(res.data.data) - parseFloat(that
|
|
|
|
- .gridList.buckleMiscellaneous) / 100 * parseFloat(that.gridList
|
|
|
|
- .dryGrainPrice)).toFixed(4)
|
|
|
|
- if (!that.gridList.tidalGrainPrice) {
|
|
|
|
- that.gridList.tidalGrainPrice = ''
|
|
|
|
|
|
+ that.gridList.waterPriceIncrease=0
|
|
|
|
+ that.gridList.waterPriceDeduction=0
|
|
|
|
+ that.gridList.qualityPriceIncrease=0
|
|
|
|
+ that.gridList.qualityPriceDeduction=0
|
|
|
|
+ //潮粮单价改变事件
|
|
|
|
+ if (
|
|
|
|
+ this.gridList.goodsName &&
|
|
|
|
+ this.gridList.waterContent &&
|
|
|
|
+ this.gridList.grade
|
|
|
|
+ ) {
|
|
|
|
+ console.log('123123')
|
|
|
|
+ this.$api.doRequest('get', '/purchasePrice/tidalGrainPrice', {
|
|
|
|
+ warehouseId: this.cangid,
|
|
|
|
+ goodsName: this.gridList.goodsName,
|
|
|
|
+ waterContent: this.gridList.waterContent,
|
|
|
|
+ grade: this.gridList.grade,
|
|
|
|
+ }).then(res => {
|
|
|
|
+
|
|
|
|
+ if (that.gridList.paramType == '1') {
|
|
|
|
+ // console.log(that.gridList)
|
|
|
|
+ if(that.gridList.buckleMiscellaneous){
|
|
|
|
+ that.gridList.tidalGrainPrice = parseFloat(parseFloat(res.data.data) - parseFloat(that
|
|
|
|
+ .gridList.buckleMiscellaneous) / 100 * parseFloat(that.gridList
|
|
|
|
+ .dryGrainPrice)).toFixed(4)
|
|
|
|
+ that.tidalGrainPrice = parseFloat(parseFloat(res.data.data) - parseFloat(that
|
|
|
|
+ .gridList.buckleMiscellaneous) / 100 * parseFloat(that.gridList
|
|
|
|
+ .dryGrainPrice)).toFixed(4)
|
|
|
|
+ }
|
|
|
|
+ if (!that.gridList.tidalGrainPrice) {
|
|
|
|
+ that.gridList.tidalGrainPrice = ''
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ that.gridList.tidalGrainPrice = res.data.data
|
|
}
|
|
}
|
|
- } else {
|
|
|
|
- that.gridList.tidalGrainPrice = res.data.data
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
},
|
|
},
|
|
goodsPicker(e) {
|
|
goodsPicker(e) {
|
|
this.gridList.goodsName = this.goodsList[e[0]].goodsName
|
|
this.gridList.goodsName = this.goodsList[e[0]].goodsName
|
|
@@ -987,6 +994,11 @@
|
|
submit() {
|
|
submit() {
|
|
this.$delete(this.gridList,'status')
|
|
this.$delete(this.gridList,'status')
|
|
this.gridList.agent=this.userInfo.userName;
|
|
this.gridList.agent=this.userInfo.userName;
|
|
|
|
+
|
|
|
|
+ // if(!this.$u.test.isEmpty(this.gridList.tidalGrainPrice)){
|
|
|
|
+ // this.gridList.tidalGrainPrice=''
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
if(this.flag==3){
|
|
if(this.flag==3){
|
|
this.gridList.statusFlag=7
|
|
this.gridList.statusFlag=7
|
|
}else if(this.flag==4||this.flag==0){
|
|
}else if(this.flag==4||this.flag==0){
|