You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
simple-yewu/frontend/views/fix-car/add-item.php

94 lines
3.5 KiB

<form id="theFrm">
<input type="hidden" name="fix_id" value="<?=$fix_info->id?>">
<input name="_csrf" type="hidden" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>">
<table width="100%" border="0" cellpadding="2" cellspacing="1" class="table">
<tbody>
<tr class="tdbg2">
<td align="right" class="bg_tr">名称:</td>
<td class="td_bg">
<div align="left">
<input id="name" name="name" type="text" value=""/>
</div>
</td>
</tr>
<tr class="tdbg2">
<td align="right" class="bg_tr">价格:</td>
<td class="td_bg">
<div align="left">
<input id="price" name="price" type="text" value=""/>
</div>
</td>
</tr>
<tr class="tdbg2">
<td align="right" class="bg_tr">数量:</td>
<td class="td_bg">
<div align="left">
<input id="count" name="count" type="text" value=""/>
</div>
</td>
</tr>
<tr class="tdbg2">
<td align="right" class="bg_tr">分类:</td>
<td class="td_bg">
<div align="left">
<select name="type" id="type">
<option>钣金</option>
<option>喷漆</option>
<option>机电</option>
</select>
</div>
</td>
</tr>
<tr class="tdbg2">
<td align="right" class="bg_tr">大类:</td>
<td class="td_bg">
<div align="left">
<select name="big_type_id" id="big_type_id">
<option value="1">保险理赔</option>
<option value="2">自费维修</option>
<option value="3">汽车保养</option>
<option value="4">汽车美容</option>
</select>
</div>
</td>
</tr>
<tr class="tdbg2">
<td align="right" class="bg_tr">小类:</td>
<td class="td_bg">
<div align="left">
<select name="small_type_id" id="small_type_id">
<option value="1">更换清单</option>
<option value="2">维修清单</option>
<option value="3">待定清单</option>
<option value="4">配件清单</option>
<option value="5">工时清单</option>
</select>
</div>
</td>
</tr>
<tr class="tdbg2">
<td align="right" class="bg_tr">备注:</td>
<td class="td_bg">
<div align="left">
<textarea name="fix_remark" id="fix_remark"></textarea>
</div>
</td>
</tr>
<tr class="tdbg2">
<td height="22" colspan="4" align="center" class="td_bg">
<input id="save-btn" type=button class="ACT_btn" name="appointment-save-btn" value=" 添加 "/>
</td>
</tr>
</tbody>
</table>
</form>
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script>
<script>
$('#save-btn').click(function(){
var param = $('#theFrm').serialize();
$.post('/fix-car/add-item',param,function(obj){
alert(obj.msg);
parent.closeDlg();
},'json');
});
</script>