| xqd
@@ -123,10 +123,11 @@
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td width="10%">拆迁补偿总金额:</td>
|
|
|
- <td colspan="7">¥ <input name="total_money" class="form-control" type="text" placeholder="" value="{{ $table->total_money }}" >( 元 )</td>
|
|
|
+ <td colspan="5">¥ <input disabled id="total_money_2" class="form-control" type="text" placeholder="">( 元 )</td>
|
|
|
+ <td colspan="2"><input value="{{ $table->total_money }}" id="total_money_1" name="total_money" class="form-control" type="text" placeholder="小写" onchange="NoToChinese(this.value)" >(元)</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td rowspan="3" colspan="2">货币化安置</td>
|
|
|
+ <td rowspan="4" colspan="2">货币化安置</td>
|
|
|
<td>房屋类别</td>
|
|
|
<td>购买存量房面积(㎡)</td>
|
|
|
<td>购买存量房单价(元/㎡)</td>
|
| xqd
@@ -135,20 +136,23 @@
|
|
|
<td>应退差额</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>住宅</td>
|
|
|
+ <td rowspan="2">住宅</td>
|
|
|
<td><input name="home_area" class="form-control" type="text" placeholder="" value="{{ $table->home_area }}"></td>
|
|
|
- <td><input name="money_home_dprice" class="form-control" type="text" placeholder="" value="{{$table->money_home_dprice}}"></td>
|
|
|
- <td><input name="money_home_price" class="form-control" type="text" placeholder="" value="{{$table->money_home_price}}"></td>
|
|
|
- <td><input name="money_home_jchae" class="form-control" type="text" placeholder="" value="{{ $table->money_home_jchae }}"></td>
|
|
|
- <td><input name="money_home_tchae" class="form-control" type="text" placeholder="" value="{{ $table->money_home_tchae }}"></td>
|
|
|
+ <td><input name="money_home_dprice" class="form-control" type="text" value="{{$table->money_home_dprice}}"></td>
|
|
|
+ <td><input name="money_home_price" class="form-control" type="text" value="{{$table->money_home_price}}"></td>
|
|
|
+ <td rowspan="3"><input name="money_home_jchae" class="form-control" type="text" value="{{ $table->money_home_jchae }}"></td>
|
|
|
+ <td rowspan="3"><input name="money_home_tchae" class="form-control" type="text" value="{{ $table->money_home_tchae }}"></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td><input name="home_area2" class="form-control" type="text" value="{{ $table->home_area2 }}"></td>
|
|
|
+ <td><input name="money_home_dprice2" class="form-control" type="text" value="{{ $table->money_home_dprice2 }}"></td>
|
|
|
+ <td><input name="money_home_price2" class="form-control" type="text" value="{{ $table->money_home_price2 }}"></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>商业</td>
|
|
|
<td><input name="money_bus_area" class="form-control" type="text" placeholder="" value="{{ $table->money_bus_area }}"></td>
|
|
|
<td><input name="money_bus_dprice" class="form-control" type="text" placeholder="" value="{{ $table->money_bus_dprice }}"></td>
|
|
|
<td><input name="money_bus_price" class="form-control" type="text" placeholder="" value="{{ $table->money_bus_price }}"></td>
|
|
|
- <td><input name="money_bus_jchae" class="form-control" type="text" placeholder="" value="{{ $table->money_bus_jchae }}"></td>
|
|
|
- <td><input name="money_bus_tchae" class="form-control" type="text" placeholder="" value="{{ $table->money_bus_tchae }}"></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>购买房屋位置</td>
|
| xqd
@@ -164,14 +168,9 @@
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
- <div class="row">
|
|
|
- <div class="col-sm-4">核算:<input disabled value="{{ $table->hesuan ?: '' }}" style="display: inline" class="form-control" type="text" placeholder=""></div>
|
|
|
- <div class="col-sm-4">初审:<input disabled value="{{ $table->chushen }}" style="display: inline" class="form-control" type="text" placeholder=""></div>
|
|
|
- <div class="col-sm-4">监审:<input disabled value="{{ $table->jianshen }}" style="display: inline" class="form-control" type="text" placeholder=""></div>
|
|
|
- </div>
|
|
|
<div class="row">
|
|
|
<div class="col-sm-4">复核:<input disabled value="{{ $table->fuhe }}" style="display: inline" class="form-control" type="text" placeholder=""></div>
|
|
|
- <div class="col-sm-8">提交说明:<textarea disabled name="sub_description">{{ $table->sub_description }}</textarea></div>
|
|
|
+ <div class="col-sm-8">提交说明 : <label id="sub_description">{{ $table->sub_description }}</label></div>
|
|
|
</div>
|
|
|
<div class="row">
|
|
|
<div class="col-sm-8"></div>
|
| xqd
@@ -232,6 +231,32 @@
|
|
|
}).on('changeDate',function(){
|
|
|
$(".datetimepicker").hide();
|
|
|
});
|
|
|
+
|
|
|
+ $(function(){
|
|
|
+ var num =$('#total_money_1').val();
|
|
|
+ var AA = new Array("零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖");
|
|
|
+ var BB = new Array("", "拾", "佰", "仟", "萬", "億", "点", "");
|
|
|
+ var a = ("" + num).replace(/(^0*)/g, "").split("."), k = 0, re = "";
|
|
|
+ for (var i = a[0].length - 1; i >= 0; i--) {
|
|
|
+ switch (k) {
|
|
|
+ case 0: re = BB[7] + re; break;
|
|
|
+ case 4: if (!new RegExp("0{4}\\d{" + (a[0].length - i - 1) + "}$").test(a[0]))
|
|
|
+ re = BB[4] + re; break;
|
|
|
+ case 8: re = BB[5] + re; BB[7] = BB[5]; k = 0; break;
|
|
|
+ }
|
|
|
+ if (k % 4 == 2 && a[0].charAt(i + 2) != 0 && a[0].charAt(i + 1) == 0) re = AA[0] + re;
|
|
|
+ if (a[0].charAt(i) != 0) re = AA[a[0].charAt(i)] + BB[k % 4] + re; k++;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (a.length > 1) //加上小数部分(如果有小数部分)
|
|
|
+ {
|
|
|
+ re += BB[6];
|
|
|
+ for (var i = 0; i < a[1].length; i++) re += AA[a[1].charAt(i)];
|
|
|
+ }
|
|
|
+
|
|
|
+ $('#total_money_2').val(re);
|
|
|
+ });
|
|
|
+
|
|
|
</script>
|
|
|
</form>
|
|
|
</div>
|