Explorar el Código

求购-业务员分配

liusw hace 7 años
padre
commit
e7cb59ccc8

+ 45 - 0
src/main/java/com/uas/platform/b2c/trade/seek/controller/SeekSalesmanInfoController.java

@@ -0,0 +1,45 @@
+package com.uas.platform.b2c.trade.seek.controller;
+
+import com.uas.platform.b2c.common.account.model.User;
+import com.uas.platform.b2c.core.support.SystemSession;
+import com.uas.platform.b2c.core.support.log.UsageBufferedLogger;
+import com.uas.platform.b2c.trade.seek.model.SeekSalesmanInfo;
+import com.uas.platform.b2c.trade.seek.service.SeekSalesmanInfoService;
+import com.uas.platform.b2c.trade.support.ResultMap;
+import com.uas.platform.core.logging.BufferedLoggerManager;
+import com.uas.platform.core.model.PageInfo;
+import com.uas.platform.core.model.PageParams;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.data.domain.Page;
+import org.springframework.web.bind.annotation.*;
+
+/**
+ * 求购-优质采购商操作接口类
+ *
+ * @author liusw
+ * @version 2017/12/13 10:38
+ */
+@RestController
+@RequestMapping("/seek/salesman")
+public class SeekSalesmanInfoController {
+
+    /**
+     * 日志
+     */
+    private static final UsageBufferedLogger logger = BufferedLoggerManager.getLogger(UsageBufferedLogger.class);
+
+    @Autowired
+    private SeekSalesmanInfoService seekSalesmanInfoService;
+
+    @RequestMapping(value = "/getPageInfo", method = RequestMethod.GET)
+    public Page<SeekSalesmanInfo> getPageInfo(PageParams params) {
+        PageInfo info = new PageInfo(params);
+        return seekSalesmanInfoService.getPageInfo(info);
+    }
+
+    @RequestMapping(value = "/orders", method = RequestMethod.POST)
+    public ResultMap orders(Long id) {
+        User user = SystemSession.getUser();
+        return seekSalesmanInfoService.orders(id, user);
+    }
+}

+ 14 - 0
src/main/java/com/uas/platform/b2c/trade/seek/dao/SeekSalesmanDao.java

@@ -0,0 +1,14 @@
+package com.uas.platform.b2c.trade.seek.dao;
+
+import com.uas.platform.b2c.trade.seek.model.SeekSalesman;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+import org.springframework.stereotype.Repository;
+
+
+@Repository
+public interface SeekSalesmanDao extends JpaSpecificationExecutor<SeekSalesman>,
+        JpaRepository<SeekSalesman, Long> {
+
+}
+

+ 20 - 0
src/main/java/com/uas/platform/b2c/trade/seek/dao/SeekSalesmanInfoDao.java

@@ -0,0 +1,20 @@
+package com.uas.platform.b2c.trade.seek.dao;
+
+import com.uas.platform.b2c.trade.seek.model.SeekPurchaseBom;
+import com.uas.platform.b2c.trade.seek.model.SeekSalesmanInfo;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+import org.springframework.stereotype.Repository;
+
+/**
+ * 求购业务Dao
+ *
+ * @author liusw
+ * @version 2017/12/12 16:48
+ */
+@Repository
+public interface SeekSalesmanInfoDao extends JpaSpecificationExecutor<SeekSalesmanInfo>,
+        JpaRepository<SeekSalesmanInfo, Long> {
+
+}
+

+ 79 - 0
src/main/java/com/uas/platform/b2c/trade/seek/model/SeekSalesman.java

