黔西南 协同宣发迁移

This commit is contained in:
liuye
2023-06-12 09:38:05 +08:00
parent bc589c46c8
commit ea10f35e13
29 changed files with 4634 additions and 35 deletions

View File

@@ -9,7 +9,9 @@
</div>
<div class="item">
<span>创建人</span>
<span>{{ data.createUserName }}</span>
<span>
{{ data.createUserName }}
</span>
</div>
<div class="item" v-if="data.enableExamine == 1">
<span>审批人</span>
@@ -30,21 +32,26 @@
<span>群发时间</span>
<span>{{ data.choiceTime }}</span>
</div>
<div class="item" v-if="data.sendChannel == 1">
<div class="item">
<span>结束时间</span>
<span>{{ data.taskEndTime }}</span>
</div>
</div>
<div class="task_results" v-if="data.enableExamine == 1">
<img v-if="data.status == 1" src="./images/refuse.png" alt="">
<img v-if="data.status == 2 || data.status == 4" src="./images/pass.png" alt="">
<img v-if="data.status > 1" src="./images/pass.png" alt="">
</div>
</div>
<div class="info">
<div class="scope">
<span>群发范围</span>
<span v-if="data.sendScope==0">全部{{ data.receiveGroupCount || 0}}个居民群</span>
<span v-if="data.sendScope==1 || data.sendScope==2">按条件筛选的{{ data.receiveGroupCount || 0}}个居民群</span>
<div>
<span v-if="data.sendScope==0">全部</span><span v-if="data.sendScope==1 || data.sendScope==2">按条件筛选的</span>
<span v-if="type=='ResidentsGroup'">{{ data.receiveGroupCount || 0}}</span>
<span v-if="type=='Residents'">{{ resSum || 0}}</span>
<span v-if="type=='CircleOfFriends'">{{ cirSum || 0}}</span>
<span v-if="type=='ResidentsGroup'">个居民群</span><span v-if="type=='Residents'">个居民</span><span v-if="type=='CircleOfFriends'">个朋友圈</span>
</div>
</div>
<div class="content">
<p>群发内容</p>
@@ -82,7 +89,6 @@
</div>
</div>
</div>
<div class="btn" v-if="data.status==0 && data.haveExaminPower">
<div class="refuse" @click="refuseBtn">审核拒绝</div>
<div class="pass" @click="passBtn">审核通过</div>
@@ -93,7 +99,6 @@
<script>
import { mapState ,mapActions } from "vuex";
export default {
name : "detail",
data() {
return {
id: "",
@@ -107,20 +112,27 @@ export default {
pictres: [],
options: '',
approver: [], //审批人
type: '',
resSum: 0,
cirSum: 0,
}
},
onLoad(o) {
this.id = o.id
this.type = o.type
},
computed: {
...mapState(['user'])
},
methods: {
toMassDispatch() {
uni.navigateTo({ url: `./massDispatch?id=${this.id}`})
},
getDetail() {
this.$http.post(`/app/appmasssendingtask/queryDetailById?id=${this.id}`).then(res=> {
let url = ''
if(this.type == 'ResidentsGroup') {
url = `/app/appmasssendingtask/queryDetailById?id=${this.id}`
} else {
url = `/app/whchatmomentstask/queryDetailById?id=${this.id}`
}
this.$http.post(url).then(res=> {
if (res?.data) {
this.data = res.data
this.content = res.data.contents.filter(v=> v.msgType == 0)?.[0].content
@@ -130,6 +142,8 @@ export default {
this.webpage = res.data.contents.filter(v=> v.msgType == 4)
this.miniapp = res.data.contents.filter(v=> v.msgType == 5)
this.approver = res.data.examines
this.resSum = res.data.groupList?.reduce((pre, cur) => pre + cur.customerCount, 0)
this.cirSum = res.data.executorList?.reduce((pre, cur) => pre + cur.customerCount, 0)
// if(res.data.status==1) { // 拒绝
// this.approver = res.data.examines.filter(e=> e.examineStatus == 2)
// } else { // 通过
@@ -166,7 +180,13 @@ export default {
})
},
examine() {
this.$http.post(`/app/appmasssendingtask/examine`,null,{
let url = ''
if(this.type == 'ResidentsGroup') {
url = `/app/appmasssendingtask/examine`
} else {
url = `/app/whchatmomentstask/examine`
}
this.$http.post(url,null,{
params: {
pass: this.pass,
id: this.id,
@@ -196,7 +216,6 @@ export default {
.detail {
padding: 32px 32px 140px 32px;
box-sizing: border-box;
.task {
position: relative;
margin-bottom: 24px;
@@ -243,11 +262,11 @@ export default {
.scope {
display: flex;
margin-bottom: 16px;
span:first-child {
& > span {
width: 160px;
color: #999;
}
span:last-child {
& > div {
width: calc(100% - 160px);
}
}