|
@ -22,8 +22,8 @@ |
|
|
<!-- 当前审核人(自己) --> |
|
|
<!-- 当前审核人(自己) --> |
|
|
<view class="mt-3"> |
|
|
<view class="mt-3"> |
|
|
<span class="text-sm mr-4">冯教授</span> |
|
|
<span class="text-sm mr-4">冯教授</span> |
|
|
<u-button size="mini" shape="circle" class="btn mr-4" type="primary" @click="approved">通过</u-button> |
|
|
<u-button size="mini" shape="circle" class="mr-4 h-1-4 leading-1-4" type="primary" @click="approved">通过</u-button> |
|
|
<u-button size="mini" shape="circle" class="btn" type="error" @click="rebut">驳回</u-button> |
|
|
<u-button size="mini" shape="circle" class="h-1-4 leading-1-4" type="error" @click="rebut">驳回</u-button> |
|
|
</view> |
|
|
</view> |
|
|
<!-- 其他审核人 --> |
|
|
<!-- 其他审核人 --> |
|
|
<view class="mt-3 text-sm flex justify-between"> |
|
|
<view class="mt-3 text-sm flex justify-between"> |
|
@ -65,11 +65,52 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view> |
|
|
<view> |
|
|
<u-input :border="true" class="m-5" placeholder="请输入通过建议" type="textarea"></u-input> |
|
|
<textarea class="border-solid border border-gray-300 m-5 w-58 h-16 p-2 rounded-md" |
|
|
|
|
|
placeholder="请输入通过建议" |
|
|
|
|
|
maxlength="30" |
|
|
|
|
|
v-model="adviceRef" |
|
|
|
|
|
></textarea> |
|
|
|
|
|
<!-- <view @click="adviceRef = '加油,再接再厉!' " class="mx-5"> |
|
|
|
|
|
加油,再接再厉! |
|
|
|
|
|
</view> --> |
|
|
|
|
|
<view class="common-list"> |
|
|
|
|
|
<view v-for="item in commonWords" class="h-12 leading-12 w-62 mx-5" @click="adviceRef = item"> |
|
|
|
|
|
{{item}} |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="flex justify-around h-12 mt-7 justify-self-stretch boxModalBorder"> |
|
|
<view class="flex justify-around h-12 mt-7 justify-self-stretch boxModalBorder"> |
|
|
<view class="leading-12 flex-1 text-center deleteModalBorder"> 取消 </view> |
|
|
<view class="leading-12 flex-1 text-center deleteModalBorder" @click="approvedModal = false"> 取消 </view> |
|
|
<view class="text-blue-700 leading-12 flex-1 text-center"> 确定 </view> |
|
|
<view class="text-blue-700 leading-12 flex-1 text-center" @click="confirmAdvice"> 确定 </view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</u-mask> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 审批驳回的modal --> |
|
|
|
|
|
<u-mask :show="rebutModal" @click="rebutModal = false"> |
|
|
|
|
|
<view class="warp"> |
|
|
|
|
|
<view class="rect3" @tap.stop> |
|
|
|
|
|
<!-- 通过modal的标题 --> |
|
|
|
|
|
<view class="text-center my-6 font-semibold"> 审核驳回 </view> |
|
|
|
|
|
<view> |
|
|
|
|
|
<textarea class="border-solid border border-gray-300 m-5 w-58 h-16 p-2 rounded-md" |
|
|
|
|
|
placeholder="请输入通过建议" |
|
|
|
|
|
maxlength="30" |
|
|
|
|
|
v-model="rebutRef" |
|
|
|
|
|
></textarea> |
|
|
|
|
|
<!-- <view @click="adviceRef = '加油,再接再厉!' " class="mx-5"> |
|
|
|
|
|
加油,再接再厉! |
|
|
|
|
|
</view> --> |
|
|
|
|
|
<view class="common-list"> |
|
|
|
|
|
<view v-for="item in rebutWordes" class="h-12 leading-12 w-62 mx-5" @click="rebutRef = item"> |
|
|
|
|
|
{{item}} |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="flex justify-around h-12 mt-7 justify-self-stretch boxModalBorder"> |
|
|
|
|
|
<view class="leading-12 flex-1 text-center deleteModalBorder" @click="rebutModal = false"> 取消 </view> |
|
|
|
|
|
<view class="text-blue-700 leading-12 flex-1 text-center" @click="confirmReject"> 确定 </view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -80,29 +121,44 @@ |
|
|
|
|
|
|
|
|
<script setup> |
|
|
<script setup> |
|
|
import { ref } from 'vue'; |
|
|
import { ref } from 'vue'; |
|
|
|
|
|
|
|
|
const nameRef = ref('入职插件V0.8原型输出'); |
|
|
const nameRef = ref('入职插件V0.8原型输出'); |
|
|
const iconRef = ref(false); |
|
|
const iconRef = ref(false); |
|
|
const submitter = ref('黛西'); |
|
|
const submitter = ref('黛西'); |
|
|
const timeRef = ref('12/28 15:55'); |
|
|
const timeRef = ref('12/28 15:55'); |
|
|
const approvedModal = ref(false); |
|
|
const approvedModal = ref(false); //审核通过的modal |
|
|
const score = ref(1); |
|
|
const rebutModal = ref(false) //审核驳回的modal |
|
|
|
|
|
const score = ref(1); //分数 |
|
|
|
|
|
const adviceRef = ref('') // 审核通过的审批语 |
|
|
|
|
|
const rebutRef = ref('') // 审核驳回的审批语 |
|
|
|
|
|
const commonWords = ['加油,再接再厉!','很棒!','不错,很详细!','加油,再接再厉'] // 审核通过常用的审批语 |
|
|
|
|
|
const rebutWordes = ['不详细','还有需要改进的地方','驳回审批1','驳回审批2'] //审核驳回常用的审批语 |
|
|
|
|
|
|
|
|
|
|
|
// 通过的按钮事件 |
|
|
function approved() { |
|
|
function approved() { |
|
|
// console.log('通过') |
|
|
// console.log('通过') |
|
|
approvedModal.value = true; |
|
|
approvedModal.value = true; |
|
|
} |
|
|
} |
|
|
|
|
|
// 驳回的按钮事件 |
|
|
function rebut() { |
|
|
function rebut() { |
|
|
|
|
|
rebutModal.value = true |
|
|
console.log('驳回'); |
|
|
console.log('驳回'); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 审核通过发送相关请求 |
|
|
|
|
|
function confirmAdvice(){ |
|
|
|
|
|
// TODO:发送请求 |
|
|
|
|
|
// console.log('确定') |
|
|
|
|
|
approvedModal.value = false |
|
|
|
|
|
} |
|
|
|
|
|
// 审核驳回发送相关请求 |
|
|
|
|
|
function confirmReject(){ |
|
|
|
|
|
// TODO:发送请求 |
|
|
|
|
|
rebutModal.value = false |
|
|
|
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
<style scoped lang="scss"> |
|
|
.btn { |
|
|
|
|
|
height: 1.4rem; |
|
|
|
|
|
line-height: 1.4rem; |
|
|
|
|
|
} |
|
|
|
|
|
.progressDot { |
|
|
.progressDot { |
|
|
width: 50rpx; |
|
|
width: 50rpx; |
|
|
height: 50rpx; |
|
|
height: 50rpx; |
|
|