Parcourir la source

【修改】调整零售单

莫绍宝 il y a 3 ans
Parent
commit
7a43d96090
1 fichiers modifiés avec 6 ajouts et 8 suppressions
  1. 6 8
      src/views/supply/retail/components/retail_examine.vue

+ 6 - 8
src/views/supply/retail/components/retail_examine.vue

@@ -55,7 +55,9 @@
         fit
         highlight-current-row
         stripe
-        max-height="400">
+        max-height="400"
+        show-summary
+        :summary-method="$getSummaries">
         <el-table-column align="center" label="序号" type="index" width="50"></el-table-column>
         <el-table-column align="center" label="销售类型" prop="saleTypeName" min-width="100" show-overflow-tooltip></el-table-column>
         <el-table-column align="center" label="产品编码" prop="materialCode" min-width="160" show-overflow-tooltip></el-table-column>
@@ -64,17 +66,13 @@
         <el-table-column align="center" label="单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
         <el-table-column align="right" label="单价" prop="price" min-width="100" show-overflow-tooltip>
           <template slot-scope="scope">
-            <el-input v-model="scope.row.price" size="small" type="number"></el-input>
-          </template>
-        </el-table-column>
-        <el-table-column align="right" label="数量" prop="refundableQty" min-width="100" show-overflow-tooltip>
-          <template slot-scope="scope">
-            <el-input v-model="scope.row.refundableQty" size="small" type="number"></el-input>
+            {{ scope.row.price | numToFixed }}
           </template>
         </el-table-column>
+        <el-table-column align="right" label="数量" prop="refundableQty" min-width="100" show-overflow-tooltip></el-table-column>
         <el-table-column align="right" label="订单金额" prop="totalAmount" min-width="100" show-overflow-tooltip>
           <template slot-scope="scope">
-            {{((scope.row.price || 0) * (scope.row.refundableQty || 0)) | numToFixed }}
+            {{ scope.row.price | numToFixed }}
           </template>
         </el-table-column>
         <el-table-column align="center" label="返利类型" prop="customerWalletName2" min-width="140" show-overflow-tooltip></el-table-column>