修改计å¤备货单金额计算&&采购单编写â
This commit is contained in:
@@ -69,42 +69,45 @@ class IndexController
|
||||
*/
|
||||
public function createResource()
|
||||
{
|
||||
$options = [
|
||||
'controller' => [
|
||||
'module' => 'crm',
|
||||
'name' => 'approval_flows'
|
||||
],
|
||||
'model' => [
|
||||
'module' => 'crm',
|
||||
'name' => 'approval_flows'
|
||||
],
|
||||
'service' => [
|
||||
'module' => 'crm',
|
||||
'name' => 'approval_flows'
|
||||
],
|
||||
'logic' => [
|
||||
'module' => 'crm',
|
||||
'name' => 'approval_flows'
|
||||
],
|
||||
'validate' => [
|
||||
'module' => 'crm',
|
||||
'name' => 'approval_flows'
|
||||
],
|
||||
'table' => 'approval_flows'
|
||||
];
|
||||
// $options = [
|
||||
// 'controller' => [
|
||||
// 'module' => 'common',
|
||||
// 'name' => 'purchase_order_items'
|
||||
// ],
|
||||
// 'model' => [
|
||||
// 'module' => 'common',
|
||||
// 'name' => 'purchase_order_items'
|
||||
// ],
|
||||
// 'service' => [
|
||||
// 'module' => 'common',
|
||||
// 'name' => 'purchase_order_items'
|
||||
// ],
|
||||
// 'logic' => [
|
||||
// 'module' => 'common',
|
||||
// 'name' => 'purchase_order_items'
|
||||
// ],
|
||||
// 'validate' => [
|
||||
// 'module' => 'common',
|
||||
// 'name' => 'purchase_order_items'
|
||||
// ],
|
||||
// 'table' => 'purchase_order_items'
|
||||
// ];
|
||||
|
||||
$result = (new Generate($options))->doGenerate();
|
||||
return $result;
|
||||
// $result = (new Generate($options))->doGenerate();
|
||||
// return $result;
|
||||
}
|
||||
|
||||
|
||||
public function test(Request $request)
|
||||
{
|
||||
// 菜单迁移
|
||||
// $where[] = ['id', '>', 141];
|
||||
// $list = (new \app\common\utils\MigrationResources())->do('resources_20250916_bak', 'resources_yuanshi', $where);
|
||||
|
||||
$list = (new \app\common\utils\MigrationResources())->getFullResourceTreeOptimized('resources_20250916_bak', []);
|
||||
var_dump($list);
|
||||
// $list = (new \app\common\logic\PurchaseOrdersLogic())->getPiList()->toArray();
|
||||
|
||||
|
||||
// $list = (new \app\common\logic\PurchaseOrdersLogic())->getOrderNoListByPiNo('ces1222')->toArray();
|
||||
|
||||
|
||||
// $list = (new \app\common\logic\PurchaseOrdersLogic())->getOrderItemsListByOrderNo(32)->toArray();
|
||||
// var_dump($list);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user