|
@@ -535,33 +535,39 @@
|
|
|
this.$api.msg('购粮性质不能为空')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.gridList.grade) {
|
|
|
- this.$api.msg('等级不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.gridList.impurity) {
|
|
|
- this.$api.msg('杂质不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.gridList.waterContent) {
|
|
|
- this.$api.msg('水分不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.gridList.mildewGrain) {
|
|
|
- this.$api.msg('霉变粒不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.gridList.bulkDensity) {
|
|
|
- this.$api.msg('容重不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.gridList.jiaorenli) {
|
|
|
- this.$api.msg('热损伤不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.gridList.imperfectGrain) {
|
|
|
- this.$api.msg('不完整粒不能为空')
|
|
|
- return
|
|
|
+ if(this.value==false){
|
|
|
+ if (!this.gridList.grade) {
|
|
|
+ this.$api.msg('等级不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.gridList.impurity) {
|
|
|
+ this.$api.msg('杂质不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.gridList.waterContent) {
|
|
|
+ this.$api.msg('初检水分不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ // if (!this.gridList.reWaterContent) {
|
|
|
+ // this.$api.msg('复检水分不能为空')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ if (!this.gridList.mildewGrain) {
|
|
|
+ this.$api.msg('霉变粒不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.gridList.bulkDensity) {
|
|
|
+ this.$api.msg('容重不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.gridList.jiaorenli) {
|
|
|
+ this.$api.msg('热损伤不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.gridList.imperfectGrain) {
|
|
|
+ this.$api.msg('不完整粒不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
uni.showModal({
|
|
|
content: "确定提交质检信息?",
|