2
3
yuedefeng 6 жил өмнө
parent
commit
5c23b06255

+ 1 - 1
src/dashoo.cn/backend/api/controllers/base.go

@@ -278,7 +278,7 @@ func (this *BaseController) Prepare() {
 		"/api/webinterface/preparelist", "/api/webinterface/prepareinfo",
 		"/api/sampletest_v/sampletest", "/api/sampletest_v/getpass", "/api/sampletest_v/editpass/",
 		"/api/sampletest_v/donorsdetail", "/api/sampletest_v/testdetail", "/api/uploads/samplesinput", "/api/doctemplate_onlyoffice/callback", "/api/doctemplate_onlyoffice/viewcallback", "/api/limsupload/usersignimg",
-		"/api/uploads/samplestypeimg", "/api/workflow/historyimg/", "/api/document/getdocumentnameandtime", "/api/annualaudit/auditcallback", "/api/suppliercert/auditcallback", "/api/register/addentity", "/api/register/getsuppliername", "/api/supplier/dictlist/"}
+		"/api/uploads/samplestypeimg", "/api/workflow/historyimg/", "/api/document/getdocumentnameandtime", "/api/annualaudit/auditcallback", "/api/suppliercert/auditcallback", "/api/register/addentity", "/api/register/getsuppliername"}
 	for _, v := range urls {
 		fmt.Println("**this.Ctx.Input.URL()**", this.Ctx.Input.URL())
 		if this.Ctx.Input.URL() == v {

+ 8 - 12
src/dashoo.cn/frontend_web/src/components/oilsupplier/equipmentlist.vue

@@ -60,14 +60,6 @@
   export default {
     name: 'EquipmentList',
     props: {
-      SupplierCertId: {
-        type: String,
-        default: '0'
-      },
-      SupplierTypeCode: {
-        type: String,
-        default: '0'
-      },
       canadd: {
         type: Boolean,
         default: false
@@ -77,7 +69,7 @@
         default: false
       },
     },
-    created() {
+    created () {
       this.initData()
     },
     computed: {
@@ -85,8 +77,12 @@
         session: 'session'
       })
     },
-    data() {
+    data () {
       return {
+        SupplierId: '0',
+        SupplierCertId: '0',
+        SupplierTypeCode: '0',
+        status: '0',
         equipmentList: [],
         Title: '',
         EquipmentForm: {
@@ -105,12 +101,12 @@
       }
     },
     methods: {
-      getvalue(serviceId, SupplierTypeCode, certId, status) {
+      getvalue (serviceId, SupplierTypeCode, certId, status) {
         // this.SupplierId = serviceId
         this.SupplierTypeCode = SupplierTypeCode
         this.SupplierCertId = certId
         this.Status = status
-        this.initData() 
+        this.initData()
       },
       initData() {
         let _this = this

+ 7 - 3
src/dashoo.cn/frontend_web/src/components/oilsupplier/patentlist.vue

@@ -73,14 +73,14 @@
   export default {
     name: 'PatentList',
     props: {
-      SupplierCertId: {
+      /*SupplierCertId: {
         type: String,
         default: '0'
       },
       SupplierTypeCode: {
         type: String,
         default: '0'
-      },
+      },*/
       canadd: {
         type: Boolean,
         default: false
@@ -100,6 +100,10 @@
     },
     data() {
       return {
+        SupplierId: '0',
+        SupplierCertId: '0',
+        SupplierTypeCode: '0',
+        status: '0',
         patentList: [],
         Title: '',
         PatentForm: {
@@ -123,7 +127,7 @@
         // this.SupplierId = serviceId
         this.SupplierTypeCode = SupplierTypeCode
         this.SupplierCertId = certId
-        this.initData() 
+        this.initData()
       },
       initData() {
         let _this = this

+ 7 - 3
src/dashoo.cn/frontend_web/src/components/oilsupplier/performancelist.vue

@@ -97,14 +97,14 @@
   export default {
     name: 'PerformanceList',
     props: {
-      SupplierCertId: {
+      /*SupplierCertId: {
         type: String,
         default: '0'
       },
       SupplierTypeCode: {
         type: String,
         default: '0'
-      },
+      },*/
       canadd: {
         type: Boolean,
         default: false
@@ -124,6 +124,10 @@
     },
     data() {
       return {
+        SupplierId: '0',
+        SupplierCertId: '0',
+        SupplierTypeCode: '0',
+        status: '0',
         performanceList: [],
         Title: '',
         PerformanceForm: {
@@ -149,7 +153,7 @@
         // this.SupplierId = serviceId
         this.SupplierTypeCode = SupplierTypeCode
         this.SupplierCertId = certId
-        this.initData() 
+        this.initData()
       },
       initData() {
         let _this = this

+ 3 - 3
src/dashoo.cn/frontend_web/src/components/oilsupplier/winninglist.vue

@@ -64,14 +64,14 @@
   export default {
     name: 'WinningList',
     props: {
-      SupplierCertId: {
+      /*SupplierCertId: {
         type: String,
         default: '0'
       },
       SupplierTypeCode: {
         type: String,
         default: '0'
-      },
+      },*/
       canadd: {
         type: Boolean,
         default: false
@@ -113,7 +113,7 @@
         // this.SupplierId = serviceId
         this.SupplierTypeCode = SupplierTypeCode
         this.SupplierCertId = certId
-        this.initData() 
+        this.initData()
       },
       initData() {
         let _this = this