|
@@ -89,7 +89,7 @@
|
|
<view class="c-row ">
|
|
<view class="c-row ">
|
|
<view class="title">水分(%)</view>
|
|
<view class="title">水分(%)</view>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
- <input v-model='gridList.waterContent' placeholder="请输入水分占比"
|
|
|
|
|
|
+ <input v-model='gridList.waterContent' placeholder="请输入水分占比" @input="waterContentChange"
|
|
name="input"></input>
|
|
name="input"></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -174,7 +174,12 @@
|
|
headUrl:"../../static/img/myimg/YongHu@3x.png",
|
|
headUrl:"../../static/img/myimg/YongHu@3x.png",
|
|
userphone:"",
|
|
userphone:"",
|
|
username:"请更改昵称",
|
|
username:"请更改昵称",
|
|
- gridList: {},
|
|
|
|
|
|
+ gridList: {
|
|
|
|
+ natureOfGrainPurchase:'贸易粮',
|
|
|
|
+ type:'潮粮',
|
|
|
|
+ tidalGrainPrice:'',
|
|
|
|
+ dryGrainPrice:''
|
|
|
|
+ },
|
|
managementType:'',
|
|
managementType:'',
|
|
warehouseName: '',
|
|
warehouseName: '',
|
|
warehouseList:[],
|
|
warehouseList:[],
|
|
@@ -237,11 +242,35 @@
|
|
id:this.cangid
|
|
id:this.cangid
|
|
}).then(res => {
|
|
}).then(res => {
|
|
that.warehouseList=res.data.data.warehousePositionInfoList
|
|
that.warehouseList=res.data.data.warehousePositionInfoList
|
|
|
|
+
|
|
})
|
|
})
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ this.gridList.grade=this.gradeList[0].value
|
|
|
|
+ this.gridList.gradeKey=this.gradeList[0].key
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ waterContentChange() {
|
|
|
|
+ var that = this
|
|
|
|
+ var numReg = /^[0-9]*$/
|
|
|
|
+ var numRe = new RegExp(numReg)
|
|
|
|
+ //潮粮单价改变事件
|
|
|
|
+ if (
|
|
|
|
+ this.gridList.goodsName &&
|
|
|
|
+ this.gridList.waterContent &&
|
|
|
|
+ this.gridList.grade&&
|
|
|
|
+ numRe.test(this.gridList.waterContent)
|
|
|
|
+ ) {
|
|
|
|
+ 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.tidalGrainPrice = res.data.data
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
submit(){
|
|
submit(){
|
|
var that = this
|
|
var that = this
|
|
if (!this.gridList.qualityNo) {
|
|
if (!this.gridList.qualityNo) {
|
|
@@ -346,6 +375,7 @@
|
|
// this.$set(this.gradeList,'grade',this.gradeList[e[0]].value)
|
|
// this.$set(this.gradeList,'grade',this.gradeList[e[0]].value)
|
|
this.gridList.grade=this.gradeList[e[0]].value
|
|
this.gridList.grade=this.gradeList[e[0]].value
|
|
this.gridList.gradeKey=this.gradeList[e[0]].key
|
|
this.gridList.gradeKey=this.gradeList[e[0]].key
|
|
|
|
+ this.waterContentChange()
|
|
},
|
|
},
|
|
binNumberpicker(e){
|
|
binNumberpicker(e){
|
|
this.gridList.binNumber=this.warehouseList[e[0]].binNumber
|
|
this.gridList.binNumber=this.warehouseList[e[0]].binNumber
|