Commit f3eb94bb by 陈浩建

Merge remote-tracking branch 'origin/master'

# Conflicts:
#	src/views/school-center/order/order.vue
parents 60180863 77979758
......@@ -21,7 +21,7 @@
"clipboard": "^2.0.4",
"codemirror": "^5.49.2",
"dayjs": "^1.8.17",
"echarts": "^4.5.0",
"echarts": "^4.9.0",
"enquire.js": "^2.1.6",
"html2canvas": "^1.0.0-rc.5",
"js-cookie": "^2.2.1",
......@@ -29,6 +29,8 @@
"lodash.pick": "^4.4.0",
"mavon-editor": "^2.9.0",
"md5": "^2.2.1",
"moment": "^2.29.1",
"npm": "^6.14.9",
"nprogress": "^0.2.0",
"qrcodejs2": "^0.0.2",
"reqwest": "^2.0.5",
......
/**
* 应用配置api管理
*/
import { getAction, postAction } from '@/api/manage'
const prefix = '/manager/ciop';
let getList = (params) => getAction(prefix+"/appConfig/list", params);
let getInfo = (params) => getAction(prefix+"/appConfig/getConfigInfo", params);
let add = (params) => postAction(prefix+"/appConfig/add", params);
let update = (params) => postAction(prefix+"/appConfig/update", params);
export {
getList,
getInfo,
add,
update
}
<template>
<div class="flex-container">
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<!-- 搜索区域 -->
<a-form layout="inline">
<a-row :gutter="24">
<a-col :md="4" :sm="8">
<a-form-item label="手机号:">
<a-input placeholder="手机号" v-model="queryParam.orderCustomerAccount"></a-input>
</a-form-item>
</a-col>
<span class="table-page-search-submitButtons" style="float: left; overflow: hidden;">
<a-col :md="6" :sm="24">
<a-button @click="search()" type="primary">查询</a-button>
<a-divider type="vertical"/>
<a-button @click="add()" type="primary">添加</a-button>
</a-col>
</span>
</a-row>
</a-form>
</div>
<!--列表-->
<s-table :locale="emptyText" :columns="columns" :data="rowdata" bordered ref="table" size="small" class="flex-filling">
<template slot="operation" slot-scope="text,record">
<a-popconfirm title="是否要删除此行?" @confirm="deleteActivity(record.id)">
<a>删除</a>
</a-popconfirm>
<a-divider type="vertical"/>
</template>
</s-table>
<!--编辑----弹框-->
<a-modal :title="titleName" :visible="modifyvisible" @ok="createfunctionOk" @cancel="createfunctionCancel" html-type="submit" width="840px">
<a-form :form="Formtable">
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="手机号">
<a-input v-decorator="[ 'sort', {rules: [{ required: true, type:'number', message: '手机号!' ,whitespace:true,transform:(value)=> {return Number(value)} }]} ]"></a-input>
</a-form-item>
</a-form>
</a-modal>
</div>
</template>
<script>
import STable from '@/components/table';
import {cloneObject} from '@/utils/util';
export default {
name: "RhPhone",
components: {
STable,
},
data: function () {
return {
emptyText: {emptyText: '暂无数据'},
previewVisible: false,
previewImage: '',
fileList: [
],
apis:'',
fileid:{},
brackgroundurl:"manager/ciop/school/schoolManagement/qrcodeUpload",
// form
Formtable: this.$form.createForm(this, {name: 'Formtable'}),
titleName:"",
modifyForm: {
accountNumber:"",
},
subNameList: [],
packageName:[],
chosePages:[],
products:[],
//输入框列表
queryParam: {
accountNumber: '',
},
modifyvisible: false,
visiblepicture: false,
columns: [
{dataIndex: 'phone', width: 200, title: '手机号', align: "center"},
{
dataIndex: 'operation',
width: 200,
title: '操作',
align: "center",
scopedSlots: {customRender: 'operation'},
fixed: "right"
}]
,
rowdata: parameter => {
}
}
},
methods:{
deleteActivity(id){
},
search() {
this.$refs.table.refresh({search: true})
},
add(){
this.titleName="添加"
this.modifyForm.id = '';
setTimeout(()=>{
this.Formtable.setFieldsValue({
phone:""
})
},0)
this.modifyvisible=true;
},
//提交表单
createfunctionOk(){
},
createfunctionCancel(){
},
}
}
</script>
<style scoped>
</style>
<template>
<div class="flex-container">
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<!-- 搜索区域 -->
<a-form layout="inline">
<a-row :gutter="24">
<a-col :md="4" :sm="8">
<a-form-item label="多媒体账号:">
<a-input placeholder="多媒体账号" v-model="queryParam.accountNumber"></a-input>
</a-form-item>
</a-col>
<span class="table-page-search-submitButtons" style="float: left; overflow: hidden;">
<a-col :md="6" :sm="24">
<a-button @click="search()" type="primary">查询</a-button>
<a-divider type="vertical"/>
<a-button @click="add()" type="primary">添加</a-button>
</a-col>
</span>
</a-row>
</a-form>
</div>
<!--列表-->
<s-table :locale="emptyText" :columns="columns" :data="rowdata" bordered ref="table" size="small" class="flex-filling">
<template slot="operation" slot-scope="text,record">
<a @click="modifyfunction(record)">编辑</a>
<a-divider type="vertical"/>
<a-popconfirm title="是否要删除此行?" @confirm="deleteActivity(record.id)">
<a>删除</a>
</a-popconfirm>
<a-divider type="vertical"/>
</template>
</s-table>
<!--编辑----弹框-->
<a-modal :title="titleName" :visible="modifyvisible" @ok="createfunctionOk" @cancel="createfunctionCancel" html-type="submit" width="840px">
<a-form :form="Formtable">
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="宽带接入号">
<a-input v-decorator="[ 'sort', {rules: [{ required: true, type:'number', message: '宽带接入号不能为空!' ,whitespace:true,transform:(value)=> {return Number(value)} }]} ]"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="多媒体账号">
<a-input v-decorator="[ 'sort', {rules: [{ required: true, type:'number', message: '多媒体账号不能为空!' ,whitespace:true,transform:(value)=> {return Number(value)} }]} ]"></a-input>
</a-form-item>
</a-form>
</a-modal>
</div>
</template>
<script>
import STable from '@/components/table';
import {cloneObject} from '@/utils/util';
export default {
name: "kdyList",
components: {
STable,
},
data: function () {
return {
emptyText: {emptyText: '暂无数据'},
fileList: [
],
apis:'',
// form
Formtable: this.$form.createForm(this, {name: 'Formtable'}),
titleName:"",
modifyForm: {
id: '',
accountNumber:"",
},
chosePages:[],
//输入框列表
queryParam: {
id: '',
accountNumber: '',
},
modifyvisible: false,
visiblepicture: false,
columns: [
{dataIndex: 'id', width: 200, title: '宽带接入号', align: "center"},
{dataIndex: 'accountNumber', width: 200, title: '多媒体账号', align: "center"},
{
dataIndex: 'operation',
width: 200,
title: '操作',
align: "center",
scopedSlots: {customRender: 'operation'},
fixed: "right"
}]
,
rowdata: parameter => {
}
}
},
methods:{
deleteActivity(id){
},
search() {
this.$refs.table.refresh({search: true})
},
add(){
this.titleName="添加"
this.modifyForm.id = '';
setTimeout(()=>{
this.Formtable.setFieldsValue({
id: '',
accountNumber:"",
})
},0)
this.modifyvisible=true;
},
modifyfunction(data){
},
//提交表单
createfunctionOk(){
},
createfunctionCancel(){
},
}
}
</script>
<style scoped>
</style>
<template>
<div class="flex-container">
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<!-- 搜索区域 -->
<a-form layout="inline">
<a-row :gutter="24">
<a-col :md="4" :sm="8">
<a-form-item label="多媒体账号:">
<a-input placeholder="多媒体账号" v-model="queryParam.orderCustomerAccount"></a-input>
</a-form-item>
</a-col>
<span class="table-page-search-submitButtons" style="float: left; overflow: hidden;">
<a-col :md="6" :sm="24">
<a-button @click="search()" type="primary">查询</a-button>
<a-divider type="vertical"/>
<a-button @click="add()" type="primary">添加</a-button>
</a-col>
</span>
</a-row>
</a-form>
</div>
<!--列表-->
<s-table :locale="emptyText" :columns="columns" :data="rowdata" bordered ref="table" size="small" class="flex-filling">
<template slot="operation" slot-scope="text,record">
<a-popconfirm title="是否要删除此行?" @confirm="deleteActivity(record.id)">
<a>删除</a>
</a-popconfirm>
<a-divider type="vertical"/>
</template>
</s-table>
<!--编辑----弹框-->
<a-modal :title="titleName" :visible="modifyvisible" @ok="createfunctionOk" @cancel="createfunctionCancel" html-type="submit" width="840px">
<a-form :form="Formtable">
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="排序号">
<a-input v-decorator="[ 'sort', {rules: [{ required: true, type:'number', message: '排序号不能为空!' ,whitespace:true,transform:(value)=> {return Number(value)} }]} ]"></a-input>
</a-form-item>
</a-form>
</a-modal>
</div>
</template>
<script>
import STable from '@/components/table';
import {cloneObject} from '@/utils/util';
export default {
name: "multimediaAccount",
components: {
STable,
},
data: function () {
return {
emptyText: {emptyText: '暂无数据'},
previewVisible: false,
previewImage: '',
fileList: [
],
apis:'',
fileid:{},
brackgroundurl:"manager/ciop/school/schoolManagement/qrcodeUpload",
// form
Formtable: this.$form.createForm(this, {name: 'Formtable'}),
titleName:"",
modifyForm: {
id: '',
accountNumber:"",
},
subNameList: [],
packageName:[],
chosePages:[],
products:[],
//输入框列表
queryParam: {
id: '',
accountNumber: '',
},
modifyvisible: false,
visiblepicture: false,
columns: [
{dataIndex: '', width: 200, title: '宽带接入号', align: "center"},
{dataIndex: 'orderCustomerAccount', width: 200, title: '多媒体账号', align: "center"},
{
dataIndex: 'operation',
width: 200,
title: '操作',
align: "center",
scopedSlots: {customRender: 'operation'},
fixed: "right"
}]
,
rowdata: parameter => {
}
}
},
methods:{
deleteActivity(id){
},
search() {
this.$refs.table.refresh({search: true})
},
add(){
this.titleName="添加"
this.modifyForm.id = '';
setTimeout(()=>{
this.Formtable.setFieldsValue({
id: '',
accountNumber:"",
})
},0)
this.modifyvisible=true;
},
//提交表单
createfunctionOk(){
},
createfunctionCancel(){
},
}
}
</script>
<style scoped>
</style>
......@@ -1284,11 +1284,10 @@
this.edit = false;
},
showDrawer(data,type) {
this.certificatePhoto.push(this.apis + data.idCardz);
this.certificatePhoto.push(this.apis + data.idCardf);
this.certificatePhoto.push(this.apis + data.idCardzs);
this.certificatePhoto.push(this.apis + data.studentCard);
this.certificatePhoto.push(this.apis + (data.idCardz != null ? data.idCardz.replace("manager", "app") : ""));
this.certificatePhoto.push(this.apis + (data.idCardf != null ? data.idCardf.replace("manager", "app") : ""));
this.certificatePhoto.push(this.apis + (data.idCardzs != null ? data.idCardzs.replace("manager", "app") : ""));
this.certificatePhoto.push(this.apis + (data.studentCard != null ? data.studentCard.replace("manager", "app") : ""));
/* this.certificatePhoto.push('http://yrym.winsun-aly.com/gdtel-xyzx-hhr/images/yrym-ruanyan-logo.png')
this.certificatePhoto.push('http://yrym.winsun-aly.com/gdtel-xyzx-hhr/images/yrym-ruanyan-logo.png')
this.certificatePhoto.push('http://yrym.winsun-aly.com/gdtel-xyzx-hhr/images/yrym-ruanyan-logo.png')
......
<template>
<div class="flex-container">
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<!-- 搜索区域 -->
<a-form layout="inline">
<a-row :gutter="24">
<a-col :md="6" :sm="12" style="height:35px">
<a-form-item label="订单创建时间:">
<a-range-picker @change="onChange" format="YYYY-MM-DD HH:mm:ss"/>
</a-form-item>
</a-col>
<a-col :md="6" :sm="12" style="height:35px">
<a-form-item label="订单完成时间:">
<a-range-picker @change="onSuccessChange" format="YYYY-MM-DD HH:mm:ss"/>
</a-form-item>
</a-col>
<a-col :md="4" :sm="6" style="height:35px">
<a-form-item label="客户类型:">
<a-select v-model="queryParam.userType" style="width: 120px">
<a-select-option value="">全部客户</a-select-option>
<a-select-option value="3">融合办理</a-select-option>
<a-select-option value="5">单宽业务</a-select-option>
<a-select-option value="9">毕业生融合</a-select-option>
<!-- <a-select-option value="3">融合办理</a-select-option>-->
<a-select-option value="10">单宽进融</a-select-option>
<!-- <a-select-option value="5">单宽业务</a-select-option>-->
</a-select>
</a-form-item>
</a-col>
<a-col :md="4" :sm="12" style="height:35px">
<a-form-item label="智能平台:">
<a-input placeholder="智能平台" v-model="queryParam.orderId"></a-input>
</a-form-item>
</a-col>
<a-col :md="4" :sm="6" style="height:35px">
<a-form-item label="县份:">
<a-select v-model="queryParam.hehuorenArea" style="width: 120px">
<a-select-option value="">请选择</a-select-option>
<a-select-option value="本部">本部</a-select-option>
<a-select-option value="白云">白云</a-select-option>
<a-select-option value="海珠">海珠</a-select-option>
<a-select-option value="荔湾">荔湾</a-select-option>
<a-select-option value="东山">东山</a-select-option>
<a-select-option value="花都">花都</a-select-option>
<a-select-option value="天河">天河</a-select-option>
<a-select-option value="黄埔">黄埔</a-select-option>
<a-select-option value="番禺">番禺</a-select-option>
<a-select-option value="增城">增城</a-select-option>
<a-select-option value="从化">从化</a-select-option>
<a-select-option value="南沙">南沙</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col :md="4" :sm="12" style="height:35px">
<a-form-item label="客户姓名:">
<a-input placeholder="客户姓名" v-model="queryParam.customerName"></a-input>
</a-form-item>
</a-col>
<a-col :md="4" :sm="12" style="height:35px">
<a-form-item label="办理号码:">
<a-input placeholder="办理号码" v-model="queryParam.businessNumber"></a-input>
</a-form-item>
</a-col>
<a-col :md="4" :sm="12" style="height:35px">
<a-form-item label="联系号码:">
<a-input placeholder="联系号码" v-model="queryParam.contactNumber"></a-input>
</a-form-item>
</a-col>
<a-col :md="4" :sm="12" style="height:35px">
<a-form-item label="合伙人姓名:">
<a-input placeholder="合伙人姓名" v-model="queryParam.hehuorenName"></a-input>
</a-form-item>
</a-col>
<a-col :md="4" :sm="12" style="height:35px">
<a-form-item label="合伙人学校:">
<a-input placeholder="合伙人学校" v-model="queryParam.hehuorenSchool"></a-input>
</a-form-item>
</a-col>
<a-col :md="3" :sm="6" style="height:35px">
<a-form-item label="状态:">
<a-select v-model="queryParam.orderStatus">
<a-select-option value="">请选择</a-select-option>
<a-select-option value="待处理">待处理</a-select-option>
<a-select-option value="待选号">待选号</a-select-option>
<a-select-option value="待识别">待识别</a-select-option>
<a-select-option value="待活体">待活体</a-select-option>
<a-select-option value="审核中">审核中</a-select-option>
<a-select-option value="待审核">待配送</a-select-option>
<a-select-option value="待审核">待审核</a-select-option>
<a-select-option value="待受理">待受理</a-select-option>
<a-select-option value="已发货">已发货</a-select-option>
<a-select-option value="已完成">已完成</a-select-option>
<a-select-option value="异常单">异常单</a-select-option>
<a-select-option value="待派奖">待派奖</a-select-option>
<a-select-option value="已派奖">已派奖</a-select-option>
<a-select-option value="重新下单">重新下单</a-select-option>
</a-select>
</a-form-item>
</a-col>
<div class="flex-container">
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<!-- 搜索区域 -->
<a-form layout="inline">
<a-row :gutter="24">
<a-col :md="6" :sm="12" style="height: 35px">
<a-form-item label="订单创建时间:">
<a-range-picker @change="onChange" format="YYYY-MM-DD HH:mm:ss" />
</a-form-item>
</a-col>
<a-col :md="6" :sm="12" style="height: 35px">
<a-form-item label="订单完成时间:">
<a-range-picker
@change="onSuccessChange"
format="YYYY-MM-DD HH:mm:ss"
/>
</a-form-item>
</a-col>
<a-col :md="4" :sm="6" style="height: 35px">
<a-form-item label="客户类型:">
<a-select v-model="queryParam.userType" style="width: 120px">
<a-select-option value="">全部客户</a-select-option>
<a-select-option value="3">融合办理</a-select-option>
<a-select-option value="5">单宽业务</a-select-option>
<a-select-option value="9">毕业生融合</a-select-option>
<!-- <a-select-option value="3">融合办理</a-select-option>-->
<a-select-option value="10">单宽进融</a-select-option>
<!-- <a-select-option value="5">单宽业务</a-select-option>-->
</a-select>
</a-form-item>
</a-col>
<a-col :md="3" :sm="6" style="float:right;height:35px">
<a-button @click="search()" type="primary">查询</a-button>
<a-button @click="handleSubmit" style="margin-left: 10px">导出</a-button>
</a-col>
</a-row>
</a-form>
</div>
<a-modal
title="置为异常单"
:visible="setAbnormal"
@ok="setAbnormalOk"
@cancel="setAbnormalCancel"
html-type="submit"
width="1024px"
>
<a-row :gutter="24" style="text-align: right">
<a-col :md="6" :sm="12">
<p>置为异常单原因:</p>
<a-col :md="4" :sm="12" style="height: 35px">
<a-form-item label="智能平台:">
<a-input
placeholder="智能平台"
v-model="queryParam.orderId"
></a-input>
</a-form-item>
</a-col>
<a-col :md="12" :sm="12">
<a-input type="hidden" placeholder="获取id" v-model="setAbnormalStr.orderId"></a-input>
<a-input placeholder="置为异常单原因" v-model="setAbnormalStr.errorMsg"></a-input>
<a-col :md="4" :sm="6" style="height: 35px">
<a-form-item label="县份:">
<a-select v-model="queryParam.hehuorenArea" style="width: 120px">
<a-select-option value="">请选择</a-select-option>
<a-select-option value="本部">本部</a-select-option>
<a-select-option value="白云">白云</a-select-option>
<a-select-option value="海珠">海珠</a-select-option>
<a-select-option value="荔湾">荔湾</a-select-option>
<a-select-option value="东山">东山</a-select-option>
<a-select-option value="花都">花都</a-select-option>
<a-select-option value="天河">天河</a-select-option>
<a-select-option value="黄埔">黄埔</a-select-option>
<a-select-option value="番禺">番禺</a-select-option>
<a-select-option value="增城">增城</a-select-option>
<a-select-option value="从化">从化</a-select-option>
<a-select-option value="南沙">南沙</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col :md="4" :sm="12" style="height: 35px">
<a-form-item label="客户姓名:">
<a-input
placeholder="客户姓名"
v-model="queryParam.customerName"
></a-input>
</a-form-item>
</a-col>
<a-col :md="4" :sm="12" style="height: 35px">
<a-form-item label="办理号码:">
<a-input
placeholder="办理号码"
v-model="queryParam.businessNumber"
></a-input>
</a-form-item>
</a-col>
<a-col :md="4" :sm="12" style="height: 35px">
<a-form-item label="联系号码:">
<a-input
placeholder="联系号码"
v-model="queryParam.contactNumber"
></a-input>
</a-form-item>
</a-col>
<a-col :md="4" :sm="12" style="height: 35px">
<a-form-item label="合伙人姓名:">
<a-input
placeholder="合伙人姓名"
v-model="queryParam.hehuorenName"
></a-input>
</a-form-item>
</a-col>
<a-col :md="4" :sm="12" style="height: 35px">
<a-form-item label="合伙人学校:">
<a-input
placeholder="合伙人学校"
v-model="queryParam.hehuorenSchool"
></a-input>
</a-form-item>
</a-col>
<a-col :md="3" :sm="6" style="height: 35px">
<a-form-item label="状态:">
<a-select v-model="queryParam.orderStatus">
<a-select-option value="">请选择</a-select-option>
<a-select-option value="待处理">待处理</a-select-option>
<a-select-option value="待选号">待选号</a-select-option>
<a-select-option value="待识别">待识别</a-select-option>
<a-select-option value="待活体">待活体</a-select-option>
<a-select-option value="审核中">审核中</a-select-option>
<a-select-option value="待审核">待配送</a-select-option>
<a-select-option value="待审核">待审核</a-select-option>
<a-select-option value="待受理">待受理</a-select-option>
<a-select-option value="已发货">已发货</a-select-option>
<a-select-option value="已完成">已完成</a-select-option>
<a-select-option value="异常单">异常单</a-select-option>
<a-select-option value="待派奖">待派奖</a-select-option>
<a-select-option value="已派奖">已派奖</a-select-option>
<a-select-option value="重新下单">重新下单</a-select-option>
</a-select>
</a-form-item>
</a-col>
</a-row>
</a-modal>
<!--列表-->
<s-table :columns="columns" :data="rowdata" bordered ref="table" size="small" class="flex-filling" :locale="emptyText">
<!--拦截器-->
<template slot="productLastUpdateTime" slot-scope="text">
{{ text | dayjs}}
</template>
<!--拦截器-->
<template slot="productCreateTime" slot-scope="text">
{{ text | dayjs}}
</template>
<template slot="text" slot-scope="text">
<p style="white-space: pre-line;">{{text}}</p>
</template>
<template slot="productState" slot-scope="text">
<span v-if="text=='1'">待提交</span>
<span v-if="text=='4'">归档</span>
<span v-if="text=='5'">作废</span>
<span v-if="text=='6'">待配送</span>
<span v-if="text=='7'">物流配送中</span>
<span v-if="text=='8'">配送成功</span>
<span v-if="text=='3'">受理成功</span>
<span v-if="text=='9'">已收费</span>
<span v-if="text=='10'">受理异常</span>
<span v-if="text=='2'">待受理</span>
<span v-if="text=='100'">未支付</span>
</template>
<template slot="operation" slot-scope="text, record">
<span>
<a @click="showDrawer(record)">查看</a>
<a-divider type="vertical"/>
<a @click="abnormal(record.id)">设为异常单</a>
</span>
</template>
</s-table>
<!----抽屉-->
<a-drawer width="640" placement="right" :closable="false" @close="onClose" :visible="visible">
<p :style="pStyle">基础信息</p>
<a-row>
<a-col :span="12">
<p>订单号:{{orderInfo.kdOrderId}}</p>
</a-col>
<a-col :span="12">
<p>下单时间:{{orderInfo.orderDate | dayjs}}</p>
</a-col>
</a-row>
<a-row>
<a-col :span="12">
<p v-if="orderInfo.status=='1'">订单状态:待提交</p>
<p v-if="orderInfo.status=='4'">订单状态:归档</p>
<p v-if="orderInfo.status=='5'">订单状态:作废</p>
<p v-if="orderInfo.status=='6'">订单状态:待配送</p>
<p v-if="orderInfo.status=='7'">订单状态:物流配送中</p>
<p v-if="orderInfo.status=='8'">订单状态:配送成功</p>
<p v-if="orderInfo.status=='3'">订单状态:受理成功</p>
<p v-if="orderInfo.status=='9'">订单状态:已收费</p>
<p v-if="orderInfo.status=='10'">订单状态:受理异常</p>
<p v-if="orderInfo.status=='2'">订单状态:待受理</p>
<p v-if="orderInfo.status=='100'">订单状态:未支付</p>
</a-col>
<a-col :span="12">
<p>产品名称:{{orderInfo.productName }}</p>
</a-col>
</a-row>
<a-row>
<a-col :span="12">
<p>套餐:{{orderInfo.orderSetMeal}}</p>
</a-col>
<a-col :span="12">
<p>产品价格:{{orderInfo.webOrderAmount}}</p>
</a-col>
</a-row>
<a-row>
<a-col :span="12">
<p>客户姓名:{{orderInfo.orderName}}</p>
</a-col>
<a-col :span="12">
<p>联系电话:{{orderInfo.orderPhone}}</p>
</a-col>
</a-row>
<a-row>
<a-col :span="12">
<p>身份证号:{{orderInfo.idCard}}</p>
</a-col>
<a-col :span="12">
<p>学生证号:{{orderInfo.orderCustomerStudentId}}</p>
</a-col>
</a-row>
<a-row>
<a-col :span="12">
<p>备注:{{orderInfo.orderCustomerRemarks}}</p>
</a-col>
</a-row>
<a-row>
<a-col :span="12">
<p>多媒体账号:{{orderInfo.orderCustomerAccount}}</p>
</a-col>
<a-col :span="12">
<p>多媒体密码:{{orderInfo.orderCustomerPwd}}</p>
</a-col>
</a-row>
<a-row>
<a-col :span="12">
<p>用户类别:{{orderInfo.orderCustomerType}}</p>
</a-col>
<a-col :span="12">
<p>县分:{{orderInfo.orderRegion}}</p>
</a-col>
</a-row>
<a-row>
<a-col :span="12">
<p>学校:{{orderInfo.orderUniversityName}}</p>
</a-col>
</a-row>
<a-divider />
<p :style="pStyle">数据信息</p>
<a-row>
<a-col :span="12">
<p>预留字段1:</p>
</a-col>
<a-col :span="12">
<p>融合受理时间:{{orderInfo.orderRf2 }}</p>
</a-col>
</a-row>
<a-divider />
<p :style="pStyle">业务信息</p>
<a-row>
<a-col :span="12">
<p>支付平台:{{orderInfo.ipay}}</p>
</a-col>
<a-col :span="12">
<p>支付方式:{{orderInfo.payType }}</p>
</a-col>
</a-row>
<a-row>
<a-col :span="12">
<p>支付时间:{{orderInfo.orderPaymentTime | dayjs}}</p>
</a-col>
<a-col :span="12">
<p>支付平台流水号:{{orderInfo.uptranseq}}</p>
</a-col>
</a-row>
<a-row>
<a-col :span="12">
<p>智能平台订单号:{{orderInfo.orderSeqThd}}</p>
</a-col>
<a-col :span="12">
<p>穗易付订单号 :{{orderInfo.orderReqtranSeq}}</p>
</a-col>
</a-row>
<a-row>
<a-col :span="12">
<p>接入商:{{orderInfo.customerId}}</p>
</a-col>
</a-row>
</a-drawer>
<a-col :md="3" :sm="6" style="float: right; height: 35px">
<a-button @click="search()" type="primary">查询</a-button>
<a-button @click="handleSubmit" style="margin-left: 10px"
>导出</a-button
>
</a-col>
</a-row>
</a-form>
</div>
<a-modal
title="置为异常单"
:visible="setAbnormal"
@ok="setAbnormalOk"
@cancel="setAbnormalCancel"
html-type="submit"
width="1024px"
>
<a-row :gutter="24" style="text-align: right">
<a-col :md="6" :sm="12">
<p>置为异常单原因:</p>
</a-col>
<a-col :md="12" :sm="12">
<a-input
type="hidden"
placeholder="获取id"
v-model="setAbnormalStr.orderId"
></a-input>
<a-input
placeholder="置为异常单原因"
v-model="setAbnormalStr.errorMsg"
></a-input>
</a-col>
</a-row>
</a-modal>
<!--列表-->
<s-table
:columns="columns"
:data="rowdata"
bordered
ref="table"
size="small"
class="flex-filling"
:locale="emptyText"
>
<!--拦截器-->
<template slot="productLastUpdateTime" slot-scope="text">
{{ text | dayjs }}
</template>
<!--拦截器-->
<template slot="productCreateTime" slot-scope="text">
{{ text | dayjs }}
</template>
<template slot="text" slot-scope="text">
<p style="white-space: pre-line">{{ text }}</p>
</template>
<template slot="productState" slot-scope="text">
<span v-if="text == '1'">待提交</span>
<span v-if="text == '4'">归档</span>
<span v-if="text == '5'">作废</span>
<span v-if="text == '6'">待配送</span>
<span v-if="text == '7'">物流配送中</span>
<span v-if="text == '8'">配送成功</span>
<span v-if="text == '3'">受理成功</span>
<span v-if="text == '9'">已收费</span>
<span v-if="text == '10'">受理异常</span>
<span v-if="text == '2'">待受理</span>
<span v-if="text == '100'">未支付</span>
</template>
<template slot="operation" slot-scope="text, record">
<span>
<a @click="showDrawer(record)">查看</a>
<a-divider type="vertical" />
<a @click="abnormal(record.id)">设为异常单</a>
<a-divider type="vertical" />
<a @click="editDrawer(record)">编辑</a>
</span>
</template>
</s-table>
<!----抽屉-->
<a-drawer
width="640"
placement="right"
:closable="false"
@close="onClose"
:visible="visible"
>
<p :style="pStyle">基础信息</p>
<a-row>
<a-col :span="12">
<p>订单号:{{ orderInfo.orderseq }}</p>
</a-col>
<a-col :span="12">
<p>下单时间:{{ orderInfo.orderdate | dayjs }}</p>
</a-col>
</a-row>
<a-row>
<a-col :span="12">
<p v-if="orderInfo.status == '1'">订单状态:待提交</p>
<p v-if="orderInfo.status == '4'">订单状态:归档</p>
<p v-if="orderInfo.status == '5'">订单状态:作废</p>
<p v-if="orderInfo.status == '6'">订单状态:待配送</p>
<p v-if="orderInfo.status == '7'">订单状态:物流配送中</p>
<p v-if="orderInfo.status == '8'">订单状态:配送成功</p>
<p v-if="orderInfo.status == '3'">订单状态:受理成功</p>
<p v-if="orderInfo.status == '9'">订单状态:已收费</p>
<p v-if="orderInfo.status == '10'">订单状态:受理异常</p>
<p v-if="orderInfo.status == '2'">订单状态:待受理</p>
<p v-if="orderInfo.status == '100'">订单状态:未支付</p>
</a-col>
<a-col :span="12">
<p>产品名称:{{ orderInfo.productname }}</p>
</a-col>
</a-row>
<a-row>
<a-col :span="12">
<p>套餐:{{ orderInfo.orderSetMeal }}</p>
</a-col>
<a-col :span="12">
<p>产品价格:{{ orderInfo.weborderamount }}</p>
</a-col>
</a-row>
<a-row>
<a-col :span="12">
<p>客户姓名:{{ orderInfo.ordername }}</p>
</a-col>
<a-col :span="12">
<p>联系电话:{{ orderInfo.orderphone }}</p>
</a-col>
</a-row>
<a-row>
<!-- 编辑 -->
<a-col :span="12" v-show="iCardShow">
<p>
身份证号:<a-input
:value="orderInfo.idCard"
:label="orderInfo.idCard"
v-model="orderInfo.idCard"
class="idCard"
ref="idCardValue"
/>
</p>
</a-col>
<a-col :span="12" v-show="iCardShow01">
<p>身份证号:{{ orderInfo.idCard }}</p>
</a-col>
<a-col :span="12">
<p>学生证号:{{ orderInfo.orderCustomerStudentId }}</p>
</a-col>
</a-row>
<a-row>
<a-col :span="12">
<p>备注:{{ orderInfo.orderCustomerRemarks }}</p>
</a-col>
</a-row>
<a-row>
<a-col :span="12">
<p>多媒体账号:{{ orderInfo.orderCustomerAccount }}</p>
</a-col>
<a-col :span="12">
<p>多媒体密码:{{ orderInfo.orderCustomerPwd }}</p>
</a-col>
</a-row>
<a-row>
<a-col :span="12">
<p>用户类别:{{ orderInfo.orderCustomerType }}</p>
</a-col>
<a-col :span="12">
<p>县分:{{ orderInfo.orderRegion }}</p>
</a-col>
</a-row>
<a-row>
<a-col :span="12">
<p>学校:{{ orderInfo.orderUniversityName }}</p>
</a-col>
<a-col :span="12" v-show="statusShow">
<p>
订单状态:
<a-select
@change="statusData"
class="statusData"
v-model="orderInfo.orderStatus"
default-value="orderInfo.orderStatus"
>
<a-select-option value="">请选择</a-select-option>
<a-select-option value="待处理">待处理</a-select-option>
<a-select-option value="待选号">待选号</a-select-option>
<a-select-option value="待识别">待识别</a-select-option>
<a-select-option value="待活体">待活体</a-select-option>
<a-select-option value="审核中">审核中</a-select-option>
<a-select-option value="待审核">待配送</a-select-option>
<a-select-option value="待审核">待审核</a-select-option>
<a-select-option value="待受理">待受理</a-select-option>
<a-select-option value="已发货">已发货</a-select-option>
<a-select-option value="已完成">已完成</a-select-option>
<a-select-option value="异常单">异常单</a-select-option>
<a-select-option value="待派奖">待派奖</a-select-option>
<a-select-option value="已派奖">已派奖</a-select-option>
<a-select-option value="未支付">未支付</a-select-option>
<a-select-option value="重新下单">重新下单</a-select-option>
</a-select>
</p>
</a-col>
</a-row>
<a-divider />
<p :style="pStyle">数据信息</p>
<a-row>
<a-col :span="12">
<p>备注:{{orderInfo.msg}}</p>
</a-col>
<a-col :span="12">
<p>预留字段2:{{ orderInfo.orderRf2 }}</p>
</a-col>
</a-row>
<a-divider />
<p :style="pStyle">业务信息</p>
<a-row>
<a-col :span="12">
<p>支付平台:{{ orderInfo.ipay }}</p>
</a-col>
<a-col :span="12">
<p>支付方式:{{ orderInfo.paytype }}</p>
</a-col>
</a-row>
<a-row>
<a-col :span="12">
<p>支付时间:{{ orderInfo.orderPaymentTime | dayjs }}</p>
</a-col>
<a-col :span="12">
<p>支付平台流水号:{{ orderInfo.uptranseq }}</p>
</a-col>
</a-row>
<a-row>
<a-col :span="12">
<p>智能平台订单号:{{ orderInfo.orderseqthd }}</p>
</a-col>
<a-col :span="12">
<p>穗易付订单号 :{{ orderInfo.orderreqtranseq }}</p>
</a-col>
</a-row>
<a-row>
<a-col :span="12">
<p>接入商:{{ orderInfo.customerid }}</p>
</a-col>
</a-row>
<a-row>
<a-col :span="12">
<a-button type="primary" v-show="iCardShow" @click="editBtn">
确定
</a-button>
</a-col>
</a-row>
</a-drawer>
</div>
</template>
<script>
import STable from '@/components/table';
import {orderViewList,download} from "@/api/school-center/productAPI"
import {
abnormal,
broadBandList,
} from "../../../api/school-center/orderAPI";
import {cloneObject,exportFile} from '@/utils/util';
import moment from 'moment';
export default {
name: "orderView",
components: {
STable,
import STable from "@/components/table";
import { orderViewList, download } from "@/api/school-center/productAPI";
import {
abnormal,
broadBandList,
editOrder,
} from "../../../api/school-center/orderAPI";
import { cloneObject, exportFile } from "@/utils/util";
import moment from "moment";
export default {
name: "orderView",
components: {
STable,
},
data() {
return {
emptyText: { emptyText: "暂无数据" },
callback: false,
Formtable: this.$form.createForm(this),
visible: false,
setAbnormal: false,
statusShow: false,
iCardShow: false,
iCardShow01: false,
setAbnormalStr: {
orderId: "",
errorMsg: "",
},
pStyle: {
fontSize: "16px",
color: "rgba(0,0,0,0.85)",
lineHeight: "24px",
display: "block",
marginBottom: "16px",
},
pStyle2: {
marginBottom: "24px",
},
queryParam: {
startTime: "",
endTime: "",
orderseq: "",
orderUniversityName: "",
status: "",
ordername: "",
hehuorenArea: "",
orderStatus: "",
userType: "",
idCard: "",
},
editValue:{
idCard: "",
},
orderInfo: {},
columns: [
{ dataIndex: "orderId", width: 200, title: "智能平台" }, //dataIndex:列数据在数据项中对应的 key,支持 a.b.c 的嵌套写法
{ dataIndex: "customerName", width: 100, title: "客户名称" },
{ dataIndex: "contactNumber", width: 120, title: "联系电话" },
{ dataIndex: "orderSetMeal", width: 120, title: "办理套餐" },
{ dataIndex: "orderStatus", width: 80, title: "订单状态" },
{ dataIndex: "orderNumber", width: 200, title: "订单编号" },
{ dataIndex: "orderUniversityName", width: 200, title: "客户学校" },
{ dataIndex: "orderRegion", width: 100, title: "客户县分" },
{
dataIndex: "ipay",
width: 100,
title: "支付平台",
customRender: function (text, record, index) {
if (text == 0) {
return "翼支付网厅";
} else if (text == 1) {
return "支付宝";
} else if (text == 3) {
return "微信";
} else {
return "";
}
},
},
data(){
return {
emptyText: {emptyText: '暂无数据'},
callback:false,
Formtable: this.$form.createForm(this),
visible: false,
setAbnormal:false,
setAbnormalStr: {
orderId:"",
errorMsg: "",
},
pStyle: {
fontSize: '16px',
color: 'rgba(0,0,0,0.85)',
lineHeight: '24px',
display: 'block',
marginBottom: '16px',
},
pStyle2: {
marginBottom: '24px',
},
queryParam: {
startTime :'',
endTime :'',
orderseq :'',
orderUniversityName :'',
status :'',
ordername :'',
hehuorenArea: '',
orderStatus:'',
userType:''
},
orderInfo:{},
columns: [
{dataIndex: 'orderId', width: 200, title: '智能平台'},
{dataIndex: 'customerName', width: 100, title: '客户名称'},
{dataIndex: 'contactNumber', width: 120, title: '联系电话'},
{dataIndex: 'orderSetMeal', width: 120, title: '办理套餐'},
{dataIndex: 'orderStatus', width: 80, title: '订单状态'},
{dataIndex: 'orderNumber', width: 200, title: '订单编号'},
{dataIndex: 'orderUniversityName', width: 200, title: '客户学校'},
{dataIndex: 'orderRegion', width: 100, title: '客户县分'},
{dataIndex: 'ipay', width: 100, title: '支付平台',
customRender: function(text, record, index) {
if (text == 0) {
return "翼支付网厅";
}else if (text == 1) {
return "支付宝";
}else if(text == 2) {
return "微信";
}else {
return "";
}
}
},
{dataIndex: 'orderReqtranSeq', width: 240, title: '穗易付订单号'},
{dataIndex: 'uptranseq', width: 240, title: '支付平台流水号'},
{dataIndex: 'orderDate', width: 200, title: '创建时间',
customRender: function(text, record, index) {
if (text == null) {
return "";
}
return moment(text).format("YYYY-MM-DD HH:mm:ss");
}
},
/* {dataIndex: 'productIntroduction', width: 200, title: '产品情况 ', scopedSlots: {customRender: 'text'}},
{dataIndex: 'productSetMealIntroduction', width: 200, title: '资费介绍 ', scopedSlots: {customRender: 'text'}},*/
{
dataIndex: 'operation',
width: 140,
title: '操作',
scopedSlots: {customRender: 'operation'},
fixed: "right"
}]
,
rowdata: parameter => {
let params = {
pageNo: parameter.pageNo,
pageSize: parameter.pageSize
}
let obj = cloneObject(this.queryParam)
//表示
return broadBandList(Object.assign(params,obj)).then(res => {
let data = {}
console.log(res);
if (res.state !== 'success') {
this.$message.error("查询失败!", 5);
this.emptyText.emptyText = '查询失败!'
data = {
data: [],
pageSize: parameter.pageSize,
pageNo: 1,
totalCount: 0
}
} else {
data = {
data: res.data.records,
pageSize: parameter.pageSize,
pageNo: parameter.pageNo,
totalCount: res.data.total
}
}
console.log(data);
return data
})
}
{ dataIndex: "orderReqtranSeq", width: 240, title: "穗易付订单号" },
{ dataIndex: "uptranseq", width: 240, title: "支付平台流水号" },
{
dataIndex: "orderDate",
width: 200,
title: "创建时间",
customRender: function (text, record, index) {
//text:当前行的值,record: 当前行的数据, index:索引
if (text == null) {
return "";
}
return moment(text).format("YYYY-MM-DD HH:mm:ss");
},
},
methods:{
moment,
search() {
this.$refs.table.refresh({search: true})
},
onClose() {
this.orderInfo={
kdOrderId: '',
orderSeq:'',
productName:'',
orderSetMeal:'',
orderUniversityName:'',
orderName:'',
orderDate:'',
status:'',
orderRegion:'',
ipay:'',
payType:'',
idCard: '',
weborderamount:'',
orderPaymentTime:'',
orderReqtranSeq:'',
customerId:'',
orderPhone:'',
orderNumber:'',
orderCustomerType:'',
orderCustomerStudentId:'',
orderCustomerRemarks:'',
orderCustomerAccount:'',
orderCustomerPwd:'',
uptranseq:'',
expenses:'',
orderseqThd:'',
orderRf2:''
}
this.visible = false;
},
showDrawer(data){
this.orderInfo={
kdOrderId: data.kdOrderId,
orderSeq:data.orderSeq,
productName:data.productName,
orderSetMeal:data.orderSetMeal,
orderUniversityName:data.orderUniversityName,
orderName:data.orderName,
orderDate:data.orderDate,
status:data.status,
orderRegion:data.orderRegion,
ipay:data.ipay,
payType:data.payType,
idCard: data.idCard,
webOrderAmount:data.webOrderAmount,
orderPaymentTime:data.orderPaymentTime,
orderReqtranSeq:data.orderReqtranSeq,
customerId:data.customerId,
orderPhone:data.orderPhone,
orderNumber:data.orderNumber,
orderCustomerType:data.orderCustomerType,
orderCustomerStudentId:data.orderCustomerStudentId,
orderCustomerRemarks:data.orderCustomerRemarks,
orderCustomerAccount:data.orderCustomerAccount,
orderCustomerPwd:data.orderCustomerPwd,
uptranseq:data.uptranseq,
expenses:data.expenses,
orderseqThd:data.orderseqThd,
orderRf2:data.orderRf2
}
this.visible=true;
},
//时间事件
onChange(date, dateString) {
if (dateString.length == 0) {
this.queryParam.createTimeStart = "";
this.queryParam.createTimeEnd = "";
} else {
this.queryParam.createTimeStart = dateString[0];
this.queryParam.createTimeEnd = dateString[1];
}
},
onSuccessChange(date, dateString) {
if (dateString.length == 0) {
this.queryParam.successTimeStart = "";
this.queryParam.successTimeEnd = "";
} else {
this.queryParam.successTimeStart = dateString[0];
this.queryParam.successTimeEnd = dateString[1];
}
},
handleSubmit() {
let downqueryParam=this.queryParam
let nowdate = moment().format('YYYY-MM-DD');
this.callback=true;
exportFile(download(downqueryParam), "宽带订单清单" + nowdate + ".xls",this.downloadstatu);
},
downloadstatu(){
this.callback=false;
},
abnormal(orderId) {
this.setAbnormal = true;
this.setAbnormalStr.orderId = orderId;
},
setAbnormalOk(){
if(this.setAbnormalStr.errorMsg.length<3){
this.$notification.error({
message: "请输入不小于三个字的操作结果",
description: "",
duration: 4
});
}else{
let setAbnormalStr = this.setAbnormalStr;
abnormal(setAbnormalStr).then(res => {
if (res.state == "success") {
this.search();
this.$message.success(res.data, 5);
} else {
this.$message.error(res.msg, 5);
}
this.setAbnormalClear();
});
}
},
setAbnormalCancel(){
this.setAbnormalClear();
},
setAbnormalClear(){
this.setAbnormalStr.orderId = "";
this.setAbnormalStr.errorMsg = "";
this.setAbnormal = false;
},
}
}
/* {dataIndex: 'productIntroduction', width: 200, title: '产品情况 ', scopedSlots: {customRender: 'text'}},
{dataIndex: 'productSetMealIntroduction', width: 200, title: '资费介绍 ', scopedSlots: {customRender: 'text'}},*/
{
dataIndex: "operation",
width: 180,
title: "操作",
scopedSlots: { customRender: "operation" },
fixed: "right",
},
],
rowdata: (parameter) => {
let params = {
pageNo: parameter.pageNo,
pageSize: parameter.pageSize,
};
let obj = cloneObject(this.queryParam);
//表示
return broadBandList(Object.assign(params, obj)).then((res) => {
let data = {};
if (res.state !== "success") {
this.$message.error("查询失败!", 5);
this.emptyText.emptyText = "查询失败!";
data = {
data: [],
pageSize: parameter.pageSize,
pageNo: 1,
totalCount: 0,
};
} else {
data = {
data: res.data.records,
pageSize: parameter.pageSize,
pageNo: parameter.pageNo,
totalCount: res.data.total,
};
}
return data;
});
},
};
},
methods: {
// 编辑下拉
statusData(value) {
this.orderInfo.orderStatus = value;
},
editBtn(){
editOrder({
id: this.orderInfo.id,
idCard: this.orderInfo.idCard,
orderStatus: this.orderInfo.orderStatus,
}).then((res) => {
if (res.state == "success") {
this.$message.success(res.data ? res.data : "修改成功!", 5);
this.search();
return null;
}
this.$message.error(res.data ? res.data : "修改失败!", 5);
});
this.visible = false;
},
moment,
search() {
this.$refs.table.refresh({ search: true });
},
onClose() {
this.orderInfo = {
orderseq: "",
productname: "",
orderSetMeal: "",
orderUniversityName: "",
ordername: "",
orderdate: "",
status: "",
orderRegion: "",
ipay: "",
paytype: "",
weborderamount: "",
orderPaymentTime: "",
orderreqtranseq: "",
customerid: "",
orderphone: "",
ordernumber: "",
orderCustomerType: "",
orderCustomerStudentId: "",
orderCustomerRemarks: "",
orderCustomerAccount: "",
orderCustomerPwd: "",
uptranseq: "",
expenses: "",
orderseqthd: "",
orderRf2: "",
orderStatus: "", //订单状态
id: "",
idCard: "",
msg: ""
};
this.visible = false;
},
showDrawer(data) {
this.iCardShow01 = true;
this.iCardShow = false;
this.statusShow = false;
this.search();
this.orderInfo = {
orderseq: data.orderseq,
productname: data.productname,
orderSetMeal: data.orderSetMeal,
orderUniversityName: data.orderUniversityName,
ordername: data.ordername,
orderdate: data.orderdate,
status: data.status,
orderRegion: data.orderRegion,
ipay: data.ipay,
paytype: data.paytype,
weborderamount: data.weborderamount,
orderPaymentTime: data.orderPaymentTime,
orderreqtranseq: data.orderreqtranseq,
customerid: data.customerid,
orderphone: data.orderphone,
ordernumber: data.ordernumber,
orderCustomerType: data.orderCustomerType,
orderCustomerStudentId: data.orderCustomerStudentId,
orderCustomerRemarks: data.orderCustomerRemarks,
orderCustomerAccount: data.orderCustomerAccount,
orderCustomerPwd: data.orderCustomerPwd,
uptranseq: data.uptranseq,
expenses: data.expenses,
orderseqthd: data.orderseqthd,
orderRf2: data.orderRf2,
orderStatus: data.orderStatus, //订单状态
id: data.id,
idCard: data.idCard,
msg: data.msg
};
this.visible = true;
},
// 编辑
editDrawer(data) {
this.iCardShow = true;
this.iCardShow01 = false;
this.statusShow = true;
this.orderInfo = {
orderseq: data.orderseq,
productname: data.productname,
orderSetMeal: data.orderSetMeal,
orderUniversityName: data.orderUniversityName,
ordername: data.ordername,
orderdate: data.orderdate,
status: data.status,
orderRegion: data.orderRegion,
ipay: data.ipay,
paytype: data.paytype,
weborderamount: data.weborderamount,
orderPaymentTime: data.orderPaymentTime,
orderreqtranseq: data.orderreqtranseq,
customerid: data.customerid,
orderphone: data.orderphone,
ordernumber: data.ordernumber,
orderCustomerType: data.orderCustomerType,
orderCustomerStudentId: data.orderCustomerStudentId,
orderCustomerRemarks: data.orderCustomerRemarks,
orderCustomerAccount: data.orderCustomerAccount,
orderCustomerPwd: data.orderCustomerPwd,
uptranseq: data.uptranseq,
expenses: data.expenses,
orderseqthd: data.orderseqthd,
orderRf2: data.orderRf2,
orderStatus: data.orderStatus,
id: data.id,
idCard: data.idCard,
};
this.visible = true;
},
//时间事件
onChange(date, dateString) {
if (dateString.length == 0) {
this.queryParam.createTimeStart = "";
this.queryParam.createTimeEnd = "";
} else {
this.queryParam.createTimeStart = dateString[0];
this.queryParam.createTimeEnd = dateString[1];
}
},
onSuccessChange(date, dateString) {
if (dateString.length == 0) {
this.queryParam.successTimeStart = "";
this.queryParam.successTimeEnd = "";
} else {
this.queryParam.successTimeStart = dateString[0];
this.queryParam.successTimeEnd = dateString[1];
}
},
handleSubmit() {
let downqueryParam = this.queryParam;
let nowdate = moment().format("YYYY-MM-DD");
this.callback = true;
exportFile(
download(downqueryParam),
"宽带订单清单" + nowdate + ".xls",
this.downloadstatu
);
},
downloadstatu() {
this.callback = false;
},
abnormal(orderId) {
this.setAbnormal = true;
this.setAbnormalStr.orderId = orderId;
},
setAbnormalOk() {
if (this.setAbnormalStr.errorMsg.length < 3) {
this.$notification.error({
message: "请输入不小于三个字的操作结果",
description: "",
duration: 4,
});
} else {
let setAbnormalStr = this.setAbnormalStr;
abnormal(setAbnormalStr).then((res) => {
if (res.state == "success") {
this.search();
this.$message.success(res.data, 5);
} else {
this.$message.error(res.msg, 5);
}
this.setAbnormalClear();
});
}
},
setAbnormalCancel() {
this.setAbnormalClear();
},
setAbnormalClear() {
this.setAbnormalStr.orderId = "";
this.setAbnormalStr.errorMsg = "";
this.setAbnormal = false;
},
},
};
</script>
<style scoped>
.statusData {
width: 100px !important;
}
</style>
\ No newline at end of file
......@@ -170,8 +170,8 @@
fileListxiaotu:[],
fileid:{},
brackgroundurl:"manager/ciop/packageManagement/package/backgroundUpload",
xiaotuurl:"manager/ciop/packageManagement/package/xiaotuUpload",
brackgroundurl:"app/ciop/packageManagement/package/backgroundUpload",
xiaotuurl:"app/ciop/packageManagement/package/xiaotuUpload",
Formtable: this.$form.createForm(this, {name: 'Formtable'}),
//输入框列表
autoCompleteResult:[],
......@@ -345,7 +345,7 @@
this.fileid={
id:data.id
}
let url=this.baseuploadUrl()+"manager/ciop"+data.advImg.replace("enclosure","ciop")
let url=this.baseuploadUrl()+"app/ciop"+data.advImg.replace("enclosure","ciop")
if (!(data.advImg == null || data.advImg=="")) {
//下载图片浏览
this.fileList.push({
......@@ -358,7 +358,7 @@
//下载图片浏览
if (!(data.logo == null || data.logo == "")) {
let xiaotuurl = this.baseuploadUrl() +"manager/ciop"+ data.logo.replace("enclosure","ciop")
let xiaotuurl = this.baseuploadUrl() +"app/ciop"+ data.logo.replace("enclosure","ciop")
this.fileListxiaotu.push({
uid: this.getuuid(),
name: '找不到图片',
......
......@@ -146,6 +146,14 @@
</a-tree-select>
</template>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="随身厅终端编码">
<a-input placeholder="随身厅终端编码" v-decorator="[ 'appId' ]"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="随身厅终端密匙">
<a-input placeholder="随身厅终端密匙" v-decorator="[ 'appKey' ]"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="客服二维码">
<a-upload
ref="upload"
......@@ -212,7 +220,7 @@
"Authorization":Vue.ls.get(ACCESS_TOKEN)
},
fileid:{},
brackgroundurl:"manager/ciop/school/schoolManagement/qrcodeUpload",
brackgroundurl:"app/ciop/school/schoolManagement/qrcodeUpload",
// form
Formtable: this.$form.createForm(this, {name: 'Formtable'}),
titleName:"",
......@@ -239,6 +247,8 @@
endDateStr: "",
startDate: "",
endDate: "",
appKey: "",
appId: ""
},
treeData: [
{
......@@ -257,8 +267,8 @@
key: 'tcsj',
children: [{
title: '手机卡套餐升级',
value: 'sjktcsj',
key: 'sjktcsj',
value: 'status',
key: 'status',
},{
title: '毕业生宽带优惠',
value: 'bysrh',
......@@ -302,8 +312,8 @@
]
},{
title: '优惠购机',
value: 'isShowyhgj',
key: 'isShowyhgj',
value: 'yhgj',
key: 'yhgj',
}
],
},
......@@ -348,8 +358,6 @@
},
modifyvisible: false,
columns: [
{dataIndex: 'networkCode', width: 200, title: '网点编码', align: "center"},
{dataIndex: 'networkName', width: 200, title: '网点名称', align: "center"},
{dataIndex: 'subName', width: 100, title: '县分', align: "center"},
{dataIndex: 'schoolName', width: 200, title: '学校名称', align: "center"},
{
......@@ -359,24 +367,6 @@
scopedSlots: {customRender: 'statusDefault'},
align: "center"
},
{dataIndex: 'startDate', width: 200, title: '开学时间', align: "center",
customRender: (text, row, index) => {
if (text == null) {
return "";
}
return moment(text).format("YYYY-MM-DD");
}
},
{dataIndex: 'endDate', width: 200, title: '结束时间', align: "center",
customRender: (text, row, index) => {
if (text == null) {
return "";
}
return moment(text).format("YYYY-MM-DD");
}
},
{dataIndex: 'greaterFifty', width: 80, title: '大于50元激励', align: "center"},
{dataIndex: 'greaterHundred', width: 90, title: '大于100元激励', align: "center"},
{
dataIndex: 'operation',
width: 200,
......@@ -394,6 +384,7 @@
//表示
let obj = cloneObject(this.queryParam)
return findByList(Object.assign(params, obj)).then(res => {
console.log(res);
let data = {};
if (res.state !== 'success') {
this.emptyText.emptyText = '查询失败!'
......@@ -532,6 +523,8 @@
this.modifyForm.startDate = "";
this.modifyForm.endDate = "";
this.modifyForm.buttons = [];
this.modifyForm.appKey = "";
this.modifyForm.appId = "";
setTimeout(()=>{
this.Formtable.setFieldsValue({
networkCode: '',
......@@ -567,9 +560,9 @@
let url= "";
console.log(data);
if (data.serviceQrcode != undefined) {
url = this.baseuploadUrl()+"manager/ciop"+data.serviceQrcode.replace("enclosure", "");
url = this.baseuploadUrl()+"app/ciop"+data.serviceQrcode.replace("enclosure", "");
}else{
url = this.baseuploadUrl()+"manager/";
url = this.baseuploadUrl()+"app/";
}
if (!(data.serviceQrcode == null || data.serviceQrcode=="")) {
......@@ -642,8 +635,8 @@
if (data.tcsj == 1) {
buttons.push({label: "套餐升级", value: "tcsj"});
}
if (data.sjktcsj == 1) {
buttons.push({label: "手机卡套餐升级", value: "sjktcsj"});
if (data.status == 1) {
buttons.push({label: "手机卡套餐升级", value: "status"});
}
if (data.bysrh == 1) {
buttons.push({label: "毕业生宽带优惠", value: "bysrh"});
......@@ -660,8 +653,8 @@
if (data.jiltKdy == 1) {
buttons.push({label: "是否甩单", value: "jiltKdy"});
}
if (data.isShowyhgj == 1) {
buttons.push({label: "优惠购机", value: "isShowyhgj"});
if (data.yhgj == 1) {
buttons.push({label: "优惠购机", value: "yhgj"});
}
if (data.udBtn == 1) {
buttons.push({label: "线上线下", value: "udBtn"});
......@@ -682,7 +675,8 @@
networkCode: data.networkCode,
greaterFifty: data.greaterFifty,
greaterHundred: data.greaterHundred,
appKey: data.appKey,
appId: data.appId,
})
},50)
this.customimg="./img/custom"+data.serviceQrcode
......@@ -690,7 +684,7 @@
},
//提交表单
createfunctionOk(){
this.Formtable.validateFields(['networkCode','networkName','schoolName', 'bandproductId',"subName","lzgh", 'netId',"isShowband", 'isShowrh',"netPhone" ,'isRecv','greaterFifty','greaterHundred'], {force: true}, (err, values)=>{
this.Formtable.validateFields(['networkCode','networkName','schoolName', 'bandproductId',"subName","lzgh", 'netId',"isShowband", 'isShowrh',"netPhone" ,'isRecv','greaterFifty','greaterHundred', 'appId', 'appKey'], {force: true}, (err, values)=>{
if (!err){
this.modifyForm.networkCode = values.networkCode
this.modifyForm.networkName = values.networkName == undefined ? "" : values.networkName
......@@ -702,6 +696,10 @@
this.modifyForm.chosePages = ""
this.modifyForm.startDateStr = this.modifyForm.startDate;
this.modifyForm.endDateStr = this.modifyForm.endDate;
this.modifyForm.appId = values.appId;
this.modifyForm.appKey = values.appKey;
// 日期类型不传入后端
Vue.delete(this.modifyForm,'startDate');
Vue.delete(this.modifyForm,'endDate');
......
......@@ -263,7 +263,8 @@
{dataIndex: 'studentCardUrl', width: 180, title: '学生证封面照片', scopedSlots: {customRender: "studentCardUrl"}},
{dataIndex: 'otherImgUrl1', width: 180, title: '学生证内页照片', scopedSlots: {customRender: "otherImgUrl1"}},
{dataIndex: 'otherImgUrl2', width: 180, title: '身份证照片', scopedSlots: {customRender: "otherImgUrl2"}},
{dataIndex: 'otherImgUrl3', width: 180, title: '补充照片', scopedSlots: {customRender: "otherImgUrl3"}},
{dataIndex: 'otherImgUrl3', width: 180, title: '补充照片', scopedSlots: {customRender: "otherImgUrl3"}
},
/*{dataIndex: 'county', width: 80, title: '县分'},
{dataIndex: 'school', width: 120, title: '学校'},
......@@ -400,9 +401,17 @@
this.visiblepicture = false;
},
imgClick(res) {
this.imgInfo = this.apis + res
this.imgInfo = this.baseuploadUrl() + res
this.visiblepicture = true
},
baseuploadUrl(){
const env = process.env.NODE_ENV; //获取当前环境
let apis = "/";
if(env === 'development'){ //测试环境默认添加前缀
apis = '/api/';
}
return apis
},
excelOut() {
let obj = cloneObject(this.queryParam)
let nowdate = moment().format("YYYY-MM-DD");
......
......@@ -387,6 +387,7 @@
xzUserList:[],
addSubName:'',
columns: [
{dataIndex: 'id', width:100, title: '合伙人id', align: 'center'},
{dataIndex: 'name', width: 100, title: '姓名 ', align: "center"},
{dataIndex: 'phone', width: 200, title: '电话', align: "center"},
{dataIndex: 'school', width: 200, title: '学校 ', align: "center"},
......
<template>
<!--搜索区域-->
<a-col :md="24" :sm="24" :order="1" class="flex-container-nowidth">
<div class="table-page-search-wrapper">
<a-form layout="inline">
<a-row :gutter="48">
<a-col :md="6" :sm="24">
<a-form-item label="应用名称">
<a-input v-model="queryParams.appName" placeholder="请输入" />
</a-form-item>
</a-col>
<a-col :md="6" :sm="24">
<a-button type="primary" icon="search" @click="reflashTable" >搜索</a-button>
<a-button style="margin-left: 8px" type="primary" icon="plus" @click="handleAdd">添加</a-button>
</a-col>
</a-row>
</a-form>
</div>
<s-table
ref="table"
size="small"
class="flex-filling"
style="word-break: break-all;"
bordered
:columns="columns"
:data="rowdata"
>
<template slot="createtime" slot-scope="text" >
{{ text | dayjs}}
</template>
<template slot="updatetime" slot-scope="text" >
{{ text | dayjs}}
</template>
<template slot="roleName" slot-scope="text, record">
<a-tooltip placement="left">
<template slot="title">
{{text}}
</template>
<div style="width: 180px; overflow:hidden;text-overflow:ellipsis; white-space: nowrap;" >
{{text}}
</div>
</a-tooltip>
</template>
<template slot="operation" slot-scope="text, record" v-if="record.status != 3">
<span>
<a @click="toggle(record.id)">修改</a>
</span>
</template>
</s-table>
<!-- 添加 -->
<a-modal title="添加应用配置" v-model="add_config" @ok="handleOk" destroyOnClose="true">
<a-form>
<a-form-item label="应用名称" >
<a-input placeholder="请输入应用名称" v-model="modelData.appName"></a-input>
</a-form-item>
<a-form-item label="应用id" >
<a-input placeholder="请输入应用id" v-model="modelData.appId"></a-input>
</a-form-item>
<a-form-item label="应用密匙" >
<a-input placeholder="请输入应用密匙" v-model="modelData.appSecret"></a-input>
</a-form-item>
</a-form>
</a-modal>
<!-- 修改 -->
<a-modal title="编辑应用配置" v-model="visible" @ok="handleUpdata">
<a-form>
<a-form-item label="应用名称" >
<a-input placeholder="请输入应用名称" v-model="showModals.appName"></a-input>
</a-form-item>
<a-form-item label="应用id" >
<a-input placeholder="请输入应用id" v-model="showModals.appId"></a-input>
</a-form-item>
<a-form-item label="应用密匙" >
<a-input placeholder="请输入应用密匙" v-model="showModals.appSecret"></a-input>
</a-form-item>
</a-form>
</a-modal>
</a-col>
</template>
<script>
import STable from '@/components/table'
import AInput from 'ant-design-vue/es/input/Input'
import treeList from '@/components/sysmanage/treeList'
import treecheck from '@/components/sysmanage/treeCheck'
import JDate from '@/components/jeecg/JDate'
import {
getList,
getInfo,
add,
update
} from '@/api/appConfig'
export default {
name:"systemUser",
components: {
STable,
AInput,
treeList,
treecheck,
JDate
},
data() {
return {
columns: [
{ dataIndex: 'appName',width:150,fixed: 'left',sort: true, title: '应用名称', },
{ dataIndex: 'appId',width:100,fixed: 'left', sort: true, title: '应用id', },
{ dataIndex: 'appSecret',width:200,fixed: 'left', sort: true, title: '应用密匙'},
{ dataIndex: 'createTime',width:150, sort: true, title: '创建时间', scopedSlots: { customRender: 'createtime' } },
{ dataIndex: 'createBy',width:150, sort: true, title: '创建人' },
{ dataIndex: 'updateTime',width:150, sort: true, title: '更新时间', scopedSlots: { customRender: 'updatetime' }},
{ dataIndex: 'updateBy',width:100, sort: true, title: '更新人', },
{
dataIndex: 'center',
toolbar: '#tableBar',
title: '操作',
width: 200,
fixed: 'right',
scopedSlots: { customRender: 'operation' }
}
],
//查询条件
queryParams: {
appName: '',
},
modelData: {
id: '',
appName: '',
appId: '',
appSecret: '',
},
showModals: {
id: '',
appName: '',
appId: '',
appSecret: '',
},
rowdata: parameter => {
let params = {
pageNo: parameter.pageNo,
pageSize: parameter.pageSize
}
let obj = this.queryParams
return getList(Object.assign(params, obj)).then(res => {
let data = {
data: res.data.records,
pageSize: parameter.pageSize,
pageNo: parameter.pageNo,
totalCount: res.total
}
return data
})
},
add_config: false,
visible: false,
}
},
methods: {
reflashTable() {
this.$refs.table.refresh({ search: true })
},
//清除新增弹窗
clearModelData(){
this.modelData.id = '';
this.modelData.appName = '';
this.modelData.appId = '';
this.modelData.appSecret = '';
},
// 添加应用配置
handleAdd: function() {
this.add_config = true
this.clearModelData()
},
handleOk() {
let that = this
this.add_config = false
add(that.modelData).then(() => {
that.clearModelData();
that.$refs.table.refresh({ search: true })
})
},
// 修改
toggle(id) {
let that = this;
that.visible = true;
getInfo({id}).then(res =>{
let appConfig = res.data;
that.showModals.id = appConfig.id
that.showModals.appName = appConfig.appName;
that.showModals.appId = appConfig.appId;
that.showModals.appSecret = appConfig.appSecret;
})
},
handleUpdata() {
this.visible = false
let that = this
update(that.showModals).then(() => {
that.showModals.id = ''
that.showModals.appName = ''
that.showModals.appId = ''
that.showModals.appSecret = ''
that.$refs.table.refresh({ search: true })
})
},
}
}
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment