提交 c8d895fa 编写于 作者: yi.li's avatar yi.li

店铺类型修改

上级 8e40bb4d
...@@ -15,28 +15,28 @@ ...@@ -15,28 +15,28 @@
<span>{{storeType == 1 ? '物流' : '配送'}}信息</span> <span>{{storeType == 1 ? '物流' : '配送'}}信息</span>
</div> </div>
<div v-if="showStatus == 1 || showStatus == 2"> <div v-if="showStatus == 1 || showStatus == 2">
<div v-if="storeType == 2"> <div v-if="storeType == 3">
<p>无配送信息,买家自提</p> <p>无配送信息,买家自提</p>
</div> </div>
<div v-else> <div v-else>
<p class="trade-status1"> <p class="trade-status1">
<i class="el-icon-truck" style="font-size: 18px"></i> <i class="el-icon-truck" style="font-size: 18px"></i>
<span class="send-status" v-if="storeType == 1">已发货</span> <span class="send-status" v-if="storeType == 1">已发货</span>
<span class="send-status" v-if="storeType == 3">云鹊配送中</span> <span class="send-status" v-if="storeType == 2">云鹊配送中</span>
</p> </p>
<p>收货地址:{{orderDetailData.receiverAddr}}{{orderDetailData.receiver}}{{orderDetailData.receiverMobile}}</p> <p>收货地址:{{orderDetailData.receiverAddr}}{{orderDetailData.receiver}}{{orderDetailData.receiverMobile}}</p>
<div v-if="storeType == 1"> <div v-if="storeType == 1">
<p>物流公司:{{orderDetailData.expressName}}</p> <p>物流公司:{{orderDetailData.expressName}}</p>
<p>快递单号:{{orderDetailData.expressNo}}</p> <p>快递单号:{{orderDetailData.expressNo}}</p>
</div> </div>
<div v-if="storeType == 3"> <div v-if="storeType == 2">
<p>配送员姓名:{{orderDetailData.sender}}</p> <p>配送员姓名:{{orderDetailData.sender}}</p>
<p>手机号:{{orderDetailData.senderMobile}}</p> <p>手机号:{{orderDetailData.senderMobile}}</p>
</div> </div>
<p>备注:{{orderDetailData.remark}}</p> <p>备注:{{orderDetailData.remark}}</p>
</div> </div>
</div> </div>
<div v-if="(showStatus == 3) && (storeType == 1 || storeType == 3)"> <div v-if="(showStatus == 3) && (storeType == 1 || storeType == 2)">
<div class="trade-status1"> <div class="trade-status1">
<p> <p>
<i class="el-icon-truck" style="font-size: 18px"></i> <i class="el-icon-truck" style="font-size: 18px"></i>
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
storeId: null, storeId: null,
orderId: null, orderId: null,
showStatus: null,//订单展示状态,1已完成,2已发货,3待发货,4待支付,5交易关闭 showStatus: null,//订单展示状态,1已完成,2已发货,3待发货,4待支付,5交易关闭
storeType: null,//店铺类型,1供应商,2医生小店,3小药房 storeType: null,//店铺类型,1供应商,2小药房,3医生小店
orderDetailData: { orderDetailData: {
amount: '',//订单实付总金额 amount: '',//订单实付总金额
createdTime: '',//下单时间 createdTime: '',//下单时间
......
...@@ -86,9 +86,9 @@ ...@@ -86,9 +86,9 @@
<!--<el-button @click="closeTrade(scope.row)" type="text" size="small">关闭交易</el-button>--> <!--<el-button @click="closeTrade(scope.row)" type="text" size="small">关闭交易</el-button>-->
<!--<el-button @click="changePrice(scope.row)" type="text" size="small">修改价格</el-button>--> <!--<el-button @click="changePrice(scope.row)" type="text" size="small">修改价格</el-button>-->
<el-button v-if="scope.row.storeType == 1 && scope.row.showStatus == 3" @click="sendGoods(scope.row)" type="text" size="small">发货</el-button> <el-button v-if="scope.row.storeType == 1 && scope.row.showStatus == 3" @click="sendGoods(scope.row)" type="text" size="small">发货</el-button>
<el-button v-if="scope.row.storeType == 3 && scope.row.showStatus == 3" @click="distribute(scope.row)" type="text" size="small">配送</el-button> <el-button v-if="scope.row.storeType == 2 && scope.row.showStatus == 3" @click="distribute(scope.row)" type="text" size="small">配送</el-button>
<el-button v-if="scope.row.storeType == 1 && (scope.row.showStatus == 1 || scope.row.showStatus == 2)" @click="viewLogistics(scope.row)" type="text" size="small">查看物流</el-button> <el-button v-if="scope.row.storeType == 1 && (scope.row.showStatus == 1 || scope.row.showStatus == 2)" @click="viewLogistics(scope.row)" type="text" size="small">查看物流</el-button>
<el-button v-if="scope.row.storeType == 3 && scope.row.showStatus == 2" @click="distributeComplete(scope.row)" type="text" size="small">配送完成</el-button> <el-button v-if="scope.row.storeType == 2 && scope.row.showStatus == 2" @click="distributeComplete(scope.row)" type="text" size="small">配送完成</el-button>
<el-button @click="goDetail(scope.row)" type="text" size="small">查看详情</el-button> <el-button @click="goDetail(scope.row)" type="text" size="small">查看详情</el-button>
</div> </div>
</template> </template>
...@@ -221,8 +221,6 @@ ...@@ -221,8 +221,6 @@
curmbFirst: '云鹊店铺', curmbFirst: '云鹊店铺',
curmbSecond: '订单管理', curmbSecond: '订单管理',
activeName: 'all', activeName: 'all',
showAllFlag: false,
showNewFlag: false,
searchForm: { searchForm: {
showStatus: -1, showStatus: -1,
storeId: 0, storeId: 0,
...@@ -244,16 +242,6 @@ ...@@ -244,16 +242,6 @@
// createdTime: '', // createdTime: '',
// } // }
], ],
typeList: [{
label: '供货商',
value: '1',
}, {
label: '医生小店',
value: '2',
}, {
label: '小药房',
value: '3',
}],
closeTradeDialog: false, closeTradeDialog: false,
reasonTxt: '', reasonTxt: '',
changePriceDialog: false, changePriceDialog: false,
...@@ -288,21 +276,6 @@ ...@@ -288,21 +276,6 @@
if (res.code == '000000') { if (res.code == '000000') {
this.tableData = res.data.orderSingleDtoList; this.tableData = res.data.orderSingleDtoList;
this.totalRows = res.data.totalNum; this.totalRows = res.data.totalNum;
/*let item = {
id: 123,
goodsName: [
{
name: '阿莫西林',
},
{
name: '不知道什么鬼',
},
{
name: '啊咧',
}
],
}
this.tableData.push(item);*/
} }
}) })
}, },
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
label-width="150px" label-width="150px"
label-suffix=":" label-suffix=":"
class="basic-form" class="basic-form"
style="margin-top: 15px"
> >
<div class="basic-item-icon"> <div class="basic-item-icon">
<el-form-item label="店铺LOGO" class="required-label"> <el-form-item label="店铺LOGO" class="required-label">
...@@ -254,7 +255,7 @@ ...@@ -254,7 +255,7 @@
</div> </div>
</el-form-item> </el-form-item>
</div> </div>
<div v-if="formData.storeType == 2"> <div v-if="formData.storeType == 3">
<el-col :span="10"> <el-col :span="10">
<el-form-item label="医生姓名" prop="docName" class="required-label"> <el-form-item label="医生姓名" prop="docName" class="required-label">
<el-input <el-input
...@@ -283,7 +284,7 @@ ...@@ -283,7 +284,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</div> </div>
<div v-if="formData.storeType == 3"> <div v-if="formData.storeType == 2">
<el-col :span="10"> <el-col :span="10">
<el-form-item label="入驻药店名称" prop="drugstoreName" class="required-label"> <el-form-item label="入驻药店名称" prop="drugstoreName" class="required-label">
<el-input <el-input
...@@ -448,16 +449,16 @@ ...@@ -448,16 +449,16 @@
storeData: {}, storeData: {},
typeList: [ typeList: [
{ {
label: '供货商', label: '供货商',
value: 1, value: 1,
}, { }, {
label: '医生小店', label: '小药房',
value: 2, value: 2,
}, { }, {
label: '小药房', label: '医生小店',
value: 3, value: 3,
} }
], ],
formData: { formData: {
storeId: null, storeId: null,
userId: null, userId: null,
...@@ -595,13 +596,7 @@ ...@@ -595,13 +596,7 @@
enterType: 1, enterType: 1,
} }
}, },
watch: { watch: {},
'formData.adminList': function(val) {
val.map((item,index) => {
})
},
},
created() { created() {
vm = this; vm = this;
this.formData.storeId = this.$route.query.storeId || null; this.formData.storeId = this.$route.query.storeId || null;
...@@ -659,10 +654,10 @@ ...@@ -659,10 +654,10 @@
id: null, id: null,
}] }]
} }
}else if (storeType == 2) { }else if (storeType == 3) {
this.formData.docName = storeOwner; this.formData.docName = storeOwner;
this.formData.docPhone = storePhone; this.formData.docPhone = storePhone;
}else if (storeType == 3) { }else if (storeType == 2) {
this.formData.drugstoreName = storeOwner; this.formData.drugstoreName = storeOwner;
this.formData.drugstorePhone = storePhone; this.formData.drugstorePhone = storePhone;
if (this.storeData.imageList && this.storeData.imageList.length) { if (this.storeData.imageList && this.storeData.imageList.length) {
...@@ -748,11 +743,11 @@ ...@@ -748,11 +743,11 @@
this.supplierImg3.imageUrl = this.formData.imgUrlP3; this.supplierImg3.imageUrl = this.formData.imgUrlP3;
this.formData.imageList.push(this.supplierImg3); this.formData.imageList.push(this.supplierImg3);
} }
}else if (type == 2) { }else if (type == 3) {
this.formData.storeOwner = this.formData.docName; this.formData.storeOwner = this.formData.docName;
this.formData.storePhone = this.formData.docPhone; this.formData.storePhone = this.formData.docPhone;
this.formData.adminList = []; this.formData.adminList = [];
}else if (type == 3) { }else if (type == 2) {
this.formData.storeOwner = this.formData.drugstoreName; this.formData.storeOwner = this.formData.drugstoreName;
this.formData.storePhone = this.formData.drugstorePhone; this.formData.storePhone = this.formData.drugstorePhone;
this.formData.adminList = []; this.formData.adminList = [];
...@@ -806,7 +801,7 @@ ...@@ -806,7 +801,7 @@
flag = true; flag = true;
} }
if (this.formData.storeType == 2) { if (this.formData.storeType == 3) {
if (!this.formData.docName) { if (!this.formData.docName) {
this.$message.warning('请输入医生姓名'); this.$message.warning('请输入医生姓名');
return; return;
...@@ -822,7 +817,7 @@ ...@@ -822,7 +817,7 @@
} }
flag = true; flag = true;
} }
if (this.formData.storeType == 3) { if (this.formData.storeType == 2) {
if (!this.formData.drugstoreName) { if (!this.formData.drugstoreName) {
this.$message.warning('请输入入驻药店名称'); this.$message.warning('请输入入驻药店名称');
return; return;
......
...@@ -137,10 +137,10 @@ ...@@ -137,10 +137,10 @@
label: '供货商', label: '供货商',
value: 1, value: 1,
}, { }, {
label: '医生小店', label: '小药房',
value: 2, value: 2,
}, { }, {
label: '小药房', label: '医生小店',
value: 3, value: 3,
}] }]
} }
...@@ -246,8 +246,8 @@ ...@@ -246,8 +246,8 @@
} else { } else {
let hash = { let hash = {
1: "供货商", 1: "供货商",
2: "医生小店", 2: "小药房",
3: "小药房" 3: "医生小店"
}; };
return hash[value]; return hash[value];
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册