Bläddra i källkod

添加线下支付金额 订单管理,我的订单,修改订单 审核订单

xgb 1 vecka sedan
förälder
incheckning
c715775e6f

+ 19 - 1
src/views/hisStore/components/productOrder.vue

@@ -329,6 +329,18 @@
         <el-form-item label="订单手机号" prop="userPhone"  >
           <el-input v-model="editForm.userPhone" placeholder="请输入手机号" style="width:200px"/>
         </el-form-item>
+        <!--  线下支付金额      -->
+        <el-form-item label="线下支付金额" prop="offlinePayAmount"  >
+          <el-input
+            v-model.number="editForm.offlinePayAmount"
+            type="number"
+            step="0.01"
+            placeholder="请输入"
+            :min="0"
+            @blur="formatAmount"
+            style="width:200px"
+          />
+        </el-form-item>
         <el-form-item label="备注" prop="mark"  >
           <el-input v-model="editForm.mark" placeholder="请输入备注" />
         </el-form-item>
@@ -591,6 +603,7 @@ export default {
         orderVisit:null,
         mark:"",
         userPhone:null,
+        offlinePayAmount: 0.00,
       },
       editRules: {
         userPhone: [
@@ -638,7 +651,11 @@ export default {
       return this.$store.state.user.user;
     }
   },
-  methods: {
+  methods: {formatAmount() {
+    if (typeof this.editForm.offlinePayAmount === 'number') {
+        this.editForm.offlinePayAmount = parseFloat(this.editForm.offlinePayAmount.toFixed(2));
+      }
+    },
     closeSms(){
       this.addSms.open=false;
     },
@@ -851,6 +868,7 @@ export default {
     },
     editOrder(){
         this.edit.open=true;
+        this.editForm.offlinePayAmount=this.order.offlinePayAmount;
         this.editForm.mark=this.order.mark
         this.editForm.id=this.order.id;
         this.editForm.userPhone=null;

+ 5 - 0
src/views/hisStore/storeOrder/list.vue

@@ -257,6 +257,11 @@
                   <span v-if="scope.row.payPrice!=null">{{scope.row.payPrice.toFixed(2)}}</span>
               </template>
           </el-table-column>
+          <el-table-column label="线下支付金额" align="center" prop="offlinePayAmount" >
+            <template slot-scope="scope">
+              <span v-if="scope.row.offlinePayAmount!=null">{{scope.row.offlinePayAmount.toFixed(2)}}</span>
+            </template>
+          </el-table-column>
           <el-table-column label="下单时间" align="center" prop="createTime" width="100"/>
           <!-- <el-table-column label="支付状态" align="center" prop="paid" /> -->
           <el-table-column label="支付时间" align="center" prop="payTime" width="100">

+ 5 - 0
src/views/hisStore/storeOrder/myList.vue

@@ -205,6 +205,11 @@
               <span v-if="scope.row.payPrice!=null">{{scope.row.payPrice.toFixed(2)}}</span>
           </template>
       </el-table-column>
+      <el-table-column label="线下支付金额" align="center" prop="offlinePayAmount" >
+        <template slot-scope="scope">
+          <span v-if="scope.row.offlinePayAmount!=null">{{scope.row.offlinePayAmount.toFixed(2)}}</span>
+        </template>
+      </el-table-column>
       <el-table-column label="下单时间" align="center" prop="createTime" width="100"/>
       <!-- <el-table-column label="支付状态" align="center" prop="paid" /> -->
       <el-table-column label="支付时间" align="center" prop="payTime" width="100">

+ 5 - 0
src/views/hisStore/storeOrderAudit/audit.vue

@@ -220,6 +220,11 @@
           {{ scope.row.totalPrice ? parseFloat(scope.row.totalPrice).toFixed(2) : '0.00' }}
         </template>
       </el-table-column>
+      <el-table-column label="线下支付金额" align="center" prop="offlinePayAmount" >
+        <template slot-scope="scope">
+          <span v-if="scope.row.offlinePayAmount!=null">{{scope.row.offlinePayAmount.toFixed(2)}}</span>
+        </template>
+      </el-table-column>
       <el-table-column label="手机号" align="center" prop="userPhone"  width="120"/>
       <el-table-column label="审核时间" align="center" prop="companyAuditTime"  width="160"/>
       <el-table-column label="审核人" align="center" prop="companyAuditUserName" />