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; padding: 24px 32px;
} }
.client-warnText{
font-size: 12rpx;
text-align: center;
letter-spacing: 0.08px;
color: #FF4D4F;
}
.client-form-flex { .client-form-flex {
// 隐藏原有的el-form-item标签 // 隐藏原有的el-form-item标签
::v-deep .el-form-item__label { ::v-deep .el-form-item__label {
display: none; display: none;

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

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

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

@ -6,7 +6,7 @@
<div class="flex filter-area"> <div class="flex filter-area">
<label for="">收录申请</label> <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="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="学校"> <GuipFormItem label="学校">
<SchoolAutoComplete <SchoolAutoComplete
@ -50,11 +50,12 @@
<el-table-column fixed="right" prop="tid" label="操作" min-width="100"> <el-table-column fixed="right" prop="tid" label="操作" min-width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="flex"> <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 == 0" type="text" @click="handleConfirm(scope.row.id,'1')">收录</GuipButton>
<GuipButton v-if="scope.row.review_status == 3" type="text" @click="handleConfirm(scope.row,'0')">恢复代收录</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)">修改</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 == 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> </div>
</template> </template>
</el-table-column> </el-table-column>
@ -130,7 +131,8 @@ export default {
refuse_id:0, refuse_id:0,
tpl_name:'', tpl_name:'',
refuse_reason:'', refuse_reason:'',
statusList:[] statusList:[],
degreesList:[]
} }
}, },
watch: { watch: {
@ -157,6 +159,7 @@ export default {
this.pageSize = 20 this.pageSize = 20
this.getList() this.getList()
this.getStatusList() this.getStatusList()
this.getDegreesList()
}, },
handleSchoolSelect(item) { handleSchoolSelect(item) {
console.log('选中学校:', item); console.log('选中学校:', item);
@ -189,6 +192,20 @@ export default {
console.error('数据加载失败:', error) 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() { getStatusList() {
try { try {
this.$http('POST', '/supernew/ajax_get_review_status', { this.$http('POST', '/supernew/ajax_get_review_status', {
@ -211,12 +228,12 @@ export default {
this.currentPage = val this.currentPage = val
this.getList() this.getList()
}, },
handleConfirm(row){ handleConfirm(id,status){
this.isShowDialog = false this.isShowDialog = false
try { try {
this.$http('POST', '/supernew/ajax_update_paiban_template_review_status', { this.$http('POST', '/supernew/ajax_update_paiban_template_review_status', {
template_id: row.id, template_id: id,
review_status: 1, review_status: status,
refuse_reason:this.refuse_reason refuse_reason:this.refuse_reason
}).then(response => { }).then(response => {
this.$nextTick(() => { this.$nextTick(() => {
@ -251,32 +268,13 @@ export default {
this.tpl_name += row.school_name this.tpl_name += row.school_name
if(row.degree_name) this.tpl_name += '-'+row.degree_name if(row.degree_name) this.tpl_name += '-'+row.degree_name
if(row.college_name) this.tpl_name += '-'+row.college_name if(row.college_name) this.tpl_name += '-'+row.college_name
// this.handleConfirm(row,status)
}, },
handleCancelRefuse(){ handleCancelRefuse(){
this.isShowDialog = false this.isShowDialog = false
}, },
handleConfirmRefuse(){ handleConfirmRefuse(){
try { this.handleConfirm(this.refuse_id,'')
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)
}
}, },
} }
} }

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

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

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

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

Loading…
Cancel
Save