From f93f02d8cc15732652c751f69e7319858ca6f0a4 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期三, 21 一月 2026 17:19:26 +0800
Subject: [PATCH] 经销商管理

---
 admin/src/components/business/OperaGoodsShopWindow.vue |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/admin/src/components/business/OperaGoodsShopWindow.vue b/admin/src/components/business/OperaGoodsShopWindow.vue
index a050866..0030c5c 100644
--- a/admin/src/components/business/OperaGoodsShopWindow.vue
+++ b/admin/src/components/business/OperaGoodsShopWindow.vue
@@ -109,7 +109,10 @@
               <el-input v-if="scope.row.isPriceSelected" v-model="scope.row.shopPrice"
                         @focus="focusEvent(scope.row,scope.$index,scope.column)"
                         @blur="blurEvent(scope.row,scope.$index,scope.column)" v-focus></el-input>
-              <p style="cursor: pointer" class="blue" title="鐐瑰嚮缂栬緫" @click="cellClick(scope.row, scope.column)" v-else>{{scope.row.shopPrice || '鏈缃�' }}</p>
+              <p :style="'cursor: pointer;'+((scope.row.skuPrice||0) <= (scope.row.shopPrice||0)?'color: red':'')+';'" class="blue" title="鐐瑰嚮缂栬緫" @click="cellClick(scope.row, scope.column)" v-else>
+                {{scope.row.shopPrice || '鏈缃�' }}
+                <i v-if="(scope.row.skuPrice||0) <= (scope.row.shopPrice||0)" class="el-icon-warning" style="color: red"></i>
+              </p>
             </template>
           </el-table-column>
 <!--          <el-table-column
@@ -163,7 +166,7 @@
         brandId: '',
         // 绫诲瀷 0骞冲彴鍟嗗煄 1鍜栬眴鍟嗗煄 2鍜栧暋璁″垝鍟嗗搧
         type: '0', // 骞冲彴鍟嗗搧
-        status: '',
+        status: 0,
         labels: ''
       },
       labels: [],
@@ -255,8 +258,14 @@
       row.oldShopsPrice = row.shopPrice
     },
     blurEvent (row, curIndex, column) {
-      if ( !this.skuPrice || this.skuPrice <= row.shopPrice) {
-        this.$tip.error('渚涜揣浠蜂笉鑳戒綆浜庨攢鍞环')
+      if ( !row.skuPrice) {
+        this.$tip.error('鍟嗗搧閿�鍞环鏈缃紒')
+        row.isPriceSelected = !row.isPriceSelected
+        row.shopPrice = row.oldShopsPrice// 浠锋牸杩樺師
+        return
+      }
+      if (  row.skuPrice <= row.shopPrice) {
+        this.$tip.error('渚涜揣浠蜂笉鑳藉ぇ浜庨攢鍞环')
         row.isPriceSelected = !row.isPriceSelected
         row.shopPrice = row.oldShopsPrice// 浠锋牸杩樺師
         return

--
Gitblit v1.9.3