cheny 4 lat temu
rodzic
commit
d3bb5fbbcb
1 zmienionych plików z 25 dodań i 3 usunięć
  1. 25 3
      app/service/product.js

+ 25 - 3
app/service/product.js

@@ -92,8 +92,10 @@ class ProductService extends CrudService {
       product.business = utils.getName("business",product.business);
       product.mature = utils.getName("mature",product.mature);
     }
-    // 需要打出的列表
-    const _headers = [
+    let _headers = []
+    if(totaltype === '0'){
+    // 技术
+    _headers = [
       { key: 'totaltype', title: '分类' },
       { key: 'name', title: '名称' },
       { key: 'product_type_name', title: '类型名称' },
@@ -102,13 +104,30 @@ class ProductService extends CrudService {
       { key: 'price', title: '单价' },
       { key: 'priceunit', title: '单位' },
       { key: 'field', title: '所属领域' },
-      { key: 'scope', title: '服务范围' },
+      
       { key: 'coopermode', title: '合作方式' },
       { key: 'business', title: '交易方式' },
       { key: 'budget', title: '投入预算' },
       { key: 'end_date', title: '需求截止日期' },
       { key: 'difficult_problem', title: '难题及瓶颈问题' },
       { key: 'demand', title: '企业解决需求' },
+      { key: 'contact_user', title: '联系人' },
+      { key: 'contact_tel', title: '联系电话' }
+    ];
+    }else{
+    // 产品
+    _headers = [
+      { key: 'totaltype', title: '分类' },
+      { key: 'name', title: '名称' },
+      { key: 'product_type_name', title: '类型名称' },
+      { key: 'introduction', title: '简介' },
+      
+      { key: 'price', title: '单价' },
+      { key: 'priceunit', title: '单位' },
+      { key: 'field', title: '所属领域' },
+      { key: 'scope', title: '服务范围' },
+      { key: 'coopermode', title: '合作方式' },
+      { key: 'business', title: '交易方式' },
       { key: 'company', title: '单位名称' },
       { key: 'address', title: '单位地址' },
       { key: 'team', title: '技术团队情况' },
@@ -119,6 +138,9 @@ class ProductService extends CrudService {
       { key: 'contact_user', title: '联系人' },
       { key: 'contact_tel', title: '联系电话' }
   ];
+    }
+    // 需要打出的列表
+    
   
   const _data = productList;