Browse Source

准入范围打印错误的bug

shiyi 6 years ago
parent
commit
44ccf52ad7

+ 7 - 1
src/dashoo.cn/backend/api/controllers/oilsupplier/supplierdataentry.go

@@ -172,7 +172,7 @@ func (this *SupplierDataEntryController) DocExport() {
 		Name = Name + " " + tabledata7[0].Name
 		for i := 1; i < len(tabledata7); i++ {
 			Name += ";"
-			Name = tabledata7[i].Code
+			Name += tabledata7[i].Code
 			Name = Name + " " + tabledata7[i].Name
 		}
 		datamap["Name"] = Name
@@ -181,6 +181,9 @@ func (this *SupplierDataEntryController) DocExport() {
 	}
 
 	var interfaceSlice3 = make([]interface{}, len(tabledata3))
+	for i, d := range tabledata3 {
+		interfaceSlice3[i] = d
+	}
 	datamap["MajorEquipments"] = workflow.TableDetailData{
 		DataList:   interfaceSlice3,
 		StartRow:   2,
@@ -322,6 +325,9 @@ func (this *SupplierDataEntryController) PdfExport() {
 	datamap["Telphone"] = model1.Telphone
 
 	var interfaceSlice2 = make([]interface{}, len(tabledata))
+	for i, d := range tabledata {
+		interfaceSlice2[i] = d
+	}
 	datamap["CertSub"] = workflow.TableDetailData{
 		DataList:   interfaceSlice2,
 		StartRow:   2,