Browse Source

订单列表接口、模板交互修改

clientSet-zq-1128
zq 2 weeks ago
parent
commit
2e8cf3bb98
  1. 8
      src/style/theme/common.scss
  2. 20
      src/views/super/clientSet/coverInfoPage.vue
  3. 58
      src/views/super/paiban/college.vue
  4. 10
      src/views/super/paiban/orderlist.vue
  5. 5
      src/views/super/paiban/tpl.vue

8
src/style/theme/common.scss

@ -1331,7 +1331,15 @@ body {
padding: 24px 32px;
}
.client-warnText{
font-size: 12rpx;
text-align: center;
letter-spacing: 0.08px;
color: #FF4D4F;
}
.client-form-flex {
// 隐藏原有的el-form-item标签
::v-deep .el-form-item__label {
display: none;

20
src/views/super/clientSet/coverInfoPage.vue

@ -45,12 +45,16 @@
<GroupFormBtns cancelText="重置" @cancel="cancelClick('siteForm')" flex="start"
@confirm="uploadCoverTpl" />
</div>
<div class="save-button flex">
<div class="save-button column gap8" v-if="type == 'add' || editInfo.review_status == '1'">
<GuipButton type="primary" :btnstyle="{width:'144px',height:'46px'}" @click="submitFun">收录完成</GuipButton>
<p class="client-warnText">信息全部填写后请点击此按钮</p>
</div>
</div>
</template>
<script>
// client_tpl_review_status
import store from '@/store';
// import { mapState } from 'vuex';
import GuipInput from '@/components/GuipInput.vue';
import GroupFormBtns from '@/components/GroupFormBtns.vue';
import GuipRadio from '@/components/GuipRadio.vue';
@ -70,6 +74,7 @@ export default {
},
data() {
return {
type:'',
coverStyle: {
url: '',
qrcode_path: ''
@ -102,6 +107,16 @@ export default {
};
},
mounted() {
const {id,type} = this.$route.query;
if(type){
this.type = type;
}
if(id){
this.template_id = id;
}
store.commit('SET_CLIENTTEMID', this.template_id);
store.commit('SET_CLIENTTEMTYPE', this.type);
const editInfo = JSON.parse(localStorage.getItem('curtplInfo')) || '';
if(editInfo){
this.editInfo = JSON.parse(JSON.stringify(editInfo));
@ -115,6 +130,7 @@ export default {
}
this.template_id = editInfo.id;
}
this.getCoverInfo();
this.getStatusList() //
@ -250,6 +266,8 @@ export default {
localStorage.setItem('curtplInfo', JSON.stringify(obj))
}
this.template_id = response.data.template_id
store.commit('SET_CLIENTTEMID', this.template_id);
} else {
this.$Message.error(response.info);
}

58
src/views/super/paiban/college.vue

@ -6,7 +6,7 @@
<div class="flex filter-area">
<label for="">收录申请</label>
<GuipSelect width="180px" clearable label="状态" :options="statusList" :extraItem="{ label: '不限', value: -1 }" v-model="review_status" @change="getList"/>
<GuipSelect width="180px" clearable label="学历" :options="['麻辣烫','提拉米苏']" v-model="degree" @change="getList"/>
<GuipSelect width="180px" clearable label="学历" :options="degreesList" v-model="degree" @change="getList"/>
<GuipFormItem label="学校">
<SchoolAutoComplete
@ -50,11 +50,12 @@
<el-table-column fixed="right" prop="tid" label="操作" min-width="100">
<template slot-scope="scope">
<div class="flex">
<GuipButton v-if="scope.row.review_status == 0" type="text" @click="handleConfirm(scope.row)">收录</GuipButton>
<GuipButton v-if="scope.row.review_status == 3" type="text" @click="handleConfirm(scope.row,'0')">恢复代收录</GuipButton>
<GuipButton v-if="scope.row.review_status==1" type="text" @click="handleUpdate(scope.row)">修改</GuipButton>
<GuipButton v-if="scope.row.review_status == 0" type="text" @click="handleConfirm(scope.row.id,'1')">收录</GuipButton>
<GuipButton v-if="scope.row.review_status == 3" type="text" @click="handleConfirm(scope.row.id,'0')">恢复代收录</GuipButton>
<GuipButton v-if="scope.row.review_status == 1" type="text" @click="handleUpdate(scope.row.id)">收录</GuipButton>
<GuipButton v-if="scope.row.review_status==2" type="text" @click="handleUpdate(scope.row)">修改</GuipButton>
<GuipButton v-if="scope.row.review_status == 0" type="warn" @click="handleRefuse(scope.row)">拒绝</GuipButton>
<GuipButton v-if="scope.row.review_status == 2" type="warn" @click="handleRefuse(scope.row)">取消</GuipButton>
<GuipButton v-if="scope.row.review_status == 1" type="warn" @click="handleConfirm(scope.row.id,'0')">取消</GuipButton>
</div>
</template>
</el-table-column>
@ -130,7 +131,8 @@ export default {
refuse_id:0,
tpl_name:'',
refuse_reason:'',
statusList:[]
statusList:[],
degreesList:[]
}
},
watch: {
@ -157,6 +159,7 @@ export default {
this.pageSize = 20
this.getList()
this.getStatusList()
this.getDegreesList()
},
handleSchoolSelect(item) {
console.log('选中学校:', item);
@ -189,6 +192,20 @@ export default {
console.error('数据加载失败:', error)
}
},
getDegreesList() {
try {
this.$http('POST', '/supernew/ajax_get_paiban_degrees', {
}).then(response => {
this.$nextTick(() => {
this.degreesList = response.data
})
}).catch(error => {
console.error(error, 'error')
})
} catch (error) {
console.error('数据加载失败:', error)
}
},
getStatusList() {
try {
this.$http('POST', '/supernew/ajax_get_review_status', {
@ -211,12 +228,12 @@ export default {
this.currentPage = val
this.getList()
},
handleConfirm(row){
handleConfirm(id,status){
this.isShowDialog = false
try {
this.$http('POST', '/supernew/ajax_update_paiban_template_review_status', {
template_id: row.id,
review_status: 1,
template_id: id,
review_status: status,
refuse_reason:this.refuse_reason
}).then(response => {
this.$nextTick(() => {
@ -251,32 +268,13 @@ export default {
this.tpl_name += row.school_name
if(row.degree_name) this.tpl_name += '-'+row.degree_name
if(row.college_name) this.tpl_name += '-'+row.college_name
// this.handleConfirm(row,status)
},
handleCancelRefuse(){
this.isShowDialog = false
},
handleConfirmRefuse(){
try {
this.$http('POST', '/supernew/ajax_update_paiban_template_review_status', {
template_id: this.refuse_id,
review_status: 3,
refuse_reason: this.refuse_reason
}).then(response => {
this.$nextTick(() => {
this.isShowDialog = false;
if (response.status) {
this.$Message.success(response.info);
this.getList()
} else {
this.$Message.error(response.info);
}
})
}).catch(error => {
console.error(error, 'error')
})
} catch (error) {
console.error('数据加载失败:', error)
}
this.handleConfirm(this.refuse_id,'')
},
}
}

10
src/views/super/paiban/orderlist.vue

@ -103,13 +103,13 @@ export default {
orderId:'',
tableList:[],
currentPage: 1, //
pageSize: 20, //
pageSize: 50, //
total: 0, //
}
},
mounted() {
this.$nextTick(()=>{
// this.init()
this.init()
})
},
methods: {
@ -136,8 +136,10 @@ export default {
getList() {
//api
try {
this.$http('POST', '/supernew/', {
orderId: this.orderId,
this.$http('POST', 'supernew/ajax_get_paiban_list', {
// orderId: this.orderId,
page: this.currentPage,
pagesize: this.pageSize
}).then(response => {
this.$nextTick(() => {
this.tableList = response.data.list

5
src/views/super/paiban/tpl.vue

@ -191,16 +191,17 @@ export default {
//
this.$router.push({
path: '/super/clientSet/coverInfoPage',
query: { id:item.id }
query: { id:item.id,type:'edit' }
})
console.log(item.id)
},
//
//
addTemplete(){
localStorage.clear('curtplInfo')
localStorage.removeItem('curtplInfo')
this.$router.push({
path: '/super/clientSet/coverInfoPage',
query: {type:'add' }
})
}
}

Loading…
Cancel
Save