zhangwei
2024-09-06 b172667f354f7f00fe14809e66cbf12362fbc646
src/pages/company/record.vue
@@ -16,7 +16,7 @@
                     {{dakaList.orderName}}
                  </text>
                  <text class="">
                     日期:{{$util.formatDate(dakaList.workDate)}}
                     打卡日期:{{$util.formatDate(dakaList.workDate)}}
                  </text>
               </view>
            </view>
@@ -45,10 +45,17 @@
                  </view>
               </view>
            </view>
            <up-cell title="工作时长" :border='false'>
               <template #right-icon>
            <up-cell title="时长" :border='false'>
               <!-- <template #right-icon>
                  {{dakaList.workTime}} 小时
               </template> -->
               <template #right-icon>
                  <up-input v-model="dakaList.workTime" type="digit"
                     border="none" placeholder="请填写时长"></up-input>
               </template>
               <!-- <template #value v-else>
                  {{dakaList.workTime}} 小时
               </template> -->
            </up-cell>
            <up-cell title="方式" :border='false'>
               <template #right-icon>
@@ -59,21 +66,36 @@
               <template #right-icon>
                  {{dakaList.workPrice}} {{dakaList.workerType==0?'元/小时':'元/件'}}
               </template>
               <!--
               <template #right-icon v-if="dakaList.isShenPiName!=='已结算'">
                  <up-input v-model="dakaList.workPrice" type="digit"
                     border="none" placeholder="请填写工价"></up-input>
               </template>
               <template #value v-else>
                  {{dakaList.workPrice}} {{dakaList.workerType==0?'元/小时':'元/件'}}
               </template> -->
            </up-cell>
            <up-cell title="数量" :border='false' v-if="dakaList.workerType==1">
               <template #right-icon v-if="dakaList.isShenPiName!=='已结算'">
               <template #right-icon>
                  <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>
               <!-- <template #right-icon>
                  {{dakaList.todaySalary}} 元
               </template> -->
               <template #right-icon>
                  <up-input v-model="dakaList.todaySalary" type="digit"
                     border="none" placeholder="请填写工资"></up-input>
               </template>
               <!-- <template #value v-else>
                  {{dakaList.todaySalary}} 元
               </template> -->
            </up-cell>
            <!-- <view class="stepwit">
               <tem-steps></tem-steps>
@@ -81,7 +103,7 @@
         </up-list>
         <view class="tabbtns">
            <up-button color='#fece01' class="text-69" text="确认" :loading='isLoading' loadingText="确认中"
               @click="saveDakaDetailCompany" v-if="dakaList.isShenPiName!=='已结算'"></up-button>
               @click="saveDakaDetailCompany"></up-button>
         </view>
      </view>
   </view>