Browse Source

fix: 检修工单完成时间重置之后还显示问题

master
zhang_li 8 months ago
parent
commit
562a877c6f
  1. 13
      src/pages/index.vue
  2. 9
      src/pages/overhaulOrder/addServiceRecord.vue
  3. 9
      src/pages/upkeepOrder/addServiceRecord.vue

13
src/pages/index.vue

@ -192,18 +192,7 @@
thchMenus.value = store.thchMenus
})
onShow(async () => {
uni.getPushClientId({
success: (res) => {
console.log(res);
console.log(res.cid);
},
fail(err) {
console.log(err)
}
})
uni.onPushMessage((res)=>{
console.log(res)
})
if (getAccessToken()) {
getCounts1()
getToDoCountsByUser1()

9
src/pages/overhaulOrder/addServiceRecord.vue

@ -47,13 +47,13 @@
<u-icon name="arrow-right" color="#aaaaaa" size="28"></u-icon>
</view>
</u-form-item>
<u-form-item label="未完成原因" prop="uncompleted" required v-if='form.status === 1||form.status === "1"'>
<u-input type='textarea' v-model="form.uncompleted" placeholder="请输入未完成原因" maxlength="200" />
</u-form-item>
<u-form-item label="工程师确认" prop="engineer">
<u-input v-model="form.engineer" placeholder="请输入工程师确认" maxlength="50" />
</u-form-item>
<u-form-item label="未完成原因" prop="uncompleted" required v-if='form.status === 1||form.status === "1"'>
<u-input type='textarea' v-model="form.uncompleted" placeholder="请输入未完成原因" maxlength="200" />
</u-form-item>
</u-form>
<view class="list">
@ -334,6 +334,7 @@
form.value.engineer = ''
form.value.uncompleted = ''
form.value.itemNumbers = []
formatDate.value = ''
}
//
async function getSelecUser() {
@ -398,8 +399,8 @@
if(field.value=='status'){
form.value.statusTxt = e[0].label
formatDate.value = ''
}
}else if(whichForm.value == 'form1'){
form1.value[field.value] = e[0].value
if(field.value=='number'){

9
src/pages/upkeepOrder/addServiceRecord.vue

@ -50,13 +50,12 @@
<u-icon name="arrow-right" color="#aaaaaa" size="28"></u-icon>
</view>
</u-form-item>
<u-form-item label="工程师确认" prop="engineer">
<u-input v-model="form.engineer" placeholder="请输入工程师确认" maxlength="50"/>
</u-form-item>
<u-form-item label="未完成原因" prop="uncompleted" required v-if='form.status === 1||form.status === "1"'>
<u-input type='textarea' v-model="form.uncompleted" placeholder="请输入未完成原因" maxlength="200" />
</u-form-item>
<u-form-item label="工程师确认" prop="engineer">
<u-input v-model="form.engineer" placeholder="请输入工程师确认" maxlength="50"/>
</u-form-item>
</u-form>
<view class="list">
@ -313,6 +312,7 @@ const form = ref({
form.value.engineer =''
form.value.uncompleted =''
form.value.itemNumbers =[]
formatDate.value = ''
}
//
@ -376,6 +376,7 @@ const form = ref({
form.value[field.value] = e[0].value
if(field.value=='status'){
form.value.statusTxt = e[0].label
formatDate.value = ''
}
}else if(whichForm.value == 'form1'){

Loading…
Cancel
Save