wufeng 2 år sedan
förälder
incheckning
3d01d4e2d9
55 ändrade filer med 72 tillägg och 0 borttagningar
  1. 2 0
      app/admin/controller/Allot.php
  2. 1 0
      app/admin/controller/Attr.php
  3. 1 0
      app/admin/controller/Brand.php
  4. 1 0
      app/admin/controller/Business.php
  5. 1 0
      app/admin/controller/Cat.php
  6. 1 0
      app/admin/controller/Catdesc.php
  7. 3 0
      app/admin/controller/Check.php
  8. 1 0
      app/admin/controller/Conf.php
  9. 1 0
      app/admin/controller/Consult.php
  10. 1 0
      app/admin/controller/Customar.php
  11. 1 0
      app/admin/controller/Customer.php
  12. 2 0
      app/admin/controller/Departuser.php
  13. 1 0
      app/admin/controller/Exclusive.php
  14. 1 0
      app/admin/controller/Express.php
  15. 1 0
      app/admin/controller/Gold.php
  16. 1 0
      app/admin/controller/Goldprice.php
  17. 2 0
      app/admin/controller/Good.php
  18. 1 0
      app/admin/controller/Goodup.php
  19. 1 0
      app/admin/controller/Group.php
  20. 1 0
      app/admin/controller/Keepbrand.php
  21. 2 0
      app/admin/controller/Listcustomer.php
  22. 1 0
      app/admin/controller/Log.php
  23. 1 0
      app/admin/controller/Menu.php
  24. 2 0
      app/admin/controller/Newfill.php
  25. 1 0
      app/admin/controller/Orderback.php
  26. 1 0
      app/admin/controller/Orderuse.php
  27. 1 0
      app/admin/controller/Platform.php
  28. 2 0
      app/admin/controller/Process.php
  29. 1 0
      app/admin/controller/Project.php
  30. 1 0
      app/admin/controller/Proorder.php
  31. 1 0
      app/admin/controller/Purch.php
  32. 1 0
      app/admin/controller/Purchback.php
  33. 2 0
      app/admin/controller/Purchin.php
  34. 2 0
      app/admin/controller/Reorder.php
  35. 2 0
      app/admin/controller/Resign.php
  36. 2 0
      app/admin/controller/Resigninfo.php
  37. 2 0
      app/admin/controller/Result.php
  38. 2 0
      app/admin/controller/Role.php
  39. 1 0
      app/admin/controller/Sale.php
  40. 2 0
      app/admin/controller/Share.php
  41. 1 0
      app/admin/controller/Specs.php
  42. 1 0
      app/admin/controller/Specvalue.php
  43. 1 0
      app/admin/controller/Suppler.php
  44. 1 0
      app/admin/controller/System.php
  45. 1 0
      app/admin/controller/Title.php
  46. 1 0
      app/admin/controller/Unit.php
  47. 2 0
      app/admin/controller/User.php
  48. 1 0
      app/admin/controller/Version.php
  49. 2 0
      app/admin/controller/WareHouse.php
  50. 1 0
      app/admin/model/ActionLog.php
  51. 1 0
      app/admin/model/ChangeLog.php
  52. 1 0
      app/admin/model/GoodLog.php
  53. 1 0
      app/admin/model/OrderMsg.php
  54. 1 0
      app/admin/model/ProcessOrder.php
  55. 1 0
      app/admin/model/Workflow.php

+ 2 - 0
app/admin/controller/Allot.php

