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.
131 lines
7.9 KiB
131 lines
7.9 KiB
<?php
|
|
use \common\libs\MyLib;
|
|
use \common\models\PriceT;
|
|
use yii\web\Response;
|
|
use yii\db\Exception;
|
|
use yii\helpers\ArrayHelper;
|
|
use yii\helpers\Json;
|
|
|
|
?>
|
|
<link href="/css/tabs.css" rel="stylesheet" type="text/css">
|
|
<link href="/css/account.css" rel="stylesheet" type="text/css">
|
|
<link href="http://car5s.elego.cn/js/layout/jquery.layout.css" rel="stylesheet" type="text/css">
|
|
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script>
|
|
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script>
|
|
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script>
|
|
<script type="text/javascript" language="javascript" src="/js/func.js"></script>
|
|
<form id="count">
|
|
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table" style="table-layout: fixed;">
|
|
<h3>统计结算</h3>
|
|
<tr><td><strong>收入</strong></td></tr>
|
|
<tr>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">材料费:</td>
|
|
<td height="20" class="td_bg">1000</td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">折扣比例:</td>
|
|
<td height="20" class="td_bg"><input type="text" class="td_bg" style="width:95px;height:22px;" value="" /></td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">工时费:</td>
|
|
<td height="20" class="td_bg">200</td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">应收账款:</td>
|
|
<td height="20" class="td_bg"><input type="text" class="td_bg" style="width:95px;height:22px;" value="" /></td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">维修收入小计:</td>
|
|
<td height="20" class="td_bg">1200</td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">实收账款:</td>
|
|
<td height="20" class="td_bg"><input type="text" class="td_bg" style="width:95px;height:22px;" value="" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">优惠券:</td>
|
|
<td height="20" class="td_bg"><input type="text" class="td_bg" style="width:95px;height:22px;" value="" /></td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">差额:</td>
|
|
<td height="20" class="td_bg">0</td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">备注:</td>
|
|
<td height="20" class="td_bg"><input type="text" class="td_bg" style="width:95px;height:22px;" value="" /></td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">小计:</td>
|
|
<td height="20" class="td_bg">1200</td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">时间:</td>
|
|
<td height="20" class="td_bg">2017-8-23</td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">合计:</td>
|
|
<td height="20" class="td_bg">1500</td>
|
|
</tr>
|
|
<tr><td><strong>支出</strong></td></tr>
|
|
<tr>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">基本工资:</td>
|
|
<td height="20" class="td_bg"><input type="text" class="td_bg" style="width:95px;height:22px;" value="" /></td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">提成:</td>
|
|
<td height="20" class="td_bg"><input type="text" class="td_bg" style="width:95px;height:22px;" value="" /></td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">食堂:</td>
|
|
<td height="20" class="td_bg"><input type="text" class="td_bg" style="width:95px;height:22px;" value="" /></td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">办公费用:</td>
|
|
<td height="20" class="td_bg"><input type="text" class="td_bg" style="width:95px;height:22px;" value="" /></td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">电费:</td>
|
|
<td height="20" class="td_bg"><input type="text" class="td_bg" style="width:95px;height:22px;" value="" /></td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">财务费用:</td>
|
|
<td height="20" class="td_bg"><input type="text" class="td_bg" style="width:95px;height:22px;" value="" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">税:</td>
|
|
<td height="20" class="td_bg"><input type="text" class="td_bg" style="width:95px;height:22px;" value="" /></td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">交通费:</td>
|
|
<td height="20" class="td_bg"><input type="text" class="td_bg" style="width:95px;height:22px;" value="" /></td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">喷漆件数:</td>
|
|
<td height="20" class="td_bg">123</td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">美容用料:</td>
|
|
<td height="20" class="td_bg">123</td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">调漆费:</td>
|
|
<td height="20" class="td_bg">123</td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">成本:</td>
|
|
<td height="20" class="td_bg">123</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">工具消耗:</td>
|
|
<td height="20" class="td_bg">123</td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">配件成本:</td>
|
|
<td height="20" class="td_bg">123</td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">合计:</td>
|
|
<td height="20" class="td_bg"></td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr"></td>
|
|
<td height="20" class="td_bg"></td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr"></td>
|
|
<td height="20" class="td_bg"></td>
|
|
<td style="text-align:center;" width="100" height="25" class="bg_tr">总计:</td>
|
|
<td height="20" class="td_bg"></td>
|
|
</tr>
|
|
<tr>
|
|
<td height="22" colspan="12" align="center" class="td_bg">
|
|
<input id="save-btn" type="button" class="ACT_btn" name="Submit1" value=" 保存 ">
|
|
<input id="submit-btn" type="button" class="ACT_btn" name="Submit2" value=" 提交 ">
|
|
<input id="back-btn" type="button" class="ACT_btn js-back-btn" name="Submit3" value=" 返回 ">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
<script type="text/javascript" language="javascript">
|
|
//提交按钮
|
|
$('#submit-btn').on('click', function () {
|
|
if (!confirm('确定提交吗')) return false;
|
|
var params = $('#count').serialize();
|
|
$.post('/fix-finance/count-form', params, function (msg) {
|
|
alert(1111);
|
|
alert(msg.msg);
|
|
if (msg.success) {
|
|
// location.reload();
|
|
window.location.href = "/fix-finance/count";
|
|
}
|
|
}, 'json');
|
|
});
|
|
//保存按钮
|
|
$('#save-btn').on('click', function () {
|
|
if(!confirm("确定保存吗")) return false;
|
|
var params = $('#count').serialize();
|
|
$.post('/fix-finance/count-form', params, function (msg) {
|
|
alert(msg.msg);
|
|
if (msg.success) {
|
|
location.reload();
|
|
}
|
|
}, 'json');
|
|
});
|
|
//返回按钮
|
|
$('#back-btn').on('click', function () {
|
|
window.location.href = '/fix-finance/count';
|
|
});
|
|
|
|
</script>
|
|
|