@@ -0,0 +1,79 @@
+package com.uas.platform.b2c.trade.seek.model;
+
+import com.uas.platform.b2c.common.account.model.Enterprise;
+import com.uas.platform.b2c.common.account.model.User;
+
+import javax.persistence.*;
+import java.util.Date;
+
+/**
+ * 求购-业务员分配类
+ *
+ * @author liusw
+ * @version 2017/12/12 16:45
+ */
+@Entity(name = "trade.seekSalesman")
+@Table(name = "trade$seekSalesman")
+public class SeekSalesman {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * ID
+     */
+    @Id
+    @GeneratedValue
+    @Column(name = "ss_id")
+    private Long id;
+
+    /**
+     * 公共询价的id
+     */
+    @Column(name = "ss_publicid")
+    private Long publicId;
+
+    /**
+     * 业务员名字
+     */
+    @Column(name = "ss_salesman_name")
+    private String salesmanName;
+
+    /**
+     * 业务员操作时间
+     */
+    @Column(name = "ss_gettime")
+    private Date getTime;
+
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    public Long getPublicId() {
+        return publicId;
+    }
+
+    public void setPublicId(Long publicId) {
+        this.publicId = publicId;
+    }
+
+    public String getSalesmanName() {
+        return salesmanName;
+    }
+
+    public void setSalesmanName(String salesmanName) {
+        this.salesmanName = salesmanName;
+    }
+
+    public Date getGetTime() {
+        return getTime;
+    }
+
+    public void setGetTime(Date getTime) {
+        this.getTime = getTime;
+    }
+}

+ 166 - 0
src/main/java/com/uas/platform/b2c/trade/seek/model/SeekSalesmanInfo.java

@@ -0,0 +1,166 @@
+package com.uas.platform.b2c.trade.seek.model;
+
+import com.uas.platform.b2c.common.account.model.Enterprise;
+import com.uas.platform.b2c.common.account.model.User;
+
+import javax.persistence.*;
+import java.util.Date;
+
+/**
+ * 求购-业务员分配视图获取详细信息
+ *
+ * @author liusw
+ * @version 2017/12/30 11:25
+ */
+@Entity
+@Table(name = "v$seek$seeksalesmaninfo")
+public class SeekSalesmanInfo {
+    /**
+     * ID
+     */
+    @Id
+    @Column(name = "publicid")
+    private Long id;
+
+    @Column(name = "id_source")
+    private String source;
+
+    @Column(name = "in_code")
+    private String code;
+
+    @Column(name = "id_date")
+    private Date publicDate;
+
+    @OneToOne(cascade = { CascadeType.REFRESH })
+    @JoinColumn(name = "id_useruu", insertable = false, updatable = false)
+    private User user;
+
+    @OneToOne(cascade = { CascadeType.REFRESH })
+    @JoinColumn(name = "in_enuu", insertable = false, updatable = false)
+    private Enterprise enterprise;
+
+    @Column(name = "id_cmpcode")
+    private String cmpCode;
+
+    @Column(name = "id_inbrand")
+    private String brand;
+
+    @Column(name = "id_prodspec")
+    private String spec;
+
+    @Column(name = "id_enddate")
+    private Date endDate;
+
+    @Column(name = "id_offeramount")
+    private Integer offerAmount;
+
+    @Column(name = "ss_salesman_name")
+    private String salesman;
+
+    @Column(name = "id_status")
+    private Integer status;
+
+    public Integer getStatus() {
+        return status;
+    }
+
+    public void setStatus(Integer status) {
+        this.status = status;
+    }
+
+    public String getCode() {
+        return code;
+    }
+
+    public void setCode(String code) {
+        this.code = code;
+    }
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    public String getSource() {
+        return source;
+    }
+
+    public void setSource(String source) {
+        this.source = source;
+    }
+
+    public Date getPublicDate() {
+        return publicDate;
+    }
+
+    public void setPublicDate(Date publicDate) {
+        this.publicDate = publicDate;
+    }
+
+    public User getUser() {
+        return user;
+    }
+
+    public void setUser(User user) {
+        this.user = user;
+    }
+
+    public Enterprise getEnterprise() {
+        return enterprise;
+    }
+
+    public void setEnterprise(Enterprise enterprise) {
+        this.enterprise = enterprise;
+    }
+
+    public String getCmpCode() {
+        return cmpCode;
+    }
+
+    public void setCmpCode(String cmpCode) {
+        this.cmpCode = cmpCode;
+    }
+
+    public String getBrand() {
+        return brand;
+    }
+
+    public void setBrand(String brand) {
+        this.brand = brand;
+    }
+
+    public String getSpec() {
+        return spec;
+    }
+
+    public void setSpec(String spec) {
+        this.spec = spec;
+    }
+
+    public Date getEndDate() {
+        return endDate;
+    }
+
+    public void setEndDate(Date endDate) {
+        this.endDate = endDate;
+    }
+
+    public Integer getOfferAmount() {
+        return offerAmount;
+    }
+
+    public void setOfferAmount(Integer offerAmount) {
+        this.offerAmount = offerAmount;
+    }
+
+    public String getSalesman() {
+        return salesman;
+    }
+
+    public void setSalesman(String salesman) {
+        this.salesman = salesman;
+    }
+}

