Commit fb09ada5 by 陈浩建

显示快递单号填写

parent 003f8580
...@@ -21,6 +21,7 @@ let downloadMoBanKD = (params) => downFilePost(prefix + "order/downloadMoBanKD" ...@@ -21,6 +21,7 @@ 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 setUpgradeStatus = (params) => postAction(prefix +"order/setUpgradeStatus" , params); let setUpgradeStatus = (params) => postAction(prefix +"order/setUpgradeStatus" , params);
let setKuanDiData = (params) => postAction(prefix +"order/setKuanDiData" , params);
//报表 //报表
let reportList = (params) => postAction(prefix + "order/getHhrOrderInfo",params); let reportList = (params) => postAction(prefix + "order/getHhrOrderInfo",params);
...@@ -43,5 +44,6 @@ export { ...@@ -43,5 +44,6 @@ export {
editOrder, editOrder,
updateSendType, updateSendType,
updateIccid, updateIccid,
setUpgradeStatus setUpgradeStatus,
setKuanDiData
} }
...@@ -302,6 +302,7 @@ ...@@ -302,6 +302,7 @@
</a-carousel> </a-carousel>
</div> </div>
<div> <div>
<a-button v-show="orderInfo.orderStatus == '待处理'" @click="openKD" type="primary">填写快递单号</a-button>
<a-button v-show="orderInfo.sendType == null || orderInfo.sendType == ''" @click="openConfigSendType()" type="primary">配送方式</a-button> <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 v-show="orderInfo.businessIccid == null || orderInfo.businessIccid == ''" @click="openConfigIccidFun" type="primary">配置iccid</a-button>
<a-button @click="showReview()" type="primary">审核学生证</a-button> <a-button @click="showReview()" type="primary">审核学生证</a-button>
...@@ -524,6 +525,33 @@ ...@@ -524,6 +525,33 @@
</a-row> </a-row>
</a-modal> </a-modal>
<a-modal
title="填写快递单号"
:visible="setShowKD"
@ok="setKDOk"
@cancel="setKDCancel"
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="setShowKDStr.orderId"></a-input>
<a-input placeholder="快递公司" v-model="setShowKDStr.company"></a-input>
</a-col>
</a-row>
<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 placeholder="快递单号" v-model="setShowKDStr.kuaidiOrder"></a-input>
</a-col>
</a-row>
</a-modal>
<!--抽屉 编辑--> <!--抽屉 编辑-->
<a-drawer width="1280" placement="right" :closable="false" @close="onClose" :visible="edit"> <a-drawer width="1280" placement="right" :closable="false" @close="onClose" :visible="edit">
<a-form :form="orderInfo" layout="inline"> <a-form :form="orderInfo" layout="inline">
...@@ -749,7 +777,8 @@ ...@@ -749,7 +777,8 @@
editOrder, editOrder,
updateIccid, updateIccid,
updateSendType, updateSendType,
setUpgradeStatus setUpgradeStatus,
setKuanDiData
} 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";
...@@ -813,6 +842,12 @@ ...@@ -813,6 +842,12 @@
auditType:"", auditType:"",
contentMsg: "", contentMsg: "",
}, },
setShowKD:false,
setShowKDStr:{
orderId:"",
company:"",
kuaidiOrder: "",
},
edit:false, edit:false,
title: ConstantActivity.title, title: ConstantActivity.title,
Formtable: this.$form.createForm(this), Formtable: this.$form.createForm(this),
...@@ -1142,6 +1177,44 @@ ...@@ -1142,6 +1177,44 @@
this.setShowUpgradeStr.contentMsg=""; this.setShowUpgradeStr.contentMsg="";
this.setShowUpgrade = false; this.setShowUpgrade = false;
}, },
openKD(){
this.setShowKD = true;
},
setKDOk(){
if(this.setShowKDStr.company.length==0 || this.setShowKDStr.kuaidiOrder.length==0){
this.$notification.error({
message: "请填写信息",
description: "",
duration: 4
});
}else{
this.setShowKDStr.orderId = this.orderInfo.id;
setKuanDiData(this.setShowKDStr).then(res => {
if (res.state == "success") {
this.$notification.success({
message: "更新成功!",
description: "",
duration: 4
});
this.setKDCancel();
this.search();
} else {
this.$notification.error({
message: "更新失败!",
description: "",
duration: 4
});
}
this.onClose();
});
}
},
setKDCancel(){
this.setShowKDStr.orderId="";
this.setShowKDStr.company="";
this.setShowKDStr.kuaidiOrder="";
this.setShowKD = false;
},
editOk(){ editOk(){
let orderInfo = this.orderInfo; let orderInfo = this.orderInfo;
editOrder(orderInfo).then(res => { editOrder(orderInfo).then(res => {
...@@ -1413,6 +1486,9 @@ ...@@ -1413,6 +1486,9 @@
} }
}); });
}, },
openKuaiDi(){
},
} }
}; };
</script> </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