Commit 54aab9f3 by 朱继来

调整后台下单temp

parent 8f593127
......@@ -78,6 +78,7 @@ Class AddOrderController extends Controller
$url = Config('website.api_domain').'cart/getDJKConfg';
$info['api_dgk_url'] = ($url.'?k1='.$data['k1']."&".'k2='.$data['k2']);
$info['company'] = (new CmsModel())->getCompany(); // 获取公司组织
return view('addOrder', $info);
}
......@@ -247,7 +248,7 @@ Class AddOrderController extends Controller
{
if ($request->isMethod('post')) {
$data['uid'] = $request->input('uid');
$data['order_goods_type'] = $request->input('goods_type');
$data['order_goods_type'] = $request->input('goods_type', 1);
$data['cart_ids'] = $request->input('cart_ids');
$data['k1'] = time();
......@@ -388,8 +389,8 @@ Class AddOrderController extends Controller
{
if ($request->isMethod('post')) {
$data['uid'] = $request->input('uid');
$data['type'] = $request->input('type');
$data['delivery_place'] = $request->input('delivery_place');
// $data['type'] = $request->input('type');
$data['delivery_place'] = $request->input('delivery_place', 1);
$data['k1'] = time();
$data['k2'] = md5(md5($data['k1']).'fh6y5t4rr351d2c3bryi');
......@@ -398,11 +399,31 @@ Class AddOrderController extends Controller
$response = json_decode(curlApi($url, $data), true);
if ($response['err_code'] == 0) {
return ['errcode' => $response['err_code'], 'errmsg' => $response['err_msg'], 'data'=>$response['data']];
} else {
return ['errcode' => $response['err_code'], 'errmsg' => $response['err_msg']];
// if ($response['err_code'] == 0) {
// return ['errcode' => $response['err_code'], 'errmsg' => $response['err_msg'], 'data'=>$response['data']];
// } else {
// return ['errcode' => $response['err_code'], 'errmsg' => $response['err_msg']];
// }
$data = isset($response['data']['list']) ? $response['data']['list'] : [];
return ['code'=>$response['err_code'], 'msg'=>$response['err_msg'], 'data'=>$data, 'count'=>count($data)];
}
}
// 获取订单赠品信息
public function getOrderGift(Request $request)
{
if ($request->isMethod('post')) {
$data['cart_ids'] = $request->input('cart_ids', 1);
$data['k1'] = time();
$data['k2'] = md5(md5($data['k1']).'fh6y5t4rr351d2c3bryi');
$url = Config('website.api_domain').'cart/getOrderGift';
$res = json_decode(curlApi($url, $data), true);
return ['errcode' => $res['err_code'], 'errmsg' => $res['err_msg'], 'data'=>$res['data']];
}
}
......@@ -414,12 +435,12 @@ Class AddOrderController extends Controller
$data['num'] = $request->input('num');
$data['cart_id'] = $request->input('cart_id');
$type = $request->input('type'); // 3-批量添加的商品
$goods_type = $request->input('goods_type');
// $goods_type = $request->input('goods_type');
$data['k1'] = time();
$data['k2'] = md5(md5($data['k1']).'fh6y5t4rr351d2c3bryi');
if ($type == 3 && $goods_type == 1) { // 联营批量添加
if ($type == 3) { // 联营批量添加
$url = Config('website.api_domain').'cart/changeNumForJoint';
} else {
$url = Config('website.api_domain').'cart/changeNumByOrderSystem';
......@@ -474,7 +495,7 @@ Class AddOrderController extends Controller
$data['type'] = 4; // 自营其他业务
$data['business_type'] = $request->input('business_type', 0); // 业务类型
} else {
$data['type'] = $request->input('goods_type');
$data['type'] = $request->input('goods_type', 1);
}
$data['k1'] = time();
......@@ -552,6 +573,8 @@ Class AddOrderController extends Controller
$data['cart_id'] = implode(',', $request->input('cart_ids'));
$data['type'] = $request->input('type');
$data['remark'] = $request->input('remark');
$data['com_id'] = $request->input('com_id', 0);
$data['com_name'] = $request->input('com_name', '');
if ($data['type'] == 3) { // 自营线下订单
$data['address_name'] = $request->input('address_name');
......
......@@ -30,6 +30,7 @@ use App\Model\OrderServiceItemsModel;
use App\Model\OrderServiceLogModel;
use App\Model\OrderRefundModel;
use App\Model\OrderRefundLogModel;
use DB;
class ApiController extends Controller
{
......@@ -508,6 +509,74 @@ class ApiController extends Controller
$this->Export($temp['err_code'], $temp['err_msg'], $temp['data']);
}
// 获取用户绑定客服、发票
public function getUserInvoice($request)
{
$com_name = $request->input('com_name', '');
$account = $request->input('account', '');
$invoice_type = $request->input('invoice_type', '');
$curr_user_id = $request->user->userId;
$tax_info = [];
if (!$account) $this->Export(-1, '未填写联系方式');
if (preg_match('/@/', $account)) {
$field = 'email';
} else {
$field = 'mobile';
}
$user_id = DB::connection('order')->table('lie_user_main')->where($field, $account)->value('user_id');
if (!$user_id) $this->Export(-1, '当前联系账号不存在');
// 个人发票
if ($invoice_type == 2) {
$where = [];
$where['user_id'] = $user_id;
$where['inv_type'] = 2;
$tax_info = DB::connection('order')->table('lie_taxinfo')->where($where)->select('tax_title', 'tax_id')->get();
$this->Export(0, '', $tax_info);
}
if (!$com_name) $this->Export(-1, '未填写当前发票/公司');
$invoice_company = DB::connection('order')->table('lie_invoice_company')->where('com_name', $com_name)->first();
if (!$invoice_company) $this->Export(-1, '当前公司不存在');
$map = [];
$map['com_id'] = $invoice_company->id;
$map['user_id'] = $user_id;
$map['status'] = 0;
$sale_id = DB::connection('order')->table('lie_invoice_com_user')->where($map)->value('sale_id');
if ($sale_id && $sale_id != $curr_user_id) {
$CmsModel = new CmsModel();
$sale_name = $CmsModel->getUserName($sale_id);
$this->Export(-1, '当前公司和联系账号由'.$sale_name.'跟进');
}
$tax_info['tax_id'] = $invoice_company->tax_id;
$tax_info['tax_title'] = $com_name;
$tax_info['tax_no'] = $invoice_company->com_tax_registration;
if ($invoice_type == 4) $this->Export(0, '', $tax_info); // 增值税普票
$tax_info['com_addr'] = $invoice_company->com_addr;
$tax_info['com_tel'] = $invoice_company->com_tel;
$tax_info['com_bank'] = $invoice_company->com_bank;
$tax_info['com_bank_num'] = $invoice_company->com_bank_num;
$tax = DB::connection('order')->table('lie_taxinfo')->where('tax_id', $invoice_company->tax_id)->first();
$tax_info['consignee'] = $tax->consignee;
$tax_info['consignee_phone'] = $tax->consignee_phone;
$tax_info['consignee_addr'] = $tax->consignee_address;
$this->Export(0, '', $tax_info); // 增值税专票
}
}
......@@ -103,6 +103,7 @@ Route::group(['middleware' => 'web'], function () {
Route::post('/ajax/getSku', 'AddOrderController@getSku');
Route::post('/ajax/addCart', 'AddOrderController@addCart');
Route::post('/ajax/cartList', 'AddOrderController@cartList');
Route::post('/ajax/getOrderGift', 'AddOrderController@getOrderGift');
Route::post('/ajax/changeNum', 'AddOrderController@changeNum');
Route::post('/ajax/deleteGoods', 'AddOrderController@deleteGoods');
Route::post('/ajax/create', 'AddOrderController@create');
......
......@@ -43,9 +43,15 @@ class CmsModel extends Model
/*
批量查询用户姓名
*/
public function getBatchUserName($user_ids){
public function getBatchUserName($user_ids)
{
return $this->whereIn('userId',$user_ids)->select('userId','name','email')->get()->toArray();
}
// 获取后台公司组织
public function getCompany()
{
return $this->from('lie_organization')->where('status', 1)->select('com_name', 'com_currency', 'id')->get()->keyBy('id')->toArray();
}
}
\ No newline at end of file
......@@ -9,6 +9,7 @@
<link href="/js/layui/css/layui.css" rel="stylesheet">
<link href="/css/admin.css" rel="stylesheet">
<link href="/css/detail.css" rel="stylesheet">
@include('table.css')
<script src="/js/jquery-2.2.1.js"></script>
......@@ -40,7 +41,7 @@
@include('table.js')
<script src="/js/layui/layui.js"></script>
<script src="/js/web/common.js"></script>
<script src="/js/add_order.js"></script>
<script src="/js/add_order.js?v=<?= time() ?>"></script>
</body>
<div class="layui-row">
<div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
<div class="layui-form-item">
<label class="layui-form-label">发货方式:</label>
<div class="layui-input-inline">
<select name="zy_delivery_type" class="zy_delivery_type" lay-verify="required">
<option value=""></option>
<option value="1">现货发货</option>
<option value="2">拼单发货</option>
</select>
</div>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">销售组织:</label>
<div class="layui-input-inline">
<select name="com_id" class="com_id" lay-verify="required" lay-filter="com_id">
<option value=""></option>
@if ($company)
@foreach ($company as $k=>$v)
<option value="{{ $k }}" currency="{{ $v['com_currency'] }}">{{ $v['com_name'] }}</option>
@endforeach
@endif
</select>
</div>
<div class="layui-form-mid layui-word-aux">
<span class="currency-section hide"> 币别:<span class="currency-sign"></span></span>
</div>
</div>
</div>
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">交货地:</label>
<div class="layui-input-inline layui-form" lay-filter="delivery_place">
<select name="delivery_place" class="delivery_place" disabled>
<option value=""></option>
<option value="1">大陆</option>
<option value="2">香港</option>
</select>
</div>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
<div class="layui-form-item">
<label class="layui-form-label">收货方式:</label>
<div class="layui-input-block">
<input type="radio" class="radio-invoice-type" name="invoice_type" value="2" title="快递上门">
<input type="radio" class="radio-invoice-type" name="invoice_type" value="3" title="自提">
</div>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
<div class="layui-form-item">
<label class="layui-form-label">收货地址:</label>
<div class="layui-input-inline">
<select name="address" class="address" lay-verify="required">
<option value=""></option>
</select>
</div>
<a class="layui-btn add-address">添加地址</a>
</div>
</div>
</div>
<div class="address-section">
<div class="layui-row">
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">联系人:</label>
<span class="address-consignee"></span>
</div>
</div>
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">联系电话:</label>
<span class="address-mobile"></span>
</div>
</div>
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">收货地址:</label>
<span class="address-detail"></span>
</div>
</div>
</div>
</div>
\ No newline at end of file
<style type="text/css">
.addOrder .layui-colla-title{ margin-top: 0px; margin-bottom: 0px; }
.invoice-section{ border: 1px solid #ccc; }
.invoice-section label{ width: 110px; }
.invoice-section span{ line-height: 35px; }
.addOrder .layui-form-item{ margin-bottom: 0px; }
.addOrder label{ width: 110px; }
.addOrder span{ line-height: 35px; }
.invoice-section, .address-section{ border: 1px solid #ccc; }
.invoice-section-2, .invoice-section-3, .invoice-section-4{ display: none; }
</style>
<input type="hidden" name="user_id" class="user_id" value="">
<div class="layui-collapse addOrder">
<form class="layui-form layui-box quoteForm" method="post">
<div class="layui-colla-item">
<h2 class="layui-colla-title">客户信息</h2>
<div class="layui-colla-content layui-show">
<div class="layui-row">
<div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
<div class="layui-form-item">
<label class="layui-form-label">开票方式:</label>
<div class="layui-input-block">
<input type="radio" class="radio-invoice-type" name="invoice_type" value="2" title="个人">
<input type="radio" class="radio-invoice-type" name="invoice_type" value="3" title="增值税专用发票">
<input type="radio" class="radio-invoice-type" name="invoice_type" value="4" title="增值税普通发票">
<input type="radio" class="radio-invoice-type" name="invoice_type" value="" title="不开发票">
</div>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
<div class="layui-form-item">
<label class="layui-form-label">发票/公司:</label>
<div class="layui-input-inline">
<input type="text" name="com_name" required lay-verify="" placeholder="请输入公司" autocomplete="off" class="layui-input">
</div>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
<div class="layui-form-item">
<label class="layui-form-label">联系方式:</label>
<div class="layui-input-inline">
<input type="text" name="account" required lay-verify="required" placeholder="请输入联系方式" autocomplete="off" class="layui-input account">
</div>
</div>
</div>
<div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
<div class="layui-form-item">
<label class="layui-form-label">联系人:</label>
<div class="layui-input-inline">
<input type="text" name="user_name" required lay-verify="" placeholder="请输入联系人" autocomplete="off" class="layui-input">
</div>
</div>
</div>
</div>
<!-- 与开票方式联动展示 -->
<div class="invoice-section">
<!-- 个人 -->
<div class="invoice-section-2">
</div>
<!-- 增值税专用发票展示信息 -->
<div class="invoice-section-3">
<div class="layui-row">
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">发票抬头:</label>
<span>xxxxxx</span>
</div>
</div>
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">开户银行:</label>
<span>xxxxxx</span>
</div>
</div>
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">收票人:</label>
<span>xxxxxx</span>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">税务登记号:</label>
<span>xxxxxx</span>
</div>
</div>
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">银行卡号:</label>
<span>xxxxxx</span>
</div>
</div>
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">发票联系电话:</label>
<span>xxxxxx</span>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">公司电话:</label>
<span>xxxxxx</span>
</div>
</div>
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">公司注册地址:</label>
<span>xxxxxx</span>
</div>
</div>
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">收票地址:</label>
<span>xxxxxx</span>
</div>
</div>
</div>
</div>
<!-- 增值税普通发票展示信息 -->
<div class="invoice-section-4">
<div class="layui-row">
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">发票抬头:</label>
<span>xxxxxx</span>
</div>
</div>
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">税务登记号:</label>
<span>xxxxxx</span>
</div>
</div>
</div>
</div>
</div>
@include('addOrder.userInfo')
</div>
</div>
<div class="layui-colla-item">
<h2 class="layui-colla-title">收货信息</h2>
<div class="layui-colla-content layui-show">
<div class="layui-row">
<div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
<div class="layui-form-item">
<label class="layui-form-label">发货方式:</label>
<div class="layui-input-inline">
<select name="zy_delivery_type" class="zy_delivery_type" lay-verify="required">
<option value=""></option>
<option value="1">现货发货</option>
<option value="2">拼单发货</option>
</select>
</div>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
<div class="layui-form-item">
<label class="layui-form-label">销售组织:</label>
<div class="layui-input-inline">
<select name="city" lay-verify="required">
<option value=""></option>
<option value="1">现货发货</option>
<option value="2">拼单发货</option>
</select>
</div>
@include('addOrder.addressInfo')
</div>
</div>
<div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
<div class="layui-form-item">
<label class="layui-form-label">交货地:</label>
<div class="layui-input-inline">
<select name="city" lay-verify="required">
<option value=""></option>
<option value="1">大陆</option>
<option value="2">香港</option>
</select>
</div>
</div>
<div class="layui-colla-item">
<h2 class="layui-colla-title">商品信息</h2>
<div class="layui-colla-content layui-show">
@include('addOrder.goodsInfo')
</div>
</div>
<div class="layui-colla-item order-gift-info">
<h2 class="layui-colla-title">赠品信息</h2>
<div class="layui-colla-content layui-show">
@include('addOrder.giftInfo')
</div>
</div>
<div class="layui-colla-item">
<h2 class="layui-colla-title">商品信息</h2>
<div class="layui-colla-item order-info1">
<h2 class="layui-colla-title">订单信息</h2>
<div class="layui-colla-content layui-show">
@include('addOrder.orderInfo')
</div>
</div>
</form>
......
<div class="layui-row">
<div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
<div class="layui-form-item">
<table class="layui-table gift-table">
<thead>
<tr>
<th width="10%">活动ID</th>
<th width="20%">赠品图片</th>
<th width="20%">赠品名称</th>
<th width="20%">赠品数量</th>
<th width="30%">赠品说明</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
<div class="layui-form-item">
<div class="layui-input-inline" style="width: 235px;">
<input type="text" name="sku_id" lay-verify="" placeholder="请输入SKUID" autocomplete="off" class="layui-input search-sku">
</div>
<a class="btn btn-info get-sku">获取SKU信息</a>
<span>快捷入口:
<a href="{{Config('website.add-sku-url')}}" target="_blank" style="margin-right: 10px;">+新增SKU</a>
<a href="{{Config('website.search-sku-url-1')}}" target="_blank" style="margin-right: 10px;">查询联营SKU</a>
<a href="{{Config('website.search-sku-url-2')}}" target="_blank">查询自营SKU</a>
</span>
<div class="batch-btn">
<a class="btn btn-success goods_import" data-type="1">批量导入物料</a>
<a class="btn btn-info" href="https://img.ichunt.com/doc/excel/template/%E8%81%94%E8%90%A5%E6%89%B9%E9%87%8F%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx">联营物料模板下载</a>
</div>
</div>
</div>
</div>
<!-- SKU信息 -->
<div class="sku-info" style="margin-top: 10px;">
<div class="sku-info-left">
<div class="layui-row">
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">SKU型号:</label>
<span class="goods_name"></span>
</div>
</div>
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">制造商:</label>
<span class="brand_name"></span>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">供应商:</label>
<span class="supplier_name"></span>
</div>
</div>
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">库存数量:</label>
<span class="stock"></span>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">起订量:</label>
<span class="moq"></span>
</div>
</div>
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">标准包装量:</label>
<span class="mpq"></span>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">是否能购买:</label>
<span class="status"></span>
</div>
</div>
</div>
</div>
<div class="sku-info-right">
<table class="layui-table ladder_price_table" style="margin: 0px;"></table>
</div>
<input type="hidden" name="goods_id" class="goods_id" value="">
<input type="hidden" name="goods_type" class="goods_type" value="">
<div class="clear"></div>
<a class="btn btn-success add-to-lists">添加至商品列表</a>
</div>
<!-- 商品列表 -->
<div class="carts-info">
<table id="list" lay-filter="list"></table>
<textarea name="remark" id="remark" class="layui-textarea" placeholder="填写订单备注信息"></textarea>
<script type="text/html" id="buyer_id">
@{{# if (d.buyer_id != 0) { }}
@{{ d.buyer_id }}
@{{# } }}
</script>
<script type="text/html" id="list_action">
<a class="btn btn-xs btn-danger" lay-event="del">删除</a>
</script>
</div>
<div class="layui-row">
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">商品总额:</label>
<span class="goods_amount_val"></span>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<input type="hidden" class="user_coupon_id" name="user_coupon_id" value="">
<label class="layui-form-label">选择优惠券:</label>
<div class="layui-input-inline">
<select name="user_coupon" id="user_coupon">
<option value="">请选择</option>
</select>
</div>
</div>
</div>
</div>
<div class="layui-row preferential_price">
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">优惠金额:</label>
<span class="preferential_price_val"></span>
</div>
</div>
</div>
<div class="layui-row extend_fee">
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">附加费:</label>
<span class="extend_fee_val">0.00</span>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">运费:</label>
<span class="express_fee_val">0.00</span>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">应付金额:</label>
<span class="text-danger order_amount">0.00</span>
</div>
</div>
</div>
<div class="ibox-title" style="text-align: right;">
<a class="btn btn-success submit-order" data-type="1">提交</a>
</div>
<div class="layui-row">
<div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
<div class="layui-form-item">
<input type="hidden" name="tax_id" class="tax_id" value="">
<label class="layui-form-label">开票方式:</label>
<div class="layui-input-block">
<input type="radio" class="radio-invoice-type" name="invoice_type" value="3" title="增值税专用发票">
<input type="radio" class="radio-invoice-type" name="invoice_type" value="4" title="增值税普通发票">
<input type="radio" class="radio-invoice-type" name="invoice_type" value="" title="不开发票">
<input type="radio" class="radio-invoice-type" name="invoice_type" value="2" title="个人">
</div>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
<div class="layui-form-item">
<label class="layui-form-label">发票/公司:</label>
<div class="layui-input-inline">
<input type="text" name="com_name" required lay-verify="" placeholder="请输入公司" autocomplete="off" class="layui-input com_name">
</div>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">联系方式:</label>
<div class="layui-input-inline">
<input type="text" name="account" required lay-verify="required" placeholder="请输入联系方式" autocomplete="off" class="layui-input account">
</div>
</div>
</div>
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">联系人:</label>
<div class="layui-input-inline">
<input type="text" name="user_name" required lay-verify="" placeholder="请输入联系人" autocomplete="off" class="layui-input">
</div>
</div>
</div>
</div>
<!-- 与开票方式联动展示 -->
<div class="invoice-section">
<!-- 个人 -->
<div class="invoice-section-2" style="margin-top: 10px;">
<div class="layui-row">
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">选择个人发票:</label>
<div class="layui-input-inline layui-form" lay-filter="user-tax">
<select name="user_tax_id" id="user_tax_id">
</select>
</div>
</div>
</div>
</div>
</div>
<!-- 增值税专用发票展示信息 -->
<div class="invoice-section-3">
<div class="layui-row">
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">发票抬头:</label>
<span class="tax_title"></span>
</div>
</div>
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">开户银行:</label>
<span class="com_bank"></span>
</div>
</div>
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">收票人:</label>
<span class="consignee"></span>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">税务登记号:</label>
<span class="tax_no"></span>
</div>
</div>
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">银行卡号:</label>
<span class="com_bank_num"></span>
</div>
</div>
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">发票联系电话:</label>
<span class="consignee_phone"></span>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">公司电话:</label>
<span class="com_tel"></span>
</div>
</div>
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">公司注册地址:</label>
<span class="com_addr"></span>
</div>
</div>
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">收票地址:</label>
<span class="consignee_address"></span>
</div>
</div>
</div>
</div>
<!-- 增值税普通发票展示信息 -->
<div class="invoice-section-4">
<div class="layui-row">
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">发票抬头:</label>
<span class="tax_title"></span>
</div>
</div>
<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">税务登记号:</label>
<span class="tax_no"></span>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
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