From 02cdd5f7521065c444e43e71c395c8c74054b183 Mon Sep 17 00:00:00 2001
From: zm <zm@iemsoft.cn>
Date: Wed, 26 Aug 2020 21:52:01 +0800
Subject: [PATCH] 附件管理功能开发,采购入库单导出pdf增加备注字段,采购入库和销售出库的提交按钮名称修改为审核按钮

---
 src/web/Public/Scripts/PSI/Sale/WSMainForm.js |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/web/Public/Scripts/PSI/Sale/WSMainForm.js b/src/web/Public/Scripts/PSI/Sale/WSMainForm.js
index c19c370..26fc6b9 100644
--- a/src/web/Public/Scripts/PSI/Sale/WSMainForm.js
+++ b/src/web/Public/Scripts/PSI/Sale/WSMainForm.js
@@ -84,14 +84,14 @@
       hidden: me.getPermission().del == "0",
       xtype: "tbseparator"
     }, {
-      text: "提交出库",
+      text: "审核",
       hidden: me.getPermission().commit == "0",
       id: "buttonCommit",
       scope: me,
       handler: me.onCommit
     }, {
       text: "附件",
-      // hidden: me.getPermission().commit == "0",
+      hidden: me.getPermission().attachment == "0",
       id: "buttonAttachment",
       scope: me,
       handler: me.onAttachment
@@ -662,7 +662,7 @@
     var bill = item[0];
 
     if (bill.get("billStatus") == "已出库") {
-      PSI.MsgBox.showInfo("当前销售出库单已经提交出库,不能删除");
+      PSI.MsgBox.showInfo("当前销售出库单已经审核出库,不能删除");
       return;
     }
 
@@ -809,27 +809,27 @@
     var me = this;
     var item = me.getMainGrid().getSelectionModel().getSelection();
     if (item == null || item.length != 1) {
-      PSI.MsgBox.showInfo("没有选择要提交的销售出库单");
+      PSI.MsgBox.showInfo("没有选择要审核的销售出库单");
       return;
     }
     var bill = item[0];
 
     if (bill.get("billStatus") == "已出库") {
-      PSI.MsgBox.showInfo("当前销售出库单已经提交出库,不能再次提交");
+      PSI.MsgBox.showInfo("当前销售出库单已经审核出库,不能再次审核");
       return;
     }
 
     var detailCount = me.getDetailGrid().getStore().getCount();
     if (detailCount == 0) {
-      PSI.MsgBox.showInfo("当前销售出库单没有录入商品明细,不能提交");
+      PSI.MsgBox.showInfo("当前销售出库单没有录入商品明细,不能审核");
       return;
     }
 
-    var info = "请确认是否提交单号: <span style='color:red'>" + bill.get("ref")
+    var info = "请确认是否审核单号: <span style='color:red'>" + bill.get("ref")
       + "</span> 的销售出库单?";
     PSI.MsgBox.confirm(info, function () {
       var el = Ext.getBody();
-      el.mask("正在提交中...");
+      el.mask("正在审核中...");
       Ext.Ajax.request({
         url: PSI.Const.BASE_URL
           + "Home/Sale/commitWSBill",
@@ -844,7 +844,7 @@
             var data = Ext.JSON
               .decode(response.responseText);
             if (data.success) {
-              PSI.MsgBox.showInfo("成功完成提交操作",
+              PSI.MsgBox.showInfo("成功完成审核操作",
                 function () {
                   me
                     .refreshMainGrid(data.id);

--
Gitblit v1.8.0