Commit 25b545ac by huangchunlan

宽带订单

parent c976fc7a
...@@ -5,17 +5,20 @@ ...@@ -5,17 +5,20 @@
<!-- 搜索区域 --> <!-- 搜索区域 -->
<a-form layout="inline"> <a-form layout="inline">
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :md="6" :sm="12" style="height:35px"> <a-col :md="6" :sm="12" style="height: 35px">
<a-form-item label="订单创建时间:"> <a-form-item label="订单创建时间:">
<a-range-picker @change="onChange" format="YYYY-MM-DD HH:mm:ss"/> <a-range-picker @change="onChange" format="YYYY-MM-DD HH:mm:ss" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="6" :sm="12" style="height:35px"> <a-col :md="6" :sm="12" style="height: 35px">
<a-form-item label="订单完成时间:"> <a-form-item label="订单完成时间:">
<a-range-picker @change="onSuccessChange" format="YYYY-MM-DD HH:mm:ss"/> <a-range-picker
@change="onSuccessChange"
format="YYYY-MM-DD HH:mm:ss"
/>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="4" :sm="6" style="height:35px"> <a-col :md="4" :sm="6" style="height: 35px">
<a-form-item label="客户类型:"> <a-form-item label="客户类型:">
<a-select v-model="queryParam.userType" style="width: 120px"> <a-select v-model="queryParam.userType" style="width: 120px">
<a-select-option value="">全部客户</a-select-option> <a-select-option value="">全部客户</a-select-option>
...@@ -29,12 +32,15 @@ ...@@ -29,12 +32,15 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="4" :sm="12" style="height:35px"> <a-col :md="4" :sm="12" style="height: 35px">
<a-form-item label="智能平台:"> <a-form-item label="智能平台:">
<a-input placeholder="智能平台" v-model="queryParam.orderId"></a-input> <a-input
placeholder="智能平台"
v-model="queryParam.orderId"
></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="4" :sm="6" style="height:35px"> <a-col :md="4" :sm="6" style="height: 35px">
<a-form-item label="县份:"> <a-form-item label="县份:">
<a-select v-model="queryParam.hehuorenArea" style="width: 120px"> <a-select v-model="queryParam.hehuorenArea" style="width: 120px">
<a-select-option value="">请选择</a-select-option> <a-select-option value="">请选择</a-select-option>
...@@ -53,32 +59,47 @@ ...@@ -53,32 +59,47 @@
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="4" :sm="12" style="height:35px"> <a-col :md="4" :sm="12" style="height: 35px">
<a-form-item label="客户姓名:"> <a-form-item label="客户姓名:">
<a-input placeholder="客户姓名" v-model="queryParam.customerName"></a-input> <a-input
placeholder="客户姓名"
v-model="queryParam.customerName"
></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="4" :sm="12" style="height:35px"> <a-col :md="4" :sm="12" style="height: 35px">
<a-form-item label="办理号码:"> <a-form-item label="办理号码:">
<a-input placeholder="办理号码" v-model="queryParam.businessNumber"></a-input> <a-input
placeholder="办理号码"
v-model="queryParam.businessNumber"
></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="4" :sm="12" style="height:35px"> <a-col :md="4" :sm="12" style="height: 35px">
<a-form-item label="联系号码:"> <a-form-item label="联系号码:">
<a-input placeholder="联系号码" v-model="queryParam.contactNumber"></a-input> <a-input
placeholder="联系号码"
v-model="queryParam.contactNumber"
></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="4" :sm="12" style="height:35px"> <a-col :md="4" :sm="12" style="height: 35px">
<a-form-item label="合伙人姓名:"> <a-form-item label="合伙人姓名:">
<a-input placeholder="合伙人姓名" v-model="queryParam.hehuorenName"></a-input> <a-input
placeholder="合伙人姓名"
v-model="queryParam.hehuorenName"
></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="4" :sm="12" style="height:35px"> <a-col :md="4" :sm="12" style="height: 35px">
<a-form-item label="合伙人学校:"> <a-form-item label="合伙人学校:">
<a-input placeholder="合伙人学校" v-model="queryParam.hehuorenSchool"></a-input> <a-input
placeholder="合伙人学校"
v-model="queryParam.hehuorenSchool"
></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="3" :sm="6" style="height:35px"> <a-col :md="3" :sm="6" style="height: 35px">
<a-form-item label="状态:"> <a-form-item label="状态:">
<a-select v-model="queryParam.orderStatus"> <a-select v-model="queryParam.orderStatus">
<a-select-option value="">请选择</a-select-option> <a-select-option value="">请选择</a-select-option>
...@@ -100,9 +121,11 @@ ...@@ -100,9 +121,11 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="3" :sm="6" style="float:right;height:35px"> <a-col :md="3" :sm="6" style="float: right; height: 35px">
<a-button @click="search()" type="primary">查询</a-button> <a-button @click="search()" type="primary">查询</a-button>
<a-button @click="handleSubmit" style="margin-left: 10px">导出</a-button> <a-button @click="handleSubmit" style="margin-left: 10px"
>导出</a-button
>
</a-col> </a-col>
</a-row> </a-row>
</a-form> </a-form>
...@@ -120,123 +143,186 @@ ...@@ -120,123 +143,186 @@
<p>置为异常单原因:</p> <p>置为异常单原因:</p>
</a-col> </a-col>
<a-col :md="12" :sm="12"> <a-col :md="12" :sm="12">
<a-input type="hidden" placeholder="获取id" v-model="setAbnormalStr.orderId"></a-input> <a-input
<a-input placeholder="置为异常单原因" v-model="setAbnormalStr.errorMsg"></a-input> type="hidden"
placeholder="获取id"
v-model="setAbnormalStr.orderId"
></a-input>
<a-input
placeholder="置为异常单原因"
v-model="setAbnormalStr.errorMsg"
></a-input>
</a-col> </a-col>
</a-row> </a-row>
</a-modal> </a-modal>
<!--列表--> <!--列表-->
<s-table :columns="columns" :data="rowdata" bordered ref="table" size="small" class="flex-filling" :locale="emptyText"> <s-table
:columns="columns"
:data="rowdata"
bordered
ref="table"
size="small"
class="flex-filling"
:locale="emptyText"
>
<!--拦截器--> <!--拦截器-->
<template slot="productLastUpdateTime" slot-scope="text"> <template slot="productLastUpdateTime" slot-scope="text">
{{ text | dayjs}} {{ text | dayjs }}
</template> </template>
<!--拦截器--> <!--拦截器-->
<template slot="productCreateTime" slot-scope="text"> <template slot="productCreateTime" slot-scope="text">
{{ text | dayjs}} {{ text | dayjs }}
</template> </template>
<template slot="text" slot-scope="text"> <template slot="text" slot-scope="text">
<p style="white-space: pre-line;">{{text}}</p> <p style="white-space: pre-line">{{ text }}</p>
</template> </template>
<template slot="productState" slot-scope="text"> <template slot="productState" slot-scope="text">
<span v-if="text=='1'">待提交</span> <span v-if="text == '1'">待提交</span>
<span v-if="text=='4'">归档</span> <span v-if="text == '4'">归档</span>
<span v-if="text=='5'">作废</span> <span v-if="text == '5'">作废</span>
<span v-if="text=='6'">待配送</span> <span v-if="text == '6'">待配送</span>
<span v-if="text=='7'">物流配送中</span> <span v-if="text == '7'">物流配送中</span>
<span v-if="text=='8'">配送成功</span> <span v-if="text == '8'">配送成功</span>
<span v-if="text=='3'">受理成功</span> <span v-if="text == '3'">受理成功</span>
<span v-if="text=='9'">已收费</span> <span v-if="text == '9'">已收费</span>
<span v-if="text=='10'">受理异常</span> <span v-if="text == '10'">受理异常</span>
<span v-if="text=='2'">待受理</span> <span v-if="text == '2'">待受理</span>
<span v-if="text=='100'">未支付</span> <span v-if="text == '100'">未支付</span>
</template> </template>
<template slot="operation" slot-scope="text, record"> <template slot="operation" slot-scope="text, record">
<span> <span>
<a @click="showDrawer(record)">查看</a> <a @click="showDrawer(record)">查看</a>
<a-divider type="vertical"/> <a-divider type="vertical" />
<a @click="abnormal(record.id)">设为异常单</a> <a @click="abnormal(record.id)">设为异常单</a>
<a-divider type="vertical" />
<a @click="editDrawer(record)">编辑</a>
</span> </span>
</template> </template>
</s-table> </s-table>
<!----抽屉--> <!----抽屉-->
<a-drawer width="640" placement="right" :closable="false" @close="onClose" :visible="visible"> <a-drawer
width="640"
placement="right"
:closable="false"
@close="onClose"
:visible="visible"
>
<p :style="pStyle">基础信息</p> <p :style="pStyle">基础信息</p>
<a-row> <a-row>
<a-col :span="12"> <a-col :span="12">
<p>订单号:{{orderInfo.kdOrderId}}</p> <p>订单号:{{ orderInfo.orderseq }}</p>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<p>下单时间:{{orderInfo.orderDate | dayjs}}</p> <p>下单时间:{{ orderInfo.orderdate | dayjs }}</p>
</a-col> </a-col>
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="12"> <a-col :span="12">
<p v-if="orderInfo.status=='1'">订单状态:待提交</p> <p v-if="orderInfo.status == '1'">订单状态:待提交</p>
<p v-if="orderInfo.status=='4'">订单状态:归档</p> <p v-if="orderInfo.status == '4'">订单状态:归档</p>
<p v-if="orderInfo.status=='5'">订单状态:作废</p> <p v-if="orderInfo.status == '5'">订单状态:作废</p>
<p v-if="orderInfo.status=='6'">订单状态:待配送</p> <p v-if="orderInfo.status == '6'">订单状态:待配送</p>
<p v-if="orderInfo.status=='7'">订单状态:物流配送中</p> <p v-if="orderInfo.status == '7'">订单状态:物流配送中</p>
<p v-if="orderInfo.status=='8'">订单状态:配送成功</p> <p v-if="orderInfo.status == '8'">订单状态:配送成功</p>
<p v-if="orderInfo.status=='3'">订单状态:受理成功</p> <p v-if="orderInfo.status == '3'">订单状态:受理成功</p>
<p v-if="orderInfo.status=='9'">订单状态:已收费</p> <p v-if="orderInfo.status == '9'">订单状态:已收费</p>
<p v-if="orderInfo.status=='10'">订单状态:受理异常</p> <p v-if="orderInfo.status == '10'">订单状态:受理异常</p>
<p v-if="orderInfo.status=='2'">订单状态:待受理</p> <p v-if="orderInfo.status == '2'">订单状态:待受理</p>
<p v-if="orderInfo.status=='100'">订单状态:未支付</p> <p v-if="orderInfo.status == '100'">订单状态:未支付</p>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<p>产品名称:{{orderInfo.productName }}</p> <p>产品名称:{{ orderInfo.productname }}</p>
</a-col> </a-col>
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="12"> <a-col :span="12">
<p>套餐:{{orderInfo.orderSetMeal}}</p> <p>套餐:{{ orderInfo.orderSetMeal }}</p>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<p>产品价格:{{orderInfo.webOrderAmount}}</p> <p>产品价格:{{ orderInfo.weborderamount }}</p>
</a-col> </a-col>
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="12"> <a-col :span="12">
<p>客户姓名:{{orderInfo.orderName}}</p> <p>客户姓名:{{ orderInfo.ordername }}</p>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<p>联系电话:{{orderInfo.orderPhone}}</p> <p>联系电话:{{ orderInfo.orderphone }}</p>
</a-col> </a-col>
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="12"> <!-- 编辑 -->
<p>身份证号:{{orderInfo.idCard}}</p> <a-col :span="12" v-show="iCardShow">
<p>
身份证号:<Input
:value="orderInfo.idCard"
:label="orderInfo.idCard"
v-model="orderInfo.idCard"
class="idCard"
ref="idCardValue"
@change="idCardValue"
/>
</p>
</a-col>
<a-col :span="12" v-show="iCardShow01">
<p>身份证号:{{ orderInfo.idCard }}</p>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<p>学生证号:{{orderInfo.orderCustomerStudentId}}</p> <p>学生证号:{{ orderInfo.orderCustomerStudentId }}</p>
</a-col> </a-col>
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="12"> <a-col :span="12">
<p>备注:{{orderInfo.orderCustomerRemarks}}</p> <p>备注:{{ orderInfo.orderCustomerRemarks }}</p>
</a-col> </a-col>
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="12"> <a-col :span="12">
<p>多媒体账号:{{orderInfo.orderCustomerAccount}}</p> <p>多媒体账号:{{ orderInfo.orderCustomerAccount }}</p>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<p>多媒体密码:{{orderInfo.orderCustomerPwd}}</p> <p>多媒体密码:{{ orderInfo.orderCustomerPwd }}</p>
</a-col> </a-col>
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="12"> <a-col :span="12">
<p>用户类别:{{orderInfo.orderCustomerType}}</p> <p>用户类别:{{ orderInfo.orderCustomerType }}</p>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<p>县分:{{orderInfo.orderRegion}}</p> <p>县分:{{ orderInfo.orderRegion }}</p>
</a-col> </a-col>
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="12"> <a-col :span="12">
<p>学校:{{orderInfo.orderUniversityName}}</p> <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-col>
</a-row> </a-row>
<a-divider /> <a-divider />
...@@ -246,38 +332,45 @@ ...@@ -246,38 +332,45 @@
<p>预留字段1:</p> <p>预留字段1:</p>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<p>融合受理时间:{{orderInfo.orderRf2 }}</p> <p>预留字段2:{{ orderInfo.orderRf2 }}</p>
</a-col> </a-col>
</a-row> </a-row>
<a-divider /> <a-divider />
<p :style="pStyle">业务信息</p> <p :style="pStyle">业务信息</p>
<a-row> <a-row>
<a-col :span="12"> <a-col :span="12">
<p>支付平台:{{orderInfo.ipay}}</p> <p>支付平台:{{ orderInfo.ipay }}</p>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<p>支付方式:{{orderInfo.payType }}</p> <p>支付方式:{{ orderInfo.paytype }}</p>
</a-col> </a-col>
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="12"> <a-col :span="12">
<p>支付时间:{{orderInfo.orderPaymentTime | dayjs}}</p> <p>支付时间:{{ orderInfo.orderPaymentTime | dayjs }}</p>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<p>支付平台流水号:{{orderInfo.uptranseq}}</p> <p>支付平台流水号:{{ orderInfo.uptranseq }}</p>
</a-col> </a-col>
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="12"> <a-col :span="12">
<p>智能平台订单号:{{orderInfo.orderSeqThd}}</p> <p>智能平台订单号:{{ orderInfo.orderseqthd }}</p>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<p>穗易付订单号 :{{orderInfo.orderReqtranSeq}}</p> <p>穗易付订单号 :{{ orderInfo.orderreqtranseq }}</p>
</a-col> </a-col>
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="12"> <a-col :span="12">
<p>接入商:{{orderInfo.customerId}}</p> <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-col>
</a-row> </a-row>
</a-drawer> </a-drawer>
...@@ -285,195 +378,276 @@ ...@@ -285,195 +378,276 @@
</template> </template>
<script> <script>
import STable from '@/components/table'; import STable from "@/components/table";
import {orderViewList,download} from "@/api/school-center/productAPI" import { orderViewList, download } from "@/api/school-center/productAPI";
import { import {
abnormal, abnormal,
broadBandList, broadBandList,
} from "../../../api/school-center/orderAPI"; editOrder,
import {cloneObject,exportFile} from '@/utils/util'; } from "../../../api/school-center/orderAPI";
import moment from 'moment'; import { cloneObject, exportFile } from "@/utils/util";
export default { import moment from "moment";
export default {
name: "orderView", name: "orderView",
components: { components: {
STable, STable,
}, },
data(){ data() {
return { return {
emptyText: {emptyText: '暂无数据'}, emptyText: { emptyText: "暂无数据" },
callback:false, callback: false,
Formtable: this.$form.createForm(this), Formtable: this.$form.createForm(this),
visible: false, visible: false,
setAbnormal:false, setAbnormal: false,
statusShow: false,
iCardShow: false,
iCardShow01: false,
setAbnormalStr: { setAbnormalStr: {
orderId:"", orderId: "",
errorMsg: "", errorMsg: "",
}, },
pStyle: { pStyle: {
fontSize: '16px', fontSize: "16px",
color: 'rgba(0,0,0,0.85)', color: "rgba(0,0,0,0.85)",
lineHeight: '24px', lineHeight: "24px",
display: 'block', display: "block",
marginBottom: '16px', marginBottom: "16px",
}, },
pStyle2: { pStyle2: {
marginBottom: '24px', marginBottom: "24px",
}, },
queryParam: { queryParam: {
startTime :'', startTime: "",
endTime :'', endTime: "",
orderseq :'', orderseq: "",
orderUniversityName :'', orderUniversityName: "",
status :'', status: "",
ordername :'', ordername: "",
hehuorenArea: '', hehuorenArea: "",
orderStatus:'', orderStatus: "",
userType:'' userType: "",
idCard: "",
},
orderInfo: {},
editInfo:{
idCard,
orderStatus,
}, },
orderInfo:{},
columns: [ columns: [
{dataIndex: 'orderId', width: 200, title: '智能平台'}, { dataIndex: "orderId", width: 200, title: "智能平台" }, //dataIndex:列数据在数据项中对应的 key,支持 a.b.c 的嵌套写法
{dataIndex: 'customerName', width: 100, title: '客户名称'}, { dataIndex: "customerName", width: 100, title: "客户名称" },
{dataIndex: 'contactNumber', width: 120, title: '联系电话'}, { dataIndex: "contactNumber", width: 120, title: "联系电话" },
{dataIndex: 'orderSetMeal', width: 120, title: '办理套餐'}, { dataIndex: "orderSetMeal", width: 120, title: "办理套餐" },
{dataIndex: 'orderStatus', width: 80, title: '订单状态'}, { dataIndex: "orderStatus", width: 80, title: "订单状态" },
{dataIndex: 'orderNumber', width: 200, title: '订单编号'}, { dataIndex: "orderNumber", width: 200, title: "订单编号" },
{dataIndex: 'orderUniversityName', width: 200, title: '客户学校'}, { dataIndex: "orderUniversityName", width: 200, title: "客户学校" },
{dataIndex: 'orderRegion', width: 100, title: '客户县分'}, { dataIndex: "orderRegion", width: 100, title: "客户县分" },
{dataIndex: 'ipay', width: 100, title: '支付平台', {
customRender: function(text, record, index) { dataIndex: "ipay",
width: 100,
title: "支付平台",
customRender: function (text, record, index) {
if (text == 0) { if (text == 0) {
return "翼支付网厅"; return "翼支付网厅";
}else if (text == 1) { } else if (text == 1) {
return "支付宝"; return "支付宝";
}else if(text == 2) { } else if (text == 2) {
return "微信"; return "微信";
}else { } else {
return ""; return "";
} }
}
}, },
{dataIndex: 'orderReqtranSeq', width: 240, title: '穗易付订单号'}, },
{dataIndex: 'uptranseq', width: 240, title: '支付平台流水号'}, { dataIndex: "orderReqtranSeq", width: 240, title: "穗易付订单号" },
{dataIndex: 'orderDate', width: 200, title: '创建时间', { dataIndex: "uptranseq", width: 240, title: "支付平台流水号" },
customRender: function(text, record, index) { {
dataIndex: "orderDate",
width: 200,
title: "创建时间",
customRender: function (text, record, index) {
//text:当前行的值,record: 当前行的数据, index:索引
if (text == null) { if (text == null) {
return ""; return "";
} }
return moment(text).format("YYYY-MM-DD HH:mm:ss"); return moment(text).format("YYYY-MM-DD HH:mm:ss");
} },
}, },
/* {dataIndex: 'productIntroduction', width: 200, title: '产品情况 ', scopedSlots: {customRender: 'text'}}, /* {dataIndex: 'productIntroduction', width: 200, title: '产品情况 ', scopedSlots: {customRender: 'text'}},
{dataIndex: 'productSetMealIntroduction', width: 200, title: '资费介绍 ', scopedSlots: {customRender: 'text'}},*/ {dataIndex: 'productSetMealIntroduction', width: 200, title: '资费介绍 ', scopedSlots: {customRender: 'text'}},*/
{ {
dataIndex: 'operation', dataIndex: "operation",
width: 140, width: 180,
title: '操作', title: "操作",
scopedSlots: {customRender: 'operation'}, scopedSlots: { customRender: "operation" },
fixed: "right" fixed: "right",
}] },
, ],
rowdata: parameter => { rowdata: (parameter) => {
let params = { let params = {
pageNo: parameter.pageNo, pageNo: parameter.pageNo,
pageSize: parameter.pageSize pageSize: parameter.pageSize,
} };
let obj = cloneObject(this.queryParam) let obj = cloneObject(this.queryParam);
//表示 //表示
return broadBandList(Object.assign(params,obj)).then(res => { return broadBandList(Object.assign(params, obj)).then((res) => {
let data = {} let data = {};
console.log(res); if (res.state !== "success") {
if (res.state !== 'success') {
this.$message.error("查询失败!", 5); this.$message.error("查询失败!", 5);
this.emptyText.emptyText = '查询失败!' this.emptyText.emptyText = "查询失败!";
data = { data = {
data: [], data: [],
pageSize: parameter.pageSize, pageSize: parameter.pageSize,
pageNo: 1, pageNo: 1,
totalCount: 0 totalCount: 0,
} };
} else { } else {
data = { data = {
data: res.data.records, data: res.data.records,
pageSize: parameter.pageSize, pageSize: parameter.pageSize,
pageNo: parameter.pageNo, pageNo: parameter.pageNo,
totalCount: res.data.total totalCount: res.data.total,
} };
}
console.log(data);
return data
})
} }
return data;
});
},
};
},
methods: {
// 身份证号
idCardValue(e) {
this.editInfo.idCard = this.$refs.idCardValue.value;
},
statusData(value) {
this.editInfo.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;
}, },
methods:{
moment, moment,
search() { search() {
this.$refs.table.refresh({search: true}) this.$refs.table.refresh({ search: true });
}, },
onClose() { onClose() {
this.orderInfo={ this.orderInfo = {
kdOrderId: '', orderseq: "",
orderSeq:'', productname: "",
productName:'', orderSetMeal: "",
orderSetMeal:'', orderUniversityName: "",
orderUniversityName:'', ordername: "",
orderName:'', orderdate: "",
orderDate:'', status: "",
status:'', orderRegion: "",
orderRegion:'', ipay: "",
ipay:'', paytype: "",
payType:'', weborderamount: "",
idCard: '', orderPaymentTime: "",
weborderamount:'', orderreqtranseq: "",
orderPaymentTime:'', customerid: "",
orderReqtranSeq:'', orderphone: "",
customerId:'', ordernumber: "",
orderPhone:'', orderCustomerType: "",
orderNumber:'', orderCustomerStudentId: "",
orderCustomerType:'', orderCustomerRemarks: "",
orderCustomerStudentId:'', orderCustomerAccount: "",
orderCustomerRemarks:'', orderCustomerPwd: "",
orderCustomerAccount:'', uptranseq: "",
orderCustomerPwd:'', expenses: "",
uptranseq:'', orderseqthd: "",
expenses:'', orderRf2: "",
orderseqThd:'', orderStatus: "", //订单状态
orderRf2:'' id: "",
} idCard: "",
};
this.visible = false; this.visible = false;
}, },
showDrawer(data){ showDrawer(data) {
this.orderInfo={ this.iCardShow01 = true;
kdOrderId: data.kdOrderId, this.iCardShow = false;
orderSeq:data.orderSeq, this.statusShow = false;
productName:data.productName, this.orderInfo = {
orderSetMeal:data.orderSetMeal, orderseq: data.orderseq,
orderUniversityName:data.orderUniversityName, productname: data.productname,
orderName:data.orderName, orderSetMeal: data.orderSetMeal,
orderDate:data.orderDate, orderUniversityName: data.orderUniversityName,
status:data.status, ordername: data.ordername,
orderRegion:data.orderRegion, orderdate: data.orderdate,
ipay:data.ipay, status: data.status,
payType:data.payType, 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, idCard: data.idCard,
webOrderAmount:data.webOrderAmount, };
orderPaymentTime:data.orderPaymentTime, this.visible = true;
orderReqtranSeq:data.orderReqtranSeq, },
customerId:data.customerId, // 编辑
orderPhone:data.orderPhone, editDrawer(data) {
orderNumber:data.orderNumber, console.log(data);
orderCustomerType:data.orderCustomerType, this.iCardShow = true;
orderCustomerStudentId:data.orderCustomerStudentId, this.iCardShow01 = false;
orderCustomerRemarks:data.orderCustomerRemarks, this.statusShow = true;
orderCustomerAccount:data.orderCustomerAccount, this.orderInfo = {
orderCustomerPwd:data.orderCustomerPwd, orderseq: data.orderseq,
uptranseq:data.uptranseq, productname: data.productname,
expenses:data.expenses, orderSetMeal: data.orderSetMeal,
orderseqThd:data.orderseqThd, orderUniversityName: data.orderUniversityName,
orderRf2:data.orderRf2 ordername: data.ordername,
} orderdate: data.orderdate,
this.visible=true; 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) { onChange(date, dateString) {
...@@ -486,7 +660,6 @@ ...@@ -486,7 +660,6 @@
} }
}, },
onSuccessChange(date, dateString) { onSuccessChange(date, dateString) {
if (dateString.length == 0) { if (dateString.length == 0) {
this.queryParam.successTimeStart = ""; this.queryParam.successTimeStart = "";
this.queryParam.successTimeEnd = ""; this.queryParam.successTimeEnd = "";
...@@ -496,28 +669,32 @@ ...@@ -496,28 +669,32 @@
} }
}, },
handleSubmit() { handleSubmit() {
let downqueryParam=this.queryParam let downqueryParam = this.queryParam;
let nowdate = moment().format('YYYY-MM-DD'); let nowdate = moment().format("YYYY-MM-DD");
this.callback=true; this.callback = true;
exportFile(download(downqueryParam), "宽带订单清单" + nowdate + ".xls",this.downloadstatu); exportFile(
download(downqueryParam),
"宽带订单清单" + nowdate + ".xls",
this.downloadstatu
);
}, },
downloadstatu(){ downloadstatu() {
this.callback=false; this.callback = false;
}, },
abnormal(orderId) { abnormal(orderId) {
this.setAbnormal = true; this.setAbnormal = true;
this.setAbnormalStr.orderId = orderId; this.setAbnormalStr.orderId = orderId;
}, },
setAbnormalOk(){ setAbnormalOk() {
if(this.setAbnormalStr.errorMsg.length<3){ if (this.setAbnormalStr.errorMsg.length < 3) {
this.$notification.error({ this.$notification.error({
message: "请输入不小于三个字的操作结果", message: "请输入不小于三个字的操作结果",
description: "", description: "",
duration: 4 duration: 4,
}); });
}else{ } else {
let setAbnormalStr = this.setAbnormalStr; let setAbnormalStr = this.setAbnormalStr;
abnormal(setAbnormalStr).then(res => { abnormal(setAbnormalStr).then((res) => {
if (res.state == "success") { if (res.state == "success") {
this.search(); this.search();
this.$message.success(res.data, 5); this.$message.success(res.data, 5);
...@@ -528,18 +705,20 @@ ...@@ -528,18 +705,20 @@
}); });
} }
}, },
setAbnormalCancel(){ setAbnormalCancel() {
this.setAbnormalClear(); this.setAbnormalClear();
}, },
setAbnormalClear(){ setAbnormalClear() {
this.setAbnormalStr.orderId = ""; this.setAbnormalStr.orderId = "";
this.setAbnormalStr.errorMsg = ""; this.setAbnormalStr.errorMsg = "";
this.setAbnormal = false; this.setAbnormal = false;
}, },
} },
} };
</script> </script>
<style scoped> <style scoped>
.statusData {
width: 100px !important;
}
</style> </style>
\ No newline at end of file
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