Browse Source

修改采购模块

zhoudw 7 years ago
parent
commit
9f7025b4e8

+ 3 - 0
applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/service/impl/PurchaseServiceImpl.java

@@ -467,6 +467,7 @@ public class PurchaseServiceImpl extends CommonBaseServiceImpl<PurchaseMapper, P
         return Result.success(baseDTO);
     }
 
+    @Transactional
     private Result singleAudit(Long id) {
         DocBaseDTO docBaseDTO = getBaseDTOById(id);
         Result result = Result.success(docBaseDTO);
@@ -488,6 +489,7 @@ public class PurchaseServiceImpl extends CommonBaseServiceImpl<PurchaseMapper, P
         return result;
     }
 
+    @Transactional
     private void singleUnAudit(Long id) {
         Purchase purchase = new Purchase();
         //生成更新对象
@@ -503,6 +505,7 @@ public class PurchaseServiceImpl extends CommonBaseServiceImpl<PurchaseMapper, P
         messageLogService.unAudit(docBaseDTO);
     }
 
+    @Transactional
     private void singleDelete(Long id) {
         if (null != id) {
             //从表删除

+ 1 - 0
frontend/saas-web/app/view/purchase/purchase/FormPanel.js

@@ -140,6 +140,7 @@ Ext.define('saas.view.purchase.purchase.FormPanel', {
                 text : "数量", 
                 dataIndex : "pd_qty", 
                 width : 120.0,
+                allowBlank : false,
                 editor : {
                     xtype : "numberfield",
                     decimalPrecision: 8,

+ 1 - 0
frontend/saas-web/app/view/purchase/purchaseIn/FormPanel.js

@@ -165,6 +165,7 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
                 text : "数量", 
                 dataIndex : "pd_inqty", 
                 width : 120.0,
+                allowBlank : false,
                 editor : {
                     xtype : "numberfield",
                     decimalPrecision: 8,

+ 1 - 0
frontend/saas-web/app/view/purchase/purchaseOut/FormPanel.js

@@ -156,6 +156,7 @@ Ext.define('saas.view.purchase.purchaseOut.FormPanel', {
             {
                 text : "数量", 
                 dataIndex : "pd_outqty", 
+                allowBlank : false,
                 editor : {
                     xtype : "numberfield",
                     decimalPrecision: 8,

+ 1 - 0
frontend/saas-web/app/view/stock/otherIn/FormPanel.js

@@ -158,6 +158,7 @@ Ext.define('saas.view.stock.otherIn.FormPanel', {
                 text : "数量", 
                 dataIndex : "pd_inqty", 
                 width : 120.0,
+                allowBlank : false,
                 editor : {
                     xtype : "numberfield",
                     decimalPrecision: 8,

+ 1 - 0
frontend/saas-web/app/view/stock/otherOut/FormPanel.js

@@ -153,6 +153,7 @@ Ext.define('saas.view.stock.otherOut.FormPanel', {
             {
                 text: "数量",
                 dataIndex: "pd_outqty",
+                allowBlank : false,
                 width: 120.0,
                 editor : {
                     xtype : "numberfield",