|
@@ -126,7 +126,7 @@
|
|
|
<view v-if='flag!=3' class="c-row ">
|
|
|
<view class="title">仓位号</view>
|
|
|
<view class="con-list">
|
|
|
- <view v-if='flag!=1' @click='show=true'>{{gridList.binNumber}}</view>
|
|
|
+ <view v-if='flag!=1' @click='show=true'>{{gridList.binNumber?gridList.binNumber:'请选择仓位号'}}</view>
|
|
|
<view v-else>{{gridList.binNumber}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -259,7 +259,7 @@
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
- <view v-if="gridList.type == '干粮'&&flag!=3" class="c-row">
|
|
|
+ <view v-if="gridList.type == '干粮'&&gridList.serviceManagementType==1&&flag!=3" class="c-row">
|
|
|
<view class="title">干粮单价(元/公斤)</view>
|
|
|
<view class="con-list" @click="setPrice">
|
|
|
{{gridList.dryGrainPrice}}
|
|
@@ -286,7 +286,7 @@
|
|
|
mode="selector">
|
|
|
</u-picker>
|
|
|
<view v-if='flag==1' @click='show2=true'>{{gridList.reGrade?gridList.reGrade:'请选择等级'}}</view>
|
|
|
- <view v-else>{{gridList.reGrade}}</view>
|
|
|
+ <view v-if='flag==2'>{{gridList.reGrade}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="c-row ">
|
|
@@ -294,8 +294,7 @@
|
|
|
<view class="con-list">
|
|
|
<input :disabled='flag==1' v-model='gridList.waterContent' placeholder="初检水分"
|
|
|
@input="waterContentChange" type="digit" name="input"></input>
|
|
|
- <input v-if='flag==0' value='未复检' disabled placeholder="复检水分" name="input"></input>
|
|
|
- <input :disabled='flag!=1' type="digit" v-else v-model='gridList.reWaterContent' placeholder="复检水分"
|
|
|
+ <input v-if='flag==1||flag==2' type="digit" v-model='gridList.reWaterContent' placeholder="复检水分"
|
|
|
name="input"></input>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -304,7 +303,7 @@
|
|
|
<view class="con-list">
|
|
|
<input :disabled='flag==1' type="digit" v-model='gridList.bulkDensity' placeholder="请输入容重"
|
|
|
name="input"></input>
|
|
|
- <input :disabled='flag!=1' type="digit" v-model='gridList.reBulkDensity' placeholder="请输入容重"
|
|
|
+ <input v-if='flag==1||flag==2' type="digit" v-model='gridList.reBulkDensity' placeholder="请输入容重"
|
|
|
name="input"></input>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -313,7 +312,7 @@
|
|
|
<view class="con-list">
|
|
|
<input :disabled='flag==1' type="digit" v-model='gridList.imperfectGrain' placeholder="请输入不完整粒占比"
|
|
|
name="input"></input>
|
|
|
- <input :disabled='flag!=1' type="digit" v-model='gridList.reImperfectGrain' placeholder="请输入不完整粒占比"
|
|
|
+ <input v-if='flag==1||flag==2' type="digit" v-model='gridList.reImperfectGrain' placeholder="请输入不完整粒占比"
|
|
|
name="input"></input>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -322,7 +321,7 @@
|
|
|
<view class="con-list">
|
|
|
<input :disabled='flag==1' type="digit" v-model='gridList.impurity' placeholder="请输入杂质占比"
|
|
|
name="input"></input>
|
|
|
- <input :disabled='flag!=1' type="digit" v-model='gridList.reImpurity' placeholder="请输入杂质占比"
|
|
|
+ <input v-if='flag==1||flag==2' type="digit" v-model='gridList.reImpurity' placeholder="请输入杂质占比"
|
|
|
name="input"></input>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -331,7 +330,7 @@
|
|
|
<view class="con-list">
|
|
|
<input :disabled='flag==1' type="digit" v-model='gridList.mildewGrain' placeholder="请输入霉变粒占比"
|
|
|
name="input"></input>
|
|
|
- <input :disabled='flag!=1' type="digit" v-model='gridList.reMildewGrain' placeholder="请输入霉变粒占比"
|
|
|
+ <input v-if='flag==1||flag==2' type="digit" v-model='gridList.reMildewGrain' placeholder="请输入霉变粒占比"
|
|
|
name="input"></input>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -340,7 +339,7 @@
|
|
|
<view class="con-list">
|
|
|
<input :disabled='flag==1' type="digit" v-model='gridList.jiaorenli' placeholder="请输入热损伤占比"
|
|
|
name="input"></input>
|
|
|
- <input :disabled='flag!=1' type="digit" v-model='gridList.reJiaorenli' placeholder="请输入热损伤占比"
|
|
|
+ <input v-if='flag==1||flag==2' type="digit" v-model='gridList.reJiaorenli' placeholder="请输入热损伤占比"
|
|
|
name="input"></input>
|
|
|
<!-- <input v-model='gridList.jiaorenli' @click.stop="handleShowKeyboard1":disabled="true" placeholder="请输入热损伤占比" name="input"></input> -->
|
|
|
</view>
|
|
@@ -556,6 +555,9 @@
|
|
|
if(!that.gridList.reJiaorenli){
|
|
|
that.gridList.reJiaorenli=that.gridList.jiaorenli
|
|
|
}
|
|
|
+ if(this.gridList.outType&&this.gridList.serviceManagementType==3){
|
|
|
+ this.outType=this.gridList.outType
|
|
|
+ }
|
|
|
that.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse', {
|
|
|
id: this.cangid
|
|
|
}).then(res => {
|
|
@@ -583,7 +585,7 @@
|
|
|
this.gridList.gradeKey = this.gradeList[0].key
|
|
|
},
|
|
|
onShow() {
|
|
|
- this.multiSelector1=[]
|
|
|
+ this.multiSelector1=[{name:'他运',value:'他运'}]
|
|
|
this.$api.doRequest('get', '/inOutWarehouseTask/getContractNo', {
|
|
|
warehouseName:this.warehouseName
|
|
|
}).then(res => {
|
|
@@ -594,6 +596,8 @@
|
|
|
res.data.data.contractMangementInfoList[i].contractNo+' '+res.data.data.contractMangementInfoList[i].seller+')'
|
|
|
this.multiSelector1.push(res.data.data.contractManagementInfoList[i])
|
|
|
}
|
|
|
+ }else{
|
|
|
+ this.multiSelector1=[{name:'他运',value:'他运'}]
|
|
|
}
|
|
|
// this.taskNolist=res.data.data
|
|
|
})
|
|
@@ -818,11 +822,25 @@
|
|
|
this.gridList.customerName = ''
|
|
|
}
|
|
|
|
|
|
+ var text=''
|
|
|
+ if(this.utils.getCurrectRoles('acquisitionQuality.qview')&&!this.utils.getCurrectRoles('acquisitionQuality.initial')){
|
|
|
+ text="确定提交钎样信息?"
|
|
|
+ if(this.flag==3||this.flag==4||this.flag==0){
|
|
|
+ this.gridList.brazer=1
|
|
|
+ }
|
|
|
+
|
|
|
+ }else{
|
|
|
+ text="确定提交质检信息?"
|
|
|
+ if(this.flag==3||this.flag==4||this.flag==0){
|
|
|
+ this.gridList.brazer=0
|
|
|
+ }
|
|
|
+ }
|
|
|
if(this.flag==4){
|
|
|
this.gridList.flag = 0
|
|
|
}else{
|
|
|
this.gridList.flag = this.flag
|
|
|
}
|
|
|
+
|
|
|
// if(this.flag==2){
|
|
|
// this.gridList.reInspector=this.userInfo.userName
|
|
|
// }
|
|
@@ -940,8 +958,9 @@
|
|
|
mildewGrain:that.gridList.mildewGrain,
|
|
|
reMildewGrain:that.gridList.reMildewGrain,
|
|
|
}
|
|
|
+
|
|
|
uni.showModal({
|
|
|
- content: "确定提交质检信息?",
|
|
|
+ content: text,
|
|
|
showCancel: true,
|
|
|
confirmText: '提交',
|
|
|
success: function(res) {
|
|
@@ -958,7 +977,9 @@
|
|
|
that.gridList.warehouseId = that.cangid
|
|
|
uni.setStorageSync("quality_print", that.gridList)
|
|
|
console.log('that.gridList', that.gridList)
|
|
|
- that.isShowPrint = true
|
|
|
+ if(that.utils.getCurrectRoles('acquisitionQuality.initial')){
|
|
|
+ that.isShowPrint = true
|
|
|
+ }
|
|
|
// uni.getStorageSync("depotAcquisition_warehouseName")
|
|
|
// uni.navigateBack({})
|
|
|
}
|