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