From 94384dcf5066aa1a7b2e37874fe331e148bc9249 Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期日, 29 九月 2024 17:27:03 +0800 Subject: [PATCH] 工人工资查询 --- src/pages/company/record.vue | 38 +++++++++++++++++--------------------- 1 files changed, 17 insertions(+), 21 deletions(-) diff --git a/src/pages/company/record.vue b/src/pages/company/record.vue index c05bb9f..fe7ecde 100644 --- a/src/pages/company/record.vue +++ b/src/pages/company/record.vue @@ -49,13 +49,14 @@ <!-- <template #right-icon> {{dakaList.workTime}} 灏忔椂 </template> --> - <template #right-icon> + <template #right-icon v-if="dakaList.isShenPiName!=='宸茬粨绠�'"> <up-input v-model="dakaList.workTime" type="digit" + @blur='(val) => {dakaList.todaySalary=$util.roundToTwo(dakaList.workTime*dakaList.workPrice)}' border="none" placeholder="璇峰~鍐欐椂闀�"></up-input> </template> - <!-- <template #value v-else> + <template #value v-else> {{dakaList.workTime}} 灏忔椂 - </template> --> + </template> </up-cell> <up-cell title="鏂瑰紡" :border='false'> <template #right-icon> @@ -76,34 +77,35 @@ </template> --> </up-cell> <up-cell title="鏁伴噺" :border='false' v-if="dakaList.workerType==1"> - <template #right-icon> + <template #right-icon v-if="dakaList.isShenPiName!=='宸茬粨绠�'"> <up-input v-model="dakaList.workCount" type="digit" @blur='(val) => {dakaList.todaySalary=$util.roundToTwo(dakaList.workCount*dakaList.workPrice)}' border="none" placeholder="璇峰~鍐欐暟閲�"></up-input> </template> - <!-- <template #value v-else> + <template #value v-else> {{dakaList.workCount}} - </template> --> + </template> </up-cell> <up-cell title="宸ヨ祫" :border='false'> <!-- <template #right-icon> {{dakaList.todaySalary}} 鍏� </template> --> - <template #right-icon> - <up-input v-model="dakaList.todaySalary" type="digit" - border="none" placeholder="璇峰~鍐欏伐璧�"></up-input> + <template #right-icon v-if="dakaList.isShenPiName!=='宸茬粨绠�'"> + <up-input v-model="dakaList.todaySalary" type="digit" border="none" + placeholder="璇峰~鍐欏伐璧�"></up-input> </template> - <!-- <template #value v-else> + <template #value v-else> {{dakaList.todaySalary}} 鍏� - </template> --> + </template> </up-cell> <!-- <view class="stepwit"> <tem-steps></tem-steps> </view> --> </up-list> - <view class="tabbtns"> - <up-button color='#fece01' class="text-69" :text="dakaList.isShenPiName!=='宸茬粨绠�'?'纭':'淇敼'" :loading='isLoading' - :loadingText="dakaList.isShenPiName!=='宸茬粨绠�'?'纭涓�':'淇敼涓�'" @click="saveDakaDetailCompany"></up-button> + <view class="tabbtns" v-if="dakaList.isShenPiName!=='宸茬粨绠�'"> + <up-button color='#fece01' class="text-69" :text="dakaList.isShenPiName!=='宸茬粨绠�'?'纭':'淇敼'" + :loading='isLoading' :loadingText="dakaList.isShenPiName!=='宸茬粨绠�'?'纭涓�':'淇敼涓�'" + @click="saveDakaDetailCompany"></up-button> </view> </view> </view> @@ -116,12 +118,6 @@ orderBiddingDetailId: '', dakaList: {}, workCount: '', - confirmObj: { - orderBiddingDetailId: '', //鎷涘伐鎵撳崱Id - workTime: '', //宸ヤ綔鏃堕暱 - workCount: '', //璁′欢鏁伴噺 - todaySalary: '' //褰撴棩宸ヨ祫 - }, workerInfo: '', isLoading: false } @@ -157,7 +153,7 @@ if (this.dakaList.orderBiddingDetailCheck.length % 2 !== 0) { this.dakaList.orderBiddingDetailCheck.push({}) } - console.log(res, '鎵撳崱'); + console.log(res, this.dakaList.workTime, '鎵撳崱'); }) }, saveDakaDetailCompany() { -- Gitblit v1.9.1