jf
This commit is contained in:
@@ -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