Kaynağa Gözat

前后:已入库保存检查资质

dubch 4 yıl önce
ebeveyn
işleme
ce8e117a3c

+ 4 - 1
src/dashoo.cn/backend/api/controllers/oilsupplier/supplier.go

@@ -3289,9 +3289,12 @@ func (this *OilSupplierController) CheckSupplierFileList() {
 
 	}
 	var certSubList1 []suppliercertsub.OilSupplierCertSub
-	total := certsubService.GetPagingEntitiesWithOrderBytbl("", file.CurrentPage, file.Size, "Id", true, &certSubList1, "IsQuestion = 2 and SupplierId = "+strconv.Itoa(supplierEntity.Id))
+	var total int64
 	if file.CertId != "0" {
 		total = certsubService.GetPagingEntitiesWithOrderBytbl("", file.CurrentPage, file.Size, "Id", true, &certSubList1, "IsQuestion = 2 and SupplierId = "+strconv.Itoa(supplierEntity.Id)+" and SupplierCertId = "+file.CertId)
+	} else {
+		total = certsubService.GetPagingEntitiesWithOrderBytbl("", file.CurrentPage, file.Size, "Id", true, &certSubList1, "IsQuestion = 2 and SupplierId = "+strconv.Itoa(supplierEntity.Id))
+
 	}
 	var datainfo DataInfo
 	datainfo.CurrentItemCount = total

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 0
src/dashoo.cn/doc/各种导出sql.sql


+ 19 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierstore/_opera/basisedit.vue

@@ -883,7 +883,25 @@
         if (!this.formData.Id || !this.certId) {
           this.addEntity()
         } else {
-          this.updateEntity()
+          let fileType = {
+            Type: this.formData.OperType === '制造商' ? 1 : 2,
+            SupplierId: this.formData.Id,
+            CertId: this.certId,
+            Grade: this.formData.Grade
+          }
+          api.checkSupplierFileNew(fileType, this.$axios).then(res => {
+            if (res.data.code === 1) {
+              this.updateEntity()
+            } else {
+              this.$message({
+                type: 'warning',
+                message: res.data.message
+              })
+              this.saveLoading = false
+            }
+          }).catch(err => {
+            console.error(err)
+          })
         }
       },
 

+ 19 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierstore/_opera/techedit.vue

@@ -878,7 +878,25 @@
         if (!this.formData.Id || !this.certId) {
           this.addEntity()
         } else {
-          this.updateEntity()
+          let fileType = {
+            Type: this.formData.OperType === '制造商' ? 1 : 2,
+            SupplierId: this.formData.Id,
+            CertId: this.certId,
+            Grade: this.formData.Grade
+          }
+          api.checkSupplierFileNew(fileType, this.$axios).then(res => {
+            if (res.data.code === 1) {
+              this.updateEntity()
+            } else {
+              this.$message({
+                type: 'warning',
+                message: res.data.message
+              })
+              this.saveLoading = false
+            }
+          }).catch(err => {
+            console.error(err)
+          })
         }
       },
 

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor