|
@@ -102,7 +102,10 @@
|
|
|
</view>
|
|
|
<view style='padding-bottom:300rpx;'>
|
|
|
<view class='wrap'>
|
|
|
- <view class='title_b'>化验信息</view>
|
|
|
+ <view style='margin-right:10px;' class='flex justify-between align-item-center'>
|
|
|
+ <view class='title_b'>化验信息</view>
|
|
|
+ <view class='flex justify-between align-item-center'>补录:<u-switch activeColor="#22C572" v-model="value" @change="change"></u-switch></view>
|
|
|
+ </view>
|
|
|
|
|
|
<view class="c-row ">
|
|
|
<view class="title">等级</view>
|
|
@@ -216,6 +219,7 @@
|
|
|
show2: false,
|
|
|
goodsList: [],
|
|
|
currentPage: 1,
|
|
|
+ value:false,
|
|
|
gridBorder: false,
|
|
|
headUrl: "../../static/img/myimg/YongHu@3x.png",
|
|
|
userphone: "",
|
|
@@ -362,6 +366,14 @@
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
+ change(e){
|
|
|
+ if(e){
|
|
|
+ this.gridList.supplementaryRecording=1
|
|
|
+ }else{
|
|
|
+ this.gridList.supplementaryRecording=0
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
print(){
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/erpbusiness/bleConnect'
|
|
@@ -523,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: "确定提交质检信息?",
|
|
@@ -586,7 +604,7 @@
|
|
|
'/qualityInspectionManagement/api/addQualityInspection',
|
|
|
that.gridList)
|
|
|
.then(res => {
|
|
|
- if (res.data.code == 200) {debugger
|
|
|
+ if (res.data.code == 200) {
|
|
|
that.$api.msg('提交成功')
|
|
|
that.isShowPrint = true
|
|
|
that.gridList.warehouseId = that.cangid
|