|
@@ -13,21 +13,23 @@
|
|
|
{{chooseInfo.name??'请选择护理人员'}}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="icon-box" @tap="goToChoosePage" >
|
|
|
+ <view class="icon-box" @tap="goToChoosePage">
|
|
|
<up-icon v-if="!chooseInfo.name" size="28" class="up-icon" name="plus" />
|
|
|
- <up-avatar v-else size="80rpx" :text="nameText(chooseInfo.name)" shape="square" bgColor="#305BFF" />
|
|
|
+ <up-avatar v-else size="80rpx" :text="nameText(chooseInfo.name)" shape="square"
|
|
|
+ bgColor="#305BFF" />
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
</view>
|
|
|
</up-form-item>
|
|
|
<up-form-item label="护理打卡(0/6)" labelWidth="auto" required>
|
|
|
<view class="flex-row justify-between align-center" style="width: 100%;">
|
|
|
- <u-upload :sizeType="['compressed']" :capture="['camera']"/>
|
|
|
+ <u-upload :sizeType="['compressed']" :capture="['camera']" />
|
|
|
</view>
|
|
|
</up-form-item>
|
|
|
<up-form-item label="护理评分" labelWidth="auto" required>
|
|
|
<view class="flex-row justify-between align-center" style="width: 100%;">
|
|
|
- <up-rate v-model="formData.score" activeIcon="heart-fill" inactiveIcon="heart" count="10" :size="25"/>
|
|
|
+ <up-rate v-model="formData.score" activeIcon="heart-fill" inactiveIcon="heart" count="10"
|
|
|
+ :size="25" />
|
|
|
<view>{{formData.score*10}}</view>
|
|
|
</view>
|
|
|
</up-form-item>
|
|
@@ -53,17 +55,24 @@
|
|
|
onLoad,
|
|
|
onUnload
|
|
|
} from "@dcloudio/uni-app"
|
|
|
-
|
|
|
+ const props = defineProps({
|
|
|
+ item: {
|
|
|
+ type: Object,
|
|
|
+ default () {
|
|
|
+ return {}
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
// 使用 ref 创建响应式引用
|
|
|
const formRef = ref(null);
|
|
|
const formData = reactive({
|
|
|
- remark: '',//审核意见
|
|
|
- careCompany: '',//护理公司
|
|
|
- careStaff: '',//护理人员
|
|
|
- score: 1,//评分
|
|
|
+ remark: '', //审核意见
|
|
|
+ careCompany: '', //护理公司
|
|
|
+ careStaff: '', //护理人员
|
|
|
+ score: 1, //评分
|
|
|
})
|
|
|
- const chooseInfo = ref({});//选择的数据
|
|
|
-
|
|
|
+ const chooseInfo = ref({}); //选择的数据
|
|
|
+
|
|
|
const nameText = computed(() => {
|
|
|
return (name) => {
|
|
|
let index = name.length - 2;
|
|
@@ -71,26 +80,28 @@
|
|
|
return name.substring(index);
|
|
|
};
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
|
|
|
function goToChoosePage() {
|
|
|
let params = {
|
|
|
maxCount: 1
|
|
|
}
|
|
|
- if(chooseInfo.value.name) {
|
|
|
- params.dufaultIds = chooseInfo.value.id+"";
|
|
|
+ if (chooseInfo.value.name) {
|
|
|
+ params.dufaultIds = chooseInfo.value.id + "";
|
|
|
}
|
|
|
console.log(params);
|
|
|
uni.$u.route('/pages/subpack/pages/application/choose', params)
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
- onLoad(()=>{
|
|
|
- uni.$on('choose', ({checkList})=>{
|
|
|
- if(checkList && checkList.length>0) chooseInfo.value = checkList[0];
|
|
|
+
|
|
|
+
|
|
|
+ onLoad(() => {
|
|
|
+ uni.$on('choose', ({
|
|
|
+ checkList
|
|
|
+ }) => {
|
|
|
+ if (checkList && checkList.length > 0) chooseInfo.value = checkList[0];
|
|
|
})
|
|
|
})
|
|
|
- onUnload(()=>{
|
|
|
+ onUnload(() => {
|
|
|
uni.$off('choose')
|
|
|
})
|
|
|
</script>
|
|
@@ -123,13 +134,15 @@
|
|
|
width: 100rpx;
|
|
|
}
|
|
|
}
|
|
|
- .theme-color{
|
|
|
+
|
|
|
+ .theme-color {
|
|
|
color: #305BFF !important;
|
|
|
}
|
|
|
- .icon-box{
|
|
|
+
|
|
|
+ .icon-box {
|
|
|
overflow: hidden;
|
|
|
width: 80rpx;
|
|
|
height: 80rpx;
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
</style>
|