|
|
@ -17,7 +17,7 @@ |
|
|
|
</view> |
|
|
|
<view class="dec-item"> |
|
|
|
<view v-if="item == 'bom'" > |
|
|
|
<u-button type="primary" size="default" style="background-color: #5599FF" @click="openDetail(number,item)">明 细</u-button> |
|
|
|
<u-button type="primary" size="default" style="background-color: #5599FF" @click="openDetail(item)">明 细</u-button> |
|
|
|
<u-radio-group v-model="bomRadioValue" @change="radioGroupChange"> |
|
|
|
<u-radio @change="radioChange" v-for="(item, index) in listRadio" :key="index" |
|
|
|
:name="item.name" |
|
|
@ -27,7 +27,7 @@ |
|
|
|
</u-radio-group> |
|
|
|
</view> |
|
|
|
<view v-if="item == 'worker'" > |
|
|
|
<u-button type="primary" size="default" style="background-color: #5599FF" @click="openDetail(number,item)">明 细</u-button> |
|
|
|
<u-button type="primary" size="default" style="background-color: #5599FF" @click="openDetail(item)">明 细</u-button> |
|
|
|
<u-radio-group v-model="workerRadioValue" @change="radioGroupChange"> |
|
|
|
<u-radio @change="radioChange" v-for="(item, index) in listRadio" :key="index" |
|
|
|
:name="item.name" |
|
|
@ -37,7 +37,7 @@ |
|
|
|
</u-radio-group> |
|
|
|
</view> |
|
|
|
<view v-if="item == 'equipment'" > |
|
|
|
<u-button type="primary" size="default" style="background-color: #5599FF" @click="openDetail(number,item)">明 细</u-button> |
|
|
|
<u-button type="primary" size="default" style="background-color: #5599FF" @click="openDetail(item)">明 细</u-button> |
|
|
|
<u-radio-group v-model="equipmentRadioValue" @change="radioGroupChange"> |
|
|
|
<u-radio @change="radioChange" v-for="(item, index) in listRadio" :key="index" |
|
|
|
:name="item.name" |
|
|
@ -60,7 +60,7 @@ |
|
|
|
<view>质检模板号:{{ quaifyFormNo}}</view> |
|
|
|
</view> |
|
|
|
<view class="dec-item"> |
|
|
|
<view>质检模板号:{{ bomInspectFlag}}</view> |
|
|
|
<view>主计划单号:{{ number}}</view> |
|
|
|
</view> |
|
|
|
<view class="dec-item"> |
|
|
|
<view>质检模板号:{{ bomRadioValue}}</view> |
|
|
@ -111,7 +111,7 @@ const equipmentRadioValue = ref('') |
|
|
|
|
|
|
|
|
|
|
|
const mesSchedulingParams = ref({ |
|
|
|
planMaserCode: '', |
|
|
|
planMasterCode: '', |
|
|
|
status: '', |
|
|
|
qualityFormNo: '', |
|
|
|
reason: '' |
|
|
@ -135,7 +135,7 @@ function submit(index) { |
|
|
|
} |
|
|
|
if(mesSchedulingParams.value.status == '0'){ |
|
|
|
proxy.$modal.confirm("是否确认提交").then(()=>{ |
|
|
|
mesSchedulingParams.value.planMaserCode = number.value |
|
|
|
mesSchedulingParams.value.planMasterCode = number.value |
|
|
|
mesSchedulingParams.value.qualityFormNo = quaifyFormNo.value |
|
|
|
workSchedulingListApi.updateWorkSchedulingInfo(mesSchedulingParams.value).then((res) => { |
|
|
|
console.log(res.data) |
|
|
@ -150,7 +150,7 @@ function submit(index) { |
|
|
|
function confirmReason() { |
|
|
|
mesSchedulingParams.value.reason = reasons.value |
|
|
|
proxy.$modal.confirm("是否确认提交").then(()=>{ |
|
|
|
mesSchedulingParams.value.planMaserCode = number.value |
|
|
|
mesSchedulingParams.value.planMasterCode = number.value |
|
|
|
mesSchedulingParams.value.qualityFormNo = quaifyFormNo.value |
|
|
|
console.log(mesSchedulingParams) |
|
|
|
workSchedulingListApi.updateWorkSchedulingInfo(mesSchedulingParams.value).then((res) => { |
|
|
@ -165,22 +165,22 @@ function confirmReason() { |
|
|
|
} |
|
|
|
|
|
|
|
//打开明细 |
|
|
|
function openDetail(index,itemVal) { |
|
|
|
function openDetail(itemVal) { |
|
|
|
if(itemVal == 'bom'){ |
|
|
|
proxy.$tab.navigateTo(`/pages/mes/workScheduling/bomInspect?planMaserCode=${index}`) |
|
|
|
proxy.$tab.navigateTo(`/pages/mes/workScheduling/bomInspect?planMasterCode=${number.value}`) |
|
|
|
} |
|
|
|
if(itemVal == 'worker'){ |
|
|
|
proxy.$tab.navigateTo(`/pages/mes/workScheduling/workerInspect?planMaserCode=${index}`) |
|
|
|
proxy.$tab.navigateTo(`/pages/mes/workScheduling/workerInspect?planMasterCode=${number.value}`) |
|
|
|
} |
|
|
|
if(itemVal == 'equipment'){ |
|
|
|
proxy.$tab.navigateTo(`/pages/mes/workScheduling/equipmentInspect?planMaserCode=${index}`) |
|
|
|
proxy.$tab.navigateTo(`/pages/mes/workScheduling/equipmentInspect?planMasterCode=${number.value}`) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
onLoad((option) => { |
|
|
|
if (option.obj) { |
|
|
|
number.value = JSON.parse(option.obj).planMaserCode |
|
|
|
number.value = JSON.parse(option.obj).planMasterCode |
|
|
|
planDayId.value = JSON.parse(option.obj).id |
|
|
|
if( JSON.parse(option.obj).status == '-1'){ |
|
|
|
completeInspectStatus.value = true |
|
|
|