zm
2020-08-19 d75ce097cb1ee766791f1d5d9d946790adb86cab
src/web/Application/Home/Controller/SaleController.class.php
@@ -113,7 +113,8 @@
  {
    if (IS_POST) {
      $params = array(
        "jsonStr" => I("post.jsonStr")
        "jsonStr" => I("post.jsonStr"),
        "checkInv" => I("post.checkInv")
      );
      $ws = new WSBillService();
@@ -390,6 +391,7 @@
        "customerId" => I("post.customerId"),
        "receivingType" => I("post.receivingType"),
        "goodsId" => I("post.goodsId"),
        "userId" => I("post.userId"),
        "start" => I("post.start"),
        "limit" => I("post.limit")
      );
@@ -588,6 +590,27 @@
  }
  /**
   * 根据销售订单单号查询其生成的采购订单
   * 用于:在销售订单生成采购订单之前,提醒用户
   */
  public function getPOBillRefListBySOBillRef()
  {
    if (IS_POST) {
      $us = new UserService();
      if (!$us->hasPermission(FIdConst::SALE_ORDER_GEN_POBILL)) {
        die("没有权限");
      }
      $params = [
        "soRef" => I("post.soRef")
      ];
      $service = new SOBillService();
      $this->ajaxReturn($service->getPOBillRefListBySOBillRef($params));
    }
  }
  /**
   * 销售出库单明细信息列表
   * 销售退货入库 - 选择销售出库单
   */