|
@@ -32,7 +32,8 @@ if (!empty($id) && is_numeric($id)) {
|
|
|
'cs_type' => $row['cs_type'],
|
|
|
'cs_note' => htmlUnCode($row['cs_note']),
|
|
|
'cs_claimFrom' => $row['cs_claimFrom'],
|
|
|
- 'allowedit' => $row['allowedit']
|
|
|
+ 'allowedit' => $row['allowedit'],
|
|
|
+ 'cs_dealdate' => $row['cs_dealdate']
|
|
|
];
|
|
|
|
|
|
// Fetch all contact records for this customer
|
|
@@ -440,6 +441,15 @@ if (!empty($id) && is_numeric($id)) {
|
|
|
$('.customer-dropdown').hide();
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ // 处理跟进阶段变化时显示/隐藏成交时间字段
|
|
|
+ $('input[name="cs_deal"]').change(function() {
|
|
|
+ if($(this).val() == '3') {
|
|
|
+ $('#deal_date_row').show();
|
|
|
+ } else {
|
|
|
+ $('#deal_date_row').hide();
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
// Update method fields based on selection
|
|
@@ -1300,6 +1310,14 @@ if (!empty($id) && is_numeric($id)) {
|
|
|
?>
|
|
|
</td>
|
|
|
</tr>
|
|
|
+ <tr id="deal_date_row" <?= $customer['cs_deal'] != '3' ? 'style="display:none;"' : '' ?>>
|
|
|
+ <th>成交时间</th>
|
|
|
+ <td>
|
|
|
+ <input type="date" id="cs_dealdate" name="cs_dealdate" class="txt1"
|
|
|
+ value="<?= !empty($customer['cs_dealdate']) ? date('Y-m-d', strtotime($customer['cs_dealdate'])) : '' ?>" />
|
|
|
+ <span style="color:#999; font-size:12px;">若不填写,系统将自动记录为成交状态变更日期</span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
<tr>
|
|
|
<th>其他</th>
|
|
|
<td>
|