Browse Source

MES——> PDA 报工质检状态更新

master
gaojs 7 months ago
parent
commit
4f012abe00
  1. 14
      src/pages/mes/workScheduling/reportWorkQualityInspection.vue
  2. 2
      src/pages/mes/workScheduling/workScheduling.vue
  3. 1
      src/pages/mes/workScheduling/workSchedulingDetail.vue

14
src/pages/mes/workScheduling/reportWorkQualityInspection.vue

@ -285,9 +285,15 @@ function calculatePass(){
}
function submitQaForm(){
if(form.value.qaFormNo == ''||form.value.qaFormName == ''||form.value.qaFormType == ''||
form.value.qaTime == ''||form.value.qaTimes == ''||form.value.qaCount == ''||
form.value.qaCountPassed == ''||form.value.qaCountNotpassed == ''||form.value.qaPassRate == ''
if(JSON.stringify(form.value.qaFormNo) == ''||
JSON.stringify(form.value.qaFormName) == ''||
JSON.stringify(form.value.qaFormType) == ''||
JSON.stringify(form.value.qaTimes) == ''||
JSON.stringify(form.value.qaCount) == ''||
JSON.stringify(form.value.qaCountPassed) == ''||
JSON.stringify(form.value.qaCountNotpassed) == ''||
JSON.stringify(form.value.qaPassRate) == ''
){
proxy.$modal.alert("还有未填项");
return
@ -328,7 +334,7 @@ function submitQaForm(){
//
form.value.qaStatus = '1'
//
form.value.status = '1'
form.value.status = '4'
qaFormApi.create(form.value).then((res) => {
proxy.$modal.closeLoading()
if (res.data) {

2
src/pages/mes/workScheduling/workScheduling.vue

@ -348,7 +348,7 @@ function tabsChange(index) {
}else if(index == '6'){
tabParams.value.status = '4'
}else if(index == '7'){
tabParams.value.status = '6'
tabParams.value.status = '5'
}else if(index == '8'){
tabParams.value.status = '6'
}else if(index == '9'){

1
src/pages/mes/workScheduling/workSchedulingDetail.vue

@ -89,7 +89,6 @@
</view>
<view>
<u-button type="primary" v-if="(item.qaStatus !=1 && (item.status == 1 || item.status == 3))" @click="openQualityInspect(item)">报工质检</u-button>
<u-button type="primary" v-if="item.qaStatus==1" @click="openQualityInspect(item)">报工</u-button>
</view>
</view>
</view>

Loading…
Cancel
Save