|
@@ -330,12 +330,15 @@
|
|
|
waterContentChange() {
|
|
|
var that = this
|
|
|
if(this.gridList.goodsName && this.cangid){
|
|
|
- this.$api.doRequest('get', '/purchasePrice/dryGrainPrice',{
|
|
|
- warehouseId:this.cangid,
|
|
|
- goodsName:this.gridList.goodsName
|
|
|
- }).then(res => {
|
|
|
- that.gridList.dryGrainPrice = res.data.data
|
|
|
- })
|
|
|
+ if(!this.gridList.dryGrainPrice||this.gridList.dryGrainPrice == 0){
|
|
|
+ this.$api.doRequest('get', '/purchasePrice/dryGrainPrice',{
|
|
|
+ warehouseId:this.cangid,
|
|
|
+ goodsName:this.gridList.goodsName
|
|
|
+ }).then(res => {
|
|
|
+ that.gridList.dryGrainPrice = res.data.data
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
if (this.gridList.goodsName) {
|