ソースを参照

修改订单产品明细字段

hurx 3 ヶ月 前
コミット
3dece96398

+ 50 - 0
src/api/order/orderProduct/types.ts

@@ -53,6 +53,31 @@ export interface OrderProductVO {
    */
   platformPrice: number;
 
+  /**
+   * 税率
+   */
+  taxRate: number;
+
+  /**
+   * 平台价格价
+   */
+  marketPrice: number;
+
+  /**
+   * 会员价格
+   */
+  memberPrice: number;
+
+  /**
+   * 采购价格
+   */
+  purchasingPrice: number;
+
+  /**
+   * 最高采购价
+   */
+  maxPurchasePrice: number;
+
   /**
    * 最小起订量
    */
@@ -177,6 +202,31 @@ export interface OrderProductForm extends BaseEntity {
    */
   platformPrice?: number;
 
+  /**
+   * 税率
+   */
+  taxRate?: number;
+
+  /**
+   * 平台价格价
+   */
+  marketPrice?: number;
+
+  /**
+   * 会员价格
+   */
+  memberPrice?: number;
+
+  /**
+   * 采购价格
+   */
+  purchasingPrice?: number;
+
+  /**
+   * 最高采购价
+   */
+  maxPurchasePrice?: number;
+
   /**
    * 最小起订量
    */

+ 1 - 1
src/views/order/orderMain/components/chooseProduct.vue

@@ -58,7 +58,7 @@
       <el-table-column prop="unit" label="单位" width="80" />
       <el-table-column prop="minSellingPrice" label="最低售价" width="100" />
       <el-table-column prop="minOrderQuantity" label="起订量" width="100" />
-      <el-table-column prop="unitPrice" label="含税单价" width="100" />
+      <el-table-column prop="memberPrice" label="含税单价" width="100" />
       <el-table-column prop="productStatus" label="商品状态" width="100">
         <template #default="scope">
           <el-tag v-if="scope.row.productStatus === '0'" type="success">上架</el-tag>

+ 2 - 2
src/views/order/orderMain/index.vue

@@ -233,7 +233,6 @@
           <template #default="scope"> 增值税{{ scope.row.taxRate }}% </template>
         </el-table-column>
         <el-table-column prop="unit" label="单位" align="center" />
-        <el-table-column prop="price" label="单价" align="center" />
         <el-table-column prop="certificatePrice" label="最低售价" align="center" />
         <el-table-column prop="minOrderQuantity" label="起订量" align="center" />
         <el-table-column prop="unitPrice" label="含税单价" align="center">
@@ -610,6 +609,7 @@ const submitForm = () => {
           orderPrice: product.unitPrice, // 订单单价(含税单价)
           orderQuantity: product.quantity, // 订购数量
           subtotal: product.amount, // 行小计金额
+          taxRate: product.taxRate,
           minSellingPrice: product.certificatePrice, // 最低销售价
           preDeliveryDate: form.value.expectedDeliveryTime, // 预计送达时间
           status: '0' // 状态(0正常)
@@ -711,7 +711,7 @@ const handleProductConfirm = (product: BaseVO) => {
     price: product.standardPrice || 0, // 单价(使用平档价)
     certificatePrice: product.minSellingPrice || 0, // 最低售价
     minOrderQuantity: product.minOrderQuantity || 1, // 起订量
-    unitPrice: product.certificatePrice || 0, // 含税单价(默认使用最低售价)
+    unitPrice: product.memberPrice || 0, // 含税单价(默认使用最低售价)
     quantity: product.minOrderQuantity || 1, // 数量(默认使用起订量)
     amount: ((product.certificatePrice || 0) * (product.minOrderQuantity || 1)).toFixed(2) // 小计 = 含税单价 × 数量
   };