animeic 2 years ago
parent
commit
839e475bcd
6 changed files with 121 additions and 1069 deletions
  1. BIN
      boxcost/__debug_bin
  2. 5 0
      boxcost/api/plan.go
  3. 113 296
      boxcost/api/report.go
  4. 1 1
      boxcost/api/supplier-price.go
  5. 1 698
      boxcost/api/tmp.json
  6. 1 74
      boxcost/db/model/tmp.json

BIN
boxcost/__debug_bin


+ 5 - 0
boxcost/api/plan.go

@@ -281,6 +281,11 @@ func GetProductPlan(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 func GetProductPlans(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 
 	page, size, query := UtilQueryPageSize(c)
+	if _packId, ok := query["packId"]; ok {
+		packId, _ := primitive.ObjectIDFromHex(_packId.(string))
+		query["pack._id"] = packId
+		delete(query, "packId")
+	}
 
 	option := &repo.PageSearchOptions{
 		CollectName: repo.CollectionProductPlan,

+ 113 - 296
boxcost/api/report.go

@@ -15,17 +15,16 @@ import (
 // 统计报表
 func Report(r *GinRouter) {
 	// 加工列表
-	r.POST("/report/produce/list", ReportProduceList)
+	r.GET("/report/produce/list", ReportProduceList)
 	// 采购列表
-	r.POST("/report/purchase/list", ReportPurchaseList)
-	r.POST("/report/produce/download", ReportProduceDownload)
-	r.POST("/report/purchase/download", ReportPurchaseDownload)
+	r.GET("/report/purchase/list", ReportPurchaseList)
+	r.GET("/report/produce/download", ReportProduceDownload)
+	r.GET("/report/purchase/download", ReportPurchaseDownload)
 }
 
 type ReportListReq struct {
 	SupplierId primitive.ObjectID
 	TimeRange  []string
-	PackIds    []primitive.ObjectID
 	PlanIds    []primitive.ObjectID
 	Page       int64
 	Size       int64
@@ -34,55 +33,44 @@ type ReportListReq struct {
 // 加工单
 func ReportProduceList(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 	// 财务管理】 添加统计报表功能。按 时间范围, 供应商(单选)   包装(多选) 计划(多选) 四个维度进行过滤,形成报表。可以下载
-	var form ReportListReq
-	err := c.ShouldBindJSON(&form)
-	if err != nil {
-		return nil, errors.New("参数错误")
-	}
-
-	var page int64 = 1
-	var size int64 = 10
-	if form.Page > 0 {
-		page = form.Page
-	}
-	if form.Size > 0 {
-		size = form.Size
-	}
-
+	page, size, query := UtilQueryPageSize(c)
 	// 条件处理
-	query := make(map[string]interface{}, 0)
 	query["status"] = "complete"
-	if !form.SupplierId.IsZero() {
-		query["supplierId"] = form.SupplierId
-	}
 
-	// 时间范围
-	if len(form.TimeRange) == 2 {
-		start, end := getTimeRange(form.TimeRange[0], form.TimeRange[1])
-		query["updateTime"] = bson.M{"$gte": start, "$lte": end}
+	if _supplierId, ok := query["supplierId"]; ok {
+		supplierId, _ := primitive.ObjectIDFromHex(_supplierId.(string))
+		if !supplierId.IsZero() {
+			query["supplierId"] = supplierId
+
+		}
 	}
 
-	// 包装
-	if len(form.PackIds) > 0 {
-		packQuery := []bson.M{}
-		for _, packId := range form.PackIds {
-			packQuery = append(packQuery, bson.M{"packId": packId})
+	if _timeRange, ok := query["timeRange"]; ok {
+		timeRange, _ := _timeRange.([]interface{})
+
+		if len(timeRange) == 2 {
+			start, end := getTimeRange(timeRange[0].(string), timeRange[1].(string))
+			query["updateTime"] = bson.M{"$gte": start, "$lte": end}
 		}
-		query["$or"] = packQuery
+		delete(query, "timeRange")
 	}
 
-	// 计划
-	if len(form.PlanIds) > 0 {
-		planQuery := bson.A{}
-		for _, planId := range form.PlanIds {
-			planQuery = append(planQuery, bson.M{"planId": planId})
+	if _planIds, ok := query["planIds"]; ok {
+		if len(_planIds.([]interface{})) > 0 {
+			planQuery := bson.A{}
+			for _, _planId := range _planIds.([]interface{}) {
+				planId, _ := primitive.ObjectIDFromHex(_planId.(string))
+				planQuery = append(planQuery, bson.M{"planId": planId})
+			}
+			query["$or"] = planQuery
 		}
-		query["$or"] = planQuery
+		delete(query, "planIds")
 	}
+	fmt.Println(query)
 
 	// 获取采购单符合条件的信息
 	return repo.RepoPageSearch(apictx.CreateRepoCtx(), &repo.PageSearchOptions{
-		CollectName: repo.CollectionBillPurchase,
+		CollectName: repo.CollectionBillProduce,
 		Query:       query,
 		Page:        page,
 		Size:        size,
@@ -93,52 +81,39 @@ func ReportProduceList(c *gin.Context, apictx *ApiSession) (interface{}, error)
 // 采购单
 func ReportPurchaseList(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 	// 财务管理】 添加统计报表功能。按 时间范围, 供应商(单选)   包装(多选) 计划(多选) 四个维度进行过滤,形成报表。可以下载
-	var form ReportListReq
-	err := c.ShouldBindJSON(&form)
-	if err != nil {
-		return nil, errors.New("参数错误")
-	}
-
-	var page int64 = 1
-	var size int64 = 10
-	if form.Page > 0 {
-		page = form.Page
-	}
-	if form.Size > 0 {
-		size = form.Size
-	}
-
+	page, size, query := UtilQueryPageSize(c)
 	// 条件处理
-	query := make(map[string]interface{}, 0)
 	query["status"] = "complete"
-	if !form.SupplierId.IsZero() {
-		query["supplierId"] = form.SupplierId
-	}
 
-	// 时间范围
-	if len(form.TimeRange) == 2 {
-		start, end := getTimeRange(form.TimeRange[0], form.TimeRange[1])
-		query["updateTime"] = bson.M{"$gte": start, "$lte": end}
-	}
+	if _supplierId, ok := query["supplierId"]; ok {
+		supplierId, _ := primitive.ObjectIDFromHex(_supplierId.(string))
+		if !supplierId.IsZero() {
+			query["supplierId"] = supplierId
 
-	// 包装
-	if len(form.PackIds) > 0 {
-		packQuery := []bson.M{}
-		for _, packId := range form.PackIds {
-			packQuery = append(packQuery, bson.M{"packId": packId})
 		}
-		query["$or"] = packQuery
 	}
 
-	// 计划
-	if len(form.PlanIds) > 0 {
-		planQuery := bson.A{}
-		for _, planId := range form.PlanIds {
-			planQuery = append(planQuery, bson.M{"planId": planId})
+	if _timeRange, ok := query["timeRange"]; ok {
+		timeRange, _ := _timeRange.([]interface{})
+
+		if len(timeRange) == 2 {
+			start, end := getTimeRange(timeRange[0].(string), timeRange[1].(string))
+			query["updateTime"] = bson.M{"$gte": start, "$lte": end}
 		}
-		query["$or"] = planQuery
+		delete(query, "timeRange")
 	}
 
+	if _planIds, ok := query["planIds"]; ok {
+		if len(_planIds.([]interface{})) > 0 {
+			planQuery := bson.A{}
+			for _, _planId := range _planIds.([]interface{}) {
+				planId, _ := primitive.ObjectIDFromHex(_planId.(string))
+				planQuery = append(planQuery, bson.M{"planId": planId})
+			}
+			query["$or"] = planQuery
+		}
+		delete(query, "planIds")
+	}
 	// 获取采购单符合条件的信息
 	return repo.RepoPageSearch(apictx.CreateRepoCtx(), &repo.PageSearchOptions{
 		CollectName: repo.CollectionBillPurchase,
@@ -149,205 +124,44 @@ func ReportPurchaseList(c *gin.Context, apictx *ApiSession) (interface{}, error)
 
 }
 
-// func ReportProduceList(c *gin.Context, apictx *ApiSession) (interface{}, error) {
-// 	// 财务管理】 添加统计报表功能。按 时间范围, 供应商(单选)   包装(多选) 计划(多选) 四个维度进行过滤,形成报表。可以下载
-// 	var form ReportListReq
-// 	err := c.ShouldBindJSON(&form)
-// 	if err != nil {
-// 		return nil, errors.New("参数错误")
-// 	}
-
-// 	var page int64 = 1
-// 	var size int64 = 10
-// 	if form.Page > 0 {
-// 		page = form.Page
-// 	} else {
-// 		page = 1
-// 	}
-// 	if form.Size > 0 {
-// 		size = form.Size
-// 	} else {
-// 		size = 10
-// 	}
-// 	start := (page - 1) * size
-// 	end := page*size - 1
-
-// 	// 条件处理
-// 	query := make(map[string]interface{}, 0)
-// 	query["status"] = "complete"
-// 	if !form.SupplierId.IsZero() {
-// 		query["supplierId"] = form.SupplierId
-// 	}
-
-// 	// 时间范围
-// 	if len(form.TimeRange) == 2 {
-// 		start, end := getTimeRange(form.TimeRange[0], form.TimeRange[1])
-// 		query["createTime"] = bson.M{"$gte": start, "$lte": end}
-// 	}
-
-// 	// 包装
-// 	if len(form.PackIds) > 0 {
-// 		packQuery := []bson.M{}
-// 		for _, packId := range form.PackIds {
-// 			packQuery = append(packQuery, bson.M{"packId": packId})
-// 		}
-// 		query["$or"] = packQuery
-// 	}
-
-// 	// 计划
-// 	if len(form.PlanIds) > 0 {
-// 		planQuery := bson.A{}
-// 		for _, planId := range form.PlanIds {
-// 			planQuery = append(planQuery, bson.M{"planId": planId})
-// 		}
-// 		query["$or"] = planQuery
-// 	}
-
-// 	// 获取采购单符合条件的信息
-// 	purchases := []model.PurchaseBill{}
-// 	repo.RepoDocsSearch(apictx.CreateRepoCtx(), &repo.PageSearchOptions{
-// 		CollectName: repo.CollectionBillPurchase,
-// 		Query:       query,
-// 	}, &purchases)
-
-// 	// 获取加工单符合条件的信息
-// 	produces := []model.ProduceBill{}
-// 	repo.RepoDocsSearch(apictx.CreateRepoCtx(), &repo.PageSearchOptions{
-// 		CollectName: repo.CollectionBillProduce,
-// 		Query:       query,
-// 	}, &produces)
-// 	// 组装数据
-// 	cacheKey := "report:list"
-// 	apictx.Svc.Redis.Del(apictx.CreateRepoCtx().Ctx, cacheKey)
-// 	// key存在时
-// 	// if apictx.Svc.Redis.Exists(apictx.CreateRepoCtx().Ctx, cacheKey).Val() == 1 {
-// 	// 	ret := apictx.Svc.Redis.ZRange(apictx.CreateRepoCtx().Ctx, cacheKey, start, end)
-// 	// 	retList = ret.Val()
-// 	// } else {
-
-// 	// }
-
-// 	mlen := len(purchases) + len(produces)
-// 	type MapList map[string]interface{}
-// 	lists := make([]MapList, mlen)
-// 	if len(purchases) > 0 {
-// 		for _, purchase := range purchases {
-// 			apictx.Svc.Redis.ZAdd(apictx.CreateRepoCtx().Ctx, cacheKey, &redis.Z{
-// 				Score:  float64(purchase.CreateTime.Unix()),
-// 				Member: purchase.Id.Hex(),
-// 			})
-// 			list := MapList{purchase.Id.Hex(): purchase, "type": "purchase"}
-// 			lists = append(lists, list)
-// 		}
-// 	}
-// 	if len(produces) > 0 {
-// 		for _, produce := range produces {
-// 			apictx.Svc.Redis.ZAdd(apictx.CreateRepoCtx().Ctx, cacheKey, &redis.Z{
-// 				Score:  float64(produce.CreateTime.Unix()),
-// 				Member: produce.Id.Hex(),
-// 			})
-// 			list := MapList{produce.Id.Hex(): produce, "type": "produce"}
-// 			lists = append(lists, list)
-// 		}
-// 	}
-// 	// 当前key存在时
-// 	retList := make([]map[string]interface{}, 0)
-// 	// 所有id
-// 	ids := make([]map[string]string, 0)
-// 	if apictx.Svc.Redis.Exists(apictx.CreateRepoCtx().Ctx, cacheKey).Val() == 1 {
-// 		// ret := apictx.Svc.Redis.ExpireLT(apictx.CreateRepoCtx().Ctx, cacheKey, 20*time.Second)
-// 		// 按创建时间升序排
-// 		result := apictx.Svc.Redis.ZRange(apictx.CreateRepoCtx().Ctx, cacheKey, start, end)
-// 		if result.Err() != nil {
-// 			log.Error(err)
-// 			return nil, errors.New("缓存数据内部错误")
-// 		}
-// 		retids := apictx.Svc.Redis.ZRange(apictx.CreateRepoCtx().Ctx, cacheKey, 0, -1)
-
-// 		// 所有id
-// 		if len(retids.Val()) > 0 {
-// 			for _, id := range retids.Val() {
-// 				for _, item := range lists {
-// 					if _, ok := item[id]; ok {
-// 						ids = append(ids, map[string]string{"id": id, "type": item["type"].(string)})
-// 					}
-// 				}
-// 			}
-
-// 		}
-
-// 		// 返回的列表
-// 		if len(result.Val()) > 0 {
-// 			for _, id := range result.Val() {
-// 				for _, item := range lists {
-// 					if _, ok := item[id]; ok {
-// 						retList = append(retList, item)
-// 					}
-// 				}
-// 			}
-// 		}
-
-// 	}
-// 	type PageResult struct {
-// 		List  []map[string]interface{} `json:"list"`
-// 		Total int64                    `json:"total"`
-// 		Page  int64                    `json:"page"`
-// 		Size  int64                    `json:"size"`
-// 		Ids   []map[string]string      `json:"ids"`
-// 	}
-
-// 	out := &PageResult{
-// 		List:  retList,
-// 		Total: int64(mlen),
-// 		Page:  page,
-// 		Size:  size,
-// 		Ids:   ids,
-// 	}
-
-// 	return out, nil
-
-// }
-
 func ReportProduceDownload(c *gin.Context, apictx *ApiSession) (interface{}, error) {
-	var form ReportListReq
-	err := c.ShouldBindJSON(&form)
-	if err != nil {
-		return nil, errors.New("参数错误")
-	}
+	_, _, query := UtilQueryPageSize(c)
 	// 条件处理
-	query := make(map[string]interface{}, 0)
 	query["status"] = "complete"
-	if !form.SupplierId.IsZero() {
-		query["supplierId"] = form.SupplierId
-	}
 
-	// 时间范围
-	if len(form.TimeRange) == 2 {
-		start, end := getTimeRange(form.TimeRange[0], form.TimeRange[1])
-		query["updateTime"] = bson.M{"$gte": start, "$lte": end}
+	if _supplierId, ok := query["supplierId"]; ok {
+		supplierId, _ := primitive.ObjectIDFromHex(_supplierId.(string))
+		if !supplierId.IsZero() {
+			query["supplierId"] = supplierId
+
+		}
 	}
 
-	// 包装
-	if len(form.PackIds) > 0 {
-		packQuery := []bson.M{}
-		for _, packId := range form.PackIds {
-			packQuery = append(packQuery, bson.M{"packId": packId})
+	if _timeRange, ok := query["timeRange"]; ok {
+		timeRange, _ := _timeRange.([]interface{})
+
+		if len(timeRange) == 2 {
+			start, end := getTimeRange(timeRange[0].(string), timeRange[1].(string))
+			query["updateTime"] = bson.M{"$gte": start, "$lte": end}
 		}
-		query["$or"] = packQuery
+		delete(query, "timeRange")
 	}
 
-	// 计划
-	if len(form.PlanIds) > 0 {
-		planQuery := bson.A{}
-		for _, planId := range form.PlanIds {
-			planQuery = append(planQuery, bson.M{"planId": planId})
+	if _planIds, ok := query["planIds"]; ok {
+		if len(_planIds.([]interface{})) > 0 {
+			planQuery := bson.A{}
+			for _, _planId := range _planIds.([]interface{}) {
+				planId, _ := primitive.ObjectIDFromHex(_planId.(string))
+				planQuery = append(planQuery, bson.M{"planId": planId})
+			}
+			query["$or"] = planQuery
 		}
-		query["$or"] = planQuery
+		delete(query, "planIds")
 	}
 
 	// 获取采符合条件的信息
 	produces := []model.ProduceBill{}
-	err = repo.RepoDocsSearch(apictx.CreateRepoCtx(), &repo.PageSearchOptions{
+	err := repo.RepoDocsSearch(apictx.CreateRepoCtx(), &repo.PageSearchOptions{
 		CollectName: repo.CollectionBillProduce,
 		Query:       query,
 	}, &produces)
@@ -378,19 +192,23 @@ func ReportProduceDownload(c *gin.Context, apictx *ApiSession) (interface{}, err
 
 	var budgetCount float64 = 0
 	var realCount float64 = 0
+	var row int = 0
 
 	for _, produce := range produces {
 		produceExcel := NewReportProduceExcel(f)
 		produceExcel.Content = &produce
-		budgetCount += produceExcel.BudgetCount
-		realCount += produceExcel.RealCount
-		produceExcel.Title = fmt.Sprintf("%ss加工单", info.CompanyName)
+
+		produceExcel.Title = fmt.Sprintf("%s加工单", info.CompanyName)
 		//设置对应的数据
 		produceExcel.Offset = offset
 		produceExcel.Draws()
+		budgetCount += produceExcel.BudgetCount
+		realCount += produceExcel.RealCount
 		offset += 15
+		row = produceExcel.Row
+
 	}
-	row := offset + 1
+	row++
 	startCell := fmt.Sprintf("%s%d", "A", row)
 	endCell := fmt.Sprintf("%s%d", "H", row)
 	f.MergeCell(sheetName, startCell, endCell)
@@ -429,45 +247,42 @@ func ReportProduceDownload(c *gin.Context, apictx *ApiSession) (interface{}, err
 }
 
 func ReportPurchaseDownload(c *gin.Context, apictx *ApiSession) (interface{}, error) {
-	var form ReportListReq
-	err := c.ShouldBindJSON(&form)
-	if err != nil {
-		return nil, errors.New("参数错误")
-	}
+	_, _, query := UtilQueryPageSize(c)
 	// 条件处理
-	query := make(map[string]interface{}, 0)
 	query["status"] = "complete"
-	if !form.SupplierId.IsZero() {
-		query["supplierId"] = form.SupplierId
-	}
 
-	// 时间范围
-	if len(form.TimeRange) == 2 {
-		start, end := getTimeRange(form.TimeRange[0], form.TimeRange[1])
-		query["updateTime"] = bson.M{"$gte": start, "$lte": end}
-	}
+	if _supplierId, ok := query["supplierId"]; ok {
+		supplierId, _ := primitive.ObjectIDFromHex(_supplierId.(string))
+		if !supplierId.IsZero() {
+			query["supplierId"] = supplierId
 
-	// 包装
-	if len(form.PackIds) > 0 {
-		packQuery := []bson.M{}
-		for _, packId := range form.PackIds {
-			packQuery = append(packQuery, bson.M{"packId": packId})
 		}
-		query["$or"] = packQuery
 	}
 
-	// 计划
-	if len(form.PlanIds) > 0 {
-		planQuery := bson.A{}
-		for _, planId := range form.PlanIds {
-			planQuery = append(planQuery, bson.M{"planId": planId})
+	if _timeRange, ok := query["timeRange"]; ok {
+		timeRange, _ := _timeRange.([]interface{})
+
+		if len(timeRange) == 2 {
+			start, end := getTimeRange(timeRange[0].(string), timeRange[1].(string))
+			query["updateTime"] = bson.M{"$gte": start, "$lte": end}
 		}
-		query["$or"] = planQuery
+		delete(query, "timeRange")
 	}
 
+	if _planIds, ok := query["planIds"]; ok {
+		if len(_planIds.([]interface{})) > 0 {
+			planQuery := bson.A{}
+			for _, _planId := range _planIds.([]interface{}) {
+				planId, _ := primitive.ObjectIDFromHex(_planId.(string))
+				planQuery = append(planQuery, bson.M{"planId": planId})
+			}
+			query["$or"] = planQuery
+		}
+		delete(query, "planIds")
+	}
 	// 获取符合条件的信息
 	purchases := []model.PurchaseBill{}
-	err = repo.RepoDocsSearch(apictx.CreateRepoCtx(), &repo.PageSearchOptions{
+	err := repo.RepoDocsSearch(apictx.CreateRepoCtx(), &repo.PageSearchOptions{
 		CollectName: repo.CollectionBillPurchase,
 		Query:       query,
 	}, &purchases)
@@ -498,19 +313,21 @@ func ReportPurchaseDownload(c *gin.Context, apictx *ApiSession) (interface{}, er
 
 	var budgetCount float64 = 0
 	var realCount float64 = 0
+	var row int = 0
 
 	for _, purchase := range purchases {
 		purchaseExcel := NewReportPurchaseExcel(f)
 		purchaseExcel.Content = &purchase
-		budgetCount += purchaseExcel.BudgetCount
-		realCount += purchaseExcel.RealCount
 		purchaseExcel.Title = fmt.Sprintf("%s原材料采购单", info.CompanyName)
 		//设置对应的数据
 		purchaseExcel.Offset = offset
 		purchaseExcel.Draws()
+		budgetCount += purchaseExcel.BudgetCount
+		realCount += purchaseExcel.RealCount
 		offset += 15
+		row = purchaseExcel.Row
 	}
-	row := offset + 1
+	row++
 	startCell := fmt.Sprintf("%s%d", "A", row)
 	endCell := fmt.Sprintf("%s%d", "H", row)
 	f.MergeCell(sheetName, startCell, endCell)

+ 1 - 1
boxcost/api/supplier-price.go

@@ -164,7 +164,7 @@ func SupplierPrice(r *GinRouter) {
 			calc := &model.SupplierCalcPrice{}
 			ok, err := repo.RepoSeachDoc(apictx.CreateRepoCtx(),
 				&repo.DocSearchOptions{CollectName: SupplierCalcPriceColl,
-					Query: repo.Map{"calc.category": entity.Calc.Category}}, calc)
+					Query: repo.Map{"calc.category": entity.Calc.Category, "supplierId": entity.SupplierId}}, calc)
 			if err != nil {
 				return nil, err
 			}

+ 1 - 698
boxcost/api/tmp.json

@@ -1,698 +1 @@
-{
-    "_id": "63c27fe7e3c018ab8c1c155e",
-    "name": "桃酥-复制",
-    "pack": {
-        "_id": "63c27389e3c018ab8c1c1559",
-        "name": "800g桃酥--复制",
-        "thumbnail": "",
-        "compCounts": 4,
-        "designer": "测试人",
-        "components": [
-            {
-                "id": "63c27389e3c018ab8c1c1538",
-                "name": "上盖",
-                "thumbnail": "",
-                "count": 1,
-                "uv": "",
-                "uvSize": "1000x2000",
-                "mats": [
-                    {
-                        "id": "63c27389e3c018ab8c1c1539",
-                        "crafts": [
-                            {
-                                "id": "63c27389e3c018ab8c1c153a",
-                                "size": "100x100",
-                                "count": 4,
-                                "craftInfo": {
-                                    "_id": "638ef06b0027470dd3a42f51",
-                                    "name": "单色印刷",
-                                    "unit": "张",
-                                    "price": 400,
-                                    "norm": "按文件要求",
-                                    "remark": "",
-                                    "createTime": "2022-12-06T07:34:03.326Z",
-                                    "updateTime": "2022-12-06T08:02:30.869Z",
-                                    "category": "普通印刷",
-                                    "confirmCount": 0
-                                },
-                                "supplier": {
-                                    "calc": {
-                                        "_id": "000000000000000000000000",
-                                        "category": "普通印刷",
-                                        "name": "普通印刷计价方案1",
-                                        "remark": "版费(50)\n起价(普通550,普通+专色800)\n超过10000份减版费",
-                                        "param1": "50",
-                                        "param2": "550",
-                                        "param3": "800",
-                                        "param4": "10000",
-                                        "param5": "",
-                                        "createTime": "0001-01-01T00:00:00Z",
-                                        "updateTime": "0001-01-01T00:00:00Z",
-                                        "isDefault": null
-                                    },
-                                    "deliveryTime": "2023-01-14T10:11:31Z",
-                                    "orderPrice": 1600,
-                                    "orderCount": 200,
-                                    "orderRealPrice": 320200,
-                                    "supplierInfo": {
-                                        "_id": "63846b744d585ba68be6cba1",
-                                        "name": "宏川",
-                                        "address": "崇州泗潍路333号",
-                                        "phone": "13882239198",
-                                        "category": "普通印刷",
-                                        "createTime": "2022-11-28T08:04:04.791Z",
-                                        "updateTime": "2022-12-06T06:55:33.649Z"
-                                    }
-                                },
-                                "batchCount": 1,
-                                "batchSizeWidth": 100,
-                                "batchSizeHeight": 100,
-                                "billId": "63c5177858afc5b702afd31e",
-                                "remark": ""
-                            },
-                            {
-                                "id": "63c27389e3c018ab8c1c153b",
-                                "size": "10x10",
-                                "count": 1,
-                                "craftInfo": {
-                                    "_id": "638eecaef9039e0980fe564f",
-                                    "name": "烫浅金",
-                                    "unit": "张",
-                                    "price": 0.15,
-                                    "norm": "按文件要求",
-                                    "remark": "",
-                                    "createTime": "2022-12-06T07:18:06.188Z",
-                                    "updateTime": "2022-12-06T07:18:06.188Z",
-                                    "category": "烫金",
-                                    "confirmCount": 0
-                                },
-                                "supplier": {
-                                    "calc": null,
-                                    "deliveryTime": "2023-01-14T10:11:31Z",
-                                    "orderPrice": 0.15,
-                                    "orderCount": 200,
-                                    "orderRealPrice": 30,
-                                    "supplierInfo": {
-                                        "_id": "638eecd4f9039e0980fe5650",
-                                        "name": "温学刚",
-                                        "address": "崇州金鸡路556",
-                                        "phone": "13028138020",
-                                        "category": "烫金",
-                                        "createTime": "2022-12-06T07:18:44.322Z",
-                                        "updateTime": "2022-12-06T07:18:44.322Z"
-                                    }
-                                },
-                                "batchCount": 1,
-                                "batchSizeWidth": 10,
-                                "batchSizeHeight": 10,
-                                "billId": "63c517a758afc5b702afd31f",
-                                "remark": ""
-                            },
-                            {
-                                "id": "63c27389e3c018ab8c1c153c",
-                                "size": "100x100",
-                                "count": 1,
-                                "craftInfo": {
-                                    "_id": "6388430851ba5b3307f8ab60",
-                                    "name": "光膜",
-                                    "unit": "平方米",
-                                    "price": 0.4,
-                                    "norm": "按文件要求",
-                                    "remark": "",
-                                    "createTime": "2022-12-01T06:00:40.068Z",
-                                    "updateTime": "2022-12-01T06:00:40.068Z",
-                                    "category": "覆膜",
-                                    "confirmCount": 0
-                                },
-                                "supplier": {
-                                    "calc": null,
-                                    "deliveryTime": "2023-01-14T10:11:31Z",
-                                    "orderPrice": 0.004,
-                                    "orderCount": 200,
-                                    "orderRealPrice": 0.8,
-                                    "supplierInfo": null
-                                },
-                                "batchCount": 1,
-                                "batchSizeWidth": 100,
-                                "batchSizeHeight": 100,
-                                "billId": "",
-                                "remark": ""
-                            },
-                            {
-                                "id": "63c27389e3c018ab8c1c153d",
-                                "size": "0",
-                                "count": 1,
-                                "craftInfo": {
-                                    "_id": "638471684d585ba68be6cbb0",
-                                    "name": "打包",
-                                    "unit": "张",
-                                    "price": 0.01,
-                                    "norm": "按文件要求",
-                                    "remark": "",
-                                    "createTime": "2022-11-28T08:29:28.343Z",
-                                    "updateTime": "2022-11-28T08:29:28.343Z",
-                                    "category": "打包",
-                                    "confirmCount": 0
-                                },
-                                "supplier": {
-                                    "calc": null,
-                                    "deliveryTime": "2023-01-14T10:11:31Z",
-                                    "orderPrice": 0.01,
-                                    "orderCount": 200,
-                                    "orderRealPrice": 2,
-                                    "supplierInfo": null
-                                },
-                                "batchCount": 1,
-                                "batchSizeWidth": 0,
-                                "batchSizeHeight": 0,
-                                "billId": "",
-                                "remark": ""
-                            },
-                            {
-                                "id": "63c27389e3c018ab8c1c153e",
-                                "size": "0",
-                                "count": 1,
-                                "craftInfo": {
-                                    "_id": "638470d24d585ba68be6cbaf",
-                                    "name": "粘盒",
-                                    "unit": "张",
-                                    "price": 0.08,
-                                    "norm": "按文件要求",
-                                    "remark": "",
-                                    "createTime": "2022-11-28T08:26:58.869Z",
-                                    "updateTime": "2022-11-28T08:27:24.914Z",
-                                    "category": "粘盒",
-                                    "confirmCount": 0
-                                },
-                                "supplier": {
-                                    "calc": null,
-                                    "deliveryTime": "2023-01-14T10:11:31Z",
-                                    "orderPrice": 0.08,
-                                    "orderCount": 200,
-                                    "orderRealPrice": 16,
-                                    "supplierInfo": null
-                                },
-                                "batchCount": 1,
-                                "batchSizeWidth": 0,
-                                "batchSizeHeight": 0,
-                                "billId": "",
-                                "remark": ""
-                            },
-                            {
-                                "id": "63c27389e3c018ab8c1c153f",
-                                "size": "0",
-                                "count": 1,
-                                "craftInfo": {
-                                    "_id": "638470a94d585ba68be6cbae",
-                                    "name": "模切",
-                                    "unit": "张",
-                                    "price": 0.04,
-                                    "norm": "按文件要求",
-                                    "remark": "",
-                                    "createTime": "2022-11-28T08:26:17.151Z",
-                                    "updateTime": "2022-11-28T08:29:11.086Z",
-                                    "category": "模切",
-                                    "confirmCount": 0
-                                },
-                                "supplier": {
-                                    "calc": null,
-                                    "deliveryTime": "2023-01-14T10:11:31Z",
-                                    "orderPrice": 0.04,
-                                    "orderCount": 200,
-                                    "orderRealPrice": 8,
-                                    "supplierInfo": null
-                                },
-                                "batchCount": 1,
-                                "batchSizeWidth": 0,
-                                "batchSizeHeight": 0,
-                                "billId": "",
-                                "remark": ""
-                            },
-                            {
-                                "id": "63c27389e3c018ab8c1c1540",
-                                "size": "0",
-                                "count": 1,
-                                "craftInfo": {
-                                    "_id": "6384708e4d585ba68be6cbad",
-                                    "name": "对裱",
-                                    "unit": "平方米",
-                                    "price": 0.2,
-                                    "norm": "按文件要求",
-                                    "remark": "",
-                                    "createTime": "2022-11-28T08:25:50.565Z",
-                                    "updateTime": "2022-11-28T08:27:45.765Z",
-                                    "category": "对裱",
-                                    "confirmCount": 0
-                                },
-                                "supplier": {
-                                    "calc": null,
-                                    "deliveryTime": "2023-01-14T10:11:31Z",
-                                    "orderPrice": 0,
-                                    "orderCount": 200,
-                                    "orderRealPrice": 0,
-                                    "supplierInfo": null
-                                },
-                                "batchCount": 1,
-                                "batchSizeWidth": 0,
-                                "batchSizeHeight": 0,
-                                "billId": "",
-                                "remark": ""
-                            }
-                        ],
-                        "matInfo": {
-                            "_id": "638eedb2f9039e0980fe5653",
-                            "name": "太阳白卡",
-                            "category": "纸张类",
-                            "price": 4400,
-                            "unit": "吨",
-                            "norm": "250g",
-                            "height": 0,
-                            "width": 0,
-                            "remark": "",
-                            "createTime": "2022-12-06T07:22:26.375Z",
-                            "updateTime": "2022-12-06T07:24:48.591Z",
-                            "confirmCount": 0
-                        },
-                        "supplier": {
-                            "calc": null,
-                            "deliveryTime": "2023-01-14T10:11:31Z",
-                            "orderPrice": 2.2,
-                            "orderCount": 200,
-                            "orderRealPrice": 440,
-                            "supplierInfo": {
-                                "_id": "6384668e4d585ba68be6cb9f",
-                                "name": "正大文博",
-                                "address": "四川省成都市温江区分水村清波工业园A3号",
-                                "phone": "13853360367",
-                                "category": "纸张类",
-                                "createTime": "2022-11-28T07:43:10.638Z",
-                                "updateTime": "2022-12-06T07:19:45.089Z"
-                            }
-                        },
-                        "batchCount": 1,
-                        "batchSizeWidth": 1000,
-                        "batchSizeHeight": 2000,
-                        "billId": "63c518b5828aebf130c60b2c",
-                        "remark": ""
-                    }
-                ],
-                "remark": "",
-                "totalPrice": 320696.8
-            },
-            {
-                "id": "63c27389e3c018ab8c1c1541",
-                "name": "下盖",
-                "thumbnail": "",
-                "count": 1,
-                "uv": "",
-                "uvSize": "0",
-                "mats": [
-                    {
-                        "id": "63c27389e3c018ab8c1c1542",
-                        "crafts": [
-                            {
-                                "id": "63c27389e3c018ab8c1c1543",
-                                "size": "200x200",
-                                "count": 4,
-                                "craftInfo": {
-                                    "_id": "638455584d585ba68be6cb90",
-                                    "name": "4c印刷",
-                                    "unit": "版/色",
-                                    "price": 0.22,
-                                    "norm": "按文件要求",
-                                    "remark": "",
-                                    "createTime": "2022-11-28T06:29:44.629Z",
-                                    "updateTime": "2022-11-28T06:29:44.629Z",
-                                    "category": "UV印刷",
-                                    "confirmCount": 0
-                                },
-                                "supplier": {
-                                    "calc": {
-                                        "_id": "638457b64d585ba68be6cb97",
-                                        "category": "UV印刷",
-                                        "name": "uv印刷计价方案1",
-                                        "remark": "版费(60)\n起价(普通1200,逆向油1600)\n超过10000份减版费",
-                                        "param1": "60",
-                                        "param2": "1200",
-                                        "param3": "1600",
-                                        "param4": "10000",
-                                        "param5": "",
-                                        "createTime": "0001-01-01T00:00:00Z",
-                                        "updateTime": "2022-12-01T05:52:58.196Z",
-                                        "isDefault": true
-                                    },
-                                    "deliveryTime": "2023-01-14T10:11:31Z",
-                                    "orderPrice": 0.88,
-                                    "orderCount": 200,
-                                    "orderRealPrice": 1600,
-                                    "supplierInfo": {
-                                        "_id": "6375e17b3913c1b5774bad73",
-                                        "name": "泓瑞包装",
-                                        "address": "崇州金鸡路556",
-                                        "phone": "15212341234",
-                                        "category": "UV印刷",
-                                        "createTime": "2022-11-17T07:23:39.49Z",
-                                        "updateTime": "2023-01-03T09:55:46.168Z"
-                                    }
-                                },
-                                "batchCount": 1,
-                                "batchSizeWidth": 200,
-                                "batchSizeHeight": 200,
-                                "billId": "63c500b93e778319cbfa0b59",
-                                "remark": ""
-                            },
-                            {
-                                "id": "63c27389e3c018ab8c1c1544",
-                                "size": "200x200",
-                                "count": 1,
-                                "craftInfo": {
-                                    "_id": "6384558b4d585ba68be6cb91",
-                                    "name": "专色",
-                                    "unit": "版/色",
-                                    "price": 0.12,
-                                    "norm": "按文件要求",
-                                    "remark": "",
-                                    "createTime": "2022-11-28T06:30:35.62Z",
-                                    "updateTime": "2022-11-28T06:30:51.226Z",
-                                    "category": "UV印刷",
-                                    "confirmCount": 0
-                                },
-                                "supplier": {
-                                    "calc": {
-                                        "_id": "638457b64d585ba68be6cb97",
-                                        "category": "UV印刷",
-                                        "name": "uv印刷计价方案1",
-                                        "remark": "版费(60)\n起价(普通1200,逆向油1600)\n超过10000份减版费",
-                                        "param1": "60",
-                                        "param2": "1200",
-                                        "param3": "1600",
-                                        "param4": "10000",
-                                        "param5": "",
-                                        "createTime": "0001-01-01T00:00:00Z",
-                                        "updateTime": "2022-12-01T05:52:58.196Z",
-                                        "isDefault": true
-                                    },
-                                    "deliveryTime": "2023-01-14T10:11:31Z",
-                                    "orderPrice": 0.12,
-                                    "orderCount": 200,
-                                    "orderRealPrice": 1600,
-                                    "supplierInfo": {
-                                        "_id": "6375e17b3913c1b5774bad73",
-                                        "name": "泓瑞包装",
-                                        "address": "崇州金鸡路556",
-                                        "phone": "15212341234",
-                                        "category": "UV印刷",
-                                        "createTime": "2022-11-17T07:23:39.49Z",
-                                        "updateTime": "2023-01-03T09:55:46.168Z"
-                                    }
-                                },
-                                "batchCount": 1,
-                                "batchSizeWidth": 200,
-                                "batchSizeHeight": 200,
-                                "billId": "63c500b93e778319cbfa0b59",
-                                "remark": ""
-                            },
-                            {
-                                "id": "63c27389e3c018ab8c1c1545",
-                                "size": "200x200",
-                                "count": 1,
-                                "craftInfo": {
-                                    "_id": "638455274d585ba68be6cb8f",
-                                    "name": "逆向油",
-                                    "unit": "平方米",
-                                    "price": 0.65,
-                                    "norm": "按文件要求",
-                                    "remark": "",
-                                    "createTime": "2022-11-28T06:28:55.891Z",
-                                    "updateTime": "2022-11-28T06:30:08.619Z",
-                                    "category": "UV印刷",
-                                    "confirmCount": 0
-                                },
-                                "supplier": {
-                                    "calc": {
-                                        "_id": "638457b64d585ba68be6cb97",
-                                        "category": "UV印刷",
-                                        "name": "uv印刷计价方案1",
-                                        "remark": "版费(60)\n起价(普通1200,逆向油1600)\n超过10000份减版费",
-                                        "param1": "60",
-                                        "param2": "1200",
-                                        "param3": "1600",
-                                        "param4": "10000",
-                                        "param5": "",
-                                        "createTime": "0001-01-01T00:00:00Z",
-                                        "updateTime": "2022-12-01T05:52:58.196Z",
-                                        "isDefault": true
-                                    },
-                                    "deliveryTime": "2023-01-14T10:11:31Z",
-                                    "orderPrice": 0.026,
-                                    "orderCount": 200,
-                                    "orderRealPrice": 1600,
-                                    "supplierInfo": {
-                                        "_id": "6375e17b3913c1b5774bad73",
-                                        "name": "泓瑞包装",
-                                        "address": "崇州金鸡路556",
-                                        "phone": "15212341234",
-                                        "category": "UV印刷",
-                                        "createTime": "2022-11-17T07:23:39.49Z",
-                                        "updateTime": "2023-01-03T09:55:46.168Z"
-                                    }
-                                },
-                                "batchCount": 1,
-                                "batchSizeWidth": 200,
-                                "batchSizeHeight": 200,
-                                "billId": "63c500b93e778319cbfa0b59",
-                                "remark": ""
-                            },
-                            {
-                                "id": "63c27389e3c018ab8c1c1546",
-                                "size": "100x100",
-                                "count": 1,
-                                "craftInfo": {
-                                    "_id": "638eecaef9039e0980fe564f",
-                                    "name": "烫浅金",
-                                    "unit": "张",
-                                    "price": 0.15,
-                                    "norm": "按文件要求",
-                                    "remark": "",
-                                    "createTime": "2022-12-06T07:18:06.188Z",
-                                    "updateTime": "2022-12-06T07:18:06.188Z",
-                                    "category": "烫金",
-                                    "confirmCount": 0
-                                },
-                                "supplier": {
-                                    "calc": null,
-                                    "deliveryTime": "2023-01-14T10:11:31Z",
-                                    "orderPrice": 0.15,
-                                    "orderCount": 200,
-                                    "orderRealPrice": 30,
-                                    "supplierInfo": null
-                                },
-                                "batchCount": 1,
-                                "batchSizeWidth": 100,
-                                "batchSizeHeight": 100,
-                                "billId": "",
-                                "remark": ""
-                            },
-                            {
-                                "id": "63c27389e3c018ab8c1c1547",
-                                "size": "200x200",
-                                "count": 1,
-                                "craftInfo": {
-                                    "_id": "6388430851ba5b3307f8ab60",
-                                    "name": "光膜",
-                                    "unit": "平方米",
-                                    "price": 0.4,
-                                    "norm": "按文件要求",
-                                    "remark": "",
-                                    "createTime": "2022-12-01T06:00:40.068Z",
-                                    "updateTime": "2022-12-01T06:00:40.068Z",
-                                    "category": "覆膜",
-                                    "confirmCount": 0
-                                },
-                                "supplier": {
-                                    "calc": null,
-                                    "deliveryTime": "2023-01-14T10:11:31Z",
-                                    "orderPrice": 0.016,
-                                    "orderCount": 200,
-                                    "orderRealPrice": 3.2,
-                                    "supplierInfo": null
-                                },
-                                "batchCount": 1,
-                                "batchSizeWidth": 200,
-                                "batchSizeHeight": 200,
-                                "billId": "",
-                                "remark": ""
-                            },
-                            {
-                                "id": "63c27389e3c018ab8c1c1548",
-                                "size": "0",
-                                "count": 1,
-                                "craftInfo": {
-                                    "_id": "638471684d585ba68be6cbb0",
-                                    "name": "打包",
-                                    "unit": "张",
-                                    "price": 0.01,
-                                    "norm": "按文件要求",
-                                    "remark": "",
-                                    "createTime": "2022-11-28T08:29:28.343Z",
-                                    "updateTime": "2022-11-28T08:29:28.343Z",
-                                    "category": "打包",
-                                    "confirmCount": 0
-                                },
-                                "supplier": {
-                                    "calc": null,
-                                    "deliveryTime": "2023-01-14T10:11:31Z",
-                                    "orderPrice": 0.01,
-                                    "orderCount": 200,
-                                    "orderRealPrice": 2,
-                                    "supplierInfo": null
-                                },
-                                "batchCount": 1,
-                                "batchSizeWidth": 0,
-                                "batchSizeHeight": 0,
-                                "billId": "",
-                                "remark": ""
-                            },
-                            {
-                                "id": "63c27389e3c018ab8c1c1549",
-                                "size": "0",
-                                "count": 1,
-                                "craftInfo": {
-                                    "_id": "638470d24d585ba68be6cbaf",
-                                    "name": "粘盒",
-                                    "unit": "张",
-                                    "price": 0.08,
-                                    "norm": "按文件要求",
-                                    "remark": "",
-                                    "createTime": "2022-11-28T08:26:58.869Z",
-                                    "updateTime": "2022-11-28T08:27:24.914Z",
-                                    "category": "粘盒",
-                                    "confirmCount": 0
-                                },
-                                "supplier": {
-                                    "calc": null,
-                                    "deliveryTime": "2023-01-14T10:11:31Z",
-                                    "orderPrice": 0.08,
-                                    "orderCount": 200,
-                                    "orderRealPrice": 16,
-                                    "supplierInfo": null
-                                },
-                                "batchCount": 1,
-                                "batchSizeWidth": 0,
-                                "batchSizeHeight": 0,
-                                "billId": "",
-                                "remark": ""
-                            },
-                            {
-                                "id": "63c27389e3c018ab8c1c154a",
-                                "size": "0",
-                                "count": 1,
-                                "craftInfo": {
-                                    "_id": "638470a94d585ba68be6cbae",
-                                    "name": "模切",
-                                    "unit": "张",
-                                    "price": 0.04,
-                                    "norm": "按文件要求",
-                                    "remark": "",
-                                    "createTime": "2022-11-28T08:26:17.151Z",
-                                    "updateTime": "2022-11-28T08:29:11.086Z",
-                                    "category": "模切",
-                                    "confirmCount": 0
-                                },
-                                "supplier": {
-                                    "calc": null,
-                                    "deliveryTime": "2023-01-14T10:11:31Z",
-                                    "orderPrice": 0.04,
-                                    "orderCount": 200,
-                                    "orderRealPrice": 8,
-                                    "supplierInfo": null
-                                },
-                                "batchCount": 1,
-                                "batchSizeWidth": 0,
-                                "batchSizeHeight": 0,
-                                "billId": "",
-                                "remark": ""
-                            },
-                            {
-                                "id": "63c27389e3c018ab8c1c154b",
-                                "size": "0",
-                                "count": 1,
-                                "craftInfo": {
-                                    "_id": "6384708e4d585ba68be6cbad",
-                                    "name": "对裱",
-                                    "unit": "平方米",
-                                    "price": 0.2,
-                                    "norm": "按文件要求",
-                                    "remark": "",
-                                    "createTime": "2022-11-28T08:25:50.565Z",
-                                    "updateTime": "2022-11-28T08:27:45.765Z",
-                                    "category": "对裱",
-                                    "confirmCount": 0
-                                },
-                                "supplier": {
-                                    "calc": null,
-                                    "deliveryTime": "2023-01-14T10:11:31Z",
-                                    "orderPrice": 6,
-                                    "orderCount": 200,
-                                    "orderRealPrice": 1200,
-                                    "supplierInfo": {
-                                        "_id": "638844d151ba5b3307f8ab68",
-                                        "name": "中印正隆",
-                                        "address": "崇州2",
-                                        "phone": "13699069388",
-                                        "category": "打包",
-                                        "createTime": "2022-12-01T06:08:17.095Z",
-                                        "updateTime": "2022-12-01T06:08:17.095Z"
-                                    }
-                                },
-                                "batchCount": 1,
-                                "batchSizeWidth": 6000,
-                                "batchSizeHeight": 5000,
-                                "billId": "63c51010b07fb70dd5f3fe6f",
-                                "remark": ""
-                            }
-                        ],
-                        "matInfo": {
-                            "_id": "638eee5bf9039e0980fe5654",
-                            "name": "太阳白卡",
-                            "category": "纸张类",
-                            "price": 5400,
-                            "unit": "吨",
-                            "norm": "350g",
-                            "height": 0,
-                            "width": 0,
-                            "remark": "",
-                            "createTime": "2022-12-06T07:25:15.32Z",
-                            "updateTime": "2022-12-06T07:25:15.32Z",
-                            "confirmCount": 0
-                        },
-                        "supplier": {
-                            "calc": null,
-                            "deliveryTime": "2023-01-14T10:11:31Z",
-                            "orderPrice": 47.25,
-                            "orderCount": 200,
-                            "orderRealPrice": 9450,
-                            "supplierInfo": null
-                        },
-                        "batchCount": 1,
-                        "batchSizeWidth": 5000,
-                        "batchSizeHeight": 5000,
-                        "billId": "",
-                        "remark": ""
-                    }
-                ],
-                "remark": "",
-                "totalPrice": 12309.2
-            }
-        ],
-        "createTime": "2023-01-14T09:19:05.775Z",
-        "updateTime": "2023-01-14T09:19:17.299Z"
-    },
-    "thumbnail": "",
-    "createUser": "123",
-    "total": 200,
-    "status": "process",
-    "totalPrice": 333006,
-    "updateTime": "2023-01-16T09:28:28.667Z",
-    "createTime": "2023-01-14T10:11:51.525Z"
-}
+{"planIds":["638ef3960027470dd3a42f55","63bfa7dbe3c018ab8c1c14f8"]}

+ 1 - 74
boxcost/db/model/tmp.json

@@ -1,74 +1 @@
-{
-    "name":"喜乐1001",
-    "pack":{
-        "_id":"6357b30dc5a84c8f3b963023",
-        "name":"乐喜",
-        "thumbnail":"aaa.png",
-        "compCounts":1,
-        "designer":"李爽",
-        "components":[
-            {
-                "id":"6357b30dc5a84c8f3b963020",
-                "name":"上盖纸面",
-                "thumbnail":"bbb.png",
-                "uv":"ccc.png",
-                "uvSize":"300*300",
-                "mats":[
-                    {
-                        "id":"6357b30dc5a84c8f3b963021",
-                        "matId":"63575b91a178c8443cfd302e",
-                        "crafts":[
-                            {
-                                "id":"6357b30dc5a84c8f3b963022",
-                                "craftId":"63575b91a178c8443cfd302e",
-                                "size":"230*230"
-                            }
-                        ]
-                    }
-                ],
-                "remark":"xxxx"
-            }
-        ],
-        "createTime":"2022-10-25T09:57:33.473Z",
-        "updateTime":"2022-10-25T10:00:32.926Z"
-    },
-    "thumbnail":"xxxx.png",
-    "createUser":"李爽",
-    "total":4,
-    "status":"process",
-    "totalPrice":100,
-    "components":[
-        {
-            "id":"6357b30dc5a84c8f3b963020",
-            "steps":[
-                {
-                    "type":"mat",
-                    "typeId":"63575b91a178c8443cfd302e",
-                    "craftNorm":{
-                        "printHeight":"120cm",
-                        "printWidth":"50cm"
-                    },
-                    "matNorm":{
-                        "paperHeight":"150cm",
-                        "paperWidth":"80cm"
-                    },
-                    "processNorm":{
-                        "norm":"120*120"
-                    },
-                    "planCount":200,
-                    "finalCount":185,
-                    "totalPrice":600,
-                    "price":2.8,
-                    "supplierId":"6357600d1afd488cc53a899f",
-                    "priceStrategy":{
-                        "type": "same",
-                        "param1": 0.9,
-                        "param2": 0.9,
-                        "param3": 0.9
-                    },
-                    "billId":"6357600d1afd488cc53a899f"
-                }
-            ]
-        }
-    ]
-}
+{"supplierId": "","timeRange": ["2022-12-07","2022-12-08"],"planIds": []}