edit-admin-order_detail

This commit is contained in:
lccsw
2022-09-14 09:54:53 +08:00
parent 9830c82770
commit 6d1e96faee
2 changed files with 11 additions and 1 deletions
@@ -308,6 +308,12 @@ class Orders extends HD_Controller
$agent['business_price'] = $business_img['price'] ? $business_img['price'] : '';
$agent['business_product'] = $business_img['product'] ? $business_img['product'] : '';
$agent['car_num'] = $agent['car_num'] ? $agent['car_num'] : '';
if(!$agent['ins_time'] && $business_img){
$img_jsondata = json_decode($img_data['jsondata'],true);
$business_img_key = md5(build_qiniu_image_url($business_img['img']));
$business_img_orc = $img_jsondata['ins_info'][$business_img_key];
$agent['business_time'] = $business_img_orc['data']['投保日期'];
}
$row['agent'] = $agent;
//获取销售员
if ($row['sale_id']) {
+5 -1
View File
@@ -32,7 +32,11 @@
<label class="am-para-label label-width"><span class="span-bold">保险到期时间:</span></label>
<div class="am-para-input">
<label class="am-para-label" style="width: 50%">
<input type="text" name="ins_time" id="ins_time" value="<?= $info['agent']['ins_time'] ?>">
<?if($info['agent']['business_time']){?>
<?=$info['agent']['business_time']?>
<?}else{?>
<input type="text" name="ins_time" id="ins_time" value="<?= $info['agent']['ins_time'] ?>">
<?}?>
</label>
</div>
</div>