|
@@ -37,8 +37,12 @@
|
|
<view v-else class="c-row ">
|
|
<view v-else class="c-row ">
|
|
<view class="title">扣杂</view>
|
|
<view class="title">扣杂</view>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
- <input v-model='gridList.buckleMiscellaneous' placeholder="请输入扣杂" @input="waterContentChange"
|
|
|
|
- name="input"></input>
|
|
|
|
|
|
+ <input v-model='gridList.buckleMiscellaneous' placeholder="初检扣杂" @input="waterContentChange"
|
|
|
|
+ name="input"></input>
|
|
|
|
+ <input v-if='flag==1||gridList.reBuckleMiscellaneous' v-model='gridList.reBuckleMiscellaneous' placeholder="复检扣杂" @input="waterContentChange"
|
|
|
|
+ name="input"></input>
|
|
|
|
+ <input v-else value='未复检' disabled placeholder="复检扣杂" @input="waterContentChange"
|
|
|
|
+ name="input"></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="c-row ">
|
|
<view class="c-row ">
|
|
@@ -97,8 +101,12 @@
|
|
<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="waterContentChange"
|
|
|
|
|
|
+ <input v-model='gridList.waterContent' placeholder="初检水分" @input="waterContentChange"
|
|
name="input"></input>
|
|
name="input"></input>
|
|
|
|
+ <input v-if='flag==1||gridList.reWaterContent' v-model='gridList.reWaterContent' placeholder="复检水分" @input="waterContentChange"
|
|
|
|
+ name="input"></input>
|
|
|
|
+ <input v-else value='未复检' disabled placeholder="复检水分"
|
|
|
|
+ name="input"></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="c-row ">
|
|
<view class="c-row ">
|
|
@@ -172,6 +180,7 @@
|
|
footprintList: [],
|
|
footprintList: [],
|
|
searchKeyWord:'',
|
|
searchKeyWord:'',
|
|
isVip: false,
|
|
isVip: false,
|
|
|
|
+ flag:0,
|
|
userInfoTmp: [],
|
|
userInfoTmp: [],
|
|
inputStatus: 'none',
|
|
inputStatus: 'none',
|
|
carInfo: [],
|
|
carInfo: [],
|
|
@@ -235,6 +244,7 @@
|
|
},
|
|
},
|
|
onLoad(options){
|
|
onLoad(options){
|
|
this.id=options.id
|
|
this.id=options.id
|
|
|
|
+ this.flag=options.flag
|
|
this.cangid=options.cangid
|
|
this.cangid=options.cangid
|
|
this.managementType=options.managementType
|
|
this.managementType=options.managementType
|
|
},
|
|
},
|
|
@@ -304,6 +314,10 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
submit(){
|
|
submit(){
|
|
|
|
+ this.gridList.flag=this.flag
|
|
|
|
+ if(this.flag==2){
|
|
|
|
+ this.gridList.reInspector=this.userInfo.userName
|
|
|
|
+ }
|
|
var that = this
|
|
var that = this
|
|
if (!this.gridList.qualityNo) {
|
|
if (!this.gridList.qualityNo) {
|
|
this.$api.msg('编号不能为空')
|
|
this.$api.msg('编号不能为空')
|
|
@@ -337,18 +351,26 @@
|
|
this.$api.msg('货名不能为空')
|
|
this.$api.msg('货名不能为空')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (this.gridList.buckleWeightRatio < 0 ||this.gridList.buckleWeightRatio > 2) {
|
|
|
|
|
|
+ if (this.gridList.paramType!=1&&this.gridList.buckleWeightRatio < 0 ||this.gridList.paramType!=1&&this.gridList.buckleWeightRatio > 2) {
|
|
this.$api.msg('扣重比输入错误')
|
|
this.$api.msg('扣重比输入错误')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- String(this.gridList.buckleWeightRatio).indexOf('.') != -1 &&
|
|
|
|
|
|
+ this.gridList.paramType!=1&&String(this.gridList.buckleWeightRatio).indexOf('.') != -1 &&
|
|
String(this.gridList.buckleWeightRatio).length -
|
|
String(this.gridList.buckleWeightRatio).length -
|
|
(String(this.gridList.buckleWeightRatio).indexOf('.') + 1) > 2)
|
|
(String(this.gridList.buckleWeightRatio).indexOf('.') + 1) > 2)
|
|
{
|
|
{
|
|
this.$api.msg('扣重比输入错误')
|
|
this.$api.msg('扣重比输入错误')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ if (this.flag==0&&this.gridList.paramType==1&&this.gridList.buckleMiscellaneous < 0 ||this.flag==0&&this.gridList.paramType==1&&this.gridList.buckleMiscellaneous > 50) {
|
|
|
|
+ this.$api.msg('初检扣杂输入错误')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (this.flag==1&&this.gridList.paramType==1&&this.gridList.reBuckleMiscellaneous < 0 ||this.flag==0&&this.gridList.paramType==1&&this.gridList.reBuckleMiscellaneous > 50) {
|
|
|
|
+ this.$api.msg('复检扣杂输入错误')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (!this.gridList.type) {
|
|
if (!this.gridList.type) {
|
|
this.$api.msg('类型不能为空')
|
|
this.$api.msg('类型不能为空')
|
|
return
|
|
return
|
|
@@ -366,7 +388,11 @@
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (!this.gridList.waterContent) {
|
|
if (!this.gridList.waterContent) {
|
|
- this.$api.msg('水分不能为空')
|
|
|
|
|
|
+ this.$api.msg('初检水分不能为空')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.gridList.reWaterContent) {
|
|
|
|
+ this.$api.msg('复检水分不能为空')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (!this.gridList.mildewGrain) {
|
|
if (!this.gridList.mildewGrain) {
|