PDM更新数据结构后,基础数据查询和BOM初始查询等基本功能都已经OK,待完善和细化相关的上传和下载服务等。

This commit is contained in:
panx
2024-12-29 22:18:05 +08:00
parent d3d429e964
commit d70fcccc1d
99 changed files with 4877 additions and 948 deletions

View File

@@ -0,0 +1,33 @@
<?php
declare(strict_types = 1);
namespace app\admin\controller\partlist;
use app\AdminController;
use support\Response;
/**
* BOM管理后台控制器
* <!--Partlist-->
*/
class Index extends AdminController {
// 初始化函数
public function __construct()
{
parent::__construct();
/**
* TODO...
*/
}
/**
* 初始化后台首页
* @return Response
*/
public function index(): Response
{
echo '后台 BOM管理 控制器<br/>';
return $this->view();
}
}

View File

@@ -0,0 +1,35 @@
<?php
declare (strict_types = 1);
namespace app\admin\model\partlist;
use think\Model;
/**
* BOM管理模型类
* <!--Partlist-->
* @mixin Model
*/
class Partlist extends Model
{
// 自动写入时间戳字段
protected $autoWriteTimestamp = 'int';
// 定义时间戳字段名
protected $createTime = 'create_time';
protected $updatetime = 'update_time';
/**
* 字段修改器
* @param $value
* @return int|mixed
*/
public function setSortAttr($value)
{
if (is_empty($value)) {
return self::max('id') + 1;
}
return $value;
}
}

View File

@@ -0,0 +1,34 @@
<?php
namespace app\admin\validate\partlist;
use think\Validate;
/**
* BOM管理 验证器
* <!--Partlist-->
*/
class Partlist extends Validate
{
/**
* 验证规则
*/
protected $rule = [
];
/**
* 提示消息
*/
protected $message = [
];
/**
* 验证场景
*/
protected $scene = [
'add' => [],
'edit' => [],
];
}

View File

@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>我是后台首页控制器模板</title>
</head>
<!--Partlist-->
<body>
我是 Partlist 控制器模板
</body>
</html>