Browse Source

样式修改

lhch2015 1 month ago
parent
commit
82ad43f650

+ 5 - 2
admin-ui/src/components/payStatusPopup/index.vue

@@ -48,8 +48,8 @@
         </div>
         </div>
         <el-descriptions border direction="vertical" :column="3" :labelStyle="{ width: '140px' }" v-if="payType == '3'" style="margin: 0 30px">
         <el-descriptions border direction="vertical" :column="3" :labelStyle="{ width: '140px' }" v-if="payType == '3'" style="margin: 0 30px">
           <el-descriptions-item label="用户" v-if="appUserInfo">{{ appUserInfo.realName }}</el-descriptions-item>
           <el-descriptions-item label="用户" v-if="appUserInfo">{{ appUserInfo.realName }}</el-descriptions-item>
-          <el-descriptions-item label="当前余额(元)" v-if="appUserInfo">{{ appUserInfo.rechargeBalance + appUserInfo.giveBalance }}</el-descriptions-item>
-          <el-descriptions-item label="支付后余额(元)" v-if="appUserInfo">{{ appUserInfo.rechargeBalance + appUserInfo.giveBalance - orderInfo.payAmount }}</el-descriptions-item>
+          <el-descriptions-item label="当前余额(元)" v-if="appUserInfo">{{ handelAmount(appUserInfo.rechargeBalance + appUserInfo.giveBalance) }}</el-descriptions-item>
+          <el-descriptions-item label="支付后余额(元)" v-if="appUserInfo">{{ handelAmount(appUserInfo.rechargeBalance + appUserInfo.giveBalance - orderInfo.payAmount) }}</el-descriptions-item>
         </el-descriptions>
         </el-descriptions>
         <div class="cell" v-if="payType == 0">
         <div class="cell" v-if="payType == 0">
           <div class="label">付款码</div>
           <div class="label">付款码</div>
