| xqd
@@ -88,55 +88,112 @@
|
|
|
<td colspan="2" width="20%" >用途:</td>
|
|
|
<td colspan="2" ><input name="used" class="form-control" type="text" placeholder="" value="{{ $table->used }}"></td>
|
|
|
</tr>
|
|
|
- <tr>
|
|
|
- <td width="10%">拆迁补偿总金额:</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="4" colspan="2">货币化安置</td>
|
|
|
- <td>房屋类别</td>
|
|
|
- <td>购买存量房面积(㎡)</td>
|
|
|
- <td>购买存量房单价(元/㎡)</td>
|
|
|
- <td>购买存量房价格(元)</td>
|
|
|
- <td>应退差额(元)</td>
|
|
|
- <td>应交差额(元)</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td rowspan="2">住宅</td>
|
|
|
- <td><input name="home_area" class="form-control" type="text" placeholder="" value="{{ $table->home_area }}" onchange="get_product(home_area,money_home_dprice,money_home_price)">
|
|
|
- </td>
|
|
|
- <td><input name="money_home_dprice" class="form-control" type="text" value="{{$table->money_home_dprice}}" onchange="get_product(home_area,money_home_dprice,money_home_price)">
|
|
|
- </td>
|
|
|
- <td><input name="money_home_price" class="form-control" type="text" value="{{$table->money_home_price}}" onclick="get_product(home_area,money_home_dprice,money_home_price)">
|
|
|
- </td>
|
|
|
- <td rowspan="3"><input name="money_home_tchae" id="money_home_tchae" class="form-control" type="text" value="{{ $table->money_home_tchae }}" onclick="jian(money_home_price,money_home_price2,money_bus_price,total_money)">
|
|
|
- </td>
|
|
|
- <td rowspan="3"><input name="money_home_jchae" id="money_home_jchae" class="form-control" type="text" value="{{ $table->money_home_jchae }}" onclick="jian(money_home_price,money_home_price2,money_bus_price,total_money)">
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td><input name="home_area2" class="form-control" type="text" value="{{ $table->home_area2 }}" onchange="get_product(home_area2,money_home_dprice2,money_home_price2)">
|
|
|
- </td>
|
|
|
- <td><input name="money_home_dprice2" class="form-control" type="text" value="{{ $table->money_home_dprice2 }}" onchange="get_product(home_area2,money_home_dprice2,money_home_price2)">
|
|
|
- </td>
|
|
|
- <td><input name="money_home_price2" class="form-control" type="text" value="{{ $table->money_home_price2 }}" onclick="get_product(home_area2,money_home_dprice2,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 }}" onchange="get_product(money_bus_area,money_bus_dprice,money_bus_price)">
|
|
|
- </td>
|
|
|
- <td><input name="money_bus_dprice" class="form-control" type="text" placeholder="" value="{{ $table->money_bus_dprice }}" onchange="get_product(money_bus_area,money_bus_dprice,money_bus_price)">
|
|
|
- </td>
|
|
|
- <td><input name="money_bus_price" class="form-control" type="text" placeholder="" value="{{ $table->money_bus_price }}" onclick="get_product(money_bus_area,money_bus_dprice,money_bus_price)">
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>购买房屋位置</td>
|
|
|
- <td colspan="7"><input name="home_addr" class="form-control" type="text" placeholder="" value="{{ $table->home_addr }}">
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
+ <?php $i = 1; $k = 1; $h = 0?>
|
|
|
+ @if(is_array($table->jsons)||is_object($table->jsons))
|
|
|
+ @foreach($table->jsons as $value)
|
|
|
+
|
|
|
+ <tr>
|
|
|
+ <td width="10%">拆迁补偿总金额:</td>
|
|
|
+ <td colspan="5"><input disabled id="total_money_2" class="form-control" type="text" placeholder="">( 元 )</td>
|
|
|
+ <td colspan="2"><input value="{{ $value->total_money }}" id="total_money_1" name="total_money" class="form-control <?php echo 'next'.$h++ ?>" type="text" placeholder="小写" onchange="NoToChinese(this.value)" >(元)</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td rowspan="4" colspan="2">货币化安置</td>
|
|
|
+ <td>房屋类别</td>
|
|
|
+ <td>购买存量房面积(㎡)</td>
|
|
|
+ <td>购买存量房单价(元/㎡)</td>
|
|
|
+ <td>购买存量房价格(元)</td>
|
|
|
+ <td>应退差额(元)</td>
|
|
|
+ <td>应交差额(元)</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td rowspan="2">住宅</td>
|
|
|
+ <td><input name="home_area" class="form-control <?php echo 'next'.$h++ ?>" type="text" placeholder="" value="{{ $value->home_area }}" onchange="get_product(home_area,money_home_dprice,money_home_price)">
|
|
|
+ </td>
|
|
|
+ <td><input name="money_home_dprice" class="form-control <?php echo 'next'.$h++ ?>" type="text" value="{{$value->money_home_dprice}}" onchange="get_product(home_area,money_home_dprice,money_home_price)">
|
|
|
+ </td>
|
|
|
+ <td><input name="money_home_price" class="form-control <?php echo 'next'.$h++ ?>" type="text" value="{{$value->money_home_price}}" onclick="get_product(home_area,money_home_dprice,money_home_price)">
|
|
|
+ </td>
|
|
|
+ <td rowspan="3"><input name="money_home_tchae" id="money_home_tchae" class="form-control <?php echo 'next'.$h++ ?>" type="text" value="{{ $value->money_home_tchae }}" onclick="jian(money_home_price,money_home_price2,money_bus_price,total_money)">
|
|
|
+ </td>
|
|
|
+ <td rowspan="3"><input name="money_home_jchae" id="money_home_jchae" class="form-control <?php echo 'next'.$h++ ?>" type="text" value="{{ $value->money_home_jchae }}" onclick="jian(money_home_price,money_home_price2,money_bus_price,total_money)">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td><input name="home_area2" class="form-control <?php echo 'next'.$h++ ?>" type="text" value="{{ $value->home_area2 }}" onchange="get_product(home_area2,money_home_dprice2,money_home_price2)">
|
|
|
+ </td>
|
|
|
+ <td><input name="money_home_dprice2" class="form-control <?php echo 'next'.$h++ ?>" type="text" value="{{ $value->money_home_dprice2 }}" onchange="get_product(home_area2,money_home_dprice2,money_home_price2)">
|
|
|
+ </td>
|
|
|
+ <td><input name="money_home_price2" class="form-control <?php echo 'next'.$h++ ?>" type="text" value="{{ $value->money_home_price2 }}" onclick="get_product(home_area2,money_home_dprice2,money_home_price2)">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>商业</td>
|
|
|
+ <td><input name="money_bus_area" class="form-control <?php echo 'next'.$h++ ?>" type="text" placeholder="" value="{{ $value->money_bus_area }}" onchange="get_product(money_bus_area,money_bus_dprice,money_bus_price)">
|
|
|
+ </td>
|
|
|
+ <td><input name="money_bus_dprice" class="form-control <?php echo 'next'.$h++ ?>" type="text" placeholder="" value="{{ $value->money_bus_dprice }}" onchange="get_product(money_bus_area,money_bus_dprice,money_bus_price)">
|
|
|
+ </td>
|
|
|
+ <td><input name="money_bus_price" class="form-control <?php echo 'next'.$h++ ?>" type="text" placeholder="" value="{{ $value->money_bus_price }}" onclick="get_product(money_bus_area,money_bus_dprice,money_bus_price)">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>购买房屋位置</td>
|
|
|
+ <td colspan="7"><input name="home_addr" class="form-control <?php echo 'next'.$h++ ?>" type="text" placeholder="" value="{{ $value->home_addr }}">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endforeach
|
|
|
+ @else
|
|
|
+ <tr>
|
|
|
+ <td width="10%">拆迁补偿总金额:</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 <?php echo 'next'.$h++ ?>" type="text" placeholder="小写" onchange="NoToChinese(this.value)" >(元)</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td rowspan="4" colspan="2">货币化安置</td>
|
|
|
+ <td>房屋类别</td>
|
|
|
+ <td>购买存量房面积(㎡)</td>
|
|
|
+ <td>购买存量房单价(元/㎡)</td>
|
|
|
+ <td>购买存量房价格(元)</td>
|
|
|
+ <td>应退差额(元)</td>
|
|
|
+ <td>应交差额(元)</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td rowspan="2">住宅</td>
|
|
|
+ <td><input name="home_area" class="form-control <?php echo 'next'.$h++ ?>" type="text" placeholder="" value="{{ $table->home_area }}" onchange="get_product(home_area,money_home_dprice,money_home_price)">
|
|
|
+ </td>
|
|
|
+ <td><input name="money_home_dprice" class="form-control <?php echo 'next'.$h++ ?>" type="text" value="{{$table->money_home_dprice}}" onchange="get_product(home_area,money_home_dprice,money_home_price)">
|
|
|
+ </td>
|
|
|
+ <td><input name="money_home_price" class="form-control <?php echo 'next'.$h++ ?>" type="text" value="{{$table->money_home_price}}" onclick="get_product(home_area,money_home_dprice,money_home_price)">
|
|
|
+ </td>
|
|
|
+ <td rowspan="3"><input name="money_home_tchae" id="money_home_tchae" class="form-control <?php echo 'next'.$h++ ?>" type="text" value="{{ $table->money_home_tchae }}" onclick="jian(money_home_price,money_home_price2,money_bus_price,total_money)">
|
|
|
+ </td>
|
|
|
+ <td rowspan="3"><input name="money_home_jchae" id="money_home_jchae" class="form-control <?php echo 'next'.$h++ ?>" type="text" value="{{ $table->money_home_jchae }}" onclick="jian(money_home_price,money_home_price2,money_bus_price,total_money)">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td><input name="home_area2" class="form-control <?php echo 'next'.$h++ ?>" type="text" value="{{ $table->home_area2 }}" onchange="get_product(home_area2,money_home_dprice2,money_home_price2)">
|
|
|
+ </td>
|
|
|
+ <td><input name="money_home_dprice2" class="form-control <?php echo 'next'.$h++ ?>" type="text" value="{{ $table->money_home_dprice2 }}" onchange="get_product(home_area2,money_home_dprice2,money_home_price2)">
|
|
|
+ </td>
|
|
|
+ <td><input name="money_home_price2" class="form-control <?php echo 'next'.$h++ ?>" type="text" value="{{ $table->money_home_price2 }}" onclick="get_product(home_area2,money_home_dprice2,money_home_price2)">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>商业</td>
|
|
|
+ <td><input name="money_bus_area" class="form-control <?php echo 'next'.$h++ ?>" type="text" placeholder="" value="{{ $table->money_bus_area }}" onchange="get_product(money_bus_area,money_bus_dprice,money_bus_price)">
|
|
|
+ </td>
|
|
|
+ <td><input name="money_bus_dprice" class="form-control <?php echo 'next'.$h++ ?>" type="text" placeholder="" value="{{ $table->money_bus_dprice }}" onchange="get_product(money_bus_area,money_bus_dprice,money_bus_price)">
|
|
|
+ </td>
|
|
|
+ <td><input name="money_bus_price" class="form-control <?php echo 'next'.$h++ ?>" type="text" placeholder="" value="{{ $table->money_bus_price }}" onclick="get_product(money_bus_area,money_bus_dprice,money_bus_price)">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>购买房屋位置</td>
|
|
|
+ <td colspan="7"><input name="home_addr" class="form-control <?php echo 'next'.$h++ ?>" type="text" placeholder="" value="{{ $table->home_addr }}">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ @endif
|
|
|
<tr >
|
|
|
<td rowspan="2" colspan="2" style="height: 90px;">征收实施单位(章)</td>
|
|
|
<td>被征收人(签字)</td>
|
| xqd
@@ -264,6 +321,28 @@
|
|
|
|
|
|
$('#total_money_2').val(re);
|
|
|
}
|
|
|
+
|
|
|
+ var jsons = [];
|
|
|
+ function getdata(){
|
|
|
+ for (var j = 0; j <{{ count($table->jsons)}}; j++) {
|
|
|
+ var json = {};
|
|
|
+ $(".next" + j).each(function () {
|
|
|
+ json[this.name] = this.value;
|
|
|
+ });
|
|
|
+ jsons.push(json);
|
|
|
+ }
|
|
|
+ console.log(jsons);
|
|
|
+ return jsons;
|
|
|
+ }
|
|
|
+ $('form').submit(function(){
|
|
|
+ jsons = getdata();
|
|
|
+ var temp = JSON.stringify(jsons);
|
|
|
+ $('#json').val(temp);
|
|
|
+
|
|
|
+ console.log(temp);
|
|
|
+
|
|
|
+ return true;
|
|
|
+ });
|
|
|
function printed(printpage)
|
|
|
{
|
|
|
$('#bottom_button').hide();
|