+ 13 - 0
src/main/java/com/uas/platform/b2c/trade/seek/service/SeekSalesmanInfoService.java

@@ -0,0 +1,13 @@
+package com.uas.platform.b2c.trade.seek.service;
+
+import com.uas.platform.b2c.common.account.model.User;
+import com.uas.platform.b2c.trade.seek.model.SeekSalesmanInfo;
+import com.uas.platform.b2c.trade.support.ResultMap;
+import com.uas.platform.core.model.PageInfo;
+import org.springframework.data.domain.Page;
+
+public interface SeekSalesmanInfoService {
+    Page<SeekSalesmanInfo> getPageInfo(PageInfo info);
+
+    ResultMap orders(Long id, User user);
+}

+ 64 - 0
src/main/java/com/uas/platform/b2c/trade/seek/service/impl/SeekSalesmanInfoServiceImpl.java

@@ -0,0 +1,64 @@
+package com.uas.platform.b2c.trade.seek.service.impl;
+
+import com.uas.platform.b2c.common.account.model.User;
+import com.uas.platform.b2c.trade.seek.dao.SeekSalesmanDao;
+import com.uas.platform.b2c.trade.seek.dao.SeekSalesmanInfoDao;
+import com.uas.platform.b2c.trade.seek.model.SeekSalesman;
+import com.uas.platform.b2c.trade.seek.model.SeekSalesmanInfo;
+import com.uas.platform.b2c.trade.seek.service.SeekSalesmanInfoService;
+import com.uas.platform.b2c.trade.support.CodeType;
+import com.uas.platform.b2c.trade.support.ResultMap;
+import com.uas.platform.core.model.PageInfo;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.data.domain.Page;
+import org.springframework.data.domain.Sort.Direction;
+import org.springframework.data.jpa.domain.Specification;
+import org.springframework.stereotype.Service;
+import org.springframework.util.StringUtils;
+
+import javax.persistence.criteria.CriteriaBuilder;
+import javax.persistence.criteria.CriteriaQuery;
+import javax.persistence.criteria.Predicate;
+import javax.persistence.criteria.Root;
+import java.util.Date;
+
+/**
+ * 求购-业务员分配实现类
+ *
+ * @author liusw
+ * @version 2017/12/13 10:45
+ */
+@Service
+public class SeekSalesmanInfoServiceImpl implements SeekSalesmanInfoService {
+
+    @Autowired
+    private SeekSalesmanInfoDao seekSalesmanInfoDao;
+
+    @Autowired
+    private SeekSalesmanDao seekSalesmanDao;
+
+    @Override
+    public Page<SeekSalesmanInfo> getPageInfo(final PageInfo info) {
+        info.sorting("publicDate", Direction.DESC);
+        Page<SeekSalesmanInfo> pageInfos = seekSalesmanInfoDao.findAll(new Specification<SeekSalesmanInfo>() {
+            public Predicate toPredicate(Root<SeekSalesmanInfo> root, CriteriaQuery<?> query, CriteriaBuilder builder) {
+                query.where(info.getPredicates(root, query, builder));
+                return null;
+            }
+        }, info);
+        return pageInfos;
+    }
+
+    @Override
+    public ResultMap orders(Long id, User user) {
+        if (StringUtils.isEmpty(id) || StringUtils.isEmpty(user)) {
+            return new ResultMap(CodeType.NO_INFO, "参数不完整!");
+        }
+        SeekSalesman seekSalesman = new SeekSalesman();
+        seekSalesman.setGetTime(new Date(System.currentTimeMillis()));
+        seekSalesman.setPublicId(id);
+        seekSalesman.setSalesmanName(user.getUserName());
+        seekSalesmanDao.save(seekSalesman);
+        return new ResultMap(CodeType.OK, "接单成功!");
+    }
+}

+ 2 - 0
src/main/webapp/WEB-INF/views/normal/adminWithNav.html

