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