|
@@ -14,6 +14,15 @@
|
|
|
{{gridList.qualityNo}}
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="c-row ">
|
|
|
+ <view class="title">货名</view>
|
|
|
+ <view class="con-list">
|
|
|
+ <view @click='show2=true'>{{gridList.goodsName}}</view>
|
|
|
+ <u-picker :range="goodsList" range-key="goodsName" @confirm='goodspicker($event)' v-model="show2"
|
|
|
+ mode="selector">
|
|
|
+ </u-picker>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<view class="c-row ">
|
|
|
<view class="title">客户</view>
|
|
|
<view class="con-list">
|
|
@@ -68,15 +77,6 @@
|
|
|
<input type="digit" v-model='gridList.storageTagNo' placeholder="请输入囤位号" name="input"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="c-row ">
|
|
|
- <view class="title">货名</view>
|
|
|
- <view class="con-list">
|
|
|
- <view @click='show2=true'>{{gridList.goodsName}}</view>
|
|
|
- <u-picker :range="goodsList" range-key="goodsName" @confirm='goodspicker($event)' v-model="show2"
|
|
|
- mode="selector">
|
|
|
- </u-picker>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
<view class="c-row ">
|
|
|
<view class="title">类型</view>
|
|
|
<view v-if="!edit" class="con-list">
|
|
@@ -320,20 +320,6 @@
|
|
|
}
|
|
|
this.gridList.grade = this.gradeList[0].value
|
|
|
this.gridList.gradeKey = this.gradeList[0].key
|
|
|
- this.$api.doRequest('get', '/identityAuthenticationInfo/identityAuthenticationInfoCustomer', {
|
|
|
- compId: '',
|
|
|
- authenticationStatusKey: 7
|
|
|
- }).then(res => {
|
|
|
- if (res.data.data) {
|
|
|
- // let data = res.data.data
|
|
|
- // that.gridList =data
|
|
|
- that.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse', {
|
|
|
- id: this.cangid
|
|
|
- }).then(res => {
|
|
|
- that.warehouseList = res.data.data.warehousePositionInfoList
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName', {
|
|
|
warehouseId: this.cangid
|
|
|
}).then(res => {
|
|
@@ -610,6 +596,7 @@
|
|
|
this.waterContentChange()
|
|
|
},
|
|
|
setGoodName(e) {
|
|
|
+ uni.showLoading({title: '加载中',mask:true})
|
|
|
// [e[0]] = 0
|
|
|
// this.$set(this.gradeList,'grade',this.gradeList[e[0]].value)
|
|
|
if (this.goodsList[e[0]].goodsName == '玉米') {
|
|
@@ -622,7 +609,23 @@
|
|
|
this.gridList.type = '干粮'
|
|
|
this.edit = false
|
|
|
}
|
|
|
+ var that = this
|
|
|
this.gridList.goodsName = this.goodsList[e[0]].goodsName
|
|
|
+ this.$api.doRequest('get', '/identityAuthenticationInfo/identityAuthenticationInfoCustomer', {
|
|
|
+ warehouseId: this.cangid,
|
|
|
+ goodsName: this.gridList.goodsName
|
|
|
+ }).then(res => {
|
|
|
+ if (res.data.data) {
|
|
|
+ uni.hideLoading()
|
|
|
+ // let data = res.data.data
|
|
|
+ // that.gridList =data
|
|
|
+ that.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse', {
|
|
|
+ id: this.cangid
|
|
|
+ }).then(res => {
|
|
|
+ that.warehouseList = res.data.data.warehousePositionInfoList
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
uni.setStorageSync('goodsName', this.gridList.goodsName)
|
|
|
if (this.gridList.type == "干粮" && this.gridList.goodsName) {
|
|
|
this.$api.doRequest('get', '/purchasePrice/dryGrainPrice', {
|
|
@@ -630,6 +633,7 @@
|
|
|
goodsName: this.gridList.goodsName
|
|
|
}).then(res => {
|
|
|
this.gridList.dryGrainPrice = res.data.data
|
|
|
+
|
|
|
})
|
|
|
}
|
|
|
this.waterContentChange()
|