This commit is contained in:
花有清香月有阴
2022-02-28 16:22:21 +08:00
parent c3f983f2d8
commit a317ac49c2

View File

@@ -23,7 +23,7 @@
<div class="list" v-for="(item, index) in list" :key="index">
<div class="textarea_msgfont" v-if="item.fieldType == 3">
<span class="msgfont">
<span class="icon" v-if="item.mustFill == 1">*</span>
<!-- <span class="icon" v-if="item.mustFill == 1">*</span> -->
<span> {{ item.fieldName }}:</span>
</span>
<textarea :maxlength="150" placeholder="请输入审批意见" v-model="item.fieldValue" class="textarea" clearable="false"> </textarea>
@@ -150,25 +150,25 @@ export default {
},
btn() {
if (this.type == 0 && this.opinion == '') {
return uni.showToast({
title: '请输入审批意见',
icon: 'none',
})
}
// if (this.type == 0 && this.opinion == '') {
// return uni.showToast({
// title: '请输入审批意见',
// icon: 'none',
// })
// }
if (
this.list.some((item) => {
if (item.mustFill == 1 && !item.fieldValue) {
uni.showToast({
title: item.fieldName + '为必填',
icon: 'none',
})
return true
}
})
)
return
// if (
// this.list.some((item) => {
// if (item.mustFill == 1 && !item.fieldValue) {
// uni.showToast({
// title: item.fieldName + '为必填',
// icon: 'none',
// })
// return true
// }
// })
// )
// return
var file = []
this.annex.map((item) => {