|
@@ -166,8 +166,12 @@
|
|
|
</view>
|
|
|
|
|
|
<view class="footer">
|
|
|
+ <view @click='confirmInfo' class="button">确认初检信息</view>
|
|
|
<view @click='submit' class="button">提交</view>
|
|
|
</view>
|
|
|
+ <u-modal v-model="isShowAlert" :title-style="{fontSize: '18px',fontWeight:'500'}"
|
|
|
+ :content-style="{fontSize: '14px',fontWeight:'400'}" confirm-color='#22C572' confirm-text='确定' title='提示'
|
|
|
+ showCancelButton='false' :content="content" @confirm="alertBtn" @cancel="cancelClick"></u-modal>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -242,7 +246,9 @@
|
|
|
},
|
|
|
],
|
|
|
cangid: '',
|
|
|
- goodsList:[]
|
|
|
+ goodsList:[],
|
|
|
+ isShowAlert:false,
|
|
|
+ content: '确认初检信息后,初检员不需要再次确认质检信息,是否确定提交?',
|
|
|
}
|
|
|
},
|
|
|
// #ifndef MP
|
|
@@ -309,6 +315,24 @@
|
|
|
this.gridList.gradeKey = this.gradeList[0].key
|
|
|
},
|
|
|
methods: {
|
|
|
+ confirmInfo() {
|
|
|
+ this.isShowAlert = true
|
|
|
+ },
|
|
|
+ alertBtn() {
|
|
|
+ this.$api.doRequest('post', '/qualityInspectionManagement/api/editQualityInspection', {
|
|
|
+ id: this.id,
|
|
|
+ flag:2
|
|
|
+ }).then(res => {
|
|
|
+ if(res.data.code=="200"){
|
|
|
+ this.$api.msg('提交成功!')
|
|
|
+ setTimeout(function(){
|
|
|
+ uni.navigateBack({})
|
|
|
+ },1000)
|
|
|
+ }else{
|
|
|
+ this.$api.msg('提交失败')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
waterContentChange() {
|
|
|
var that = this
|
|
|
if (this.gridList.goodsName && this.cangid) {
|
|
@@ -440,10 +464,10 @@
|
|
|
this.$api.msg('初检水分不能为空')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.gridList.reWaterContent) {
|
|
|
- this.$api.msg('复检水分不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (!this.gridList.reWaterContent) {
|
|
|
+ // this.$api.msg('复检水分不能为空')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
if (!this.gridList.mildewGrain) {
|
|
|
this.$api.msg('霉变粒不能为空')
|
|
|
return
|
|
@@ -637,7 +661,7 @@
|
|
|
.button {
|
|
|
background: #22C572;
|
|
|
width: 90%;
|
|
|
- margin: 0 auto;
|
|
|
+ margin: 20rpx auto;
|
|
|
padding: 10px;
|
|
|
color: #fff;
|
|
|
text-align: center;
|