fix: 修复bug
This commit is contained in:
@@ -235,11 +235,13 @@ class Contract extends Common
|
|||||||
$insert_info['contract_category']= $param['contract_category'];
|
$insert_info['contract_category']= $param['contract_category'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if($param['contract_url'] == ''){
|
// 先检查键是否存在,再判断值是否为空
|
||||||
|
if (!isset($param['contract_url']) || $param['contract_url'] == '') {
|
||||||
$insert_info['contract_url'] = '';
|
$insert_info['contract_url'] = '';
|
||||||
}else{
|
} else {
|
||||||
$insert_info['contract_url'] = $param['contract_url'];
|
$insert_info['contract_url'] = $param['cosssntract_url'];
|
||||||
$insert_info['contract_file_name'] = $param['contract_file_name'];
|
// 同理,contract_file_name 也建议做存在性检查,避免同理报错
|
||||||
|
$insert_info['contract_file_name'] = isset($param['contract_file_name']) ? $param['contract_file_name'] : '';
|
||||||
}
|
}
|
||||||
db('contract_info')->insert($insert_info);
|
db('contract_info')->insert($insert_info);
|
||||||
return $this->sendSuccess('添加成功');
|
return $this->sendSuccess('添加成功');
|
||||||
|
|||||||
@@ -321,6 +321,7 @@ class User extends Common
|
|||||||
$ret['company'] = "苏州维达奇智能科技有限公司";
|
$ret['company'] = "苏州维达奇智能科技有限公司";
|
||||||
}
|
}
|
||||||
$ret['id'] = $login_id;
|
$ret['id'] = $login_id;
|
||||||
|
$ret['name'] = $res['user_name'];
|
||||||
}
|
}
|
||||||
//客户
|
//客户
|
||||||
if (2 == $res['user_type'])
|
if (2 == $res['user_type'])
|
||||||
@@ -332,6 +333,7 @@ class User extends Common
|
|||||||
->field('i.contacts_name as name, i.contacts_idcard as idcard, c.company_name as company')
|
->field('i.contacts_name as name, i.contacts_idcard as idcard, c.company_name as company')
|
||||||
->find();
|
->find();
|
||||||
$ret['id'] = $login_id;
|
$ret['id'] = $login_id;
|
||||||
|
$ret['name'] = $res['user_name'];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ return [
|
|||||||
// 用户名
|
// 用户名
|
||||||
'username' => 'root',
|
'username' => 'root',
|
||||||
// 密码
|
// 密码
|
||||||
'password' => '123456',
|
'password' => '12356',
|
||||||
// 端口
|
// 端口
|
||||||
'hostport' => '',
|
'hostport' => '',
|
||||||
// 连接dsn
|
// 连接dsn
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
NODE_ENV: '"development"',
|
NODE_ENV: '"development"',
|
||||||
ENV_CONFIG: '"dev"',
|
ENV_CONFIG: '"dev"',
|
||||||
BASE_WMS_API: '"http://47.111.78.178:8011/api"',
|
BASE_WMS_API: '"http://127.0.0.1:8080/api"',
|
||||||
BASE_WMS_FILE: '"http://47.111.78.178:8011/"'
|
BASE_WMS_FILE: '"http://127.0.0.1:8080/"'
|
||||||
// 47.101.147.253
|
// 47.101.147.253
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
NODE_ENV: '"production"',
|
NODE_ENV: '"production"',
|
||||||
ENV_CONFIG: '"prod"',
|
ENV_CONFIG: '"prod"',
|
||||||
BASE_WMS_API: '"http://47.111.78.178:8011/api"',
|
BASE_WMS_API: '"http://127.0.0.1:8080/api"',
|
||||||
BASE_WMS_FILE: '"http://47.111.78.178:8011/"'
|
BASE_WMS_FILE: '"http://127.0.0.1:8080/"'
|
||||||
////BASE_AGV_API: '"http://192.168.3.223:55200/v1"',
|
////BASE_AGV_API: '"http://192.168.3.223:55200/v1"',
|
||||||
//BASE_WMS_API: '"http://169.254.71.103/api"',
|
//BASE_WMS_API: '"http://169.254.71.103/api"',
|
||||||
//BASE_AGV_API: '"http://127.0.0.1:55200/v1"',
|
//BASE_AGV_API: '"http://127.0.0.1:55200/v1"',
|
||||||
|
|||||||
@@ -8,16 +8,23 @@
|
|||||||
<div>
|
<div>
|
||||||
<el-form :inline="true" :model="queryParam" class="form-inline" style="margin-left: 10px;margin-top: 10px;">
|
<el-form :inline="true" :model="queryParam" class="form-inline" style="margin-left: 10px;margin-top: 10px;">
|
||||||
<el-form-item label="时间范围">
|
<el-form-item label="时间范围">
|
||||||
<el-date-picker style="width:100%" v-model="busTime" type="daterange" :editable="false"
|
<el-date-picker
|
||||||
range-separator="→" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd" clearable
|
v-model="busTime"
|
||||||
:picker-options="executeTimeOptions">
|
:editable="false"
|
||||||
</el-date-picker>
|
:picker-options="executeTimeOptions"
|
||||||
|
style="width:100%"
|
||||||
|
type="daterange"
|
||||||
|
range-separator="→"
|
||||||
|
start-placeholder="开始日期"
|
||||||
|
end-placeholder="结束日期"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
clearable/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="合同类型">
|
<el-form-item label="合同类型">
|
||||||
<el-select v-model="map_idx" filterable placeholder="合同类型">
|
<el-select v-model="map_idx" filterable placeholder="合同类型">
|
||||||
<el-option label="全部合同" value="0"></el-option>
|
<el-option label="全部合同" value="0"/>
|
||||||
<el-option label="项目合同" value="1"></el-option>
|
<el-option label="项目合同" value="1"/>
|
||||||
<el-option label="运营合同" value="2"></el-option>
|
<el-option label="运营合同" value="2"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
@@ -34,17 +41,16 @@
|
|||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
queryParam:
|
queryParam:
|
||||||
{
|
{
|
||||||
busTime: [],
|
busTime: [],
|
||||||
map_idx: "16",
|
map_idx: '16',
|
||||||
lock: "2",
|
lock: '2',
|
||||||
storage_type: "0",
|
storage_type: '0',
|
||||||
work_type: "0"
|
work_type: '0'
|
||||||
}, //查询条件
|
} // 查询条件
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user