From 9f0f5d7767506658ab5ca47ba8ff4ede423e47e3 Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期三, 22 一月 2025 10:10:45 +0800
Subject: [PATCH] -
---
src/pages/reimbursement/reimbursement.vue | 50 +++++++++++++++++++++++++++++++++-----------------
1 files changed, 33 insertions(+), 17 deletions(-)
diff --git a/src/pages/reimbursement/reimbursement.vue b/src/pages/reimbursement/reimbursement.vue
index f5792b5..92e2298 100644
--- a/src/pages/reimbursement/reimbursement.vue
+++ b/src/pages/reimbursement/reimbursement.vue
@@ -4,12 +4,12 @@
<up-sticky bgColor="#fff">
<view class="coreshop-ff content c-p-10">
<up-search placeholder="璇风偣鍑婚�夋嫨鏃ユ湡" @clear='clear' @click='clickTime' disabled @custom='init'
- v-model="workTime" search-icon="calendar" @search='init'></up-search>
+ :show-action="false" v-model="workTime" search-icon="calendar" @search='init'></up-search>
</view>
<view class="coreshop-ff content c-p-10">
- <up-search placeholder="璇疯緭鍏ュ伐浜哄悕瀛�" v-model="workerUserName" @custom='init'
- @clear='init' @search='init'></up-search>
- <!-- <up-search placeholder="璇风偣鍑婚�夋嫨鎵撳崱鏃ユ湡" @click='clickIcon' @clear='PostMyComDakaListPage' disabled
+ <up-search placeholder="璇疯緭鍏ュ伐浜哄悕瀛�" v-model="workerUserName" @custom='init' @clear='init'
+ @search='init'></up-search>
+ <!-- <up-search placeholder="璇风偣鍑婚�夋嫨鎵撳崱鏃ユ湡" @click='clickIcon' @clear='PostMyComDakaListPage' disabled
v-model="wordDate" search-icon="calendar" @search='PostMyComDakaListPage'
@custom='PostMyComDakaListPage'></up-search> -->
</view>
@@ -22,19 +22,28 @@
<view class="listrecord c-p-t-20" v-for="(item,index) in listO.orderList" :key="item.id"
@click="pageToDetail(item)">
<view class="coreshop-ff chuany-bradius20">
- <view class="c-p-24 chuany-font32">
+ <view class="c-p-20 chuany-font26">
<view class="chuany-flex chuany-justify-between">
- <text class="chuany-width10">{{index+1}}</text>
- <text class="chuany-width45">
- {{item.planContent}}
- </text>
+ <text class="chuany-width8">{{index+1}}</text>
+ <view class="chuany-width13" v-if="item.sentStaff">
+ {{item.sentStaff.name}}
+ </view>
+ <view class="chuany-width25">
+ {{$util.formatDate(item.planStartTime)}}
+ </view>
<view class="chuany-width30">
{{item.planMoney}} 鍏�
</view>
- <u-text
- :type="item.evaluationStatus=='Reimbursed'?'success':'warning'"
- :text="item.evaluationStatus=='Reimbursed'?'宸叉姤閿�':'鏈姤閿�'">
- </u-text>
+ <view class="chuany-width15">
+ <u-text align="right" size='14'
+ :type="item.evaluationStatus=='Reimbursed'?'success':'warning'"
+ :text="item.evaluationStatus=='Reimbursed'?'宸叉姤閿�':'鏈姤閿�'">
+ </u-text>
+ </view>
+
+ </view>
+ <view class="c-p-t-8">
+ 鎽樿锛歿{item.planContent}}
</view>
</view>
</view>
@@ -106,6 +115,9 @@
// workTime.value = getFirstDayOfMonth() + '鑷�' + $util.formatDate(new Date())
// state.planStartTimeStart = getFirstDayOfMonth() //宸ヤ綔寮�濮嬫椂闂�
// state.planStartTimeEnd = $util.formatDate(new Date())
+
+ })
+ onShow(() => {
getcaiwuplanelist()
})
const getFirstDayOfMonth = () => {
@@ -124,9 +136,9 @@
case 2:
evaluationStatus.value = 'Reimbursed'
break;
- // case 3:
- // evaluationStatus.value = 'Yes'
- // break;
+ // case 3:
+ // evaluationStatus.value = 'Yes'
+ // break;
}
init()
}
@@ -181,6 +193,9 @@
if (state.planStartTimeEnd) {
data.planStartTimeEnd = state.planStartTimeEnd
}
+ if (workerUserName.value) {
+ data.staffName = workerUserName.value
+ }
loadStatus.value = 'loading';
$api.getcaiwuplanelist(data).then(res => {
console.log(res, res.code, '-----------123鈥�');
@@ -214,8 +229,9 @@
// data.planStartTimeEnd = state.planStartTimeEnd
// }
uni.navigateTo({
- url: `/pages/reimbursement/index?planId=${item.keyid}`
+ url: `/pages/reimbursement/payment?detailId=${item.keyid}`
});
+
// $db.set('detailItem',JSON.stringify(item))
}
</script>
--
Gitblit v1.9.1