jf
This commit is contained in:
@@ -4,12 +4,11 @@
|
||||
<div class="tab-select">
|
||||
<div class="item" :class="tabIndex == index ? 'active' : ''" v-for="(item, index) in tabs" :key="index" @click="tabClick(index)">{{item}}<span></span></div>
|
||||
</div>
|
||||
|
||||
<!-- 列表 -->
|
||||
<div>
|
||||
<div class="search-box" v-if="tabIndex==0">
|
||||
<div class="integral-types" @click="showType = true">{{ type? type : '积分类型' }}<u-icon name="arrow-down"></u-icon></div>
|
||||
<u-search placeholder="请输入关键字" v-model="keyword" :show-action="false" @search="search" />
|
||||
<u-search placeholder="请输入关键字" v-model="keyword" :show-action="false" @search="search" @clear="getList()"/>
|
||||
</div>
|
||||
|
||||
<div class="card-list" v-if="integralList.length">
|
||||
@@ -21,7 +20,7 @@
|
||||
</div>
|
||||
<div class="card-type">
|
||||
<div class="type" :style="{color: item.auditStatus==0? '#4181FF':item.auditStatus==1? '#07c160' : '#dd5347'}">{{ $dict.getLabel('integralDeclareStatus',item.auditStatus) }}</div>
|
||||
<div class="num">+20</div>
|
||||
<div class="num" v-if="item.auditIntegral">{{ item.auditIntegral }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -54,6 +53,10 @@ export default {
|
||||
created() {
|
||||
this.$dict.load('atWillReportType','integralDeclareStatus').then(()=>{
|
||||
this.getList()
|
||||
uni.$on('update',()=>{
|
||||
this.current = 1
|
||||
this.getList()
|
||||
})
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
@@ -71,10 +74,10 @@ export default {
|
||||
size: 10,
|
||||
description : this.keyword,
|
||||
applyIntegralType: this.applyIntegralType,
|
||||
auditStatus: this.tabIndex== 0 ? "" : this.tabIndex == 1 ? 0 : this.tabIndex == 2 ? "1|2" : ''
|
||||
auditType: this.tabIndex== 0 ? "" : this.tabIndex == 1 ? 0 : 1
|
||||
}
|
||||
}).then(res => {
|
||||
if(res.code==0){
|
||||
if(res?.data){
|
||||
this.integralList = this.current > 1 ? [...this.integralList, ...res.data.records] : res.data.records
|
||||
this.$forceUpdate()
|
||||
}
|
||||
@@ -86,7 +89,6 @@ export default {
|
||||
},
|
||||
|
||||
confirmTypeSelect(e) {
|
||||
console.log(e);
|
||||
this.type = e[0].label
|
||||
this.applyIntegralType = e[0].value
|
||||
this.current = 1,
|
||||
@@ -95,13 +97,12 @@ export default {
|
||||
},
|
||||
|
||||
toDetail(item) {
|
||||
uni.navigateTo({url: `./detail?id=${item.id}`})
|
||||
uni.navigateTo({url: `./detail?id=${item.id}&nopass=${item.auditType}`})
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
document.title = '积分审核'
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -186,10 +187,10 @@ export default {
|
||||
color: #999999;
|
||||
|
||||
.name {
|
||||
padding: 0 30px;
|
||||
padding: 0 20px;
|
||||
background: #EEEEEE;
|
||||
border-radius: 24px;
|
||||
margin-right: 40px;
|
||||
margin-right: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
<div class="detail">
|
||||
<div class="detail-list">
|
||||
<div class="detail-info">
|
||||
<!-- <AiOpenData type="userName" :openid="form.corpId" style="display: inline-block;"/> -->
|
||||
<div class="detail-name">申请人:<span>{{form.corpId}}</span></div>
|
||||
<div class="detail-name">申请人:<span>{{form.residentName}}</span></div>
|
||||
<div class="detail-type">{{ $dict.getLabel('atWillReportType',form.applyIntegralType) }}</div>
|
||||
</div>
|
||||
<div class="detail-area">
|
||||
@@ -21,8 +20,8 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 审核通过、不通过 -->
|
||||
<div class="integral" v-if="admin === 1">
|
||||
<!-- 待审核 -->
|
||||
<div class="integral" v-if="form.auditStatus == 0">
|
||||
<div class="result">
|
||||
<div>积分审核结果</div>
|
||||
<div class="options">
|
||||
@@ -63,51 +62,55 @@
|
||||
<u-select :list="$dict.getDict('atWillReportType')" value-name="dictValue" label-name="dictName"
|
||||
v-model="isShowType" @confirm="integralType"></u-select>
|
||||
|
||||
<u-select :list="typeList" value-name="integral" label-name="ruleName"
|
||||
<u-select :list="typeList" value-name="id" label-name="ruleName"
|
||||
v-model="isShowOption" @confirm="typeChange"></u-select>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 只读通过、不通过 -->
|
||||
<!-- 已审核 -->
|
||||
<div class="readOnly" v-else>
|
||||
<div class="item">
|
||||
<div>积分审核</div>
|
||||
<div>通过</div>
|
||||
</div>
|
||||
<!-- 通过 -->
|
||||
<div v-if="nopass === 0">
|
||||
<div v-if="nopass == 1">
|
||||
<div class="item">
|
||||
<div>积分审核</div>
|
||||
<div>通过</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div>积分类别</div>
|
||||
<div>乡村建设类</div>
|
||||
<div>{{ form.auditIntegralType }}</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div>积分事项</div>
|
||||
<div>多字段显示</div>
|
||||
<div>{{ form.auditRuleName }}</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div>积分方式</div>
|
||||
<div style="color: #E6736E;">+20</div>
|
||||
<div style="color: #E6736E;">{{ form.auditIntegral }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 不通过 -->
|
||||
<div v-else>
|
||||
<div v-if="nopass==2">
|
||||
<div class="item">
|
||||
<div>积分审核</div>
|
||||
<div>不通过</div>
|
||||
</div>
|
||||
<div class="item nopass">
|
||||
<div>不通过的理由</div>
|
||||
<div class="textarea">我村赴黎平参加百村杯篮球赛经费分两阶段分发, 第一阶段为小组循环赛,第二阶段为淘汰赛。第一 其中包括队员球服两套,住宿、饮食</div>
|
||||
<div class="textarea">{{ form.auditOpinion }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div>审核人</div>
|
||||
<div>李维民</div>
|
||||
<div>{{ form.auditUserName }}</div>
|
||||
</div>
|
||||
<div class="item last">
|
||||
<div>审核时间</div>
|
||||
<div>2022-02-18 18:16:27</div>
|
||||
<div>{{ form.auditTime }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="height: 56px"></div>
|
||||
<div class="saveBtn" v-if="admin === 1" @click="submit">保存</div>
|
||||
<div class="saveBtn" v-if="form.auditStatus == 0" @click="submit">保存</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -118,7 +121,7 @@ export default {
|
||||
return {
|
||||
id: '',
|
||||
nopass: 1,
|
||||
admin: 1,
|
||||
auditType: 1,
|
||||
opts: 1,
|
||||
isShowType: false,
|
||||
isShowOption: false,
|
||||
@@ -128,10 +131,9 @@ export default {
|
||||
data: {
|
||||
id: '',
|
||||
auditIntegralType: '',
|
||||
// auditIntegralName: '',
|
||||
auditOpinion: '', // 不通过理由
|
||||
ruleName: '',
|
||||
integral: ''
|
||||
integral: '',
|
||||
},
|
||||
typeList: [],
|
||||
}
|
||||
@@ -139,11 +141,17 @@ export default {
|
||||
onLoad(o) {
|
||||
this.$dict.load('atWillReportType','integralDeclareStatus').then(()=>{
|
||||
this.id = o.id
|
||||
this.nopass = o.nopass
|
||||
this.getDetail()
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
previewImage() {},
|
||||
previewImage(images, img) {
|
||||
uni.previewImage({
|
||||
urls: images.map(v => v.url),
|
||||
current: img
|
||||
})
|
||||
},
|
||||
getDetail() {
|
||||
this.$http.post(`/app/appvillagerintegraldeclare/queryDetailById?id=${this.id}`).then(res => {
|
||||
if(res.code==0) {
|
||||
@@ -156,24 +164,26 @@ export default {
|
||||
if(!this.data.auditIntegralType) {
|
||||
return this.$u.toast('请选择积分类别')
|
||||
} else {
|
||||
|
||||
this.$http.post(`/app/appvillagerintegralrule/list?current=1&size=10&auditIntegralType=${this.data.auditIntegralType}`).then(res=>{
|
||||
if(res.code == 0){
|
||||
this.typeList = res.data.records
|
||||
this.isShowOption=true
|
||||
// this.data.id = res.data.records.id
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
typeChange(e) {
|
||||
console.log(e);
|
||||
// this.data.id = e[0].id
|
||||
this.data.ruleName = e[0].label
|
||||
this.data.id = e[0].value
|
||||
this.data.integral = e[0].value
|
||||
this.typeList.map((item) => {
|
||||
if(item.id == e[0].value) {
|
||||
this.data.integral = item.integral
|
||||
}
|
||||
})
|
||||
},
|
||||
integralType(e) {
|
||||
// this.data.auditIntegralName = e[0].label
|
||||
this.data.auditIntegralType = e[0].value
|
||||
},
|
||||
submit() {
|
||||
@@ -194,13 +204,18 @@ export default {
|
||||
params: {
|
||||
id: this.id,
|
||||
pass: this.opts,
|
||||
...this.data
|
||||
auditRuleId: this.data.id,
|
||||
auditIntegralType: this.data.auditIntegralType,
|
||||
auditIntegral: this.data.integral,
|
||||
opinion: this.data.auditOpinion,
|
||||
auditRuleName: this.data.ruleName
|
||||
}
|
||||
}).then(res=>{
|
||||
console.log(res);
|
||||
}).then(()=>{
|
||||
this.$u.toast('保存成功')
|
||||
}).catch(err=>{
|
||||
console.log(err);
|
||||
uni.$emit('update')
|
||||
setTimeout(()=>{
|
||||
uni.navigateBack()
|
||||
},600)
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user