Kaynağa Gözat

【修改】调整零售单

莫绍宝 3 yıl önce
ebeveyn
işleme
45a7f187f8

+ 1 - 1
src/views/supply/retail/components/retail_detail.vue

@@ -35,7 +35,7 @@
           </el-col>
           <el-col :span="8" class="item">
             <div class="label">业务员</div>
-            <div class="value">{{detailData.serviceName}}</div>
+            <div class="value">{{detailData.k3ServiceName}}</div>
           </el-col>
           <el-col :span="8" class="item">
             <div class="label">制单人</div>

+ 9 - 7
src/views/supply/retail/components/retail_examine.vue

@@ -26,7 +26,7 @@
         </el-col>
         <el-col :span="8" class="item">
           <div class="label">业务员</div>
-          <div class="value">{{detailData.serviceName}}</div>
+          <div class="value">{{detailData.k3ServiceName}}</div>
         </el-col>
         <el-col :span="8" class="item">
           <div class="label">制单人</div>
@@ -55,9 +55,7 @@
         fit
         highlight-current-row
         stripe
-        max-height="400"
-        show-summary
-        :summary-method="$getSummaries">
+        max-height="400">
         <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>
@@ -66,13 +64,17 @@
         <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">
-            {{ scope.row.price | numToFixed }}
+            <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>
           </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 | numToFixed }}
+            {{((scope.row.price || 0) * (scope.row.refundableQty || 0)) | numToFixed }}
           </template>
         </el-table-column>
         <el-table-column align="center" label="返利类型" prop="customerWalletName2" min-width="140" show-overflow-tooltip></el-table-column>

+ 1 - 1
src/views/supply/retail/components/retail_return.vue

@@ -26,7 +26,7 @@
         </el-col>
         <el-col :span="8" class="item">
           <div class="label">业务员</div>
-          <div class="value">{{detailData.serviceName}}</div>
+          <div class="value">{{detailData.k3ServiceName}}</div>
         </el-col>
         <el-col :span="8" class="item">
           <div class="label">制单人</div>