فهرست منبع

订单增加管理费

lxf 1 سال پیش
والد
کامیت
2535a93ac8

+ 16 - 0
src/components/shengde/SubsidiaryOrder/OrderProduct.vue

@@ -99,6 +99,9 @@
                         <span>包装人工费: {{ item.expensePrice }}</span>
                       </div>
                       <div style="line-height: 28px">
+                        <span>管理费: {{ item.managementFeesPrice }}</span>
+                      </div>
+                      <div style="line-height: 28px">
                         <span>单价: ¥{{ moneyFormat(item.productPrice, 2) }}</span>
                       </div>
                       <div style="line-height: 28px">
@@ -528,6 +531,7 @@ export default {
                 productPrice: data.price,
                 quantity: undefined,
                 expensePrice: data.expensePrice,
+                managementFeesPrice: data.managementFeesPrice,
                 deliverGoodsPrice: data.deliverGoodsPrice,
                 processPrice: data.processPrice,
                 processCostPrice: data.processCostPrice,
@@ -567,6 +571,7 @@ export default {
                   productPrice: data.price,
                   quantity: undefined,
                   expensePrice: data.expensePrice,
+                  managementFeesPrice: data.managementFeesPrice,
                   deliverGoodsPrice: data.deliverGoodsPrice,
                   processPrice: data.processPrice,
                   processCostPrice: data.processCostPrice,
@@ -609,6 +614,7 @@ export default {
               productPrice: data.price,
               quantity: undefined,
               expensePrice: data.expensePrice,
+              managementFeesPrice: data.managementFeesPrice,
               deliverGoodsPrice: data.deliverGoodsPrice,
               processPrice: data.processPrice,
               processCostPrice: data.processCostPrice,
@@ -684,6 +690,9 @@ export default {
         if (item.expensePrice) {
           money = parseFloat(Number(money) + Number(item.expensePrice)).toFixed(2)
         }
+        if (item.managementFeesPrice) {
+          money = parseFloat(Number(money) + Number(item.managementFeesPrice)).toFixed(2)
+        }
         if (item.deliverGoodsPrice) {
           money = parseFloat(Number(money) + Number(item.deliverGoodsPrice)).toFixed(2)
         }
@@ -747,6 +756,7 @@ export default {
         let processPrice = 0
         let expressPriceAmount = 0
         let expensePriceAmount = 0
+        let managementFeesPriceAmount = 0
         let packingMaterialAmount = 0
         this.form.contractProductList.map((item) => {
           if (item.quantity) {
@@ -765,6 +775,9 @@ export default {
             if (item.expensePrice) {
               expensePriceAmount = parseFloat(Number(expensePriceAmount) + Number(item.expensePrice) * Number(item.quantity)).toFixed(2)
             }
+            if (item.managementFeesPrice) {
+              managementFeesPriceAmount = parseFloat(Number(managementFeesPriceAmount) + Number(item.managementFeesPrice) * Number(item.quantity)).toFixed(2)
+            }
             if (item.partsContractProductList && item.partsContractProductList.length > 0) {
               item.partsContractProductList.map((itemBOM) => {
                 if (itemBOM.quantity && itemBOM.price) {
@@ -779,6 +792,7 @@ export default {
         this.form.processPrice = processPrice
         this.form.expressPriceAmount = expressPriceAmount
         this.form.expensePriceAmount = expensePriceAmount
+        this.form.managementFeesPriceAmount = managementFeesPriceAmount
         this.form.packingMaterialAmount = packingMaterialAmount
         this.form.contractAmount = parseFloat(
           Number(productPriceAmount) +
@@ -786,6 +800,7 @@ export default {
             Number(processPrice) +
             Number(expressPriceAmount) +
             Number(expensePriceAmount) +
+            Number(managementFeesPriceAmount) +
             Number(packingMaterialAmount)
         ).toFixed(2)
         this.form.amount = this.form.contractAmount
@@ -953,6 +968,7 @@ export default {
       getPrice({ id: item.productColorId, quantity: item.quantity }).then((res) => {
         item.productPrice = res.data.data.bomPrice
         item.expensePrice = res.data.data.expensePrice
+        item.managementFeesPrice = res.data.data.managementFeesPrice
         item.deliverGoodsPrice = res.data.data.deliverGoodsPrice
         item.expressPrice = res.data.data.expressPrice
         item.expressCostPrice = res.data.data.expressCostPrice

+ 1 - 0
src/components/shengde/SubsidiaryOrder/OrderTotalOf.vue

@@ -7,6 +7,7 @@
       <span style="font-weight: 700; color: #6c88f1; margin-left: 40px">快递包材费: ¥{{ moneyFormat(form.expressPriceAmount, 2) }}</span>
       <span style="font-weight: 700; color: #6c88f1; margin-left: 40px">包装人工费: ¥{{ moneyFormat(form.expensePriceAmount, 2) }}</span>
       <span style="font-weight: 700; color: #6c88f1; margin-left: 40px">包材费: ¥{{ moneyFormat(form.packingMaterialAmount, 2) }}</span>
+      <span style="font-weight: 700; color: #6c88f1; margin-left: 40px">管理费: ¥{{ moneyFormat(form.managementFeesPriceAmount, 2) }}</span>
     </div>
     <div style="padding: 8px 0 0 0">
       <span style="font-weight: 700; color: red">订单总金额(含税): ¥{{ moneyFormat(form.contractAmount, 2) }}</span>

+ 1 - 0
src/components/shengde/SubsidiaryOrder/OrderTotalOfWLN.vue

@@ -7,6 +7,7 @@
       <span style="font-weight: 700; color: #6c88f1; margin-left: 16px">快递包材费: ¥{{ moneyFormat(form.expressPriceAmount, 2) }}</span>
       <span style="font-weight: 700; color: #6c88f1; margin-left: 16px">包装人工费: ¥{{ moneyFormat(form.expensePriceAmount, 2) }}</span>
       <span style="font-weight: 700; color: #6c88f1; margin-left: 16px">包材费: ¥{{ moneyFormat(form.packingMaterialAmount, 2) }}</span>
+      <span style="font-weight: 700; color: #6c88f1; margin-left: 16px">管理费: ¥{{ moneyFormat(form.managementFeesPriceAmount, 2) }}</span>
     </div>
     <div style="padding: 8px 0 0 0">
       <span style="font-weight: 700; color: red">订单总金额(含税): ¥{{ moneyFormat(form.contractAmount, 2) }}</span>

+ 22 - 0
src/components/shengde/SubsidiaryOrderDetails/OrderProductDetails.vue

@@ -91,6 +91,16 @@
                       </el-tooltip>
                     </div>
                     <div style="line-height: 28px">
+                      <span>管理费: {{ item.managementFeesPrice }}</span>
+                      <el-tooltip content="修改单价" placement="top" effect="light">
+                        <i
+                          class="el-icon-edit"
+                          style="cursor: pointer; font-size: 16px !important; margin-left: 16px; transform: translateY(2px); color: #409eff"
+                          @click="clickUpdate(item, index, 'managementFeesPrice', '管理费')"
+                        ></i>
+                      </el-tooltip>
+                    </div>
+                    <div style="line-height: 28px">
                       <span>单价: ¥{{ moneyFormat(item.productPrice, 2) }}</span>
                       <el-tooltip content="修改单价" placement="top" effect="light">
                         <i
@@ -302,12 +312,14 @@ export default {
         deliverGoodsPrice: undefined,
         expressPrice: undefined,
         expensePrice: undefined,
+        managementFeesPrice: undefined,
       },
       updateRules: {
         processPrice: [{ required: true, message: '请输入定制加工费', trigger: 'blur' }],
         deliverGoodsPrice: [{ required: true, message: '请输入代发费', trigger: 'blur' }],
         expressPrice: [{ required: true, message: '请输入快递包材费', trigger: 'blur' }],
         expensePrice: [{ required: true, message: '请输入包装人工费', trigger: 'blur' }],
+        managementFeesPrice: [{ required: true, message: '请输入管理费', trigger: 'blur' }],
       },
       // 定制加工费: process_price
       // 代发费: deliver_goods_price
@@ -359,6 +371,9 @@ export default {
         if (item.expensePrice) {
           money = parseFloat(Number(money) + Number(item.expensePrice)).toFixed(2)
         }
+        if (item.managementFeesPrice) {
+          money = parseFloat(Number(money) + Number(item.managementFeesPrice)).toFixed(2)
+        }
         money = parseFloat(Number(money) * Number(item.quantity)).toFixed(2)
         return this.moneyFormat(money, 2)
       }
@@ -407,6 +422,7 @@ export default {
         deliverGoodsPrice: item.deliverGoodsPrice,
         expressPrice: item.expressPrice,
         expensePrice: item.expensePrice,
+        managementFeesPrice: item.managementFeesPrice,
       }
       this.changePriceIndex = index
       this.updateLabel = label
@@ -464,6 +480,7 @@ export default {
         let processPrice = 0
         let expressPriceAmount = 0
         let expensePriceAmount = 0
+        let managementFeesPriceAmount = 0
         let packingMaterialAmount = 0
         this.form.contractProductList.map((item) => {
           if (item.quantity) {
@@ -482,6 +499,9 @@ export default {
             if (item.expensePrice) {
               expensePriceAmount = parseFloat(Number(expensePriceAmount) + Number(item.expensePrice) * Number(item.quantity)).toFixed(2)
             }
+            if (item.managementFeesPrice) {
+              managementFeesPriceAmount = parseFloat(Number(managementFeesPriceAmount) + Number(item.managementFeesPrice) * Number(item.quantity)).toFixed(2)
+            }
             if (item.partsContractProductList && item.partsContractProductList.length > 0) {
               item.partsContractProductList.map((itemBOM) => {
                 if (itemBOM.quantity && itemBOM.price) {
@@ -496,6 +516,7 @@ export default {
         this.form.processPrice = processPrice
         this.form.expressPriceAmount = expressPriceAmount
         this.form.expensePriceAmount = expensePriceAmount
+        this.form.managementFeesPriceAmount = managementFeesPriceAmount
         this.form.packingMaterialAmount = packingMaterialAmount
         this.form.contractAmount = parseFloat(
           Number(productPriceAmount) +
@@ -503,6 +524,7 @@ export default {
             Number(processPrice) +
             Number(expressPriceAmount) +
             Number(expensePriceAmount) +
+            Number(managementFeesPriceAmount) +
             Number(packingMaterialAmount)
         ).toFixed(2)
         this.form.amount = this.form.contractAmount