From 4eef04aa662cf4f8fbde60ca99c0011b6203c558 Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期三, 11 九月 2024 14:26:44 +0800 Subject: [PATCH] 增加管理员等功能 --- src/pages/checkin/workdetail.vue | 22 ++++++++++++++-------- 1 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/pages/checkin/workdetail.vue b/src/pages/checkin/workdetail.vue index ab11db5..6e34157 100644 --- a/src/pages/checkin/workdetail.vue +++ b/src/pages/checkin/workdetail.vue @@ -3,11 +3,11 @@ <view class="coreshop-ff"> <view class="c-p-20"> <view class="chuany-flex chuany-justify-between chuany-flex-wrap"> - <text class="chuany-font34 chuany-text-bold"> + <text class="chuany-font34"> {{dakaList.orderName}} </text> <text class=""> - 鏃ユ湡锛歿{$util.formatDate(dakaList.workDate)}} + 鎵撳崱鏃ユ湡锛歿{$util.formatDate(dakaList.workDate)}} </text> </view> </view> @@ -36,7 +36,7 @@ </view> </view> </view> - <up-cell title="宸ヤ綔鏃堕暱" :border='false'> + <up-cell title="鏃堕暱" :border='false'> <template #right-icon> {{dakaList.workTime}} 灏忔椂 </template> @@ -53,8 +53,7 @@ </up-cell> <up-cell title="鏁伴噺" :border='false' v-if="dakaList.workerType==1" > <template #right-icon v-if="dakaList.isShenPiName!=='宸茬粨绠�'"> - <up-input v-model="dakaList.workCount" - @blur='(val) => {dakaList.todaySalary=$util.roundToTwo(dakaList.workCount*dakaList.workPrice)}' + <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> @@ -70,7 +69,7 @@ <tem-steps></tem-steps> </view> --> <view class="tabbtns"> - <up-button color='#fece01' class="text-69" text="宸ヨ祫鐢虫姤" v-if="dakaList.isShenPiName!=='宸茬粨绠�'" @click="saveDakaDetail"></up-button> + <up-button color='#fece01' class="text-69" text="宸ヨ祫鐢虫姤" :loading='isLoading' loadingText="鐢虫姤涓�" v-if="dakaList.isShenPiName!=='宸茬粨绠�'" @click="saveDakaDetail"></up-button> </view> </view> </view> @@ -88,7 +87,8 @@ workTime: '', //宸ヤ綔鏃堕暱 workCount: '', //璁′欢鏁伴噺 todaySalary: '' //褰撴棩宸ヨ祫 - } + }, + isLoading:false } }, onLoad(options) { @@ -135,14 +135,20 @@ if (this.dakaList.workCount) { obj.workCount = this.dakaList.workCount } + this.isLoading = true this.$api.saveDakaDetail(obj).then(res => { + console.log(res); if(res.code==1){ this.$util.showToast({ title: '鐢虫姤鎴愬姛锛�', icon: 'success' }) + }else{ + this.$util.showToast({ + title: res.error?res.error:'澶辫触锛�' + }) } - console.log(res, '----'); + this.isLoading = false }) }, } -- Gitblit v1.9.1