@@ -9,6 +9,8 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 
+//调拨  allot_info(从表)和allot_stock(主表)
+//调拨之后,修改库存,采购单的仓库编号是否也需要修改
 class Allot extends BaseController
 {
     public $post= "";

+ 1 - 0
app/admin/controller/Attr.php

@@ -6,6 +6,7 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 
+//客户属性
 class Attr extends BaseController
 {
     public $post="";

+ 1 - 0
app/admin/controller/Brand.php

@@ -7,6 +7,7 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 
+//品牌
 class Brand extends BaseController
 {
     public $post="";

+ 1 - 0
app/admin/controller/Business.php

@@ -6,6 +6,7 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 
+//业务企业
 class Business extends BaseController
 {
     public $post = "";

+ 1 - 0
app/admin/controller/Cat.php

@@ -8,6 +8,7 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 
+//分类
 class Cat extends BaseController
 {
 public $post="";

+ 1 - 0
app/admin/controller/Catdesc.php

@@ -6,6 +6,7 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 
+//分类描述信息
 class Catdesc extends BaseController
 {
     public $post="";

+ 3 - 0
app/admin/controller/Check.php

@@ -8,6 +8,7 @@ use think\App;
 use think\facade\Db;
 use app\admin\model\ActionLog;
 
+//盘点 wsm_good_check(主表,记录了哪个仓库,那个人,什么时间)和wsm_check_item(盘点的商品明细)
 class Check extends BaseController
 {
 public $post = "";
@@ -497,6 +498,7 @@ public function edit()
 
     }
 
+    //导出(盘点的明细)
     public function exportGood(){
         $id = isset($this->post['id']) && $this->post['id'] !=="" ? intval($this->post['id']) :"";
         if($id==""){
@@ -534,6 +536,7 @@ public function edit()
        // return app_show(0,"获取成功",$data);
     }
 
+    //导入
     public function importGood(){
         $id = isset($this->post['id']) && $this->post['id'] !=="" ? intval($this->post['id']) :"";
         if($id==""){

+ 1 - 0
app/admin/controller/Conf.php

@@ -6,6 +6,7 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 
+//系统配置
 class Conf extends BaseController
 {
     public function __construct(App $app)

+ 1 - 0
app/admin/controller/Consult.php

@@ -8,6 +8,7 @@ use think\App;
 use think\facade\Db;
 use think\facade\Validate;
 
+//咨询单
 class Consult extends Base
 {
     public $noble=[];

+ 1 - 0
app/admin/controller/Customar.php

@@ -7,6 +7,7 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 
+//客户
 class Customar extends BaseController
 {
     public $post = "";

+ 1 - 0
app/admin/controller/Customer.php

@@ -7,6 +7,7 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 
+//客户的组织架构
 class Customer extends BaseController
 {
     public $post = "";

+ 2 - 0
app/admin/controller/Departuser.php

@@ -6,6 +6,8 @@ use app\admin\model\ActionLog;
 use app\BaseController;
 use think\App;
 use think\facade\Db;
+
+//部门
 class Departuser extends BaseController
 {
     public $post = "";

+ 1 - 0
app/admin/controller/Exclusive.php

@@ -7,6 +7,7 @@ namespace app\admin\controller;
 use think\App;
 use think\facade\Db;
 
+//泰康专属的一个列表
 class Exclusive extends Base
 {
     public function __construct(App $app)

+ 1 - 0
app/admin/controller/Express.php

@@ -6,6 +6,7 @@ use app\admin\model\ActionLog;
 use think\App;
 use think\facade\Db;
 
+//物流信息
 class Express extends \app\BaseController
 {
     public $post='';

+ 1 - 0
app/admin/controller/Gold.php

@@ -8,6 +8,7 @@ use app\admin\model\ActionLog;
 use think\App;
 use think\facade\Db;
 
+//金价
 class Gold extends \app\BaseController
 {
     public $post=[];

+ 1 - 0
app/admin/controller/Goldprice.php

@@ -6,6 +6,7 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 
+//金价
 class Goldprice extends BaseController
 {
     public $post="";

+ 2 - 0
app/admin/controller/Good.php

@@ -6,6 +6,8 @@ namespace app\admin\controller;
 use app\admin\model\GoodLog;
 use think\App;
 use think\facade\Db;
+
+//线上商品
 class Good extends Base
 {
 

+ 1 - 0
app/admin/controller/Goodup.php

@@ -6,6 +6,7 @@ use app\admin\model\ChangeLog;
 use think\App;
 use think\facade\Db;
 
+//商品基础库
 class Goodup extends Base
 {
     public $noble=[];

+ 1 - 0
app/admin/controller/Group.php

@@ -6,6 +6,7 @@ use app\BaseController;
 use think\facade\Db;
 use think\App;
 
+//管理员权限分组
 class Group extends BaseController
 {
     public  function __construct(App $app)

+ 1 - 0
app/admin/controller/Keepbrand.php

@@ -6,6 +6,7 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 
+//品牌授权
 class Keepbrand extends Base
 {
     public function __construct(App $app)

+ 2 - 0
app/admin/controller/Listcustomer.php

@@ -6,6 +6,8 @@ namespace app\admin\controller;
 use app\BaseController;
 use think\App;
 use think\facade\Db;
+
+//客户信息
 class Listcustomer extends BaseController
 {
     public $post = "";

+ 1 - 0
app/admin/controller/Log.php

@@ -8,6 +8,7 @@ use think\Request;
 use think\App;
 use think\facade\Db;
 
+//日志
 class Log extends BaseController
 {
     public $post = "";

+ 1 - 0
app/admin/controller/Menu.php

@@ -9,6 +9,7 @@ use think\App;
 use think\facade\Db;
 use think\Request;
 
+//菜单
 class Menu extends BaseController
 {
     public $post="";

+ 2 - 0
app/admin/controller/Newfill.php

@@ -7,6 +7,8 @@ use think\App;
 use think\facade\Db;
 use app\admin\model\ActionLog;
 
+
+//系统的组织架构
 class Newfill extends BaseController
 {
      public $post = "";

+ 1 - 0
app/admin/controller/Orderback.php

@@ -8,6 +8,7 @@ use app\admin\model\ProcessOrder;
 use think\App;
 use think\facade\Db;
 
+//退货单
 class Orderback extends \app\BaseController
 {
     public $post=[];

+ 1 - 0
app/admin/controller/Orderuse.php

@@ -6,6 +6,7 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 
+//订单用途
 class Orderuse extends BaseController
 {
     public $post="";

+ 1 - 0
app/admin/controller/Platform.php

@@ -7,6 +7,7 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 
+//平台
 class Platform extends BaseController
 {
     public $post ="";

+ 2 - 0
app/admin/controller/Process.php

@@ -5,6 +5,8 @@ namespace app\admin\controller;
 use app\BaseController;
 use think\App;
 use think\facade\Db;
+
+//流程单
 class Process extends BaseController
 {
     public $post="";

+ 1 - 0
app/admin/controller/Project.php

@@ -5,6 +5,7 @@ namespace app\admin\controller;
 use think\App;
 use think\facade\Db;
 
+//项目
 class Project extends Base
 {
 

+ 1 - 0
app/admin/controller/Proorder.php

@@ -6,6 +6,7 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 
+//消息(已读未读)
 class Proorder extends BaseController
 {
 public $post="";

+ 1 - 0
app/admin/controller/Purch.php

@@ -9,6 +9,7 @@ use app\admin\model\ProcessOrder;
 use think\App;
 use think\facade\Db;
 
+//采购单相关功能
 class Purch extends Base
 {
 

+ 1 - 0
app/admin/controller/Purchback.php

@@ -8,6 +8,7 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 
+//采购单退货
 class Purchback extends BaseController
 {
 public $post="";

+ 2 - 0
app/admin/controller/Purchin.php

@@ -7,6 +7,8 @@ use app\admin\model\ProcessOrder;
 use app\BaseController;
 use think\facade\Db;
 use think\App;
+
+//采购单入库
 class Purchin extends BaseController
 {
     public $post="";

+ 2 - 0
app/admin/controller/Reorder.php

@@ -7,6 +7,8 @@ use app\admin\model\ProcessOrder;
 use think\facade\Db;
 use think\App;
 use app\admin\model\ActionLog;
+
+//销售单退货
 class Reorder extends \app\BaseController
 {
     public $post=[];

+ 2 - 0
app/admin/controller/Resign.php

@@ -11,6 +11,8 @@ use app\admin\model\ProcessOrder;
 use app\BaseController;
 use think\facade\Db;
 use think\App;
+
+//备货
 class Resign extends BaseController
 {
     public $post="";

+ 2 - 0
app/admin/controller/Resigninfo.php

@@ -6,6 +6,8 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 use app\admin\model\ActionLog;
+
+//交接
 class Resigninfo extends BaseController
 {
     public $post="";

+ 2 - 0
app/admin/controller/Result.php

@@ -6,6 +6,8 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 use app\admin\model\ActionLog;
+
+//异常原因
 class Result extends BaseController
 {
     public $post = "";

+ 2 - 0
app/admin/controller/Role.php

@@ -6,6 +6,8 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 use app\admin\model\ActionLog;
+
+//角色
 class Role extends BaseController
 {
 

+ 1 - 0
app/admin/controller/Sale.php

@@ -9,6 +9,7 @@ use think\App;
 use think\facade\Db;
 use app\admin\model\ActionLog;
 
+//销售单
 class Sale extends Base
 {
 

+ 2 - 0
app/admin/controller/Share.php

@@ -7,6 +7,8 @@ use app\BaseController;
 use think\Request;
 use think\facade\Db;
 use app\admin\model\ActionLog;
+
+//角色权限共享
 class Share extends BaseController
 {
     /**

+ 1 - 0
app/admin/controller/Specs.php

@@ -7,6 +7,7 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 
+//商品规格
 class Specs extends BaseController
 {
     public $post="";

+ 1 - 0
app/admin/controller/Specvalue.php

@@ -6,6 +6,7 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 
+//规格值
 class Specvalue extends BaseController
 {
     public $post="";

+ 1 - 0
app/admin/controller/Suppler.php

@@ -8,6 +8,7 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 
+//供应商
 class Suppler extends BaseController
 {
     public $post = "";

+ 1 - 0
app/admin/controller/System.php

@@ -7,6 +7,7 @@ use app\BaseController;
 use think\facade\Db;
 use think\Request;
 
+//系统设置
 class System extends BaseController
 {
     /**

+ 1 - 0
app/admin/controller/Title.php

@@ -7,6 +7,7 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 
+//客户的营业执照相关信息
 class Title extends BaseController
 {
     public $post = "";

+ 1 - 0
app/admin/controller/Unit.php

@@ -7,6 +7,7 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 
+//单位
 class Unit extends BaseController
 {
     public $post ="";

+ 2 - 0
app/admin/controller/User.php

@@ -6,6 +6,8 @@ namespace app\admin\controller;
 use app\BaseController;
 use think\facade\Db;
 use app\admin\model\ActionLog;
+
+//用户
 class User extends BaseController
 {
     /**

+ 1 - 0
app/admin/controller/Version.php

@@ -6,6 +6,7 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 
+//版本
 class Version extends BaseController
 {
     public function __construct(App $app)

+ 2 - 0
app/admin/controller/WareHouse.php

@@ -5,6 +5,8 @@ use app\BaseController;
 use think\App;
 use think\facade\Db;
 use app\admin\model\ActionLog;
+
+//仓库
 class WareHouse extends BaseController
 {
     public function __construct(App $app)

+ 1 - 0
app/admin/model/ActionLog.php

@@ -12,6 +12,7 @@ use think\facade\Db;
 class ActionLog extends Model
 {
     /**
+     * 记录操作日志
      * @param $token
      * @param $order
      * @param $type

+ 1 - 0
app/admin/model/ChangeLog.php

@@ -6,6 +6,7 @@ use think\Model;
 
 class ChangeLog extends Model
 {
+    //记录商品、咨询单的修改记录
     static function logAdd($type,$code,$before_info,$after_info,$token,$post){
         $user = GetUserInfo($token);
         unset($post['token']);

+ 1 - 0
app/admin/model/GoodLog.php

@@ -7,6 +7,7 @@ use  think\Model;
 class GoodLog extends Model
 {
     /**
+     * 记录库存的变化
      * @param $token
      * @param $data [{'stock_id':1,'stock_name':‘usable_stock’,'stock_remark':'','stock':10,'type':'cgd'}]
      * @param $action_type

+ 1 - 0
app/admin/model/OrderMsg.php

@@ -11,6 +11,7 @@ use think\Model;
  */
 class OrderMsg extends Model
 {
+    //每个用户的消息
     public static function addmsg($msg){
         $conf=Config::get("order");
         $order_type = $conf['order_type'];

+ 1 - 0
app/admin/model/ProcessOrder.php

@@ -6,6 +6,7 @@ use think\facade\Config;
 
 class ProcessOrder extends \think\Model
 {
+    //记录流程
     public static function AddProcess($token,$order){
         $user = GetUserInfo($token);
         $uid = isset($user['data']['id']) ? $user['data']['id'] :0;

+ 1 - 0
app/admin/model/Workflow.php

@@ -4,6 +4,7 @@
 namespace app\admin\model;
 use think\facade\Config;
 
+//记录操作流程
 class Workflow extends \think\Model
 {