@@ -183,6 +183,9 @@ export default {
   },
   },
 
 
   methods: {
   methods: {
+    handelAmount(e) {
+      return e.toFixed(2)
+    },
     openSelected(info) {
     openSelected(info) {
       console.log()
       console.log()
       this.orderInfo = info
       this.orderInfo = info

+ 1 - 1
admin-ui/src/views/activity/couponInfo/index.vue

@@ -634,7 +634,7 @@ export default {
     }
     }
 
 
     .radio-group-block {
     .radio-group-block {
-        display: flex;
+        // display: flex;
         width: 100%;
         width: 100%;
 
 
         .el-radio-button {
         .el-radio-button {

+ 8 - 5
admin-ui/src/views/activity/couponItem/index.vue

@@ -345,7 +345,7 @@ export default {
                 .catch(() => {})
                 .catch(() => {})
         },
         },
         handleClose(done) {
         handleClose(done) {
-            if (this.isFormChanged()) {
+            // if (this.isFormChanged()) {
                 this.$confirm('确认关闭?未保存的数据将会丢失', '提示', {
                 this.$confirm('确认关闭?未保存的数据将会丢失', '提示', {
                     confirmButtonText: '确定',
                     confirmButtonText: '确定',
                     cancelButtonText: '取消',
                     cancelButtonText: '取消',
@@ -354,11 +354,14 @@ export default {
                     this.reset()
                     this.reset()
                     done()
                     done()
                 }).catch(() => {})
                 }).catch(() => {})
-            } else {
-                this.reset()
-                done()
-            }
+            // } else {
+            //     this.reset()
+            //     done()
+            // }
         },
         },
+        // isFormChanged() {
+        //     return this.sendCouponForm.appUserPhoneNumber || this.sendCouponForm.sendNum
+        // },
         handleStockClose(done) {
         handleStockClose(done) {
             if (this.stockForm.stockNum) {
             if (this.stockForm.stockNum) {
                 this.$confirm('确认关闭?未保存的数据将会丢失', '提示', {
                 this.$confirm('确认关闭?未保存的数据将会丢失', '提示', {

+ 1 - 1
admin-ui/src/views/activity/discountInfo/index.vue

@@ -483,7 +483,7 @@ export default {
     }
     }
 
 
     .radio-group-block {
     .radio-group-block {
-        display: flex;
+        // display: flex;
         width: 100%;
         width: 100%;
 
 
         .el-radio-button {
         .el-radio-button {

+ 1 - 1
admin-ui/src/views/activity/rechargeInfo/index.vue

@@ -397,7 +397,7 @@ export default {
     }
     }
 
 
     .radio-group-block {
     .radio-group-block {
-        display: flex;
+        // display: flex;
         width: 100%;
         width: 100%;
 
 
         .el-radio-button {
         .el-radio-button {

+ 3 - 0
admin-ui/src/views/coupon/type/index.vue

@@ -354,6 +354,9 @@ export default {
         this.getList()
         this.getList()
     },
     },
     methods: {
     methods: {
+        formatAmount(amount) {
+            return parseFloat(amount).toFixed(2)
+        },
         getThirdPartyList() {
         getThirdPartyList() {
             listThirdParty({ pageSize: 99999, pageNum: 1, status: '0' }).then((response) => {
             listThirdParty({ pageSize: 99999, pageNum: 1, status: '0' }).then((response) => {
                 this.thirdPartyList = response.rows
                 this.thirdPartyList = response.rows

+ 10 - 6
admin-ui/src/views/order/cloth/collectCloth.vue

@@ -214,7 +214,7 @@
                             icon="el-icon-shopping-cart-2"
                             icon="el-icon-shopping-cart-2"
                             :loading="confirmLoading"
                             :loading="confirmLoading"
                             @click="handleConfirmPay">
                             @click="handleConfirmPay">
-                            收银{{ confirmLoading }}
+                            收银
                         </el-button>
                         </el-button>
                     </div>
                     </div>
                 </div>
                 </div>
@@ -488,7 +488,7 @@
             </span>
             </span>
         </el-dialog>
         </el-dialog>
 
 
-        <el-dialog title="收银" :visible.sync="confirmPayOpen" size="90%" :before-close="handleClose" destroy-on-close append-to-body>
+        <el-dialog title="收银" :visible.sync="confirmPayOpen" width="90%" :before-close="handleClose" destroy-on-close append-to-body>
             <CashCloth ref="cashCloth" :orderForm="orderForm" :orderClothItemDTOS="orderClothItemDTOS" :appUserInfo="appUserInfo" :clothSpeeds="clothSpeeds" :deductCouponVOS="deductCouponVOS" :discountCouponVOS="discountCouponVOS" @onPaySuccess="onPaySuccess" @initOrderList="initOrderList" @confirm="handelPaySuccess"/>
             <CashCloth ref="cashCloth" :orderForm="orderForm" :orderClothItemDTOS="orderClothItemDTOS" :appUserInfo="appUserInfo" :clothSpeeds="clothSpeeds" :deductCouponVOS="deductCouponVOS" :discountCouponVOS="discountCouponVOS" @onPaySuccess="onPaySuccess" @initOrderList="initOrderList" @confirm="handelPaySuccess"/>
         </el-dialog>
         </el-dialog>
 
 
@@ -1529,10 +1529,10 @@ export default {
 
 
                 return
                 return
             }
             }
-            // if (!this.orderForm.sendClothWay) {
-            //     this.$message.error('请先选取衣方式')
-            //     return
-            // }
+            if (!this.orderForm.sendClothWay) {
+                this.$message.error('请先选取衣方式')
+                return
+            }
 
 
             if (this.orderForm.isAppointment == 'Y') {
             if (this.orderForm.isAppointment == 'Y') {
                 var res = await getInfoByOrderNo({ orderNo: this.orderForm.orderNo, appUserId: this.appUserInfo.id })
                 var res = await getInfoByOrderNo({ orderNo: this.orderForm.orderNo, appUserId: this.appUserInfo.id })
@@ -1540,6 +1540,10 @@ export default {
                     this.$message.error('未查询到预约订单')
                     this.$message.error('未查询到预约订单')
                     return
                     return
                 }
                 }
+                if (!this.orderForm.sendClothWay) {
+                    this.$message.error('请先选取衣方式')
+                    return
+                }
                 // this.orderForm.sendClothWay = res.data.sendClothWay
                 // this.orderForm.sendClothWay = res.data.sendClothWay
             }
             }
 
 

+ 2 - 2
admin-ui/src/views/order/cloth/component/cashCloth.vue

@@ -14,7 +14,7 @@
                         <el-card class="info-card">
                         <el-card class="info-card">
                             <div class="card-header">
                             <div class="card-header">
                                 <span class="title">订单信息</span>
                                 <span class="title">订单信息</span>
-                                <el-tag v-if="orderForm.isAppointment === 'Y'" type="success">预约订单</el-tag>
+                                <el-tag v-if="orderForm.isAppointment === 'Y'" type="success" style="margin-left: 10px;">预约订单</el-tag>
                             </div>
                             </div>
 
 
                             <!-- 订单基本信息 -->
                             <!-- 订单基本信息 -->
@@ -50,7 +50,7 @@
                                 </div>
                                 </div>
                                 <div class="info-item">
                                 <div class="info-item">
                                     <span class="label">可用余额:</span>
                                     <span class="label">可用余额:</span>
-                                    <span class="value balance">¥{{ appUserInfo.rechargeBalance + appUserInfo.giveBalance + appUserInfo.welfareBalance  }}</span>
+                                    <span class="value balance">¥{{ Math.round((appUserInfo.rechargeBalance + appUserInfo.giveBalance + appUserInfo.welfareBalance) * 100) / 100  }}</span>
                                 </div>
                                 </div>
                             </div>
                             </div>
                         </el-card>
                         </el-card>

+ 3 - 3
admin-ui/src/views/order/statistics/charge.vue

@@ -1,7 +1,7 @@
 <template>
 <template>
   <div class="app-container">
   <div class="app-container">
     <!-- 搜索区域 -->
     <!-- 搜索区域 -->
-    <el-form :model="queryParams" ref="queryForm" @submit.native.prevent :inline="true" v-show="showSearch" label-width="68px">
+    <el-form :model="queryParams" ref="queryForm" @submit.native.prevent :inline="true" v-show="showSearch" label-width="80px">
       <el-form-item label="日期范围" prop="dateRange">
       <el-form-item label="日期范围" prop="dateRange">
         <el-date-picker
         <el-date-picker
           v-model="dateRange"
           v-model="dateRange"
@@ -14,8 +14,8 @@
         ></el-date-picker>
         ></el-date-picker>
       </el-form-item>
       </el-form-item>
       <el-form-item>
       <el-form-item>
-        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
-        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+        <el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
+        <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
       </el-form-item>
       </el-form-item>
     </el-form>
     </el-form>