diff --git a/src/pages/mes/workScheduling/processReportForm.vue b/src/pages/mes/workScheduling/processReportForm.vue index 51472dd..93e23fe 100644 --- a/src/pages/mes/workScheduling/processReportForm.vue +++ b/src/pages/mes/workScheduling/processReportForm.vue @@ -21,19 +21,26 @@ - + -  员工姓名: -    {{ item.personName }} - - - *报工数量: - - - - *报工工时: - + + +  员工姓名: +    {{ item.personName }} + + + *报工数量: + + + + *报工工时: + + + + + + @@ -52,6 +59,7 @@ import { onShow } from "@dcloudio/uni-app" import { getCurrentInstance, ref } from "vue" /* 引入API */ import * as workSchedulingApi from "@/api/mes/workScheduling" +import { _confirm, _toast } from "@/utils/common" const { proxy } = getCurrentInstance() let show = ref(false) @@ -87,7 +95,15 @@ function openDetail(item: any) { console.log(item) // proxy.$tab.navigateTo(`/pages/mes/orderDapPlan/detail?obj=${item}`) } - +function remove(index){ + if (list.value.length > 1) { + _confirm('确定要删除吗?',function(){ + list.value.splice(index, 1) + }) + }else{ + _toast("最少需要上报一项") + } +} /* 通用方法 */ onShow(() => { list.value = uni.getStorageSync("processReportList") @@ -165,7 +181,6 @@ function bindDateChange(e){ } &:nth-child(2) { - color: #999999; flex: 1; width: 0px; word-wrap: break-word; diff --git a/src/pages/mes/workScheduling/processReportPeopleCheck.vue b/src/pages/mes/workScheduling/processReportPeopleCheck.vue index f3353eb..a7d6484 100644 --- a/src/pages/mes/workScheduling/processReportPeopleCheck.vue +++ b/src/pages/mes/workScheduling/processReportPeopleCheck.vue @@ -24,11 +24,12 @@