forked from ccsens_fe/tall-mui-3
10 changed files with 168 additions and 27 deletions
@ -0,0 +1,120 @@ |
|||||
|
<template> |
||||
|
<!-- 交付物审核 --> |
||||
|
<view class="examine-popup pt-6 bg-white"> |
||||
|
<view class="text-center pb-6 font-semibold text-lg text-black">{{ auditStatus === 1 ? '审核通过' : '审核驳回' }}</view> |
||||
|
|
||||
|
<view class="px-6"> |
||||
|
<u-input :auto-height="autoHeight" :border="border" :height="height" :type="type" placeholder="输入备注" v-model="remark" /> |
||||
|
<view class="flex flex-row-reverse text-xs text-gray-400 mt-2">{{ wordNum }}/140</view> |
||||
|
|
||||
|
<!-- 评分 --> |
||||
|
<view class="flex justify-between mt-3" v-if="auditStatus === 1"> |
||||
|
<u-input :border="border" :type="type1" @input="changeNumber" maxlength="100" placeholder="输入分数" v-model="score" /> |
||||
|
<slider :value="score" @change="sliderChange" max="100" min="0" show-value style="width: 50%" /> |
||||
|
</view> |
||||
|
</view> |
||||
|
|
||||
|
<view class="examine-btn flex justify-center mt-5"> |
||||
|
<u-button @click="submit">提交</u-button> |
||||
|
<u-button @click="$emit('closeScore')">取消</u-button> |
||||
|
</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
export default { |
||||
|
name: 'p-deliver-check', |
||||
|
|
||||
|
props: { |
||||
|
auditStatus: { |
||||
|
type: Number, |
||||
|
default: 1, |
||||
|
}, |
||||
|
}, |
||||
|
|
||||
|
data() { |
||||
|
return { |
||||
|
remark: '', |
||||
|
type: 'textarea', |
||||
|
border: true, |
||||
|
height: 100, |
||||
|
autoHeight: true, |
||||
|
wordNum: 0, |
||||
|
score: 0, |
||||
|
type1: 'number', |
||||
|
}; |
||||
|
}, |
||||
|
|
||||
|
watch: { |
||||
|
remark(val) { |
||||
|
this.wordNum = val.length; |
||||
|
}, |
||||
|
|
||||
|
score(val) { |
||||
|
this.score1 = val; |
||||
|
}, |
||||
|
}, |
||||
|
|
||||
|
methods: { |
||||
|
// 提交交付物 |
||||
|
submit() { |
||||
|
this.$emit('submit', this.remark, this.score); |
||||
|
}, |
||||
|
|
||||
|
sliderChange(e) { |
||||
|
this.score = e.detail.value; |
||||
|
}, |
||||
|
|
||||
|
changeNumber(e) { |
||||
|
if (e > 100) { |
||||
|
this.score = 100; |
||||
|
} |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" scoped> |
||||
|
.examine-popup { |
||||
|
width: 85vw; |
||||
|
border-radius: 8px; |
||||
|
overflow: hidden; |
||||
|
|
||||
|
.examine-btn { |
||||
|
border-top: 1px solid rgba(0, 0, 0, 0.1); |
||||
|
|
||||
|
uni-button { |
||||
|
width: 50%; |
||||
|
height: 55px; |
||||
|
border-radius: 0; |
||||
|
border: none; |
||||
|
} |
||||
|
|
||||
|
uni-button:after { |
||||
|
border: none; |
||||
|
width: 200%; |
||||
|
height: 200%; |
||||
|
} |
||||
|
|
||||
|
uni-button:first-child { |
||||
|
border-right: 1px solid rgba(0, 0, 0, 0.1); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
uni-slider { |
||||
|
margin-right: 0; |
||||
|
} |
||||
|
|
||||
|
uni-slider ::v-deep .uni-slider-handle, |
||||
|
uni-slider ::v-deep .uni-slider-thumb { |
||||
|
width: 10px !important; |
||||
|
height: 10px !important; |
||||
|
margin-top: -5px !important; |
||||
|
margin-left: -5px !important; |
||||
|
} |
||||
|
|
||||
|
uni-slider ::v-deep .uni-slider-thumb { |
||||
|
box-shadow: 0 0 2px rgba(0, 0, 0, 1); |
||||
|
} |
||||
|
} |
||||
|
</style> |
Loading…
Reference in new issue