qymljy 2 лет назад
Родитель
Сommit
c3a02a6705

+ 2 - 0
src/HDrpManagement/invoicePredictionManage/details/modules/order.vue

@@ -604,6 +604,7 @@ export default {
           "id": 20230705145404,
           "content": {
             "sa_salesforecastbillid":this.id,
+            "sa_salesforecastprojectid":this.productsParam.content.sa_salesforecastprojectid,
             "sa_salesforecastids":items
           }
         })
@@ -624,6 +625,7 @@ export default {
         "id": 20230705145404,
         "content": {
           "sa_salesforecastbillid":this.id,
+          "sa_salesforecastprojectid":this.productsParam.content.sa_salesforecastprojectid,
           "sa_salesforecastids":[val.sa_salesforecastid]
         }
       })

+ 2 - 2
src/HDrpManagement/projectPredictionManage/details/modules/projectListDetail.vue

@@ -612,9 +612,9 @@ export default {
       }else if(val > data.marketprice){
         data.price = data.marketprice
       } else {
-        data.price = this.tool.formatAmount(val ,4)
+        data.price = Number(val).toFixed(4)
       }
-      data.orderamount = this.tool.formatAmount(data.price * data.orderqty,4)
+      data.orderamount = (data.price * data.orderqty).toFixed(4)
       this.$set(this.productList,index,data)
       /*setTimeout(()=>{*/
         this.onChangeQty(data)

+ 2 - 0
src/SDrpManagement/invoicePrediction/detail/orderDetail.vue

@@ -597,6 +597,7 @@ export default {
           "id": 20230705145404,
           "content": {
             "sa_salesforecastbillid":this.id,
+            "sa_salesforecastprojectid":this.productsParam.content.sa_salesforecastprojectid,
             "sa_salesforecastids":items
           }
         })
@@ -617,6 +618,7 @@ export default {
         "id": 20230705145404,
         "content": {
           "sa_salesforecastbillid":this.id,
+          "sa_salesforecastprojectid":this.productsParam.content.sa_salesforecastprojectid,
           "sa_salesforecastids":[val.sa_salesforecastid]
         }
       })

+ 2 - 2
src/SDrpManagement/projectPrediction/detail/projectListDetail.vue

@@ -617,9 +617,9 @@ export default {
       }else if(val > data.marketprice){
         data.price = data.marketprice
       } else {
-        data.price = this.tool.formatAmount(val ,4)
+        data.price = Number(val).toFixed(4)
       }
-      data.orderamount = this.tool.formatAmount(data.price * data.orderqty,4)
+      data.orderamount = (data.price * data.orderqty).toFixed(4)
       this.$set(this.productList,index,data)
       /*setTimeout(()=>{*/
         this.onChangeQty(data)