@@ -174,6 +174,8 @@
 					class="fa fa-flag"></i><span>用户操作日志</span></a></li>
 			<li class="nav-node"><a href="#/seekQualityBuyer"><i
 					class="fa fa-flag"></i><span>优质采购商</span></a></li>
+			<li class="nav-node"><a href="#/seekSalesman"><i
+					class="fa fa-flag"></i><span>求购-业务员分配</span></a></li>
 
 			<li class="nav-header">禁用信息</li>
 			<li class="nav-node"><a href="#/disable/brand"><i

+ 10 - 5
src/main/webapp/resources/js/admin/app.js

@@ -1,4 +1,4 @@
- define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ui-form', 'ngLocal', 'ngTable', 'ngSanitize', 'ngDraggable', 'common/services', 'common/directives', 'common/query/brand', 'common/query/address', 'common/query/return' , 'common/query/change' ,'common/query/component', 'common/query/order', 'common/query/purchase', 'common/query/invoice', 'common/query/property', 'common/query/kind', 'common/query/property', 'common/query/receipt', 'common/query/logistics' ,'angular-toaster', 'ui-jquery', 'jquery-uploadify','common/query/dateParse' , 'common/query/bankTransfer' ,'common/query/bankInfo', 'common/query/urlencryption', 'common/query/bill', 'common/query/makerDemand', 'common/query/goods', 'common/query/validtime', 'file-upload','file-upload-shim', 'common/query/slideImage', 'common/query/kindAdvice', 'common/query/responseLogistics', 'common/query/search','common/directives/dynamicInput', 'common/query/auditorMail', 'common/query/tradeBasicProperties', 'common/query/exchangeRate', 'common/query/tradeDeliveryDelayTime', 'common/query/payment', 'common/query/kindContrast', 'common/query/crawlTask', 'common/query/afterSale', 'common/query/refund', 'common/query/messageBoard', 'common/query/logisticsPort', 'common/query/storeInfo', 'common/query/cms', 'common/query/help', 'common/query/commonCount', 'common/module/store_admin_violations_module', 'common/query/internalMessage','common/query/user','common/query/secQuestion','common/query/keyWord','common/query/logUsage','common/query/seekQualityBuyer'], function(angularAMD) {
+ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ui-form', 'ngLocal', 'ngTable', 'ngSanitize', 'ngDraggable', 'common/services', 'common/directives', 'common/query/brand', 'common/query/address', 'common/query/return' , 'common/query/change' ,'common/query/component', 'common/query/order', 'common/query/purchase', 'common/query/invoice', 'common/query/property', 'common/query/kind', 'common/query/property', 'common/query/receipt', 'common/query/logistics' ,'angular-toaster', 'ui-jquery', 'jquery-uploadify','common/query/dateParse' , 'common/query/bankTransfer' ,'common/query/bankInfo', 'common/query/urlencryption', 'common/query/bill', 'common/query/makerDemand', 'common/query/goods', 'common/query/validtime', 'file-upload','file-upload-shim', 'common/query/slideImage', 'common/query/kindAdvice', 'common/query/responseLogistics', 'common/query/search','common/directives/dynamicInput', 'common/query/auditorMail', 'common/query/tradeBasicProperties', 'common/query/exchangeRate', 'common/query/tradeDeliveryDelayTime', 'common/query/payment', 'common/query/kindContrast', 'common/query/crawlTask', 'common/query/afterSale', 'common/query/refund', 'common/query/messageBoard', 'common/query/logisticsPort', 'common/query/storeInfo', 'common/query/cms', 'common/query/help', 'common/query/commonCount', 'common/module/store_admin_violations_module', 'common/query/internalMessage','common/query/user','common/query/secQuestion','common/query/keyWord','common/query/logUsage','common/query/seekQualityBuyer','common/query/seekSalesman'], function(angularAMD) {
 	'use strict';
 
 	 /**
@@ -8,7 +8,7 @@
 		 return this.length > 0 ? this[this.length - 1] : null;
 	 };
 
-	var app = angular.module('myApp', [ 'ui.router', 'ui.bootstrap', 'ui.form', 'ng.local', 'ngTable', 'ngSanitize', 'ngDraggable', 'common.services', 'common.directives', 'brandServices', 'addressServices', 'returnServices', 'changeServices', 'componentServices', 'orderServices', 'purchaseServices', 'invoiceServices', 'propertyServices', 'receiptServices', 'logisticsServices', 'common.query.kind', 'toaster','ui.jquery' ,'dateparseServices', 'bankInfo' , 'bankTransfer', 'urlencryptionServices', 'billServices', 'makerDemand', 'goodsServices', 'validtimeServices', 'angularFileUpload', 'slideImageService', 'common.query.kindAdvice', 'responseLogisticsService', 'searchService', 'ngDynamicInput', 'ReviewerEmailInfoService', 'tradeBasicPropertiesServices', 'exchangeRateModule', 'tradeDeliveryDelayTimeModule', 'PaymentService', 'kindContrastServices', 'crawlTaskServices', 'afterSaleService', 'refundModule', 'messageBoardServices', 'logisticsPortService', 'storeInfoServices', 'cmsService', 'helpServices', 'commonCountServices', 'tool.directives', 'StoreAdminViolationsModule', 'internalMessageServices','common.query.user','secQuestionServices','keyWordServices','logUsageServices','seekQualityBuyerServices']);
+	var app = angular.module('myApp', [ 'ui.router', 'ui.bootstrap', 'ui.form', 'ng.local', 'ngTable', 'ngSanitize', 'ngDraggable', 'common.services', 'common.directives', 'brandServices', 'addressServices', 'returnServices', 'changeServices', 'componentServices', 'orderServices', 'purchaseServices', 'invoiceServices', 'propertyServices', 'receiptServices', 'logisticsServices', 'common.query.kind', 'toaster','ui.jquery' ,'dateparseServices', 'bankInfo' , 'bankTransfer', 'urlencryptionServices', 'billServices', 'makerDemand', 'goodsServices', 'validtimeServices', 'angularFileUpload', 'slideImageService', 'common.query.kindAdvice', 'responseLogisticsService', 'searchService', 'ngDynamicInput', 'ReviewerEmailInfoService', 'tradeBasicPropertiesServices', 'exchangeRateModule', 'tradeDeliveryDelayTimeModule', 'PaymentService', 'kindContrastServices', 'crawlTaskServices', 'afterSaleService', 'refundModule', 'messageBoardServices', 'logisticsPortService', 'storeInfoServices', 'cmsService', 'helpServices', 'commonCountServices', 'tool.directives', 'StoreAdminViolationsModule', 'internalMessageServices','common.query.user','secQuestionServices','keyWordServices','logUsageServices','seekQualityBuyerServices','seekSalesmanServices']);
 	app.init = function() {
 		angularAMD.bootstrap(app);
 	};
@@ -604,13 +604,18 @@
       controllerUrl: 'app/controllers/LogUsageCtrl',
       title: '用户操作日志'
     })).state('seekQualityBuyer', angularAMD.route({
-      //用户操作日志
       url: '/seekQualityBuyer',
       templateUrl: 'static/view/admin/seekQualityBuyer.html',
       controller: 'SeekQualityBuyerCtrl',
       controllerUrl: 'app/controllers/SeekQualityBuyerCtrl',
-      title: '用户操作日志'
-    })).state('keyWord', angularAMD.route({
+      title: '优质采购商'
+    })).state('seekSalesman', angularAMD.route({
+            url: '/seekSalesman',
+            templateUrl: 'static/view/admin/seek_salesman.html',
+            controller: 'SeekSalesmanCtrl',
+            controllerUrl: 'app/controllers/SeekSalesmanCtrl',
+            title: '求购-业务员分配'
+        })).state('keyWord', angularAMD.route({
       url: '/keyWord',
       templateUrl: 'static/view/admin/keyword.html',
       controller: 'KeyWordCtrl',

+ 30 - 0
src/main/webapp/resources/js/admin/controllers/SeekSalesmanCtrl.js

@@ -0,0 +1,30 @@
+define(['app/app'], function (app) {
+  'use strict';
+  app.register.controller('SeekSalesmanCtrl', ['$scope', 'seekSalesman', 'toaster', 'BaseService','$modal','ngTableParams', '$http', function ($scope, seekSalesman, toaster, BaseService,$modal,ngTableParams, $http) {
+    $scope.seekSalesmanTableParams = new ngTableParams({
+      page : 1,
+      count : 10
+    }, {
+      total : 0,
+      getData : function ($defer, params) {
+        const param = BaseService.parseParams(params.url());
+          seekSalesman.getPageInfo(param, function (data) {
+          params.total(data.totalElements);
+          $defer.resolve(data.content);
+        }, function(response) {
+          toaster.pop('error', response.data);
+        });
+      }
+    });
+
+    $scope.orders = function(id){
+        seekSalesman.orders({id:id},{}, function(data) {
+            toaster.pop('success', '提示', '接单成功!');
+            $scope.seekSalesmanTableParams.reload();
+        }, function(response) {
+            toaster.pop('error', response.data);
+        });
+    }
+
+  }]);
+});

+ 14 - 0
src/main/webapp/resources/js/common/query/seekSalesman.js

@@ -0,0 +1,14 @@
+define([ 'ngResource' ], function() {
+	angular.module('seekSalesmanServices', [ 'ngResource' ]).factory('seekSalesman', ['$resource', 'BaseService', function($resource, BaseService) {
+		const rootPath = BaseService.getRootPath();
+		return $resource('seek/salesman', {}, {
+            getPageInfo: {
+                url:'seek/salesman/getPageInfo',
+                method:'GET'
+            }, orders: {
+                url:'seek/salesman/orders',
+                method:'POST'
+            }
+        });
+    }])
+});

+ 55 - 0
src/main/webapp/resources/view/admin/seek_salesman.html

@@ -0,0 +1,55 @@
+<style>
+.row {
+	margin-bottom: 10px;
+}
+</style>
+<div>
+	<div class="box-header well">
+		求购-业务员分配
+	</div>
+	<div  class="box-content">
+		<p ng-model="test"></p>
+		<table ng-table="seekSalesmanTableParams"
+			class="table table-bordered table-striped table-hover" style="word-break:break-all; word-wrap:break-all;">
+			<thead>
+				<tr class="tr-default">
+					<th width="10%;" class="text-center">编号</th>
+					<th width="7%;" class="text-center">求购来源</th>
+					<th width="10%" class="text-center">询价单号</th>
+					<th width="10%" class="text-center">发布时间</th>
+					<th width="10%" class="text-center">买家</th>
+					<th width="10%" class="text-center">产品信息</th>
+					<th width="10%" class="text-center">截止日期</th>
+					<th width="10%" class="text-center">报价条数</th>
+					<th width="10%" class="text-center">求购状态</th>
+					<th width="10%" class="text-center">业务员</th>
+					<th width="10%" class="text-center">操作</th>
+				</tr>
+			</thead>
+			<tbody ng-repeat="seek in $data">
+				<tr class="text-center">
+					<td><span ng-bind="seek.id"></span></td>
+					<td><span ng-bind="seek.source"></span></td>
+					<td><span ng-bind="seek.code"></span></td>
+					<td><span ng-bind="seek.publicDate | date : 'yyyy-MM-dd HH:mm:ss'"></span></td>
+					<td><p ng-bind="seek.enterprise.enName"></p><p ng-bind="seek.user.userName"></p></td>
+					<td><p ng-bind="'型号:'+seek.cmpCode"></p>
+						<p ng-bind="'品牌:'+seek.brand"></p>
+						<p ng-bind="'规格:'+seek.spec"></p>
+					</td>
+					<td><span ng-bind="seek.endDate | date : 'yyyy-MM-dd HH:mm:ss'"></span></td>
+					<td><span ng-bind="seek.offerAmount"></span></td>
+					<td><span ng-if="seek.status && seek.status == 1 && seek.offerAmount > 0">已采纳</span>
+						<span ng-if="(!seek.status || seek.status == 0) && seek.offerAmount > 0">已报价</span>
+						<span ng-if="!seek.offerAmount || seek.offerAmount == 0">待报价</span>
+					</td>
+					<td><span ng-bind="seek.salesman"></span></td>
+					<td>
+						<button class="btn btn-primary" ng-click="detail(seek.id)">查看详情</button>
+						<button ng-if="!seek.salesman" class="btn btn-primary" ng-click="orders(seek.id)">我来接单</button>
+					</td>
+				</tr>
+			</tbody>
+		</table>
+	</div>
+</div>