mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-05 06:45:32 +08:00
1. 【新增】售后单售后原因类型支持搜索
2. 【新增】手工创建订单折扣可输入正数 3. 【优化】盘点申请单确认 4. 【修复】采购退货单模拟出库失败问题 5. 【新增】订单金额客户实付与结算金额 6. 【优化】仓库发货统计报表物料名称显示 7. 【优化】自有仓储虚拟发货逻辑 8. 【修复】基础物料分类管理问题
This commit is contained in:
@@ -18,13 +18,6 @@
|
||||
class openapi_api_function_v1_po extends openapi_api_function_abstract implements openapi_api_function_interface{
|
||||
|
||||
|
||||
/**
|
||||
* 添加
|
||||
* @param mixed $params 参数
|
||||
* @param mixed $code code
|
||||
* @param mixed $sub_msg sub_msg
|
||||
* @return mixed 返回值
|
||||
*/
|
||||
public function add($params,&$code,&$sub_msg){
|
||||
$data = array();
|
||||
|
||||
@@ -40,6 +33,7 @@ class openapi_api_function_v1_po extends openapi_api_function_abstract implement
|
||||
$data['operator'] = $params['operator'];
|
||||
$data['memo'] = $params['memo'];
|
||||
$data['confirm'] = $params['confirm'];
|
||||
$data['props'] = $params['props'];
|
||||
$data['items'] = json_decode($params['items'],true);
|
||||
|
||||
$rs = kernel::single('openapi_data_original_po')->add($data);
|
||||
@@ -47,13 +41,6 @@ class openapi_api_function_v1_po extends openapi_api_function_abstract implement
|
||||
return $rs;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取List
|
||||
* @param mixed $params 参数
|
||||
* @param mixed $code code
|
||||
* @param mixed $sub_msg sub_msg
|
||||
* @return mixed 返回结果
|
||||
*/
|
||||
public function getList ($params,&$code,&$sub_msg)
|
||||
{
|
||||
$offset = intval($params['page_no']) > 0 ? intval($params['page_no']) : 1;
|
||||
@@ -96,6 +83,19 @@ class openapi_api_function_v1_po extends openapi_api_function_abstract implement
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function cancel($params, &$code, &$sub_msg)
|
||||
{
|
||||
$data = array();
|
||||
|
||||
$data['po_bn'] = $params['po_bn'];
|
||||
$data['operator'] = isset($params['operator']) ? $params['operator'] : '';
|
||||
$data['memo'] = isset($params['memo']) ? $params['memo'] : '';
|
||||
|
||||
$rs = kernel::single('openapi_data_original_po')->cancel($data);
|
||||
|
||||
return $rs;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,13 +17,6 @@
|
||||
|
||||
class openapi_api_function_v1_transfer extends openapi_api_function_abstract implements openapi_api_function_interface{
|
||||
|
||||
/**
|
||||
* 添加
|
||||
* @param mixed $params 参数
|
||||
* @param mixed $code code
|
||||
* @param mixed $sub_msg sub_msg
|
||||
* @return mixed 返回值
|
||||
*/
|
||||
public function add($params,&$code,&$sub_msg){
|
||||
$data = array();
|
||||
|
||||
@@ -51,13 +44,6 @@ class openapi_api_function_v1_transfer extends openapi_api_function_abstract imp
|
||||
return $rs;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取List
|
||||
* @param mixed $params 参数
|
||||
* @param mixed $code code
|
||||
* @param mixed $sub_msg sub_msg
|
||||
* @return mixed 返回结果
|
||||
*/
|
||||
public function getList($params,&$code,&$sub_msg){
|
||||
|
||||
$start_time = strtotime($params['start_time']);
|
||||
@@ -116,13 +102,6 @@ class openapi_api_function_v1_transfer extends openapi_api_function_abstract imp
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取IsoList
|
||||
* @param mixed $params 参数
|
||||
* @param mixed $code code
|
||||
* @param mixed $sub_msg sub_msg
|
||||
* @return mixed 返回结果
|
||||
*/
|
||||
public function getIsoList($params, &$code, &$sub_msg)
|
||||
{
|
||||
$filter['start_time'] = $params['start_time'];
|
||||
|
||||
@@ -17,13 +17,6 @@
|
||||
|
||||
class openapi_api_params_v1_po extends openapi_api_params_abstract implements openapi_api_params_interface{
|
||||
|
||||
/**
|
||||
* 检查Params
|
||||
* @param mixed $method method
|
||||
* @param mixed $params 参数
|
||||
* @param mixed $sub_msg sub_msg
|
||||
* @return mixed 返回验证结果
|
||||
*/
|
||||
public function checkParams($method,$params,&$sub_msg){
|
||||
if(parent::checkParams($method,$params,$sub_msg)){
|
||||
return true;
|
||||
@@ -32,11 +25,6 @@ class openapi_api_params_v1_po extends openapi_api_params_abstract implements op
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取AppParams
|
||||
* @param mixed $method method
|
||||
* @return mixed 返回结果
|
||||
*/
|
||||
public function getAppParams($method){
|
||||
$params = array(
|
||||
'add'=>array(
|
||||
@@ -50,6 +38,7 @@ class openapi_api_params_v1_po extends openapi_api_params_abstract implements op
|
||||
'operator'=>array('type'=>'string','required'=>'false','name'=>'采购员'),
|
||||
'po_bn'=>array('type'=>'string','required'=>'false','name'=>'采购单号'),
|
||||
'memo'=>array('type'=>'string','required'=>'false','name'=>'备注'),
|
||||
'props'=>array('type'=>'string','required'=>'false','name'=>'扩展属性','desc'=>'JSON格式字符串,例如:{"owner_code":"xxx"}'),
|
||||
'items'=>array('type'=>'string','required'=>'true','name'=>'明细','desc'=>'必填 格式为:bn:test1,name:测试1,price:10,nums:1;bn:test2,name:测试2,price:20,nums:2'),
|
||||
),
|
||||
'getList'=>array(
|
||||
@@ -65,20 +54,21 @@ class openapi_api_params_v1_po extends openapi_api_params_abstract implements op
|
||||
'statement_status'=>array('type'=>'string','require'=>'false','name'=>'结算状态'),
|
||||
'page_no'=>array('type'=>'number','require'=>'false','name'=>'页码','desc'=>'默认1,第一页'),
|
||||
'page_size'=>array('type'=>'number','require'=>'false','name'=>'每页最大数量','desc'=>'最大100'),
|
||||
)
|
||||
),
|
||||
'cancel'=>array(
|
||||
'po_bn'=>array('type'=>'string','required'=>'true','name'=>'采购单编号','desc'=>'必填'),
|
||||
'operator'=>array('type'=>'string','required'=>'false','name'=>'操作员','desc'=>'选填,默认为system'),
|
||||
'memo'=>array('type'=>'string','required'=>'false','name'=>'取消备注','desc'=>'选填'),
|
||||
)
|
||||
);
|
||||
|
||||
return $params[$method];
|
||||
}
|
||||
|
||||
/**
|
||||
* description
|
||||
* @param mixed $method method
|
||||
* @return mixed 返回值
|
||||
*/
|
||||
public function description($method){
|
||||
$desccription = array('add'=>array('name'=>'新建采购单','description'=>'创建一个采购指令'),
|
||||
'getList'=>array('name'=>'返回采购单信息','description'=>'创建一个采购指令'));
|
||||
'getList'=>array('name'=>'返回采购单信息','description'=>'创建一个采购指令'),
|
||||
'cancel'=>array('name'=>'取消采购单','description'=>'取消一个未入库或部分入库的采购单'));
|
||||
return $desccription[$method];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user