Commit abab193f by 孙龙
parents ff758472 985c6cd7
......@@ -17,17 +17,17 @@ layui.use(['form', 'table', 'laydate'], function () {
//列表
table.render({
elem: '#list',
url: '/api/orderList?lang='+lang_str,
url: '/api/orderList?lang=' + lang_str,
toolbar: '#toolbar',
method: 'GET',
where: {
order_id: order_id
},
cols: [[
{type: 'numbers', fixed: true, title: translation.numbers, width: 60},
{type: 'numbers', fixed: true, title: translation.numbers, width: lang == 2 ? 80 : 60},
{field: 'goods_id', title: translation.goods_id, width: 164},
{field: 'goods_name', title: translation.goods_name, width: 164},
{field: 'standard_brand_name', title: translation.standard_brand_name, width: 120},
{field: 'standard_brand_name', title: translation.standard_brand_name, width: 154},
{field: 'supplier_name', title: translation.supplier_name, width: 120},
{field: 'raw_goods_sn', title: translation.raw_goods_sn, width: 160},
{field: 'raw_brand_name', title: translation.raw_brand_name, width: 160},
......@@ -57,7 +57,7 @@ layui.use(['form', 'table', 'laydate'], function () {
{field: 'remarks', title: translation.remarks, width: 120},
{
field: 'type_cn', title: translation.type_cn, width: 120, templet(d) {
return '<span>' + d.type_cn + '</span><div class="hide-input"><select class="input-style return_type" lay-ignore=""><option>'+translation.all+'</option><option value="1">'+translation.refund_of_returned_goods+'</option><option value="2">'+translation.refund_only+'</option></select></div>'
return '<span>' + d.type_cn + '</span><div class="hide-input"><select class="input-style return_type" lay-ignore=""><option>' + translation.all + '</option><option value="1">' + translation.refund_of_returned_goods + '</option><option value="2">' + translation.refund_only + '</option></select></div>'
}
},
{
......@@ -132,11 +132,7 @@ layui.use(['form', 'table', 'laydate'], function () {
$("#editOrderItems").empty().text(translation.modify);
$("#editOrderItems").next().hide();
$("#order_remark").hide().next().show();//订单备注
table.reload('list', {
page: {
curr: 1
}
});
window.location.reload();
});
} else {
layer.msg(res.msg);
......
......@@ -85,13 +85,21 @@
}
@if($info["lang"] == 2)
.en-form .layui-inline .layui-form-label {
.user-row {
flex: 0 0 48%;
}
.en-form .layui-form-label {
width: 169px;
}
.en-form .layui-inline .layui-input-block {
.en-form .layui-input-block {
margin-left: 169px;
}
.en-form .layui-input {
width: 204px;
}
@endif
</style>
......@@ -134,7 +142,7 @@
</div>
</div>
<!--商品信息-->
<div class="layui-card">
<div class="layui-card en-form">
<div class="layui-card-header">{{admin_trans("order.order_page.商品信息")}}</div>
<div class="layui-card-body layui-form" style="padding-top: 0" lay-filter="orderListForn">
<div id="list"></div>
......@@ -167,7 +175,7 @@
</div>
</div>
</div>
<div class="row bothSide">
<div class="row bothSide en-form">
<!--收货信息-->
<div class="user-row">
<div class="layui-card">
......@@ -233,7 +241,7 @@
<div class="layui-input-block">
<div class="layui-form-mid mid-width">{{$info['receiveInfo']['country_name']}}</div>
<div class="show" style="display: none;width: 158px;">
<input type="hidden" name="country_name" value="">
<input type="hidden" name="country_name" value="{{$info['receiveInfo']['country_name']}}">
<select data="1" name="country" lay-filter="countryChange" style="height: 30px;border: 1px solid #eee;background: transparent;width: 100%;">
<option value="">{{admin_trans("order.order_page.请选择国家")}}</option>
@foreach(\App\Models\Country::getCountryMap() as $cid=>$cname)
......@@ -342,7 +350,7 @@
<div class="layui-input-block">
<div class="layui-form-mid mid-width">{{$info['billingInfo']['country_name']}}</div>
<div class="show" style="display: none;width: 158px;">
<input type="hidden" name="country_name" value="">
<input type="hidden" name="country_name" value="{{$info['billingInfo']['country_name']}}">
<select data="2" name="country" lay-filter="countryChange" style="height: 30px;border: 1px solid #eee;background: transparent;width: 100%;">
<option value="">{{admin_trans("order.order_page.请选择国家")}}</option>
@foreach(\App\Models\Country::getCountryMap() as $cid=>$cname)
......@@ -380,7 +388,11 @@
<label class="layui-form-label">{{admin_trans("order.order_page.地址")}}:</label>
<div class="layui-input-block row verCenter">
<div class="layui-form-mid">{{$info['billingInfo']['detail_address']}}</div>
@if($info["lang"] == 2)
<input type="text" class="layui-input show" name="detail_address" placeholder="" value="{{$info['billingInfo']['detail_address']}}" style="display: none;">
@else
<input type="text" class="layui-input show" name="detail_address" placeholder="" value="{{$info['billingInfo']['detail_address']}}" style="display: none;width: 427px;">
@endif
<div class="show row verCenter" style="display: none;margin-left: 15px;">
<input type="checkbox" name="open" lay-skin="switch" lay-filter="switchChange" lay-text="{{admin_trans("order.order_page.同收货地址")}}|{{admin_trans("order.order_page.同收货地址")}}">
</div>
......@@ -391,7 +403,7 @@
</div>
</div>
<!--结算信息-->
<div class="layui-card">
<div class="layui-card en-form">
<div class="layui-card-header">{{admin_trans("order.order_page.结算信息")}}</div>
<div class="layui-card-body layui-form" style="width: 50%;" lay-filter="settlementInfoForm">
<input type="hidden" name="order_id" value="{{$info['receiveInfo']['order_id']}}">
......@@ -410,14 +422,14 @@
<label class="layui-form-label">{{admin_trans("order.order_page.运费")}}:</label>
<div class="layui-input-block">
<div class="layui-form-mid">{{$info['settlementInfo']['order_freight_amount_format']}}</div>
<input type="text" class="layui-input show change-num" name="freight_charge" placeholder="" value="{{$info['settlementInfo']['order_freight_amount']}}" style="display: none;width: 50%;">
<input type="number" min="0" class="layui-input show change-num" name="freight_charge" placeholder="" value="{{$info['settlementInfo']['order_freight_amount']}}" style="display: none;width: 50%;">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">{{admin_trans("order.order_page.支付手续费")}}:</label>
<div class="layui-input-block">
<div class="layui-form-mid">{{$info['settlementInfo']['order_pay_commission_amount_format']}}</div>
<input type="text" class="layui-input show change-num" name="pay_commission" placeholder="" value="{{$info['settlementInfo']['order_pay_commission_amount']}}" style="display: none;width: 50%;">
<input type="number" min="0" class="layui-input show change-num" name="pay_commission" placeholder="" value="{{$info['settlementInfo']['order_pay_commission_amount']}}" style="display: none;width: 50%;">
</div>
</div>
<div class="layui-form-item">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment