huangmp 2 anos atrás
pai
commit
8513950e03

+ 5 - 0
src/views/modules/afterSales/thirdAfterSales-add-or-update.vue

@@ -93,6 +93,11 @@
             <el-input :disabled="isView" v-model="dataForm.refundAmount" style="width: 220px"></el-input>
           </el-form-item>
         </el-col>
+        <el-col :span="12">
+          <el-form-item label="退款金额(按成本)" prop="costAmount">
+            <el-input :disabled="isView" v-model="dataForm.costAmount" style="width: 220px"></el-input>
+          </el-form-item>
+        </el-col>
         <el-col :span="12">
           <el-form-item label="退款方式" prop="refundType">
             <el-select

+ 7 - 1
src/views/modules/afterSales/thirdAfterSales.vue

@@ -118,7 +118,12 @@
             </template>
           </el-table-column>
           <!-- 退款金额 -->
-          <el-table-column label="退款金额" prop="refundAmount" align="center">
+          <el-table-column label="退款金额(按成本)" prop="refundAmount" align="center">
+            <template slot-scope="scope">
+              <span>{{ scope.row.costAmount}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column label="退款金额" prop="refundAmount" align="center" v-if="shopId === 1">
             <template slot-scope="scope">
               <span>{{ scope.row.refundAmount}}</span>
             </template>
@@ -199,6 +204,7 @@ export default {
         currentPage: 1, // 当前页数
         pageSize: 10 // 每页显示多少条
       },
+      shopId: this.$store.state.user.shopId,
       searchForm: {
         printChannel: null,
         status: null,