Commit 95c7ea5e by 罗承锋

修改宽带、移动订单页面

parent 8eb5529b
...@@ -5,6 +5,10 @@ const prefix = '/manager/ciop/'; ...@@ -5,6 +5,10 @@ const prefix = '/manager/ciop/';
let orderList = (params) => postAction(prefix + "order/list" , params); let orderList = (params) => postAction(prefix + "order/list" , params);
let download = (params) => postAction(prefix + "order/download" , params); let download = (params) => postAction(prefix + "order/download" , params);
// 更新订单信息
let updateSendType = (params) => postAction(prefix + "order/updateSendType", params);
let updateIccid = (params) => postAction(prefix + "order/updateIccid", params);
// 宽带订单 // 宽带订单
let broadBandList = (params) => postAction(prefix + "order/broadBandOrder", params); let broadBandList = (params) => postAction(prefix + "order/broadBandOrder", params);
...@@ -17,7 +21,6 @@ let downloadMoBanKD = (params) => downFilePost(prefix + "order/downloadMoBanKD" ...@@ -17,7 +21,6 @@ let downloadMoBanKD = (params) => downFilePost(prefix + "order/downloadMoBanKD"
let downloadMoBanYZK = (params) => downFilePost(prefix + "order/downloadMoBanYZK" , params); let downloadMoBanYZK = (params) => downFilePost(prefix + "order/downloadMoBanYZK" , params);
let editOrder = (params) => postAction(prefix + "order/editOrder" , params); let editOrder = (params) => postAction(prefix + "order/editOrder" , params);
//报表 //报表
let reportList = (params) => postAction(prefix + "order/getHhrOrderInfo",params); let reportList = (params) => postAction(prefix + "order/getHhrOrderInfo",params);
let reportDownload = (params) => downFilePost(prefix + "order/outputHhrOrder",params); let reportDownload = (params) => downFilePost(prefix + "order/outputHhrOrder",params);
...@@ -36,5 +39,7 @@ export { ...@@ -36,5 +39,7 @@ export {
reportList, reportList,
reviewStudentIdCard, reviewStudentIdCard,
reportDownload, reportDownload,
editOrder editOrder,
updateSendType,
updateIccid
} }
...@@ -301,7 +301,12 @@ ...@@ -301,7 +301,12 @@
</div> </div>
</a-carousel> </a-carousel>
</div> </div>
<a-button @click="showReview()" type="primary">审核学生证</a-button> <div>
<a-button v-show="orderInfo.sendType == null || orderInfo.sendType == ''" @click="openConfigSendType()" type="primary">配送方式</a-button>
<a-button v-show="orderInfo.businessIccid == null || orderInfo.businessIccid == ''" @click="openConfigIccidFun" type="primary">配置iccid</a-button>
<a-button @click="showReview()" type="primary">审核学生证</a-button>
</div>
<a-divider orientation="left">受理信息</a-divider> <a-divider orientation="left">受理信息</a-divider>
<a-row> <a-row>
<a-col :span="6"> <a-col :span="6">
...@@ -445,6 +450,33 @@ ...@@ -445,6 +450,33 @@
</a-row> </a-row>
</a-modal> </a-modal>
<a-modal <a-modal
title="配送方式"
:visible="configSendType"
@ok="configSendTypeOk"
@cancel="configSendTypeCancel"
html-type="submit"
width="256px">
<div>
<a-radio-group v-model="reviewSendType.sendType" @change="changeSendType">
<a-radio value="快递">快递</a-radio>
<a-radio value="送货上门">送货上门</a-radio>
</a-radio-group>
</div>
</a-modal>
<a-modal
title="配置iccid"
:visible="openIccidConfig"
@ok="iccidConfigOk"
@cancel="iccidConfigCancel"
html-type="submit"
width="256px">
<div>
<span>iccid:</span><a-input v-model="iccidParam.businessIccid" placeholder="请输入iccid" />
<span>办理号码:</span><a-input v-model="iccidParam.businessNumber" placeholder="请输入办理号码" />
</div>
</a-modal>
<a-modal
title="置为异常单" title="置为异常单"
:visible="setAbnormal" :visible="setAbnormal"
@ok="setAbnormalOk" @ok="setAbnormalOk"
...@@ -685,7 +717,9 @@ ...@@ -685,7 +717,9 @@
downloadMoBanKD, downloadMoBanKD,
downloadMoBanYZK, downloadMoBanYZK,
reviewStudentIdCard, reviewStudentIdCard,
editOrder editOrder,
updateIccid,
updateSendType
} from "../../../api/school-center/orderAPI"; } from "../../../api/school-center/orderAPI";
import {cloneObject, exportFile} from "@/utils/util"; import {cloneObject, exportFile} from "@/utils/util";
import moment from "moment"; import moment from "moment";
...@@ -711,9 +745,20 @@ ...@@ -711,9 +745,20 @@
checkFail: "", checkFail: "",
studentCardCheckStatus: "" studentCardCheckStatus: ""
}, },
reviewSendType: {
id: '',
sendType: '',
},
openIccidConfig: false,
iccidParam: {
id: '',
businessIccid: '',
businessNumber: ''
},
options, options,
review: false, review: false,
imgShow: false, imgShow: false,
configSendType: false,
imgStype: {width: "300px", heigth: "300px"}, imgStype: {width: "300px", heigth: "300px"},
baseUrl: baseUrl:
"https://raw.githubusercontent.com/vueComponent/ant-design-vue/master/components/vc-slick/assets/img/react-slick/", "https://raw.githubusercontent.com/vueComponent/ant-design-vue/master/components/vc-slick/assets/img/react-slick/",
...@@ -845,6 +890,79 @@ ...@@ -845,6 +890,79 @@
this.handleSubmit3(); this.handleSubmit3();
} }
}, },
openConfigIccidFun() {
this.openIccidConfig = true;
this.iccidParam.id = this.orderInfo.id;
this.iccidParam.businessIccid = this.orderInfo.businessIccid;
this.iccidParam.businessNumber = this.orderInfo.businessNumber;
},
iccidConfigOk() {
let obj = cloneObject(this.iccidParam);
updateIccid(obj).then(res => {
if (res.state == "success") {
this.$notification.success({
message: "更新成功!",
description: "",
duration: 4
});
this.search();
} else {
this.$notification.error({
message: "更新失败!",
description: "",
duration: 4
});
}
});
this.iccidConfigClear();
},
iccidConfigCancel() {
this.iccidConfigClear();
},
iccidConfigClear() {
this.openIccidConfig = false;
this.iccidParam.id = '';
this.iccidParam.businessNumber = '';
this.iccidParam.businessIccid = '';
},
changeSendType(e) {
this.reviewSendType.sendType = e.target.value;
},
configSendTypeOk() {
// 配置发送
let obj = cloneObject(this.reviewSendType);
updateSendType(obj).then(res => {
if (res.state == "success") {
this.$notification.success({
message: "更新成功!",
description: "",
duration: 4
});
this.search();
} else {
this.$notification.error({
message: "更新失败!",
description: "",
duration: 4
});
}
});
this.configSendTypeClear();
},
configSendTypeCancel() {
this.configSendTypeClear();
},
configSendTypeClear() {
this.configSendType = false;
this.reviewSendType.id = '';
this.reviewSendType.sendType = '';
},
openConfigSendType() {
this.configSendType = true;
this.reviewSendType.id = this.orderInfo.id;
this.reviewSendType.sendType = this.orderInfo.sendType;
},
showReview() { showReview() {
this.review = true; this.review = true;
}, },
...@@ -1080,7 +1198,9 @@ ...@@ -1080,7 +1198,9 @@
company: "", company: "",
studentCardCheckStatus: "", studentCardCheckStatus: "",
kdOrderId: "", kdOrderId: "",
orderStatus: "" orderStatus: "",
sendType: "",
businessIccid: ""
}; };
this.visible = false; this.visible = false;
this.edit = false; this.edit = false;
...@@ -1139,7 +1259,9 @@ ...@@ -1139,7 +1259,9 @@
company: data.company, company: data.company,
studentCardCheckStatus: data.studentCardCheckStatus, studentCardCheckStatus: data.studentCardCheckStatus,
kdOrderId: data.kdOrderId, kdOrderId: data.kdOrderId,
orderStatus: data.orderStatus orderStatus: data.orderStatus,
sendType: data.sendType,
businessIccid: data.businessIccid
}; };
this.selectOrderHis(data.id); this.selectOrderHis(data.id);
if(type == 1){ if(type == 1){
......
...@@ -164,10 +164,10 @@ ...@@ -164,10 +164,10 @@
<p :style="pStyle">基础信息</p> <p :style="pStyle">基础信息</p>
<a-row> <a-row>
<a-col :span="12"> <a-col :span="12">
<p>订单号:{{orderInfo.orderseq}}</p> <p>订单号:{{orderInfo.kdOrderId}}</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>
...@@ -185,7 +185,7 @@ ...@@ -185,7 +185,7 @@
<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>
...@@ -193,20 +193,20 @@ ...@@ -193,20 +193,20 @@
<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"> <a-col :span="12">
<p>身份证号:{{orderInfo.ordernumber}}</p> <p>身份证号:{{orderInfo.idCard}}</p>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<p>学生证号:{{orderInfo.orderCustomerStudentId}}</p> <p>学生证号:{{orderInfo.orderCustomerStudentId}}</p>
...@@ -246,7 +246,7 @@ ...@@ -246,7 +246,7 @@
<p>预留字段1:</p> <p>预留字段1:</p>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<p>预留字段2:{{orderInfo.orderRf2 }}</p> <p>融合受理时间:{{orderInfo.orderRf2 }}</p>
</a-col> </a-col>
</a-row> </a-row>
<a-divider /> <a-divider />
...@@ -256,7 +256,7 @@ ...@@ -256,7 +256,7 @@
<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>
...@@ -269,15 +269,15 @@ ...@@ -269,15 +269,15 @@
</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-col>
</a-row> </a-row>
</a-drawer> </a-drawer>
...@@ -382,6 +382,7 @@ ...@@ -382,6 +382,7 @@
//表示 //表示
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 = '查询失败!'
...@@ -399,6 +400,7 @@ ...@@ -399,6 +400,7 @@
totalCount: res.data.total totalCount: res.data.total
} }
} }
console.log(data);
return data return data
}) })
} }
...@@ -411,22 +413,24 @@ ...@@ -411,22 +413,24 @@
}, },
onClose() { onClose() {
this.orderInfo={ this.orderInfo={
orderseq:'', kdOrderId: '',
productname:'', orderSeq:'',
productName:'',
orderSetMeal:'', orderSetMeal:'',
orderUniversityName:'', orderUniversityName:'',
ordername:'', orderName:'',
orderdate:'', orderDate:'',
status:'', status:'',
orderRegion:'', orderRegion:'',
ipay:'', ipay:'',
paytype:'', payType:'',
idCard: '',
weborderamount:'', weborderamount:'',
orderPaymentTime:'', orderPaymentTime:'',
orderreqtranseq:'', orderReqtranSeq:'',
customerid:'', customerId:'',
orderphone:'', orderPhone:'',
ordernumber:'', orderNumber:'',
orderCustomerType:'', orderCustomerType:'',
orderCustomerStudentId:'', orderCustomerStudentId:'',
orderCustomerRemarks:'', orderCustomerRemarks:'',
...@@ -434,29 +438,31 @@ ...@@ -434,29 +438,31 @@
orderCustomerPwd:'', orderCustomerPwd:'',
uptranseq:'', uptranseq:'',
expenses:'', expenses:'',
orderseqthd:'', orderseqThd:'',
orderRf2:'' orderRf2:''
} }
this.visible = false; this.visible = false;
}, },
showDrawer(data){ showDrawer(data){
this.orderInfo={ this.orderInfo={
orderseq:data.orderseq, kdOrderId: data.kdOrderId,
productname:data.productname, orderSeq:data.orderSeq,
productName:data.productName,
orderSetMeal:data.orderSetMeal, orderSetMeal:data.orderSetMeal,
orderUniversityName:data.orderUniversityName, orderUniversityName:data.orderUniversityName,
ordername:data.ordername, orderName:data.orderName,
orderdate:data.orderdate, orderDate:data.orderDate,
status:data.status, status:data.status,
orderRegion:data.orderRegion, orderRegion:data.orderRegion,
ipay:data.ipay, ipay:data.ipay,
paytype:data.paytype, payType:data.payType,
weborderamount:data.weborderamount, idCard: data.idCard,
webOrderAmount:data.webOrderAmount,
orderPaymentTime:data.orderPaymentTime, orderPaymentTime:data.orderPaymentTime,
orderreqtranseq:data.orderreqtranseq, orderReqtranSeq:data.orderReqtranSeq,
customerid:data.customerid, customerId:data.customerId,
orderphone:data.orderphone, orderPhone:data.orderPhone,
ordernumber:data.ordernumber, orderNumber:data.orderNumber,
orderCustomerType:data.orderCustomerType, orderCustomerType:data.orderCustomerType,
orderCustomerStudentId:data.orderCustomerStudentId, orderCustomerStudentId:data.orderCustomerStudentId,
orderCustomerRemarks:data.orderCustomerRemarks, orderCustomerRemarks:data.orderCustomerRemarks,
...@@ -464,7 +470,7 @@ ...@@ -464,7 +470,7 @@
orderCustomerPwd:data.orderCustomerPwd, orderCustomerPwd:data.orderCustomerPwd,
uptranseq:data.uptranseq, uptranseq:data.uptranseq,
expenses:data.expenses, expenses:data.expenses,
orderseqthd:data.orderseqthd, orderseqThd:data.orderseqThd,
orderRf2:data.orderRf2 orderRf2:data.orderRf2
} }
this.visible=true; this.visible=true;
......
...@@ -629,8 +629,6 @@ ...@@ -629,8 +629,6 @@
} }
this.package = head; this.package = head;
} }
console.log(this.package);
console.log(this.packageName);
} }
}) })
...@@ -727,8 +725,6 @@ ...@@ -727,8 +725,6 @@
Vue.delete(this.modifyForm,'endDate'); Vue.delete(this.modifyForm,'endDate');
this.modifyForm.greaterFifty = values.greaterFifty == undefined ? "" : values.greaterFifty this.modifyForm.greaterFifty = values.greaterFifty == undefined ? "" : values.greaterFifty
this.modifyForm.greaterHundred = values.greaterHundred == undefined ? "" : values.greaterHundred this.modifyForm.greaterHundred = values.greaterHundred == undefined ? "" : values.greaterHundred
console.log(this.buttons);
console.log(this.buttons.indexOf("isRecv") != -1);
this.modifyForm.isShowrh = (this.modifyForm.buttons.indexOf("isShowrh") > -1) ? 1 : 0; this.modifyForm.isShowrh = (this.modifyForm.buttons.indexOf("isShowrh") > -1) ? 1 : 0;
this.modifyForm.isShowband = (this.modifyForm.buttons.indexOf("isShowband") > -1) ? 1 : 0; this.modifyForm.isShowband = (this.modifyForm.buttons.indexOf("isShowband") > -1) ? 1 : 0;
this.modifyForm.netPhone = (this.modifyForm.buttons.indexOf("netPhone") > -1) ? 1 : 0; this.modifyForm.netPhone = (this.modifyForm.buttons.indexOf("netPhone") > -1) ? 1 : 0;
...@@ -748,11 +744,10 @@ ...@@ -748,11 +744,10 @@
this.modifyForm.udBtn = (this.modifyForm.buttons.indexOf("udBtn") > -1) ? 1 : 0; this.modifyForm.udBtn = (this.modifyForm.buttons.indexOf("udBtn") > -1) ? 1 : 0;
this.chosePages.forEach(value => { this.chosePages.forEach(value => {
if (value!=undefined){ if (value!=undefined && this.modifyForm.chosePages.indexOf(value) == -1){
this.modifyForm.chosePages=value+","+this.modifyForm.chosePages this.modifyForm.chosePages=value+","+this.modifyForm.chosePages
} }
}) })
//插入数据 //插入数据
if (this.modifyForm.id==""){ if (this.modifyForm.id==""){
for (let key in this.modifyForm) { for (let key in this.modifyForm) {
......
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