Ver Fonte

B2B新增询价单物料编号错误问题处理。

dongbw há 8 anos atrás
pai
commit
0db402a779

+ 1 - 1
src/main/java/com/uas/platform/b2b/service/impl/PurcInquiryServiceImpl.java

@@ -1,6 +1,5 @@
 package com.uas.platform.b2b.service.impl;
 
-import com.alibaba.fastjson.JSON;
 import com.uas.platform.b2b.core.util.ContextUtils;
 import com.uas.platform.b2b.core.util.ThreadTask;
 import com.uas.platform.b2b.dao.CommonDao;
@@ -236,6 +235,7 @@ public class PurcInquiryServiceImpl implements PurcInquiryService {
 //										product.setShipAddr(SystemSession.getUser().getEnterprise().getEnAddress());
                                         // 导入的物料这里没有填写规格
                                         product.setSpec(purcitem.getProdTitle());
+                                        product.setCreateTime(new Date());
                                         Long proId = ProductUtils.updateOne(product);
                                         item.setProduct(product);
                                         item.setProductId(proId);

+ 1 - 1
src/main/webapp/resources/js/index/app.js

@@ -4928,7 +4928,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
                 for (var j = 0; j < $scope.inquiry.inquiryItems.length; j++) {
                     $scope.otheritem = $scope.inquiry.inquiryItems[j];
                     if (i != j) {
-                        if ($scope.item.prodCode = $scope.otheritem.prodCode && $scope.item.prodTitle == $scope.otheritem.prodTitle
+                        if ($scope.item.prodCode == $scope.otheritem.prodCode && $scope.item.prodTitle == $scope.otheritem.prodTitle
                                 && $scope.item.inbrand == $scope.otheritem.inbrand && $scope.item.needquantity == $scope.otheritem.needquantity
                                 && $scope.item.toDate.getTime() == $scope.otheritem.toDate.getTime()) {
                             $scope.ifrepeat = true;