animeic 2 years ago
parent
commit
3321534b9c

+ 1 - 1
boxcost/api/bill-produce-excel.go

@@ -450,7 +450,7 @@ func (b *ProduceBillExcel) drawSupplierRemark() error {
 	}
 
 	styleLeft, _ := b.Excel.NewStyle(&excelize.Style{
-		Alignment: &excelize.Alignment{Horizontal: "left", Vertical: "center"},
+		Alignment: &excelize.Alignment{Horizontal: "left", Vertical: "center", WrapText: true},
 		Border:    border,
 	})
 

+ 1 - 1
boxcost/api/bill-product-excel.go

@@ -270,7 +270,7 @@ func (b *ProductBillExcel) drawSupplierRemark() error {
 	}
 
 	styleLeft, _ := b.Excel.NewStyle(&excelize.Style{
-		Alignment: &excelize.Alignment{Horizontal: "left", Vertical: "center"},
+		Alignment: &excelize.Alignment{Horizontal: "left", Vertical: "center", WrapText: true},
 		Border:    border,
 	})
 

+ 1 - 1
boxcost/api/bill-purchase-excel.go

@@ -307,7 +307,7 @@ func (b *PurchaseBillExcel) drawSupplierRemark() error {
 	}
 
 	styleLeft, _ := b.Excel.NewStyle(&excelize.Style{
-		Alignment: &excelize.Alignment{Horizontal: "left", Vertical: "center"},
+		Alignment: &excelize.Alignment{Horizontal: "left", Vertical: "center", WrapText: true},
 		Border:    border,
 	})
 

+ 3 - 0
boxcost/api/print.go

@@ -76,3 +76,6 @@ func Printr(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 	return repo.RepoUpdateSetDoc(apictx.CreateRepoCtx(), repo.CollectionBillProduct, "6440dc82afe88127dda4a5ef", &model.ProductBill{Remark: ""})
 
 }
+
+// ? 测试供应商备注
+// {{boxcost}}/bill/produce/download?id=6444d14db2a7c8eae4240579

+ 0 - 1
boxcost/api/sms.go

@@ -30,7 +30,6 @@ type SupplierSmsReq struct {
 
 func SendSmsNotify(phone string, info *SupplierSmsReq) error {
 	// TODO dev
-	phone = "13408547823"
 	return errors.New("待配置短信模板")
 	client, _err := createSmsClient()
 	if _err != nil {