Commit ccf9c10e by 陈浩建

移动订单需求修改

parent 3422b9ed
...@@ -143,6 +143,7 @@ ...@@ -143,6 +143,7 @@
:locale="emptyText"> :locale="emptyText">
<!--拦截器--> <!--拦截器-->
<template slot="productLastUpdateTime" slot-scope="text">{{ text | dayjs}}</template> <template slot="productLastUpdateTime" slot-scope="text">{{ text | dayjs}}</template>
<template slot="createtime" slot-scope="text" >{{ text | dayjs}}</template>
<!--拦截器--> <!--拦截器-->
<template slot="productCreateTime" slot-scope="text">{{ text | dayjs}}</template> <template slot="productCreateTime" slot-scope="text">{{ text | dayjs}}</template>
<template slot="text" slot-scope="text"> <template slot="text" slot-scope="text">
...@@ -273,13 +274,28 @@ ...@@ -273,13 +274,28 @@
</a-col> </a-col>
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="6">
<a-col :span="12"> <a-form-item label="配送类型:">
<a-form-item label="备注:"> <p>{{ orderInfo.isDelivery }}</p>
<p>{{ orderInfo.remarks }}</p> </a-form-item>
</a-col>
<a-col :span="6">
<a-form-item label="快递公司:">
<p>{{ orderInfo.company }}</p>
</a-form-item>
</a-col>
<a-col :span="6">
<a-form-item label="快递单号:">
<p>{{ orderInfo.kuaidiOrder }}</p>
</a-form-item>
</a-col>
<a-col :span="6">
<a-form-item label="导入快递时间:">
<p>{{ orderInfo.kuaidiTime | dayjs }}</p>
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="6"> <a-col :span="6">
<a-form-item label="学生证审核状态:"> <a-form-item label="学生证审核状态:">
...@@ -303,6 +319,13 @@ ...@@ -303,6 +319,13 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
<a-row>
<a-col :span="6">
<a-form-item label="备注:">
<p>{{ orderInfo.remarks }}</p>
</a-form-item>
</a-col>
</a-row>
<a-divider orientation="left">附件</a-divider> <a-divider orientation="left">附件</a-divider>
<div v-show="!imgShow">无附件</div> <div v-show="!imgShow">无附件</div>
<div v-show="imgShow" style="margin-bottom: 50px"> <div v-show="imgShow" style="margin-bottom: 50px">
...@@ -478,7 +501,7 @@ ...@@ -478,7 +501,7 @@
<div> <div>
<a-radio-group v-model="reviewSendType.sendType" @change="changeSendType"> <a-radio-group v-model="reviewSendType.sendType" @change="changeSendType">
<a-radio value="快递">快递</a-radio> <a-radio value="快递">快递</a-radio>
<a-radio value="送货上门">送货上门</a-radio> <!-- <a-radio value="送货上门">送货上门</a-radio>-->
</a-radio-group> </a-radio-group>
</div> </div>
</a-modal> </a-modal>
...@@ -903,28 +926,30 @@ ...@@ -903,28 +926,30 @@
orderInfo: {}, orderInfo: {},
columns: [ columns: [
{dataIndex: "customerName", width: 100, title: "客户姓名", fixed: "left"}, {dataIndex: "customerName", width: 100, title: "客户姓名", fixed: "left"},
{dataIndex: "orderStatus", width: 80, title: "订单状态", fixed: "left"}, {dataIndex: "businessNumber", width: 120, title: "办理号码", fixed: "left"},
{dataIndex: "orderStatus", width: 80, title: "订单状态"},
{dataIndex: 'createTime',width:150, sort: true, title: '订单创建时间', scopedSlots: { customRender: 'createtime' } },
{dataIndex: "hehuorenSchool", width: 200, title: "合伙人学校"},
{dataIndex: "hehuorenName", width: 90, title: "合伙人姓名"},
{dataIndex: "hehuorenPhone", width: 120, title: "合伙人手机"},
{dataIndex: "supervisorName", width: 120, title: "督导"},
{ {
dataIndex: "userType", dataIndex: "userType",
width: 100, width: 100,
title: "订单类型", title: "订单类型",
scopedSlots: {customRender: "userType"} scopedSlots: {customRender: "userType"}
}, },
{dataIndex: "businessNumber", width: 120, title: "办理号码"}, {dataIndex: "kapin", width: 220, title: "办理套餐"},
{dataIndex: "businessPackage", width: 220, title: "升级套餐"},
{dataIndex: "contactNumber", width: 120, title: "联系号码"}, {dataIndex: "contactNumber", width: 120, title: "联系号码"},
{dataIndex: "kapin", width: 160, title: "办理套餐"},
{dataIndex: "hehuorenSchool", width: 200, title: "合伙人学校"},
{dataIndex: "hehuorenName", width: 90, title: "合伙人姓名"},
{dataIndex: "hehuorenPhone", width: 120, title: "合伙人手机"},
{
dataIndex: "studentCardCheckStatus",
width: 100,
title: "学生证状态",
scopedSlots: {customRender: "studentCardCheckStatus"}
},
{dataIndex: "businessPackage", width: 120, title: "升级套餐"},
{dataIndex: "orderNumber", width: 200, title: "订单编号"}, {dataIndex: "orderNumber", width: 200, title: "订单编号"},
{dataIndex: "xbOrderId", width: 200, title: "小白卡单号"},
// {
// dataIndex: "studentCardCheckStatus",
// width: 100,
// title: "学生证状态",
// scopedSlots: {customRender: "studentCardCheckStatus"}
// },
{ {
dataIndex: "operation", dataIndex: "operation",
width: 180, width: 180,
...@@ -1372,6 +1397,7 @@ ...@@ -1372,6 +1397,7 @@
createTime: "", createTime: "",
address: "", address: "",
site: "", site: "",
isDelivery :"",
remarks: "", remarks: "",
checkFail: "", checkFail: "",
expenses: "", expenses: "",
...@@ -1382,6 +1408,7 @@ ...@@ -1382,6 +1408,7 @@
giftPassword: "", giftPassword: "",
kuaidiOrder: "", kuaidiOrder: "",
company: "", company: "",
kuaidiTime:"",
studentCardCheckStatus: "", studentCardCheckStatus: "",
kdOrderId: "", kdOrderId: "",
orderStatus: "", orderStatus: "",
...@@ -1436,6 +1463,7 @@ ...@@ -1436,6 +1463,7 @@
address: data.address, address: data.address,
site: data.site, site: data.site,
remarks: data.remarks, remarks: data.remarks,
isDelivery: this.typeStatus(data.isDelivery),
checkFail: data.checkFail, checkFail: data.checkFail,
expenses: data.expenses, expenses: data.expenses,
identifying: data.identifying, identifying: data.identifying,
...@@ -1445,6 +1473,7 @@ ...@@ -1445,6 +1473,7 @@
giftPassword: data.giftPassword, giftPassword: data.giftPassword,
kuaidiOrder: data.kuaidiOrder, kuaidiOrder: data.kuaidiOrder,
company: data.company, company: data.company,
kuaidiTime:data.kuaidiTime,
studentCardCheckStatus: data.studentCardCheckStatus, studentCardCheckStatus: data.studentCardCheckStatus,
kdOrderId: data.kdOrderId, kdOrderId: data.kdOrderId,
orderStatus: data.orderStatus, orderStatus: data.orderStatus,
...@@ -1528,6 +1557,13 @@ ...@@ -1528,6 +1557,13 @@
openKuaiDi(){ openKuaiDi(){
}, },
typeStatus(data){
if(data === "1"){
return "省仓配送"
}else if(data === "2"){
return "本地配送"
}
}
} }
}; };
</script> </script>
......
...@@ -63,11 +63,17 @@ ...@@ -63,11 +63,17 @@
</a-auto-complete> </a-auto-complete>
</a-form-item> </a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="卡品类型"> <a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="卡品类型">
<a-radio-group v-decorator="['isXbCard']" :defaultValue="0"> <a-radio-group v-decorator="['isXbCard']" :defaultValue="0" @change="onchangeXB">
<a-radio :value="0">小白卡</a-radio> <a-radio :value="0">小白卡</a-radio>
<a-radio :value="1">预制卡</a-radio> <a-radio :value="1">预制卡</a-radio>
</a-radio-group> </a-radio-group>
</a-form-item> </a-form-item>
<a-form-item v-show="modifyForm.isXbCard===0" :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="配送方式">
<a-radio-group v-decorator="['isDelivery']" :defaultValue="1">
<a-radio :value="1">省仓配送</a-radio>
<a-radio :value="2">本地配送</a-radio>
</a-radio-group>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="月基本费用"> <a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="月基本费用">
<a-input placeholder="月基本费用" v-decorator="[ 'monthFee', {rules: [{ required: true, message: '月基本费用不能为空!' ,whitespace:true}]} ]"></a-input> <a-input placeholder="月基本费用" v-decorator="[ 'monthFee', {rules: [{ required: true, message: '月基本费用不能为空!' ,whitespace:true}]} ]"></a-input>
</a-form-item> </a-form-item>
...@@ -154,6 +160,7 @@ ...@@ -154,6 +160,7 @@
}, },
data: function () { data: function () {
return { return {
radioValue: 0,
emptyText: {emptyText: '暂无数据'}, emptyText: {emptyText: '暂无数据'},
header:{ header:{
"Authorization":Vue.ls.get(ACCESS_TOKEN) "Authorization":Vue.ls.get(ACCESS_TOKEN)
...@@ -168,7 +175,6 @@ ...@@ -168,7 +175,6 @@
previewVisiblexiaotu: false, previewVisiblexiaotu: false,
previewImagexiaotu: '', previewImagexiaotu: '',
fileListxiaotu:[], fileListxiaotu:[],
fileid:{}, fileid:{},
brackgroundurl:"manager/ciop/packageManagement/package/backgroundUpload", brackgroundurl:"manager/ciop/packageManagement/package/backgroundUpload",
xiaotuurl:"manager/ciop/packageManagement/package/xiaotuUpload", xiaotuurl:"manager/ciop/packageManagement/package/xiaotuUpload",
...@@ -179,7 +185,8 @@ ...@@ -179,7 +185,8 @@
id:"", id:"",
packageName:"", packageName:"",
name:"", name:"",
isXbCard:"", isXbCard:1,
isDelivery:"",
monthFee:"", monthFee:"",
flow:"", flow:"",
voice:"", voice:"",
...@@ -325,25 +332,24 @@ ...@@ -325,25 +332,24 @@
}, },
add(){ add(){
this.fileid={id:""} this.fileid={id:""}
this.modifyvisible=true
this.modifyForm.id="" this.modifyForm.id=""
this.titleName="添加" this.titleName="添加"
this.modifyForm.isXbCard = 0
packageAllList().then(res=>{ packageAllList().then(res=>{
if (res.state=="success"){ if (res.state=="success"){
this.autoCompleteResult=res.data this.autoCompleteResult=res.data
} }
}) })
setTimeout(()=>{ setTimeout(()=>{this.Formtable.setFieldsValue({isXbCard:0,})},0)
this.Formtable.setFieldsValue({ this.modifyvisible=true
isXbCard:0,
})
},0)
}, },
modifyfunction(data){ modifyfunction(data){
console.log(data)
this.modifyForm.id=data.id this.modifyForm.id=data.id
this.fileid={ this.fileid={
id:data.id id:data.id
} }
if (!(data.advImg == null || data.advImg=="")) { if (!(data.advImg == null || data.advImg=="")) {
let url = this.baseuploadUrl()+"app/ciop"+data.advImg.replace("enclosure","ciop") let url = this.baseuploadUrl()+"app/ciop"+data.advImg.replace("enclosure","ciop")
//下载图片浏览 //下载图片浏览
...@@ -365,13 +371,17 @@ ...@@ -365,13 +371,17 @@
url: xiaotuurl, url: xiaotuurl,
}) })
} }
// 判断配送方式是否为空
if (data.isDelivery == null) {
data.isDelivery = "";
}
this.titleName="编辑" this.titleName="编辑"
this.modifyvisible=true
setTimeout(()=>{ setTimeout(()=>{
this.Formtable.setFieldsValue({ this.Formtable.setFieldsValue({
packageName:data.packageName, packageName:data.packageName,
name:data.name, name:data.name,
isXbCard:data.isXbCard, isXbCard:data.isXbCard,
isDelivery:data.isDelivery,
monthFee:data.monthFee, monthFee:data.monthFee,
flow:data.flow, flow:data.flow,
voice:data.voice, voice:data.voice,
...@@ -385,14 +395,20 @@ ...@@ -385,14 +395,20 @@
this.autoCompleteResult=res.data this.autoCompleteResult=res.data
} }
}) })
this.modifyForm.isXbCard = data.isXbCard
this.modifyvisible=true
},
onchangeXB(data){
this.modifyForm.isXbCard = data.target.value
}, },
//提交表单 //提交表单
createfunctionOk(){ createfunctionOk(){
this.Formtable.validateFields(['packageName', 'name',"isXbCard","monthFee", 'flow',"voice", 'xbId',"warmTip" ,'explains'], {force: true}, (err, values)=>{ this.Formtable.validateFields(['packageName', 'name',"isXbCard","isDelivery","monthFee", 'flow',"voice", 'xbId',"warmTip" ,'explains'], {force: true}, (err, values)=>{
if (!err){ if (!err){
this.modifyForm.packageName=values.packageName this.modifyForm.packageName=values.packageName
this.modifyForm.name=values.name this.modifyForm.name=values.name
this.modifyForm.isXbCard=values.isXbCard this.modifyForm.isXbCard=values.isXbCard
this.modifyForm.isDelivery=values.isDelivery
this.modifyForm.monthFee=values.monthFee this.modifyForm.monthFee=values.monthFee
this.modifyForm.flow=values.flow this.modifyForm.flow=values.flow
this.modifyForm.voice=values.voice this.modifyForm.voice=values.voice
...@@ -407,7 +423,6 @@ ...@@ -407,7 +423,6 @@
if (this.previewImagexiaotu != undefined) { if (this.previewImagexiaotu != undefined) {
this.modifyForm.smallImgBase64 = this.previewImagexiaotu; this.modifyForm.smallImgBase64 = this.previewImagexiaotu;
} }
//插入数据 //插入数据
if (this.modifyForm.id==""){ if (this.modifyForm.id==""){
insert(this.modifyForm).then(res=>{ insert(this.modifyForm).then(res=>{
...@@ -444,6 +459,7 @@ ...@@ -444,6 +459,7 @@
packageName:"", packageName:"",
name:"", name:"",
isXbCard:0, isXbCard:0,
isDelivery:"",
monthFee:"", monthFee:"",
flow:"", flow:"",
voice:"", voice:"",
......
...@@ -566,7 +566,6 @@ ...@@ -566,7 +566,6 @@
}else{ }else{
this.fileList = obj.fileList; this.fileList = obj.fileList;
} }
}, },
delet(deletdata){ delet(deletdata){
let status=0; let status=0;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :md="3" :sm="6"> <a-col :md="3" :sm="6">
<a-form-item label="账号"> <a-form-item label="账号">
<a-input placeholder="账号" v-model="queryParam.account" style="width: 8rem;"></a-input> <a-input placeholder="账号" v-model="queryParam.account" style="width: 5rem;"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="3" :sm="6"> <a-col :md="3" :sm="6">
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</a-col> </a-col>
<a-col :md="5" :sm="10"> <a-col :md="5" :sm="10">
<a-form-item label="学校"> <a-form-item label="学校">
<a-select v-model="queryParam.salesSchool" style="width: 15rem;"> <a-select v-model="queryParam.salesSchool" style="width: 10rem;">
<a-select-option key="">--全部--</a-select-option> <a-select-option key="">--全部--</a-select-option>
<a-select-option v-for="d in schoolNames" :key="d.value" :value="d.value">{{d.text}} <a-select-option v-for="d in schoolNames" :key="d.value" :value="d.value">{{d.text}}
</a-select-option> </a-select-option>
......
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