447 lines
13 KiB
HTML
447 lines
13 KiB
HTML
<div class="full-height flex-c body-hidden">
|
|
<form id="add-form" class="row" role="form" data-toggle="validator" method="POST" action="">
|
|
<div class="ctr flex-sb">
|
|
<div class="left">
|
|
<input type="hidden" name="row[dispatch_type]" value="2">
|
|
<div class="line flex-sb">
|
|
<div class="item flex-sb">
|
|
<div class="title flex-c"><span class="required">*</span>订单渠道:</div>
|
|
<div class="value">
|
|
<select id="c-source" data-live-search="true" title="请选择订单渠道" name="row[source]" class="form-control selectpicker show-tick">
|
|
{foreach $sources as $item}
|
|
<option data-subtext="{$item['ptitle']}" value="{$item['id']}">{$item['title']}</option>
|
|
{/foreach}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="item flex-sb">
|
|
<div class="title flex-c"><span class="required">*</span>服务项目:</div>
|
|
<div class="value flex-c">
|
|
<input type="text" placeholder="请选择服务项目" id="item_id" class="zd-input__inner">
|
|
<input type="text" id="item_id_value" style="display: none" name="row[item_id]" class="zd-input__inner">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="line flex-sb">
|
|
<div class="item flex-sb">
|
|
<div class="title flex-c"><span class="required">*</span>客户昵称:</div>
|
|
<div class="value flex-c">
|
|
<input id="c-customer" placeholder="请输入客户昵称" class="form-input form-control" name="row[customer]" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="item flex-sb">
|
|
<div class="title flex-c"><span class="required">*</span>客户电话:</div>
|
|
<div class="value">
|
|
<input id="c-tel" placeholder="请输入客户电话" class="form-input form-control" name="row[tel]" type="number">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="line flex-sb">
|
|
<div class="title flex-c"><span class="required">*</span>地区:</div>
|
|
<div class='value col-sm-12 flex-c'>
|
|
<input id="c-city" class="form-control" data-toggle="city-picker" type="text" value="" />
|
|
<input id="area_id" style="display: none" class="form-control" name="row[area_id]" hidden type="text" value="" />
|
|
</div>
|
|
</div>
|
|
<div class="line multi-line flex-sb bt-40">
|
|
<div class="select-address">
|
|
<div class="title flex-c"><span class="required">*</span>详细地址:</div>
|
|
<div class="select-ctr flex-c">
|
|
<div class="btn btn-sm btn-primary flex-c" id="area_map"
|
|
data-input-id="c-address"
|
|
data-lng-id="lng"
|
|
data-lat-id="lat">地图查找</div>
|
|
</div>
|
|
</div>
|
|
<div class='address'>
|
|
<textarea id="c-address"
|
|
class="form-control form-textarea"
|
|
readonly
|
|
placeholder="请通过地图查找选择"
|
|
name="row[address]"
|
|
type="text"></textarea>
|
|
<input type="text" style="display: none"
|
|
name="row[lng]" id="lng" >
|
|
<input type="text" style="display: none"
|
|
name="row[lat]" id="lat">
|
|
<input type="text" style="display: none" id="area_name">
|
|
</div>
|
|
</div>
|
|
<div class="line flex-sb">
|
|
<div class="item flex-sb">
|
|
<div class="title flex-c">收款方式:</div>
|
|
<div class="value flex-c">
|
|
<select name="row[receive_type]" class="form-control selectpicker">
|
|
<option selected value="1">已收定金</option>
|
|
<option value="2">已收全款</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="item flex-sb">
|
|
<div class="title flex-c"><span class="required">*</span>收款金额:</div>
|
|
<div class="value flex-c">
|
|
<input name="row[online_amount]" class="form-control form-input" type="number" placeholder="请输入收款金额">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="line flex-sb bt-40">
|
|
<div class="item flex-sb">
|
|
<div class="title flex-c">优惠:</div>
|
|
<div class="value flex-c">
|
|
<select id="c-coupon" data-live-search="true" title="请选择优惠信息" name="row[coupon_id]" class="form-control selectpicker show-tick">
|
|
<option selected value="0">不使用优惠</option>
|
|
{foreach $coupons as $item}
|
|
<option data-subtext="{$item['description']}" value="{$item['id']}">{$item['code']}</option>
|
|
{/foreach}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="line flex-sb">
|
|
<div class="item flex-sb">
|
|
<div class="title flex-c">上门时间:</div>
|
|
<div class="value flex-l">
|
|
{:build_radios('row[set_time]', ['1'=>'有', '0'=>'无'], 1)}
|
|
</div>
|
|
</div>
|
|
<div class="item flex-sb" id="set-time">
|
|
<div class="title flex-c"><span class="required">*</span>设置时间:</div>
|
|
<div class="value flex-c">
|
|
<input name="row[plan_time]" placeholder="请选择上门时间" class="form-input form-control datetimepicker">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="line multi-line flex-sb">
|
|
<div class="select-address">
|
|
<div class="title flex-c">订单备注:</div>
|
|
</div>
|
|
<div class='address'>
|
|
<textarea id="c-remark" placeholder="请输入订单备注" class="form-control form-textarea" name="row[remark]" ></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="line flex-sb">
|
|
<div class="item flex-sb">
|
|
<div class="title flex-c">录单员:</div>
|
|
<div class="value flex-c">
|
|
<select id="c-users" data-live-search="true" title="默认当前登录账号" name="row[admin_id]" class="form-control selectpicker show-tick">
|
|
<option value="-1">默认当前登录账号</option>
|
|
{foreach $users as $item}
|
|
<option value="{$item['id']}">{$item['nickname']}</option>
|
|
{/foreach}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="line flex-sb">
|
|
<div class="title flex-c">图片上传:</div>
|
|
<div class="value">
|
|
<div class="input-group">
|
|
<input id="c-images" name="row[images]" type="hidden">
|
|
<div class="input-group-addon no-border no-padding">
|
|
<span><button type="button" id="faupload-images" class="btn btn-primary faupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
|
|
<span><button type="button" id="fachoose-images" class="btn btn-default fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
|
|
</div>
|
|
<span class="msg-box n-right" for="c-images"></span>
|
|
</div>
|
|
<ul class="row list-inline faupload-preview" id="p-images"></ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="right">
|
|
<div class="line flex-sb">
|
|
<div class="item flex-sb">
|
|
<div class="title flex-l">快速录入:</div>
|
|
</div>
|
|
</div>
|
|
<div class="line flex-sb smart-text-line">
|
|
<div class="item flex-sb smart-text-item">
|
|
<textarea class="form-control form-textarea smart-text" placeholder="粘贴内容,智能识别内容快速录入信息" id="smart_text"></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="line flex-l">
|
|
<div id="smart" class="smart-btn flex-c custom-btn">
|
|
<img src="/assets/img/automation.png" class="img" alt="">
|
|
智能识别
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="submit-ctr flex-sb">
|
|
<!-- <div class="submit flex-c" id="mysubmit">录入并清空</div>-->
|
|
<!-- <div class="submit-continue flex-c" id="mybuttom">录入并保留信息</div>-->
|
|
|
|
<button id="mysubmit" class="btn btn-default submit">录入并清空</button>
|
|
<button id="mybuttom" class="btn btn-success submit-continue">录入并保留信息</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<link rel="stylesheet" href="/assets/css/select.css">
|
|
<style>
|
|
.body-hidden {
|
|
visibility: hidden;
|
|
opacity: 0;
|
|
}
|
|
|
|
.body-shown {
|
|
visibility: visible;
|
|
opacity: 1;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.flex-c {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.flex-r {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
}
|
|
|
|
.flex-l {
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
}
|
|
|
|
.flex-sb {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
.full-height {
|
|
width: 100vw;
|
|
height: 768px;
|
|
background: #f1f4f6;
|
|
}
|
|
.ctr {
|
|
width: 1000px;
|
|
height: 768px;
|
|
overflow: auto;
|
|
background: #FFFFFF;
|
|
border-radius: 8px;
|
|
position: relative;
|
|
}
|
|
.ctr .left {
|
|
width: 614px;
|
|
height: 768px;
|
|
padding: 20px 10px;
|
|
}
|
|
.ctr .right {
|
|
width: 386px;
|
|
height: 768px;
|
|
}
|
|
|
|
.line {
|
|
width: 100%;
|
|
height: 40px;
|
|
margin-bottom: 10px;
|
|
}
|
|
.line .item {
|
|
width: 280px;
|
|
height: 40px;
|
|
}
|
|
|
|
.title {
|
|
width: 100px;
|
|
height: 40px;
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
color: rgba(0,0,0,0.9);
|
|
}
|
|
.title .required {
|
|
color: #E6521F;
|
|
}
|
|
|
|
.item .value {
|
|
width: 180px;
|
|
height: 40px;
|
|
}
|
|
.line>.value {
|
|
width: 494px !important;
|
|
height: 40px;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
.item .value .form-input {
|
|
height: 34px !important;
|
|
color: rgba(0,0,0,0.9) !important;
|
|
border: 1px solid rgba(0,0,0,0.15) !important;
|
|
border-radius: 4px !important;
|
|
}
|
|
|
|
.value>.city-picker-span {
|
|
height: 34px !important;
|
|
border: 1px solid rgba(0,0,0,0.15) !important;
|
|
border-radius: 4px !important;
|
|
padding: 0 12px !important;
|
|
}
|
|
|
|
.value>.city-picker-span > .title > span {
|
|
color: rgba(0,0,0,0.9) !important;
|
|
font-weight: 400 !important;
|
|
}
|
|
|
|
.item .value>.bootstrap-select>.btn {
|
|
height: 34px !important;
|
|
border-radius: 4px !important;
|
|
border: 1px solid rgba(0,0,0,0.15) !important;
|
|
box-sizing: border-box !important;
|
|
background-color: #FFFFFF !important;
|
|
color: rgba(0,0,0,0.9) !important;
|
|
}
|
|
.item .value>.bootstrap-select>.btn .filter-option {
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
}
|
|
|
|
.item .value > .zd-input--suffix {
|
|
height: 40px !important;
|
|
line-height: 40px !important;
|
|
}
|
|
.zd-cascader-wrap>.zd-input>.zd-input__inner {
|
|
height: 34px !important;
|
|
color: rgba(0,0,0,0.9) !important;
|
|
border: 1px solid rgba(0,0,0,0.15) !important;
|
|
padding: 0 12px !important;
|
|
}
|
|
.line .select-address {
|
|
width: 100px;
|
|
height: 60px;
|
|
}
|
|
.select-address .title {
|
|
width: 100px;
|
|
height: 30px;
|
|
}
|
|
.select-address .select-ctr {
|
|
width: 100px;
|
|
height: 30px;
|
|
}
|
|
|
|
.multi-line {
|
|
height: 60px;
|
|
}
|
|
.form-textarea {
|
|
width: 494px !important;
|
|
height: 60px !important;
|
|
color: rgba(0,0,0,0.9) !important;
|
|
border: 1px solid rgba(0,0,0,0.15) !important;
|
|
border-radius: 4px !important;
|
|
resize: none;
|
|
}
|
|
#area_map {
|
|
width: 64px;
|
|
height: 26px;
|
|
border-radius: 4px;
|
|
}
|
|
.bt-40 {
|
|
margin-bottom: 40px !important;
|
|
}
|
|
|
|
.radio > label, .checkbox > label {
|
|
margin-right: 40px;
|
|
}
|
|
input[type="radio"] {
|
|
transform: scale(1.2);
|
|
}
|
|
|
|
.radio > label > input, .checkbox > label > input {
|
|
margin: 4px 0 0;
|
|
}
|
|
|
|
.faupload-preview {
|
|
padding-bottom: 20px;
|
|
}
|
|
.value .input-group {
|
|
height: 40px;
|
|
}
|
|
|
|
.right {
|
|
padding: 20px 30px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.smart-text,.smart-text-item,.smart-text-line {
|
|
width: 326px !important;
|
|
height: 140px !important;
|
|
}
|
|
.smart-btn {
|
|
width: 94px;
|
|
height: 38px;
|
|
background: #444c69;
|
|
border-radius: 4px;
|
|
font-weight: 400;
|
|
font-size: 14px;
|
|
color: #FFFFFF;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
.smart-btn>.img {
|
|
width: 16px;
|
|
height: 16px;
|
|
margin-right: 2px;
|
|
}
|
|
.smart-btn:hover {
|
|
background: #3d445f;
|
|
}
|
|
.smart-btn:active {
|
|
background: #3a425b;
|
|
}
|
|
|
|
.submit-ctr {
|
|
width: 270px;
|
|
height: 80px;
|
|
position: absolute;
|
|
right: 30px;
|
|
bottom: 44px;
|
|
}
|
|
.submit-ctr> .submit {
|
|
width: 108px;
|
|
height: 46px;
|
|
box-shadow: 0px 8px 32px 0px rgba(0,0,0,0.16);
|
|
border-radius: 4px;
|
|
font-weight: 400;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.submit-ctr> .submit-continue {
|
|
width: 140px;
|
|
height: 46px;
|
|
box-shadow: 0px 8px 32px 0px rgba(0,0,0,0.16);
|
|
border-radius: 4px;
|
|
font-weight: 400;
|
|
font-size: 16px;
|
|
}
|
|
</style>
|
|
<script>
|
|
var items = {:json_encode($items); };
|
|
window.addEventListener('DOMContentLoaded', function () {
|
|
setTimeout(function () {
|
|
const container = document.querySelector('.body-hidden');
|
|
if (container) {
|
|
container.classList.remove('body-hidden');
|
|
container.classList.add('body-shown');
|
|
}
|
|
}, 500);
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|