Просмотр исходного кода

修复酷乐秀商城 收货地址

mo 2 лет назад
Родитель
Сommit
42605fd650
1 измененных файлов с 26 добавлено и 9 удалено
  1. 26 9
      src/views/oms/order/orderDetail.vue

+ 26 - 9
src/views/oms/order/orderDetail.vue

@@ -56,7 +56,7 @@
             >修改收货人信息</el-button
           >
           <!-- <el-button size="mini" @click="showMessageDialog">发送站内信</el-button> -->
-          <el-button size="mini">取消订单</el-button>
+          <!-- <el-button size="mini">取消订单</el-button> -->
           <el-button size="mini" @click="showMarkOrderDialog"
             >备注订单</el-button
           >
@@ -161,9 +161,16 @@
           <el-col :span="6" class="table-cell">{{
             order.receiverPostCode
           }}</el-col>
-          <el-col :span="6" class="table-cell">{{
-            order | formatAddress
-          }}</el-col>
+          <el-col :span="6" class="table-cell">
+            <el-tooltip
+              class="item"
+              effect="dark"
+              :content="order | formatAddress"
+              placement="top"
+            >
+              <p class="address">{{ order | formatAddress }}</p>
+            </el-tooltip>
+          </el-col>
         </el-row>
       </div>
       <div style="margin-top: 20px">
@@ -517,7 +524,7 @@ export default {
       messageDialogVisible: false,
       message: { title: null, content: null },
       closeDialogVisible: false,
-      closeInfo: { note: '', id: '' },
+      closeInfo: { note: "", id: "" },
       markOrderDialogVisible: false,
       markInfo: { note: null },
       logisticsDialogVisible: false,
@@ -730,7 +737,7 @@ export default {
     },
     showCloseOrderDialog() {
       this.closeDialogVisible = true;
-      this.closeInfo.note = '';
+      this.closeInfo.note = "";
       this.closeInfo.id = this.id;
     },
     handleCloseOrder() {
@@ -761,7 +768,7 @@ export default {
     showMarkOrderDialog() {
       this.markOrderDialogVisible = true;
       this.markInfo.id = this.id;
-      this.markInfo.note = '';
+      this.markInfo.note = "";
     },
     handleMarkOrder() {
       this.$confirm("是否要备注订单?", "提示", {
@@ -773,7 +780,11 @@ export default {
         // params.append("id", this.markInfo.id);
         // params.append("note", this.markInfo.note);
         // params.append("status", this.order.status);
-        let obj = {id:this.markInfo.id,note:this.markInfo.note,status:this.order.status}
+        let obj = {
+          id: this.markInfo.id,
+          note: this.markInfo.note,
+          status: this.order.status,
+        };
         updateOrderNote(obj).then((response) => {
           this.markOrderDialogVisible = false;
           this.$message({
@@ -794,7 +805,7 @@ export default {
       }).then(() => {
         // let params = new URLSearchParams();
         // params.append("ids", [this.id]);
-        let obj = {ids:this.id}
+        let obj = { ids: this.id };
         deleteOrder(obj).then((response) => {
           this.$message({
             message: "删除成功!",
@@ -857,6 +868,12 @@ export default {
   font-size: 14px;
   color: #303133;
 }
+.address {
+  overflow: hidden;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+  margin: 0;
+}
 </style>