From d7fe8ae3888c8e2b1eea3c1e3769be0d42a21cc9 Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期一, 16 十月 2023 09:03:47 +0800 Subject: [PATCH] Merge branch '1.0.3' of http://139.186.142.91:10010/r/productDev/dmMes into 1.0.3 --- h5_standard/src/views/plannedProgress/details.vue | 129 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 127 insertions(+), 2 deletions(-) diff --git a/h5_standard/src/views/plannedProgress/details.vue b/h5_standard/src/views/plannedProgress/details.vue index d1e61af..e4d9b0a 100644 --- a/h5_standard/src/views/plannedProgress/details.vue +++ b/h5_standard/src/views/plannedProgress/details.vue @@ -51,11 +51,34 @@ <div class="content_list_item_content_item_label">璁″垝浜哄憳锛�</div> <div class="content_list_item_content_item_nr">{{info.usermodel.realname}}</div> </div> + <div class="content_list_item_content_item"> + <div class="content_list_item_content_item_label">鍒嗛厤鏁伴噺锛�</div> + <div class="content_list_item_content_item_nr" v-if="info.umodel">{{info.distributNum}}{{info.umodel.name}}</div> + </div> + <div class="content_list_item_content_item"> + <div class="content_list_item_content_item_label">瀹屽伐鏁伴噺锛�</div> + <div class="content_list_item_content_item_nr" v-if="info.umodel">{{info.doneNum}}{{info.umodel.name}}</div> + </div> </div> </div> </div> <NotFound info="鏆傛湭鍒嗛厤宸ュ崟" v-if="info.workorderList && info.workorderList.length === 0" /> <template v-else> + <!-- <div class="details_list"> + <div class="details_list_item" v-for="(item, i) in info.workorderList" :key="i" @click="jump(item)"> + <div class="details_list_item_top"> + <span>{{ item.createUserName }}</span> + <span>{{ item.code }}</span> + </div> + <div class="details_list_item_center"> + <span>鑹搧鏁帮細{{ item.qualifiedNum }}</span> + <span>涓嶈壇鏁帮細<span class="red">{{ item.unqualifiedNum }}</span></span> + </div> + <div class="details_list_item_bottom"> + <span>{{ item.createTime }}</span> + </div> + </div> + </div> --> <div class="details_timeline" v-for="(item, i) in info.workorderList" :key="i"> <div class="details_timeline_header"> <div class="details_timeline_header_code"> @@ -134,19 +157,22 @@ </div> </div> </template> + <!-- <div class="details_zw"></div> --> + <!-- <div class="details_btn" @click="toJump">鍘绘姤宸�</div> --> </div> </template> <script setup lang="ts"> import { ref, onMounted, watch } from 'vue' - import { useRoute } from "vue-router" + import { useRoute, useRouter } from "vue-router" import { queryByID } from '@/apis/PlanningAPI' import NotFound from '@/components/common/NotFound.vue' const route = useRoute() + const router = useRouter() // 璇︽儏鏁版嵁 - let info = ref({}) + let info:any = ref({}) let loading = ref<boolean>(true) @@ -158,6 +184,19 @@ info.value = res.data } }) + } + + const toJump = () => { + router.push({ name: 'reportingForWork' }) + } + + const jump = (item: any) => { + if (item.status === 4 || item.status === 6 || item.paused === 1) { + router.push({ name: 'afterWorkReport', query: { id: item.id } }) + } else { + router.push({ name: 'workOrderReporting', query: { id: item.id } }) + } + // router.push({ name: 'workOrderReporting', query: { id } }) } const proUserStr = (item: any) => { @@ -184,6 +223,26 @@ height: 100%; position: absolute; background: #F7F7F7; + .details_zw { + width: 100%; + height: 148px; + } + .details_btn { + position: fixed; + bottom: 60px; + left: 30px; + width: calc(100% - 60px); + height: 88px; + line-height: 88px; + text-align: center; + background: #305ED5; + box-shadow: 0px 0px 12px 0px rgba(0,0,0,0.08); + border-radius: 8px; + font-size: 30px; + font-family: PingFangSC-Medium, PingFang SC; + font-weight: 500; + color: #FFFFFF; + } .van-skeleton { padding: 0 !important; } @@ -296,6 +355,72 @@ } } } + .details_list { + width: 100%; + height: auto; + background-color: #FFFFFF; + margin-top: 20px; + .details_list_item { + width: 100%; + padding: 24px 30px; + box-sizing: border-box; + background-color: #FFFFFF; + border-bottom: 2px solid #F7F7F7; + &:last-child { + border: none !important; + } + .details_list_item_top { + width: 100%; + display: flex; + align-items: center; + span { + &:first-child { + font-size: 30px; + font-family: PingFangSC-Medium, PingFang SC; + font-weight: 500; + color: #222222; + margin-right: 16px; + } + &:last-child { + font-size: 24px; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: #666666; + } + } + } + .details_list_item_center { + width: 100%; + margin: 16px 0 20px 0; + .red { + color: #DE5243; + } + span { + &:first-child { + font-size: 26px; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: #333333; + margin-right: 100px; + } + &:last-child { + font-size: 26px; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: #333333; + } + } + } + .details_list_item_bottom { + span { + font-size: 24px; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: #999999; + } + } + } + } .details_timeline { padding: 30px; background: #ffffff; -- Gitblit v1.9.3