|
@@ -185,22 +185,8 @@
|
|
|
data.removeTab()
|
|
|
}"/>
|
|
|
</div>
|
|
|
- <!-- 查看详情 -->
|
|
|
- <div v-if="activeKey == 'details'" style="width:100%;height:100%;">
|
|
|
- <detailsV :detailsId="detailsId" :detailsType="detailsType" @viewMaterialFlow="viewMaterialFlow" @removeTab="()=>{
|
|
|
- getList()
|
|
|
- data.removeTab()
|
|
|
- }"/>
|
|
|
- </div>
|
|
|
- <!-- 确认收款 -->
|
|
|
- <div v-if="activeKey == 'materialDetail'" style="width:100%;height:100%;">
|
|
|
- <detailsV :detailsId="detailsId" :detailsType="detailsType" @viewMaterialFlow="viewMaterialFlow" @removeTab="()=>{
|
|
|
- getList()
|
|
|
- data.removeTab()
|
|
|
- }"/>
|
|
|
- </div>
|
|
|
- <!-- 退货 -->
|
|
|
- <div v-if="activeKey == 'editAddress3'" style="width:100%;height:100%;">
|
|
|
+ <!-- 查看详情 / 确认收款 / 退货-->
|
|
|
+ <div v-if="~activeKey.indexOf('details_')" style="width:100%;height:100%;">
|
|
|
<detailsV :detailsId="detailsId" :detailsType="detailsType" @viewMaterialFlow="viewMaterialFlow" @removeTab="()=>{
|
|
|
getList()
|
|
|
data.removeTab()
|
|
@@ -300,11 +286,11 @@ export default {
|
|
|
viewDetails(row, type){
|
|
|
this.$refs.tabPage.addTab({
|
|
|
// 对应显示的模块
|
|
|
- activeKey: "details",
|
|
|
+ activeKey: "details_"+type,
|
|
|
// 唯一标识
|
|
|
- key: "details",
|
|
|
+ key: "details_"+type,
|
|
|
// 页签名称
|
|
|
- label: "订单详情",
|
|
|
+ label: ["订单详情", "确认收款", "退货退款"][type],
|
|
|
// 打开时事件
|
|
|
triggerEvent: () => {
|
|
|
this.detailsId = row.esOrderId
|