|
|
@ -50,9 +50,27 @@ |
|
|
|
<view>{{item.equipmentParts}}</view> |
|
|
|
</view> |
|
|
|
<view class="dec"> |
|
|
|
<view style="margin-right: 20rpx;">是否符合:</view><u-switch v-model="item.isConform1"></u-switch> |
|
|
|
<!-- <view style="margin-right: 20rpx;">是否符合:</view><u-switch v-model="item.isConform1"></u-switch> --> |
|
|
|
<u-radio-group v-model="item.isConform" @change="radioGroupChange"> |
|
|
|
<!-- <u-radio |
|
|
|
@change="radioChange" |
|
|
|
v-for="(item, index) in list" :key="index" |
|
|
|
:name="item.name" |
|
|
|
:disabled="item.disabled" |
|
|
|
> |
|
|
|
{{item.name}} |
|
|
|
</u-radio> --> |
|
|
|
<u-radio name="TRUE">符合</u-radio> |
|
|
|
<u-radio name="FALSE">不符合</u-radio> |
|
|
|
</u-radio-group> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- <view class="dec"> |
|
|
|
<view style="margin-right: 20rpx;">是否符合:</view> |
|
|
|
<input type="radio" v-model="item.isConform1" value="true"> 是 |
|
|
|
<input type="radio" v-model="item.isConform1" value="false"> 否 |
|
|
|
</view> --> |
|
|
|
</u-col> |
|
|
|
</u-row> |
|
|
|
</view> |
|
|
@ -90,6 +108,18 @@ |
|
|
|
|
|
|
|
const loading = ref(false) |
|
|
|
const type = ref('') |
|
|
|
const list = ref([{ |
|
|
|
name: 'apple', |
|
|
|
disabled: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: 'banner', |
|
|
|
disabled: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: 'orange', |
|
|
|
disabled: false |
|
|
|
}]) |
|
|
|
const form = ref({ |
|
|
|
describes: "", |
|
|
|
deviceNumber: '', |
|
|
@ -142,6 +172,9 @@ |
|
|
|
deviceApi.getSubList(data).then((res) => { |
|
|
|
if (res.data) { |
|
|
|
subList.value = res.data |
|
|
|
subList.value.forEach(item=>{ |
|
|
|
item.isConform = 'TRUE' |
|
|
|
}) |
|
|
|
} else { |
|
|
|
proxy.$modal.showToast(`找不到该${type.value=='DEVICE'?'设备' : '模具'}`) |
|
|
|
} |
|
|
@ -166,9 +199,9 @@ |
|
|
|
proxy.$modal.showToast('该设备无检修项目') |
|
|
|
return; |
|
|
|
} |
|
|
|
subList.value.forEach(item=>{ |
|
|
|
item.isConform = !item.isConform1 ? 'FALSE' : 'TRUE' |
|
|
|
}) |
|
|
|
// subList.value.forEach(item=>{ |
|
|
|
// item.isConform = !item.isConform1 ? 'FALSE' : 'TRUE' |
|
|
|
// }) |
|
|
|
const data = { |
|
|
|
describes:form.value.describes, |
|
|
|
deviceNumber:form.value.deviceNumber, |
|
|
@ -239,6 +272,10 @@ |
|
|
|
form.value.maintenances = uni.getStorageSync('user').nickname |
|
|
|
}) |
|
|
|
|
|
|
|
function radioGroupChange(e) { |
|
|
|
console.log(e); |
|
|
|
} |
|
|
|
|
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|