|
|
@@ -1208,19 +1208,20 @@ class User extends BaseController
|
|
|
$post = UtilService::getMore([
|
|
|
['id', 0],
|
|
|
['uid', '0'], //甲方uid
|
|
|
- ['name', ''], //甲方姓名
|
|
|
- ['phone', ''], //甲方手机号
|
|
|
- ['address', ''], //甲方地址
|
|
|
- ['card', ''], //甲方身份证号
|
|
|
+// ['name', ''], //甲方姓名
|
|
|
+// ['phone', ''], //甲方手机号
|
|
|
+// ['address', ''], //甲方地址
|
|
|
+// ['card', ''], //甲方身份证号
|
|
|
['to_uid', 0], //员工uid
|
|
|
- ['to_name', ''], //乙方姓名
|
|
|
- ['price', 0], //服务费
|
|
|
- ['deposit', 0], // 定金
|
|
|
- ['balance', 0], //余款
|
|
|
- ['period', 0], // 周期天数
|
|
|
+// ['to_name', ''], //乙方姓名
|
|
|
+// ['price', 0], //服务费
|
|
|
+// ['deposit', 0], // 定金
|
|
|
+// ['balance', 0], //余款
|
|
|
+// ['period', 0], // 周期天数
|
|
|
['start_time', ''], // 开始时间
|
|
|
['end_time', ''], // 结束时间
|
|
|
- ['mark', ''], //备注
|
|
|
+// ['mark', ''], //备注
|
|
|
+ ['content', []], //备注
|
|
|
['longitude', ''], //经度
|
|
|
['latitude', ''] //纬度
|
|
|
// ['uid_img',''] //甲方签名图片路径
|
|
|
@@ -1239,6 +1240,7 @@ class User extends BaseController
|
|
|
if (empty($uid)) {
|
|
|
return app('json')->fail("参数错误");
|
|
|
}
|
|
|
+ $post['content'] = json_encode($post['content']);
|
|
|
$post['start_time'] = strtotime($post['start_time']);
|
|
|
$post['end_time'] = strtotime($post['end_time']);
|
|
|
$start = (new UserContractRecordModel)->where('to_uid', $post['to_uid'])->where('status', 1)->whereBetween('start_time', [$post['start_time'], $post['end_time']])->find();
|
|
|
@@ -1296,7 +1298,8 @@ class User extends BaseController
|
|
|
$post = UtilService::getMore([
|
|
|
['id', 0], //合约id
|
|
|
['uid_img', ''], //甲方签名图片路径
|
|
|
- ['check_time', '']//签约时间
|
|
|
+ ['check_time', ''],//签约时间
|
|
|
+ ['content', []]//签约内容
|
|
|
// ['to_phone',''].
|
|
|
// ['to_address',''],
|
|
|
// ['to_card',''],
|
|
|
@@ -1310,6 +1313,7 @@ class User extends BaseController
|
|
|
if (empty($info)) {
|
|
|
return app('json')->fail("合约不存在");
|
|
|
}
|
|
|
+ $post['content'] = json_encode($post['content']);
|
|
|
|
|
|
// 检查签约时间是否为空
|
|
|
if (empty($post['uid_img'])) {
|
|
|
@@ -1326,7 +1330,6 @@ class User extends BaseController
|
|
|
if ($info['to_check'] == 1) {
|
|
|
$post['status'] = 1;
|
|
|
}
|
|
|
-
|
|
|
// $post['contract_no'] = makeOrderId($post['uid'],"CR");
|
|
|
$r = (new UserContractRecordModel)->where("id", $post["id"])->update($post);
|
|
|
return app('json')->success("数据保存成功");
|
|
|
@@ -1338,9 +1341,10 @@ class User extends BaseController
|
|
|
$post = UtilService::getMore([
|
|
|
['id', '0'], //
|
|
|
['to_uid_img', ''], //乙方签名图片路径
|
|
|
- ['to_phone', ''], //乙方手机号
|
|
|
- ['to_address', ''], //乙方地址
|
|
|
- ['to_card', ''], //乙方身份证号
|
|
|
+ ['content', []], //内容
|
|
|
+// ['to_phone', ''], //乙方手机号
|
|
|
+// ['to_address', ''], //乙方地址
|
|
|
+// ['to_card', ''], //乙方身份证号
|
|
|
['to_check_time', '']//签约时间
|
|
|
], $request);
|
|
|
$info = (new UserContractRecordModel)->where("id", $post["id"])->find();
|
|
|
@@ -1360,6 +1364,8 @@ class User extends BaseController
|
|
|
if ($info['from_check'] == 1) {
|
|
|
$post['status'] = 1;
|
|
|
}
|
|
|
+ $post['content'] = json_encode($post['content']);
|
|
|
+
|
|
|
$r = (new UserContractRecordModel)->where("id", $post["id"])->update($post);
|
|
|
return app('json')->success("数据保存成功");
|
|
|
}
|