Initial commit: 小众厨房项目代码

Co-authored-by: Cursor <cursoragent@cursor.com>
这个提交包含在:
可乐加冰
2026-09-23 17:04:10 +08:00
当前提交 f7d3d7d1bd
共有 1761 个文件被更改,包括 453668 次插入 和 0 次删除

查看文件

@@ -0,0 +1,164 @@
<link rel="stylesheet" href="__CDN__/assets/addons/shopro/libs/element/element.css">
<link rel="stylesheet" href="__CDN__/assets/addons/shopro/libs/common.css">
<style>
#dispatchDetail {
background: #fff;
border-radius: 10px 10px 0px 0px;
color: #444;
font-weight: 500;
}
.demo-dispatchForm {
height: calc(100vh - 110px);
overflow-y: auto;
padding-right: 25px;
}
.demo-dispatchForm::-webkit-scrollbar {
width: 6px;
}
.demo-dispatchForm::-webkit-scrollbar-thumb {
width: 6px;
background: #e6e6e6;
height: 20px;
border-radius: 3px;
}
.pagination,
.el-pagination {
margin: 0;
}
.el-pagination__sizes {
display: none !important;
}
.params-detail-table {
border: 1px solid #E6E6E6;
border-bottom: none;
margin-bottom: 20px;
}
.params-header-item {
height: 40px;
}
.params-header-item,
.params-detail-item {
border-bottom: 1px solid #E6E6E6;
}
.params-detail-item>div,
.params-header-item>div {
padding: 5px 10px;
}
.params-detail-name {
width: 120px;
}
.params-detail-msg {
width: 378px;
}
.params-detail-del,
.params-detail-move {
width: 50px;
display: flex;
justify-content: center;
}
.params-detail-del-icon {
color: #ff5959;
}
.add-params {
width: 98px;
height: 32px;
background: #7536D0;
border-radius: 4px;
justify-content: center;
color: #fff;
cursor: pointer;
}
.add-params i {
margin-right: 6px;
font-size: 14px;
}
[v-cloak] {
display: none
}
</style>
<script src="__CDN__/assets/addons/shopro/libs/vue.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/element/element.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/Sortable.min.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/vuedraggable.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/moment.js"></script>
<div id="dispatchDetail" v-cloak>
<el-form :model="dispatchForm" ref="dispatchForm" :rules="rules" label-width="100px" class="demo-dispatchForm">
<el-form-item label="模板名称:" prop="name">
<el-input v-model="dispatchForm.name" placeholder="请输入模板名称"></el-input>
</el-form-item>
<el-form-item label="发货类型:" prop="type">
<el-radio-group v-model="dispatchForm.type" @change="radioChange">
<el-radio label="text">固定内容</el-radio>
<!-- <el-radio label="card">卡密</el-radio> -->
<el-radio label="params">自定义内容</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="发货内容:" prop="timecontent" v-if="dispatchForm.type=='text'">
<el-input v-model="dispatchForm.timecontent" placeholder="请输入自动发货内容"></el-input>
</el-form-item>
<el-form-item label="发货内容:" prop="timecontent" v-if="dispatchForm.type=='params'">
<div>
<div class="params-detail-table">
<div class="display-flex params-header-item">
<div class="params-detail-name">
参数名称
</div>
<div class="params-detail-msg">
内容
</div>
<div class="params-detail-del">
删除
</div>
<div class="params-detail-move">
移动
</div>
</div>
<draggable :list="dispatchForm.timecontent" v-bind="$attrs" :options="{animation:500}">
<div class="display-flex params-detail-item" v-for="(it,index) in dispatchForm.timecontent">
<div class="params-detail-name">
<el-input type="input" v-model="it.title" style="width:90px">
</el-input>
</div>
<div class="params-detail-msg">
<el-input type="input" v-model="it.content" style="width:348px">
</el-input>
</div>
<div class="params-detail-del">
<div class="params-detail-del-icon" @click="delParams(index)">
删除
</div>
</div>
<div class="params-detail-move">
<img src="/assets/addons/shopro/img/goods/move.png">
</div>
</div>
</draggable>
</div>
<div class="add-params display-flex" @click="addParams">
<i class="el-icon-plus"></i>
<span>添加参数</span>
</div>
</div>
</el-form-item>
</el-form>
<div class="dialog-footer display-flex">
<div @click="dispatchSub" class="dialog-cancel-btn display-flex-c cursor-pointer">取消</div>
<div @click="dispatchSub('yes','dispatchForm')" class="dialog-define-btn display-flex-c cursor-pointer">确定</div>
</div>
</div>

查看文件

@@ -0,0 +1,164 @@
<link rel="stylesheet" href="__CDN__/assets/addons/shopro/libs/element/element.css">
<link rel="stylesheet" href="__CDN__/assets/addons/shopro/libs/common.css">
<style>
#dispatchDetail {
background: #fff;
border-radius: 10px 10px 0px 0px;
color: #444;
font-weight: 500;
}
.demo-dispatchForm {
height: calc(100vh - 110px);
overflow-y: auto;
padding-right: 25px;
}
.demo-dispatchForm::-webkit-scrollbar {
width: 6px;
}
.demo-dispatchForm::-webkit-scrollbar-thumb {
width: 6px;
background: #e6e6e6;
height: 20px;
border-radius: 3px;
}
.pagination,
.el-pagination {
margin: 0;
}
.el-pagination__sizes {
display: none !important;
}
.params-detail-table {
border: 1px solid #E6E6E6;
border-bottom: none;
margin-bottom: 20px;
}
.params-header-item {
height: 40px;
}
.params-header-item,
.params-detail-item {
border-bottom: 1px solid #E6E6E6;
}
.params-detail-item>div,
.params-header-item>div {
padding: 5px 10px;
}
.params-detail-name {
width: 120px;
}
.params-detail-msg {
width: 378px;
}
.params-detail-del,
.params-detail-move {
width: 50px;
display: flex;
justify-content: center;
}
.params-detail-del-icon {
color: #ff5959;
}
.add-params {
width: 98px;
height: 32px;
background: #7536D0;
border-radius: 4px;
justify-content: center;
color: #fff;
cursor: pointer;
}
.add-params i {
margin-right: 6px;
font-size: 14px;
}
[v-cloak] {
display: none
}
</style>
<script src="__CDN__/assets/addons/shopro/libs/vue.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/element/element.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/Sortable.min.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/vuedraggable.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/moment.js"></script>
<div id="dispatchDetail" v-cloak>
<el-form :model="dispatchForm" ref="dispatchForm" :rules="rules" label-width="100px" class="demo-dispatchForm">
<el-form-item label="模板名称:" prop="name">
<el-input v-model="dispatchForm.name" placeholder="请输入模板名称"></el-input>
</el-form-item>
<el-form-item label="发货类型:" prop="type">
<el-radio-group v-model="dispatchForm.type" @change="radioChange">
<el-radio label="text">固定内容</el-radio>
<!-- <el-radio label="card">卡密</el-radio> -->
<el-radio label="params">自定义内容</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="发货内容:" prop="timecontent" v-if="dispatchForm.type=='text'">
<el-input v-model="dispatchForm.timecontent" placeholder="请输入自动发货内容"></el-input>
</el-form-item>
<el-form-item label="发货内容:" prop="timecontent" v-if="dispatchForm.type=='params'">
<div>
<div class="params-detail-table">
<div class="display-flex params-header-item">
<div class="params-detail-name">
参数名称
</div>
<div class="params-detail-msg">
内容
</div>
<div class="params-detail-del">
删除
</div>
<div class="params-detail-move">
移动
</div>
</div>
<draggable :list="dispatchForm.timecontent" v-bind="$attrs" :options="{animation:500}">
<div class="display-flex params-detail-item" v-for="(it,index) in dispatchForm.timecontent">
<div class="params-detail-name">
<el-input type="input" v-model="it.title" style="width:90px">
</el-input>
</div>
<div class="params-detail-msg">
<el-input type="input" v-model="it.content" style="width:348px">
</el-input>
</div>
<div class="params-detail-del">
<div class="params-detail-del-icon" @click="delParams(index)">
删除
</div>
</div>
<div class="params-detail-move">
<img src="/assets/addons/shopro/img/goods/move.png">
</div>
</div>
</draggable>
</div>
<div class="add-params display-flex" @click="addParams">
<i class="el-icon-plus"></i>
<span>添加参数</span>
</div>
</div>
</el-form-item>
</el-form>
<div class="dialog-footer display-flex">
<div @click="dispatchSub" class="dialog-cancel-btn display-flex-c cursor-pointer">取消</div>
<div @click="dispatchSub('yes','dispatchForm')" class="dialog-define-btn display-flex-c cursor-pointer">确定</div>
</div>
</div>

查看文件

@@ -0,0 +1,25 @@
<div class="panel panel-default panel-intro">
{:build_heading()}
<div class="panel-body">
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="one">
<div class="widget-body no-padding">
<div id="toolbar" class="toolbar">
{:build_toolbar('refresh')}
<a class="btn btn-info btn-multi btn-disabled disabled {:$auth->check('shopro/dispatch/autosend/restore')?'':'hide'}" href="javascript:;" data-url="shopro/dispatch/autosend/restore" data-action="restore"><i class="fa fa-rotate-left"></i> {:__('Restore')}</a>
<a class="btn btn-danger btn-multi btn-disabled disabled {:$auth->check('shopro/dispatch/autosend/destroy')?'':'hide'}" href="javascript:;" data-url="shopro/dispatch/autosend/destroy" data-action="destroy"><i class="fa fa-times"></i> {:__('Destroy')}</a>
<a class="btn btn-success btn-restoreall {:$auth->check('shopro/dispatch/autosend/restore')?'':'hide'}" href="javascript:;" data-url="shopro/dispatch/autosend/restore" title="{:__('Restore all')}"><i class="fa fa-rotate-left"></i> {:__('Restore all')}</a>
<a class="btn btn-danger btn-destroyall {:$auth->check('shopro/dispatch/autosend/destroy')?'':'hide'}" href="javascript:;" data-url="shopro/dispatch/autosend/destroy" title="{:__('Destroy all')}"><i class="fa fa-times"></i> {:__('Destroy all')}</a>
</div>
<table id="table" class="table table-striped table-bordered table-hover"
data-operate-restore="{:$auth->check('shopro/dispatch/autosend/restore')}"
data-operate-destroy="{:$auth->check('shopro/dispatch/autosend/destroy')}"
width="100%">
</table>
</div>
</div>
</div>
</div>
</div>

查看文件

@@ -0,0 +1,382 @@
<link rel="stylesheet" href="__CDN__/assets/addons/shopro/libs/element/element.css">
<style>
#dispatchDetail {
background: #fff;
border-radius: 10px 10px 0px 0px;
height: calc(100vh - 66px);
color: #444;
font-weight: 500;
}
.dispatch-bodys {
height: calc(100vh - 150px);
overflow-y: auto;
padding-right: 5px;
}
/* .dispatch-bodys: */
.dispatch-bodys::-webkit-scrollbar {
width: 6px;
}
.dispatch-bodys::-webkit-scrollbar-thumb {
width: 6px;
background: #e6e6e6;
height: 20px;
border-radius: 3px;
}
.dialog-footer {
padding: 10px 10px 0;
}
.btn-common {
width: 88px;
height: 32px;
line-height: 30px;
border-radius: 4px;
font-size: 12px;
text-align: center;
cursor: pointer;
display: inline-block;
}
.dispatch-items {
display: flex;
align-items: center;
height: 46px;
margin: 10px 0;
}
.dispatch-titles {
width: 110px;
height: 30px;
line-height: 30px;
margin-right: 12px;
text-align: right;
color: #444;
font-weight: 600;
font-size: 13px;
}
.dispatch-btn {
justify-content: flex-end;
margin: 0;
}
.dispatch-btn-1 {
color: #7438D5;
/* float: right; */
line-height: 36px;
}
.dispatch-btn-2 {
width: 88px;
height: 36px;
background: #7438D5;
border-radius: 4px;
font-size: 16px;
color: #fff;
line-height: 36px;
border-radius: 4px;
/* float: right; */
}
.edit-btn {
margin: 0 12px;
color: #7438D5;
cursor: pointer;
}
.del-btn {
margin-right: 12px;
color: #FF5959;
cursor: pointer;
}
.custom-item-area-detail {
width: 186px;
}
.add-btn-text {
border: 1px solid #7438D5;
text-align: center;
color: #7438D5;
}
.delete-btn {
color: #FF5959;
padding-left: 12px;
border-left: 1px solid #E6E6E6;
cursor: pointer;
}
.add-btn {
border: 1px solid #7438D5;
border-radius: 4px;
color: #7438D5;
height: 32px;
line-height: 30px;
}
.add-btn i {
margin-right: 5px;
color: #7438D5;
}
.dispatch-footer {
display: flex;
justify-content: space-between;
margin: 0;
}
.table-body-custom {
overflow-y: auto;
color: #444;
margin-left: 15px;
border: 1px solid #E6E6E6;
border-bottom: none;
}
.custom-header {
border-bottom: 1px solid #E6E6E6;
display: flex;
height: 32px;
justify-content: space-around;
align-items: center;
padding: 0 18px;
background: #F9F9F9;
}
.el-input,
.el-input .el-input__inner {
height: 34px;
line-height: 34px;
}
/* radio */
.el-radio__input.is-checked+.el-radio__label,.el-checkbox__input.is-checked+.el-checkbox__label {
color: #7438D5;
}
.el-radio__input.is-checked .el-radio__inner,.el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner {
background: #7438D5;
border-color: #7438D5;
}
.el-radio {
color: #666;
font-size: 13px;
}
.el-checkbox{
color: #444;
font-size: 13px;
}
.custom-item-with {
width: 110px;
}
.dispatch-name {
flex: 1;
display: flex;
align-items: center;
}
.dispatch-switch {
display: flex;
align-items: center;
}
.dispatch-switch-tip {
margin-left: 12px;
}
#mapArea {
height: 180px
}
.edit-area {
border: 1px solid #7438D5;
color: #7438D5;
height: 34px;
line-height: 32px;
margin-left: 14px;
}
label {
margin-bottom: 0;
}
.el-input__icon {
height: auto;
}
.el-cascader {
width: 100%;
}
.form-tip {
color: #7438D5;
margin-left: 44px;
cursor: pointer;
}
.express-table {
display: flex;
align-items: center;
height: 59px;
padding: 0 18px;
border-bottom: 1px solid #E6E6E6;
}
.custom-item-area {
flex: 1;
display: flex;
align-items: center;
justify-content: space-between;
}
.express-table .el-input,
.express-table .el-input .el-input__inner {
width: 80px;
}
.el-form-item__label {
color: #444;
font-size: 13px;
}
.el-form-item__content {
height: 40px;
}
.display-flex {
display: flex;
align-items: center;
height: 100%;
}
.el-select {
width: 100%;
}
.form-item-custom {
padding-right: 50px
}
[v-cloak] {
display: none
}
</style>
<script src="__CDN__/assets/addons/shopro/libs/vue.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/element/element.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/moment.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/Sortable.min.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/vuedraggable.js"></script>
<script src="https://webapi.amap.com/maps?v=1.4.15&key=d8c09ea0cdb7574e6a65618793782ece"></script>
<div id="dispatchDetail" v-cloak>
<div class="dispatch-bodys">
<el-form :model="dispatchForm" ref="dispatchForm" :rules="rules" label-width="100px" class="demo-dispatchForm">
<div class="form-item-custom">
<el-form-item label="模板名称:" prop="name" v-if="dispatchForm.type!='selfetch'">
<el-input v-model="dispatchForm.name" placeholder="请输入模板名称"></el-input>
</el-form-item>
</div>
<div v-if="dispatchForm.type=='express'">
<el-form-item label="计价方式:" prop="price_type" v-if="dispatchForm.type!='selfetch'">
<div class="display-flex">
<el-radio-group v-model="dispatchForm.price_type">
<el-radio label="number">按件数</el-radio>
<el-radio label="weight">按重量</el-radio>
</el-radio-group>
</div>
</el-form-item>
<div class="table-body-custom">
<div class="custom-header">
<div style="flex: 1;">
可配送区域
</div>
<div class="custom-item-with">
{{dispatchForm.price_type=='weight'?'首重(Kg)':'首件(个)'}}
</div>
<div class="custom-item-with">
运费(元)
</div>
<div class="custom-item-with">
{{dispatchForm.price_type=='weight'?'续重(Kg)':'续件(个)'}}
</div>
<div class="custom-item-with" style="width: 100px;">
运费(元)
</div>
</div>
<div class="custom-body">
<draggable :list="dispatchForm.express" v-bind="$attrs" class="menu-item"
:options="{animation:1000}">
<div v-for="(item,index) in dispatchForm.express" class="express-table">
<div class="custom-item-area">
<div class="btn-common add-btn-text" v-if="!item.area_text" @click="addArea(index)">选择地址
</div>
<div class="custom-item-area-detail" v-if="item.area_text">
{{item.area_text.length>28?item.area_text.substr(0,28)+"...":item.area_text}}
</div>
<div class="edit-btn" v-if="item.area_text" @click="editArea(index)">编辑</div>
<div class="del-btn" @click="delArea(index)">删除</div>
</div>
<div class="custom-item-with">
<el-input v-model="item.first_num"></el-input>
</div>
<div class="custom-item-with">
<el-input v-model="item.first_price"></el-input>
</div>
<div class="custom-item-with">
<el-input v-model="item.additional_price"></el-input>
</div>
<div class="custom-item-with" style="width: 88px;">
<el-input v-model="item.additional_num"></el-input>
</div>
<div>
<i class="el-icon-rank"></i>
</div>
</div>
</draggable>
</div>
</div>
</div>
<div v-if="dispatchForm.type!='express'" class="form-item-custom">
<el-form-item :label="dispatchForm.type=='store'?'配送门店:':'自提门店:'" prop="self_user">
<div class="display-flex">
<div style="flex: 1;">
<el-select v-model="dispatchForm.self_user" filterable placeholder="请选择">
<el-option v-for="item in aboutUserOptions" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</el-select>
</div>
<div class="form-tip" @click="createStore">新增门店</div>
</div>
</el-form-item>
</div>
</el-form>
</div>
<div class="dialog-footer">
<div class="dispatch-items dispatch-footer">
<div class="btn-common add-btn" @click="addExpress" v-if="dispatchForm.type=='express'">
<i class="el-icon-plus"></i>添加
</div>
<div>
<el-checkbox v-model="dispatchForm.real" true-label="1" false-label="0">设为新商品默认模板</el-checkbox>
</div>
</div>
<div class="dispatch-items dispatch-btn">
<div @click="dispatchSub" class="btn-common dispatch-btn-1">取消</div>
<div @click="dispatchSub('yes')" class="btn-common dispatch-btn-2">确定</div>
</div>
</div>
</div>

查看文件

@@ -0,0 +1,382 @@
<link rel="stylesheet" href="__CDN__/assets/addons/shopro/libs/element/element.css">
<style>
#dispatchDetail {
background: #fff;
border-radius: 10px 10px 0px 0px;
height: calc(100vh - 66px);
color: #444;
font-weight: 500;
}
.dispatch-bodys {
height: calc(100vh - 150px);
overflow-y: auto;
padding-right: 5px;
}
/* .dispatch-bodys: */
.dispatch-bodys::-webkit-scrollbar {
width: 6px;
}
.dispatch-bodys::-webkit-scrollbar-thumb {
width: 6px;
background: #e6e6e6;
height: 20px;
border-radius: 3px;
}
.dialog-footer {
padding: 10px 10px 0;
}
.btn-common {
width: 88px;
height: 32px;
line-height: 30px;
border-radius: 4px;
font-size: 12px;
text-align: center;
cursor: pointer;
display: inline-block;
}
.dispatch-items {
display: flex;
align-items: center;
height: 46px;
margin: 10px 0;
}
.dispatch-titles {
width: 110px;
height: 30px;
line-height: 30px;
margin-right: 12px;
text-align: right;
color: #444;
font-weight: 600;
font-size: 13px;
}
.dispatch-btn {
justify-content: flex-end;
margin: 0;
}
.dispatch-btn-1 {
color: #7438D5;
/* float: right; */
line-height: 36px;
}
.dispatch-btn-2 {
width: 88px;
height: 36px;
background: #7438D5;
border-radius: 4px;
font-size: 16px;
color: #fff;
line-height: 36px;
border-radius: 4px;
/* float: right; */
}
.edit-btn {
margin: 0 12px;
color: #7438D5;
cursor: pointer;
}
.del-btn {
margin-right: 12px;
color: #FF5959;
cursor: pointer;
}
.custom-item-area-detail {
width: 186px;
}
.add-btn-text {
border: 1px solid #7438D5;
text-align: center;
color: #7438D5;
}
.delete-btn {
color: #FF5959;
padding-left: 12px;
border-left: 1px solid #E6E6E6;
cursor: pointer;
}
.add-btn {
border: 1px solid #7438D5;
border-radius: 4px;
color: #7438D5;
height: 32px;
line-height: 30px;
}
.add-btn i {
margin-right: 5px;
color: #7438D5;
}
.dispatch-footer {
display: flex;
justify-content: space-between;
margin: 0;
}
.table-body-custom {
overflow-y: auto;
color: #444;
margin-left: 15px;
border: 1px solid #E6E6E6;
border-bottom: none;
}
.custom-header {
border-bottom: 1px solid #E6E6E6;
display: flex;
height: 32px;
justify-content: space-around;
align-items: center;
padding: 0 18px;
background: #F9F9F9;
}
.el-input,
.el-input .el-input__inner {
height: 34px;
line-height: 34px;
}
/* radio */
.el-radio__input.is-checked+.el-radio__label,.el-checkbox__input.is-checked+.el-checkbox__label {
color: #7438D5;
}
.el-radio__input.is-checked .el-radio__inner,.el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner {
background: #7438D5;
border-color: #7438D5;
}
.el-radio {
color: #666;
font-size: 13px;
}
.el-checkbox{
color: #444;
font-size: 13px;
}
.custom-item-with {
width: 110px;
}
.dispatch-name {
flex: 1;
display: flex;
align-items: center;
}
.dispatch-switch {
display: flex;
align-items: center;
}
.dispatch-switch-tip {
margin-left: 12px;
}
#mapArea {
height: 180px
}
.edit-area {
border: 1px solid #7438D5;
color: #7438D5;
height: 34px;
line-height: 32px;
margin-left: 14px;
}
label {
margin-bottom: 0;
}
.el-input__icon {
height: auto;
}
.el-cascader {
width: 100%;
}
.form-tip {
color: #7438D5;
margin-left: 44px;
cursor: pointer;
}
.express-table {
display: flex;
align-items: center;
height: 59px;
padding: 0 18px;
border-bottom: 1px solid #E6E6E6;
}
.custom-item-area {
flex: 1;
display: flex;
align-items: center;
justify-content: space-between;
}
.express-table .el-input,
.express-table .el-input .el-input__inner {
width: 80px;
}
.el-form-item__label {
color: #444;
font-size: 13px;
}
.el-form-item__content {
height: 40px;
}
.display-flex {
display: flex;
align-items: center;
height: 100%;
}
.el-select {
width: 100%;
}
.form-item-custom {
padding-right: 50px
}
[v-cloak] {
display: none
}
</style>
<script src="__CDN__/assets/addons/shopro/libs/vue.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/element/element.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/moment.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/Sortable.min.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/vuedraggable.js"></script>
<script src="https://webapi.amap.com/maps?v=1.4.15&key=d8c09ea0cdb7574e6a65618793782ece"></script>
<div id="dispatchDetail" v-cloak>
<div class="dispatch-bodys">
<el-form :model="dispatchForm" ref="dispatchForm" :rules="rules" label-width="100px" class="demo-dispatchForm">
<div class="form-item-custom">
<el-form-item label="模板名称:" prop="name" v-if="dispatchForm.type!='selfetch'">
<el-input v-model="dispatchForm.name" placeholder="请输入模板名称"></el-input>
</el-form-item>
</div>
<div v-if="dispatchForm.type=='express'">
<el-form-item label="计价方式:" prop="price_type" v-if="dispatchForm.type!='selfetch'">
<div class="display-flex">
<el-radio-group v-model="dispatchForm.price_type">
<el-radio label="number">按件数</el-radio>
<el-radio label="weight">按重量</el-radio>
</el-radio-group>
</div>
</el-form-item>
<div class="table-body-custom">
<div class="custom-header">
<div style="flex: 1;">
可配送区域
</div>
<div class="custom-item-with">
{{dispatchForm.price_type=='weight'?'首重(Kg)':'首件(个)'}}
</div>
<div class="custom-item-with">
运费(元)
</div>
<div class="custom-item-with">
{{dispatchForm.price_type=='weight'?'续重(Kg)':'续件(个)'}}
</div>
<div class="custom-item-with" style="width: 100px;">
运费(元)
</div>
</div>
<div class="custom-body">
<draggable :list="dispatchForm.express" v-bind="$attrs" class="menu-item"
:options="{animation:1000}">
<div v-for="(item,index) in dispatchForm.express" class="express-table">
<div class="custom-item-area">
<div class="btn-common add-btn-text" v-if="!item.area_text" @click="addArea(index)">选择地址
</div>
<div class="custom-item-area-detail" v-if="item.area_text">
{{item.area_text.length>28?item.area_text.substr(0,28)+"...":item.area_text}}
</div>
<div class="edit-btn" v-if="item.area_text" @click="editArea(index)">编辑</div>
<div class="del-btn" @click="delArea(index)">删除</div>
</div>
<div class="custom-item-with">
<el-input v-model="item.first_num"></el-input>
</div>
<div class="custom-item-with">
<el-input v-model="item.first_price"></el-input>
</div>
<div class="custom-item-with">
<el-input v-model="item.additional_price"></el-input>
</div>
<div class="custom-item-with" style="width: 88px;">
<el-input v-model="item.additional_num"></el-input>
</div>
<div>
<i class="el-icon-rank"></i>
</div>
</div>
</draggable>
</div>
</div>
</div>
<div v-if="dispatchForm.type!='express'" class="form-item-custom">
<el-form-item :label="dispatchForm.type=='store'?'配送门店:':'自提门店:'" prop="self_user">
<div class="display-flex">
<div style="flex: 1;">
<el-select v-model="dispatchForm.self_user" filterable placeholder="请选择">
<el-option v-for="item in aboutUserOptions" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</el-select>
</div>
<div class="form-tip" @click="createStore">新增门店</div>
</div>
</el-form-item>
</div>
</el-form>
</div>
<div class="dialog-footer">
<div class="dispatch-items dispatch-footer">
<div class="btn-common add-btn" @click="addExpress" v-if="dispatchForm.type=='express'">
<i class="el-icon-plus"></i>添加
</div>
<div>
<el-checkbox v-model="dispatchForm.real" true-label="1" false-label="0">设为新商品默认模板</el-checkbox>
</div>
</div>
<div class="dispatch-items dispatch-btn">
<div @click="dispatchSub" class="btn-common dispatch-btn-1">取消</div>
<div @click="dispatchSub('yes')" class="btn-common dispatch-btn-2">确定</div>
</div>
</div>
</div>

查看文件

@@ -0,0 +1,336 @@
<link rel="stylesheet" href="__CDN__/assets/addons/shopro/libs/element/element.css">
<link rel="stylesheet" href="__CDN__/assets/addons/shopro/libs/common.css">
<style>
#dispatchIndex {
padding: 16px 20px 30px;
background: #fff;
border-radius: 10px 10px 0px 0px;
color: #444;
font-weight: 500;
}
.el-tabs__item {
padding: 0;
text-align: center;
width: 90px;
height: 48px;
line-height: 44px;
padding-right: 10px;
color: #666;
}
.table-item {
margin-bottom: 10px;
border: 1px solid #E6E6E6;
}
.table-item-header {
height: 40px;
background: #F9F9F9;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 30px 0 14px;
/* border: 1px solid #E6E6E6;
border-bottom: none; */
}
.express-width {
width: 100px;
text-align: center;
}
.header-btn {
margin-left: 24px;
}
[v-cloak] {
display: none
}
</style>
<script src="__CDN__/assets/addons/shopro/libs/vue.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/element/element.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/moment.js"></script>
<div id="dispatchIndex" v-cloak>
<div class="tabs-custom">
<el-tabs v-model="activeName" @tab-click="tabClick">
{if condition = "$auth->check('shopro/dispatch/express/index')"}<el-tab-pane label="物流快递" name="express">
<div class="display-flex-b">
<div class="display-flex">
<div class="custom-refresh display-flex-c" @click="getData">
<i class="el-icon-refresh"></i>
</div>
{if condition = "$auth->check('shopro/dispatch/express/add')"}<div
class="create-btn display-flex-c" @click="operation('create',null,null,'express')"><i
class="el-icon-plus"></i>新建模板</div>{/if}
</div>
{if condition = "$auth->check('shopro/dispatch/express/recyclebin')"}
<div class="recycle-btn display-flex-c" @click="operation('recycle',null,null,'express')">
<i class="fa fa-recycle"></i>
回收站
</div>
{/if}
</div>
</el-tab-pane>{/if}
{if condition = "$auth->check('shopro/dispatch/store/index')"}<el-tab-pane label="商家配送" name="store">
<div class="display-flex-b">
<div class="display-flex">
<div class="custom-refresh display-flex-c" @click="getData">
<i class="el-icon-refresh"></i>
</div>
{if condition = "$auth->check('shopro/dispatch/store/add')"}<div
class="create-btn display-flex-c" @click="operation('create',null,null,'store')"><i
class="el-icon-plus"></i>新建模板</div>{/if}
</div>
{if condition = "$auth->check('shopro/dispatch/store/recyclebin')"}
<div class="recycle-btn display-flex-c" @click="operation('recycle',null,null,'store')">
<i class="fa fa-recycle"></i>
回收站
</div>
{/if}
</div>
</el-tab-pane>{/if}
{if condition = "$auth->check('shopro/dispatch/selfetch/index')"}
<el-tab-pane label="到店/自提" name="selfetch">
<div class="display-flex-b">
<div class="display-flex">
<div class="custom-refresh display-flex-c" @click="getData">
<i class="el-icon-refresh"></i>
</div>
{if condition = "$auth->check('shopro/dispatch/selfetch/add')"}<div
class="create-btn display-flex-c" @click="operation('create',null,null,'selfetch')"><i
class="el-icon-plus"></i>新建模板</div>{/if}
</div>
{if condition = "$auth->check('shopro/dispatch/selfetch/recyclebin')"}
<div class="recycle-btn display-flex-c" @click="operation('recycle',null,null,'selfetch')">
<i class="fa fa-recycle"></i>
回收站
</div>
{/if}
</div>
</el-tab-pane>{/if}
{if condition = "$auth->check('shopro/dispatch/autosend/index')"}
<el-tab-pane label="自动发货" name="autosend">
<div class="display-flex-b">
<div class="display-flex">
<div class="custom-refresh display-flex-c" @click="getData">
<i class="el-icon-refresh"></i>
</div>
{if condition = "$auth->check('shopro/dispatch/autosend/add')"}<div
class="create-btn display-flex-c" @click="operation('create',null,null,'autosend')"><i
class="el-icon-plus"></i>新建模板</div>{/if}
</div>
{if condition = "$auth->check('shopro/dispatch/autosend/recyclebin')"}
<div class="recycle-btn display-flex-c" @click="operation('recycle',null,null,'autosend')">
<i class="fa fa-recycle"></i>
回收站
</div>
{/if}
</div>
</el-tab-pane>{/if}
</el-tabs>
</div>
<div v-if="activeName=='express'">
<div class="table-item" v-for="(item,index) in dispatchData" v-if="dispatchData.length>0">
<div class="table-item-header">
<div class="header-name">{{item.name}}</div>
<div class="display-flex">
<div class="header-time">
<span class="tip">最后编辑时间:</span>
<span>{{moment(item.createtime*1000).format("YYYY-MM-DD HH:mm:ss")}}</span>
</div>
{if condition = "$auth->check('shopro/dispatch/express/edit')"}
<div class="header-btn theme-color cursor-pointer"
@click.stop="handleCopyTpl(item.id)">复制</div>
<div class="header-btn theme-color cursor-pointer"
@click.stop="operation('edit',item.id,index,'express')">编辑</div>
{/if}
{if condition = "$auth->check('shopro/dispatch/express/del')"}
<div class="header-btn theme-delete-color cursor-pointer"
@click.stop="operation('delete',item.id,index,'express')">删除</div>
{/if}
</div>
</div>
<div class="display-flex" style="height: 40px;padding-left: 14px;border-top: 1px solid #F9F9F9;">
<div class="flex-1">可配送区域</div>
<div class="express-width">
<div v-if="item.express[0].type=='weight'">首重</div>
<div v-else>首件</div>
</div>
<div class="express-width">运费(元)</div>
<div class="express-width">
<div v-if="item.express[0].type=='weight'">续重</div>
<div v-else>续件</div>
</div>
<div class="express-width">续费(元)</div>
</div>
<div class="display-flex" v-for="it in item.express"
style="height: 50px;padding-left: 14px;border-top: 1px solid #F9F9F9;">
<div class="flex-1 ellipsis-item-2">{{it.area_text}}</div>
<div class="express-width">
{{it.first_num}}
</div>
<div class="express-width">{{it.first_price}}</div>
<div class="express-width">
{{it.additional_num}}
</div>
<div class="express-width">{{it.additional_price}}</div>
</div>
</div>
</div>
<div v-if="activeName=='store'">
<el-table :data="dispatchData" border style="width: 100%" :cell-class-name="tableCellClassName2"
:header-cell-class-name="tableCellClassName2" :row-class-name="tableRowClassName"
v-if="dispatchData.length>0">
<el-table-column prop="id" label="ID" min-width="60">
</el-table-column>
<el-table-column label="模板名称" min-width="140">
<template slot-scope="scope">
<div class="ellipsis-item">
{{scope.row.name}}
</div>
</template>
</el-table-column>
<el-table-column label="可配送门店" min-width="500">
<template slot-scope="scope">
<div class="ellipsis-item">
<span v-if="scope.row.store">
<span v-if="scope.row.store.store_ids.length>0">
部分门店<span class="shopro-status-other">({{scope.row.store.store_ids_text}})</span>
</span>
<span v-else>全部门店</span>
</span>
</div>
</template>
</el-table-column>
<el-table-column label="最后编辑时间" min-width="160">
<template slot-scope="scope">
<div>
{{moment(scope.row.updatetime*1000).format("YYYY-MM-DD HH:mm:ss")}}
</div>
</template>
</el-table-column>
<el-table-column label="操作" min-width="120">
<template slot-scope="scope">
<div class="display-flex opt-display-flex-b">
{if condition = "$auth->check('shopro/dispatch/store/edit')"}
<div class="table-edit-text" @click.stop="operation('edit',scope.row.id,null,'store')">编辑</div>
{/if}
{if condition = "$auth->check('shopro/dispatch/store/del')"}
<div class="table-delete-text" @click.stop="operation('delete',scope.row.id,null,'store')">删除
</div>
{/if}
</div>
</template>
</el-table-column>
</el-table>
</div>
<div v-if="activeName=='selfetch'">
<el-table :data="dispatchData" border style="width: 100%" :cell-class-name="tableCellClassName2"
:header-cell-class-name="tableCellClassName2" :row-class-name="tableRowClassName"
v-if="dispatchData.length>0">
<el-table-column prop="id" label="ID" min-width="60">
</el-table-column>
<el-table-column label="模板名称" min-width="140">
<template slot-scope="scope">
<div class="ellipsis-item">
{{scope.row.name}}
</div>
</template>
</el-table-column>
<el-table-column label="可自提门店" min-width="500">
<template slot-scope="scope">
<div class="ellipsis-item">
<span v-if="scope.row.selfetch">
<span v-if="scope.row.selfetch.store_ids.length>0">
部分门店<span class="shopro-status-other">({{scope.row.selfetch.store_ids_text}})</span>
</span>
<span v-else>全部门店</span>
</span>
</div>
</template>
</el-table-column>
<el-table-column label="最后编辑时间" min-width="160">
<template slot-scope="scope">
<div>
{{moment(scope.row.updatetime*1000).format("YYYY-MM-DD HH:mm:ss")}}
</div>
</template>
</el-table-column>
<el-table-column label="操作" min-width="120">
<template slot-scope="scope">
<div class="display-flex opt-display-flex-b">
{if condition = "$auth->check('shopro/dispatch/selfetch/edit')"}
<div class="table-edit-text" @click.stop="operation('edit',scope.row.id,null,'selfetch')">编辑
</div>
{/if}
{if condition = "$auth->check('shopro/dispatch/selfetch/del')"}
<div class="table-delete-text" @click.stop="operation('delete',scope.row.id,null,'selfetch')">删除
</div>
{/if}
</div>
</template>
</el-table-column>
</el-table>
</div>
<div v-if="activeName=='autosend'">
<el-table :data="dispatchData" border style="width: 100%" :cell-class-name="tableCellClassName2"
:header-cell-class-name="tableCellClassName2" :row-class-name="tableRowClassName"
v-if="dispatchData.length>0">
<el-table-column prop="id" label="ID" min-width="60">
</el-table-column>
<el-table-column label="模板名称" min-width="140">
<template slot-scope="scope">
<div class="ellipsis-item">
{{scope.row.name}}
</div>
</template>
</el-table-column>
<el-table-column label="自动发货内容" min-width="500">
<template slot-scope="scope">
<div class="ellipsis-item display-flex">
<div class="ellipsis-item" v-if="scope.row.autosend.type=='text'">
{{scope.row.autosend.content}}</div>
<div v-else class="ellipsis-item">
<template v-for="(item,index) in scope.row.autosend.content">
{{Object.keys(item)[0]}}:{{Object.values(item)[0]}}
<span style="margin-right: 6px;"
v-if="index!=scope.row.autosend.content.length-1">;</span>
</template>
</div>
</div>
</template>
</el-table-column>
<el-table-column label="最后编辑时间" min-width="160">
<template slot-scope="scope">
<div>
{{moment(scope.row.updatetime*1000).format("YYYY-MM-DD HH:mm:ss")}}
</div>
</template>
</el-table-column>
<el-table-column label="操作" min-width="120">
<template slot-scope="scope">
<div class="display-flex opt-display-flex-b">
{if condition = "$auth->check('shopro/dispatch/autosend/edit')"}
<div class="table-edit-text" @click.stop="operation('edit',scope.row.id,null,'autosend')">编辑
</div>
{/if}
{if condition = "$auth->check('shopro/dispatch/autosend/del')"}
<div class="table-delete-text" @click.stop="operation('delete',scope.row.id,null,'autosend')">删除
</div>
{/if}
</div>
</template>
</el-table-column>
</el-table>
</div>
<div v-if="isData" class="display-flex-c" style="height: 200px;">
暂无数据
</div>
<div class="pagination-container display-flex" v-if="dispatchData.length>0">
<el-pagination @size-change="pageSizeChange" @current-change="pageCurrentChange" :current-page="currentPage"
:page-sizes="[10, 20, 30, 40]" :page-size="10" layout="total, sizes, prev, pager, next, jumper"
:total="totalPage">
</el-pagination>
</div>
</div>

查看文件

@@ -0,0 +1,25 @@
<div class="panel panel-default panel-intro">
{:build_heading()}
<div class="panel-body">
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="one">
<div class="widget-body no-padding">
<div id="toolbar" class="toolbar">
{:build_toolbar('refresh')}
<a class="btn btn-info btn-multi btn-disabled disabled {:$auth->check('shopro/dispatch/dispatch/restore')?'':'hide'}" href="javascript:;" data-url="shopro/dispatch/dispatch/restore" data-action="restore"><i class="fa fa-rotate-left"></i> {:__('Restore')}</a>
<a class="btn btn-danger btn-multi btn-disabled disabled {:$auth->check('shopro/dispatch/dispatch/destroy')?'':'hide'}" href="javascript:;" data-url="shopro/dispatch/dispatch/destroy" data-action="destroy"><i class="fa fa-times"></i> {:__('Destroy')}</a>
<a class="btn btn-success btn-restoreall {:$auth->check('shopro/dispatch/dispatch/restore')?'':'hide'}" href="javascript:;" data-url="shopro/dispatch/dispatch/restore" title="{:__('Restore all')}"><i class="fa fa-rotate-left"></i> {:__('Restore all')}</a>
<a class="btn btn-danger btn-destroyall {:$auth->check('shopro/dispatch/dispatch/destroy')?'':'hide'}" href="javascript:;" data-url="shopro/dispatch/dispatch/destroy" title="{:__('Destroy all')}"><i class="fa fa-times"></i> {:__('Destroy all')}</a>
</div>
<table id="table" class="table table-striped table-bordered table-hover"
data-operate-restore="{:$auth->check('shopro/dispatch/dispatch/restore')}"
data-operate-destroy="{:$auth->check('shopro/dispatch/dispatch/destroy')}"
width="100%">
</table>
</div>
</div>
</div>
</div>
</div>

查看文件

@@ -0,0 +1,191 @@
<link rel="stylesheet" href="__CDN__/assets/addons/shopro/libs/element/element.css">
<link rel="stylesheet" href="__CDN__/assets/addons/shopro/libs/common.css">
<style>
#dispatchDetail {
background: #fff;
border-radius: 10px 10px 0px 0px;
height: calc(100vh - 66px);
color: #444;
font-weight: 500;
}
.demo-dispatchForm {
height: calc(100vh - 150px);
overflow-y: auto;
padding-right: 5px;
}
/* .dispatch-bodys: */
.demo-dispatchForm::-webkit-scrollbar {
width: 6px;
}
.demo-dispatchForm::-webkit-scrollbar-thumb {
width: 6px;
background: #e6e6e6;
height: 20px;
border-radius: 3px;
}
.detail-table {
overflow-y: auto;
color: #444;
margin-left: 15px;
border: 1px solid #E6E6E6;
border-bottom: none;
}
.detail-table-header {
border-bottom: 1px solid #E6E6E6;
display: flex;
height: 32px;
justify-content: space-around;
align-items: center;
padding-left: 18px;
background: #F9F9F9;
}
.custom-item-with {
width: 100px;
}
.express-table {
display: flex;
align-items: center;
height: 59px;
padding-left: 18px;
border-bottom: 1px solid #E6E6E6;
}
.custom-item-area {
flex: 1;
display: flex;
align-items: center;
justify-content: space-between;
}
.express-table .el-input,
.express-table .el-input .el-input__inner {
width: 80px;
}
.del-btn {
margin-right: 10px;
color: #FF5959;
cursor: pointer;
}
.add-btn {
border: 1px solid #7438D5;
border-radius: 4px;
color: #7438D5;
height: 32px;
width: 88px;
margin-left: 15px;
}
.add-btn i {
margin-right: 5px;
color: #7438D5;
}
.edit-btn {
margin: 0 12px;
color: #7438D5;
cursor: pointer;
}
.el-input,
.el-input .el-input__inner {
height: 34px;
line-height: 34px;
}
[v-cloak] {
display: none
}
</style>
<script src="__CDN__/assets/addons/shopro/libs/vue.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/element/element.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/moment.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/Sortable.min.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/vuedraggable.js"></script>
<div id="dispatchDetail" v-cloak>
<el-form :model="dispatchForm" ref="dispatchForm" :rules="rules" label-width="100px" class="demo-dispatchForm">
<div class="form-item-custom">
<el-form-item label="模板名称:" prop="name">
<el-input v-model="dispatchForm.name" placeholder="请输入模板名称"></el-input>
</el-form-item>
</div>
<div>
<el-form-item label="计价方式:" prop="type">
<el-radio-group v-model="dispatchForm.type">
<el-radio label="number">按件数</el-radio>
<el-radio label="weight">按重量</el-radio>
</el-radio-group>
</el-form-item>
<div class="detail-table">
<div class="detail-table-header">
<div style="flex: 1;">
可配送区域
</div>
<div class="custom-item-with">
{{dispatchForm.type=='weight'?'首重':'首件'}}
</div>
<div class="custom-item-with">
运费(元)
</div>
<div class="custom-item-with">
{{dispatchForm.type=='weight'?'续重':'续件'}}
</div>
<div class="custom-item-with">
续费(元)
</div>
<div style="width: 50px;"></div>
</div>
<div class="detail-table-body">
<draggable :list="dispatchForm.express" v-bind="$attrs" class="menu-item"
:options="{animation:1000}">
<div v-for="(item,index) in dispatchForm.express" class="express-table">
<div class="custom-item-area">
<div class="add-btn display-flex-c cursor-pointer" v-if="!item.area_text" @click="editArea(index)">
选择地址
</div>
<div class="ellipsis-item-2 flex-1" v-if="item.area_text">
{{item.area_text}}
</div>
<div class="edit-btn cursor-pointer" v-if="item.area_text" @click="editArea(index)">选择</div>
</div>
<div class="custom-item-with">
<el-input type="number" v-model="item.first_num"></el-input>
</div>
<div class="custom-item-with">
<el-input v-enter-number type="number" :step="0.1" v-model="item.first_price"></el-input>
</div>
<div class="custom-item-with">
<el-input type="number" v-model="item.additional_num"></el-input>
</div>
<div class="custom-item-with">
<el-input v-enter-number type="number" :step="0.1" v-model="item.additional_price"></el-input>
</div>
<div class="display-flex" style="width: 50px;">
<div class="del-btn cursor-pointer" @click="delArea(index)">删除</div>
<img src="/assets/addons/shopro/img/goods/move.png">
</div>
</div>
</draggable>
</div>
</div>
</div>
</el-form>
<div class="dispatch-items dispatch-footer">
<div class="add-btn display-flex-c cursor-pointer" @click="addExpress">
<i class="el-icon-plus"></i>添加
</div>
</div>
<div class="dialog-footer display-flex">
<div @click="dispatchSub" class="dialog-cancel-btn display-flex-c cursor-pointer">取消</div>
<div @click="dispatchSub('yes','dispatchForm')" class="dialog-define-btn display-flex-c cursor-pointer">确定
</div>
</div>
</div>

查看文件

@@ -0,0 +1,191 @@
<link rel="stylesheet" href="__CDN__/assets/addons/shopro/libs/element/element.css">
<link rel="stylesheet" href="__CDN__/assets/addons/shopro/libs/common.css">
<style>
#dispatchDetail {
background: #fff;
border-radius: 10px 10px 0px 0px;
height: calc(100vh - 66px);
color: #444;
font-weight: 500;
}
.demo-dispatchForm {
height: calc(100vh - 150px);
overflow-y: auto;
padding-right: 5px;
}
/* .dispatch-bodys: */
.demo-dispatchForm::-webkit-scrollbar {
width: 6px;
}
.demo-dispatchForm::-webkit-scrollbar-thumb {
width: 6px;
background: #e6e6e6;
height: 20px;
border-radius: 3px;
}
.detail-table {
overflow-y: auto;
color: #444;
margin-left: 15px;
border: 1px solid #E6E6E6;
border-bottom: none;
}
.detail-table-header {
border-bottom: 1px solid #E6E6E6;
display: flex;
height: 32px;
justify-content: space-around;
align-items: center;
padding-left: 18px;
background: #F9F9F9;
}
.custom-item-with {
width: 100px;
}
.express-table {
display: flex;
align-items: center;
height: 59px;
padding-left: 18px;
border-bottom: 1px solid #E6E6E6;
}
.custom-item-area {
flex: 1;
display: flex;
align-items: center;
justify-content: space-between;
}
.express-table .el-input,
.express-table .el-input .el-input__inner {
width: 80px;
}
.del-btn {
margin-right: 10px;
color: #FF5959;
cursor: pointer;
}
.add-btn {
border: 1px solid #7438D5;
border-radius: 4px;
color: #7438D5;
height: 32px;
width: 88px;
margin-left: 15px;
}
.add-btn i {
margin-right: 5px;
color: #7438D5;
}
.edit-btn {
margin: 0 12px;
color: #7438D5;
cursor: pointer;
}
.el-input,
.el-input .el-input__inner {
height: 34px;
line-height: 34px;
}
[v-cloak] {
display: none
}
</style>
<script src="__CDN__/assets/addons/shopro/libs/vue.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/element/element.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/moment.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/Sortable.min.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/vuedraggable.js"></script>
<div id="dispatchDetail" v-cloak>
<el-form :model="dispatchForm" ref="dispatchForm" :rules="rules" label-width="100px" class="demo-dispatchForm">
<div class="form-item-custom">
<el-form-item label="模板名称:" prop="name">
<el-input v-model="dispatchForm.name" placeholder="请输入模板名称"></el-input>
</el-form-item>
</div>
<div>
<el-form-item label="计价方式:" prop="type">
<el-radio-group v-model="dispatchForm.type">
<el-radio label="number">按件数</el-radio>
<el-radio label="weight">按重量</el-radio>
</el-radio-group>
</el-form-item>
<div class="detail-table">
<div class="detail-table-header">
<div style="flex: 1;">
可配送区域
</div>
<div class="custom-item-with">
{{dispatchForm.type=='weight'?'首重':'首件'}}
</div>
<div class="custom-item-with">
运费(元)
</div>
<div class="custom-item-with">
{{dispatchForm.type=='weight'?'续重':'续件'}}
</div>
<div class="custom-item-with">
续费(元)
</div>
<div style="width: 50px;"></div>
</div>
<div class="detail-table-body">
<draggable :list="dispatchForm.express" v-bind="$attrs" class="menu-item"
:options="{animation:1000}">
<div v-for="(item,index) in dispatchForm.express" class="express-table">
<div class="custom-item-area">
<div class="add-btn display-flex-c cursor-pointer" v-if="!item.area_text" @click="editArea(index)">
选择地址
</div>
<div class="ellipsis-item-2 flex-1" v-if="item.area_text">
{{item.area_text}}
</div>
<div class="edit-btn cursor-pointer" v-if="item.area_text" @click="editArea(index)">选择</div>
</div>
<div class="custom-item-with">
<el-input type="number" v-model="item.first_num"></el-input>
</div>
<div class="custom-item-with">
<el-input v-enter-number type="number" :step="0.1" v-model="item.first_price"></el-input>
</div>
<div class="custom-item-with">
<el-input type="number" v-model="item.additional_num"></el-input>
</div>
<div class="custom-item-with">
<el-input v-enter-number type="number" :step="0.1" v-model="item.additional_price"></el-input>
</div>
<div class="display-flex" style="width: 50px;">
<div class="del-btn cursor-pointer" @click="delArea(index)">删除</div>
<img src="/assets/addons/shopro/img/goods/move.png">
</div>
</div>
</draggable>
</div>
</div>
</div>
</el-form>
<div class="dispatch-items dispatch-footer">
<div class="add-btn display-flex-c cursor-pointer" @click="addExpress">
<i class="el-icon-plus"></i>添加
</div>
</div>
<div class="dialog-footer display-flex">
<div @click="dispatchSub" class="dialog-cancel-btn display-flex-c cursor-pointer">取消</div>
<div @click="dispatchSub('yes','dispatchForm')" class="dialog-define-btn display-flex-c cursor-pointer">确定
</div>
</div>
</div>

查看文件

@@ -0,0 +1,25 @@
<div class="panel panel-default panel-intro">
{:build_heading()}
<div class="panel-body">
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="one">
<div class="widget-body no-padding">
<div id="toolbar" class="toolbar">
{:build_toolbar('refresh')}
<a class="btn btn-info btn-multi btn-disabled disabled {:$auth->check('shopro/dispatch/express/restore')?'':'hide'}" href="javascript:;" data-url="shopro/dispatch/express/restore" data-action="restore"><i class="fa fa-rotate-left"></i> {:__('Restore')}</a>
<a class="btn btn-danger btn-multi btn-disabled disabled {:$auth->check('shopro/dispatch/express/destroy')?'':'hide'}" href="javascript:;" data-url="shopro/dispatch/express/destroy" data-action="destroy"><i class="fa fa-times"></i> {:__('Destroy')}</a>
<a class="btn btn-success btn-restoreall {:$auth->check('shopro/dispatch/express/restore')?'':'hide'}" href="javascript:;" data-url="shopro/dispatch/express/restore" title="{:__('Restore all')}"><i class="fa fa-rotate-left"></i> {:__('Restore all')}</a>
<a class="btn btn-danger btn-destroyall {:$auth->check('shopro/dispatch/express/destroy')?'':'hide'}" href="javascript:;" data-url="shopro/dispatch/express/destroy" title="{:__('Destroy all')}"><i class="fa fa-times"></i> {:__('Destroy all')}</a>
</div>
<table id="table" class="table table-striped table-bordered table-hover"
data-operate-restore="{:$auth->check('shopro/dispatch/express/restore')}"
data-operate-destroy="{:$auth->check('shopro/dispatch/express/destroy')}"
width="100%">
</table>
</div>
</div>
</div>
</div>
</div>

查看文件

@@ -0,0 +1,117 @@
<link rel="stylesheet" href="__CDN__/assets/addons/shopro/libs/element/element.css">
<link rel="stylesheet" href="__CDN__/assets/addons/shopro/libs/common.css">
<style>
#dispatchDetail {
background: #fff;
border-radius: 10px 10px 0px 0px;
color: #444;
font-weight: 500;
}
.demo-dispatchForm {
height: calc(100vh - 110px);
overflow-y: auto;
padding-right: 25px;
}
.demo-dispatchForm::-webkit-scrollbar {
width: 6px;
}
.demo-dispatchForm::-webkit-scrollbar-thumb {
width: 6px;
background: #e6e6e6;
height: 20px;
border-radius: 3px;
}
.pagination,
.el-pagination {
margin: 0;
}
.el-pagination__sizes {
display: none !important;
}
.question-tip {
font-size: 24px;
color: #ccc;
margin-left: 18px;
margin-top: 10px;
}
[v-cloak] {
display: none
}
</style>
<script src="__CDN__/assets/addons/shopro/libs/vue.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/element/element.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/moment.js"></script>
<div id="dispatchDetail" v-cloak>
<el-form :model="dispatchForm" ref="dispatchForm" :rules="rules" label-width="100px" class="demo-dispatchForm">
<el-form-item label="模板名称:" prop="name">
<el-input v-model="dispatchForm.name" placeholder="请输入模板名称"></el-input>
</el-form-item>
<el-form-item label="有效时间:" prop="expire_type">
<div class="display-flex" style="height: 40px;">
<el-radio-group v-model="dispatchForm.expire_type">
<el-radio label="day">有效天数</el-radio>
<el-radio label="time">截止日期</el-radio>
</el-radio-group>
<el-popover placement="bottom" width="230" trigger="hover">
<div class="popover-container">
<p>有效天数:购买日起有效的天数</p>
<p>截止日期:截止使用日期</p>
</div>
<i class="question-tip el-icon-question" slot="reference"></i>
</el-popover>
</div>
</el-form-item>
<el-form-item label="有效天数:" prop="expire_day" v-if="dispatchForm.expire_type=='day'">
<el-input v-model="dispatchForm.expire_day" placeholder="请输入有效天数"></el-input>
</el-form-item>
<el-form-item label="截止日期:" prop="expire_time" v-if="dispatchForm.expire_type=='time'">
<el-date-picker value-format="yyyy-MM-dd HH:mm:ss" format="yyyy-MM-dd HH:mm:ss"
v-model="dispatchForm.expire_time" type="datetime" placeholder="选择日期时间">
</el-date-picker>
</el-form-item>
<el-form-item label="自提门店:">
<div class="display-flex" style="justify-content: space-between;">
<el-radio-group v-model="self_user_type">
<el-radio label="all">所有门店</el-radio>
<el-radio label="part">部分门店</el-radio>
</el-radio-group>
<div class="form-tip theme-color cursor-pointer" @click="createStore">新增门店</div>
</div>
<div style="flex: 1;" v-if="self_user_type=='part'">
<el-select style="position: relative;width: 100%;" v-model="dispatchForm.store_ids" multiple filterable
placeholder="" :filter-method="dataFilter">
<el-option v-for="item in storeOptions" :key="item.name" :label="item.name" :value="item.id">
<div class="display-flex" style="justify-content: space-around;">
<span>{{ item.id }}</span>
<div class="ellipsis-1" style="width: 80px;">{{ item.name }}</div>
<div class="ellipsis-1" style="width: 280px;">
{{item.province_name}}{{item.city_name}}{{item.area_name}}{{item.address}}
</div>
</div>
</el-option>
<div class="text-center display-flex"
style="position: sticky;background: #fff;height:32px;top:0;z-index:1;justify-content: center;">
<el-pagination class="pagination" :page-sizes="[6]" :current-page="currentPage"
:total="totalPage" layout="total, sizes, prev, pager,next, jumper" pager-count="5"
@size-change.stop="pageSizeChange" @current-change="pageCurrentChange" />
</el-pagination>
<div class="theme-color cursor-pointer" style="margin-left: 8px;" @click="getstoreOptions">
跳转
</div>
</div>
</el-select>
</div>
</el-form-item>
</el-form>
<div class="dialog-footer display-flex">
<div @click="dispatchSub" class="dialog-cancel-btn display-flex-c cursor-pointer">取消</div>
<div @click="dispatchSub('yes','dispatchForm')" class="dialog-define-btn display-flex-c cursor-pointer">确定</div>
</div>
</div>

查看文件

@@ -0,0 +1,114 @@
<link rel="stylesheet" href="__CDN__/assets/addons/shopro/libs/element/element.css">
<link rel="stylesheet" href="__CDN__/assets/addons/shopro/libs/common.css">
<style>
#dispatchDetail {
background: #fff;
border-radius: 10px 10px 0px 0px;
color: #444;
font-weight: 500;
}
.demo-dispatchForm {
height: calc(100vh - 110px);
overflow-y: auto;
padding-right: 25px;
}
.demo-dispatchForm::-webkit-scrollbar {
width: 6px;
}
.demo-dispatchForm::-webkit-scrollbar-thumb {
width: 6px;
background: #e6e6e6;
height: 20px;
border-radius: 3px;
}
.pagination,
.el-pagination {
margin: 0;
}
.el-pagination__sizes {
display: none !important;
}
.question-tip {
font-size: 24px;
color: #ccc;
margin-left: 18px;
margin-top: 10px;
}
[v-cloak] {
display: none
}
</style>
<script src="__CDN__/assets/addons/shopro/libs/vue.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/element/element.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/moment.js"></script>
<div id="dispatchDetail" v-cloak>
<el-form :model="dispatchForm" ref="dispatchForm" :rules="rules" label-width="100px" class="demo-dispatchForm">
<el-form-item label="模板名称:" prop="name">
<el-input v-model="dispatchForm.name" placeholder="请输入模板名称"></el-input>
</el-form-item>
<el-form-item label="有效时间:" prop="expire_type">
<div class="display-flex" style="height: 40px;">
<el-radio-group v-model="dispatchForm.expire_type">
<el-radio label="day">有效天数</el-radio>
<el-radio label="time">截止日期</el-radio>
</el-radio-group>
<el-popover placement="bottom" width="230" trigger="hover">
<div class="popover-container">
<p>有效天数:购买日起有效的天数</p>
<p>截止日期:截止使用日期</p>
</div>
<i class="question-tip el-icon-question" slot="reference"></i>
</el-popover>
</div>
</el-form-item>
<el-form-item label="有效天数:" prop="expire_day" v-if="dispatchForm.expire_type=='day'">
<el-input v-model="dispatchForm.expire_day" placeholder="请输入有效天数"></el-input>
</el-form-item>
<el-form-item label="截止日期:" prop="expire_time" v-if="dispatchForm.expire_type=='time'">
<el-date-picker value-format="yyyy-MM-dd HH:mm:ss" format="yyyy-MM-dd HH:mm:ss"
v-model="dispatchForm.expire_time" type="datetime" placeholder="选择日期时间">
</el-date-picker>
</el-form-item>
<el-form-item label="自提门店:">
<div class="display-flex" style="justify-content: space-between;">
<el-radio-group v-model="self_user_type">
<el-radio label="all">所有门店</el-radio>
<el-radio label="part">部分门店</el-radio>
</el-radio-group>
<div class="form-tip theme-color cursor-pointer" @click="createStore">新增门店</div>
</div>
<div style="flex: 1;" v-if="self_user_type=='part'">
<el-select style="position: relative;width: 100%;" v-model="dispatchForm.store_ids" multiple filterable
placeholder="" :filter-method="dataFilter">
<el-option v-for="item in storeOptions" :key="item.name" :label="item.name" :value="item.id">
<div class="display-flex" style="justify-content: space-around;">
<span>{{ item.id }}</span>
<div class="ellipsis-1" style="width: 80px;">{{ item.name }}</div>
<div class="ellipsis-1" style="width: 280px;">
{{item.province_name}}{{item.city_name}}{{item.area_name}}{{item.address}}
</div>
</div>
</el-option>
<div class="text-center display-flex"
style="position: sticky;background: #fff;height:32px;top:0;z-index:1;justify-content: center;">
<el-pagination class="pagination" :page-sizes="[6]" :current-page="currentPage"
:total="totalPage" layout="total, sizes, prev, pager,next, jumper" pager-count="5"
@size-change.stop="pageSizeChange" @current-change="pageCurrentChange" />
</el-pagination>
<div class="theme-color cursor-pointer" style="margin-left: 8px;" @click="getstoreOptions">
跳转
</div>
</div>
</el-select>
</div>
</el-form-item>
</el-form>
<div class="dialog-footer display-flex">
<div @click="dispatchSub" class="dialog-cancel-btn display-flex-c cursor-pointer">取消</div>
<div @click="dispatchSub('yes','dispatchForm')" class="dialog-define-btn display-flex-c cursor-pointer">确定</div>
</div>
</div>

查看文件

@@ -0,0 +1,25 @@
<div class="panel panel-default panel-intro">
{:build_heading()}
<div class="panel-body">
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="one">
<div class="widget-body no-padding">
<div id="toolbar" class="toolbar">
{:build_toolbar('refresh')}
<a class="btn btn-info btn-multi btn-disabled disabled {:$auth->check('shopro/dispatch/selfetch/restore')?'':'hide'}" href="javascript:;" data-url="shopro/dispatch/selfetch/restore" data-action="restore"><i class="fa fa-rotate-left"></i> {:__('Restore')}</a>
<a class="btn btn-danger btn-multi btn-disabled disabled {:$auth->check('shopro/dispatch/selfetch/destroy')?'':'hide'}" href="javascript:;" data-url="shopro/dispatch/selfetch/destroy" data-action="destroy"><i class="fa fa-times"></i> {:__('Destroy')}</a>
<a class="btn btn-success btn-restoreall {:$auth->check('shopro/dispatch/selfetch/restore')?'':'hide'}" href="javascript:;" data-url="shopro/dispatch/selfetch/restore" title="{:__('Restore all')}"><i class="fa fa-rotate-left"></i> {:__('Restore all')}</a>
<a class="btn btn-danger btn-destroyall {:$auth->check('shopro/dispatch/selfetch/destroy')?'':'hide'}" href="javascript:;" data-url="shopro/dispatch/selfetch/destroy" title="{:__('Destroy all')}"><i class="fa fa-times"></i> {:__('Destroy all')}</a>
</div>
<table id="table" class="table table-striped table-bordered table-hover"
data-operate-restore="{:$auth->check('shopro/dispatch/selfetch/restore')}"
data-operate-destroy="{:$auth->check('shopro/dispatch/selfetch/destroy')}"
width="100%">
</table>
</div>
</div>
</div>
</div>
</div>

查看文件

@@ -0,0 +1,87 @@
<link rel="stylesheet" href="__CDN__/assets/addons/shopro/libs/element/element.css">
<link rel="stylesheet" href="__CDN__/assets/addons/shopro/libs/common.css">
<style>
#dispatchDetail {
background: #fff;
border-radius: 10px 10px 0px 0px;
color: #444;
font-weight: 500;
}
.demo-dispatchForm {
height: calc(100vh - 110px);
overflow-y: auto;
padding-right: 25px;
}
.demo-dispatchForm::-webkit-scrollbar {
width: 6px;
}
.demo-dispatchForm::-webkit-scrollbar-thumb {
width: 6px;
background: #e6e6e6;
height: 20px;
border-radius: 3px;
}
.pagination,
.el-pagination {
margin: 0;
}
.el-pagination__sizes {
display: none !important;
}
[v-cloak] {
display: none
}
</style>
<script src="__CDN__/assets/addons/shopro/libs/vue.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/element/element.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/moment.js"></script>
<div id="dispatchDetail" v-cloak>
<el-form :model="dispatchForm" ref="dispatchForm" :rules="rules" label-width="100px" class="demo-dispatchForm">
<el-form-item label="模板名称:" prop="name">
<el-input v-model="dispatchForm.name" placeholder="请输入模板名称"></el-input>
</el-form-item>
<el-form-item label="配送门店:">
<div class="display-flex" style="justify-content: space-between;">
<el-radio-group v-model="self_user_type">
<el-radio label="all">所有门店</el-radio>
<el-radio label="part">部分门店</el-radio>
</el-radio-group>
<div class="form-tip theme-color cursor-pointer" @click="createStore">新增门店</div>
</div>
<div style="flex: 1;" v-if="self_user_type=='part'">
<el-select style="position: relative;width: 100%;" v-model="dispatchForm.store_ids" multiple filterable
placeholder="" :filter-method="dataFilter">
<el-option v-for="item in storeOptions" :key="item.name" :label="item.name" :value="item.id">
<div class="display-flex" style="justify-content: space-around;">
<span>{{ item.id }}</span>
<div class="ellipsis-1" style="width: 80px;">{{ item.name }}</div>
<div class="ellipsis-1" style="width: 280px;">
{{item.province_name}}{{item.city_name}}{{item.area_name}}{{item.address}}
</div>
</div>
</el-option>
<div class="text-center display-flex"
style="position: sticky;background: #fff;height:32px;top:0;z-index:1;justify-content: center;">
<el-pagination class="pagination" :page-sizes="[6]" :current-page="currentPage"
:total="totalPage" layout="total, sizes, prev, pager,next, jumper" pager-count="5"
@size-change.stop="pageSizeChange" @current-change="pageCurrentChange" />
</el-pagination>
<div class="theme-color cursor-pointer" style="margin-left: 8px;" @click="getstoreOptions">
跳转
</div>
</div>
</el-select>
</div>
</el-form-item>
</el-form>
<div class="dialog-footer display-flex">
<div @click="dispatchSub" class="dialog-cancel-btn display-flex-c cursor-pointer">取消</div>
<div @click="dispatchSub('yes','dispatchForm')" class="dialog-define-btn display-flex-c cursor-pointer">确定</div>
</div>
</div>

查看文件

@@ -0,0 +1,87 @@
<link rel="stylesheet" href="__CDN__/assets/addons/shopro/libs/element/element.css">
<link rel="stylesheet" href="__CDN__/assets/addons/shopro/libs/common.css">
<style>
#dispatchDetail {
background: #fff;
border-radius: 10px 10px 0px 0px;
color: #444;
font-weight: 500;
}
.demo-dispatchForm {
height: calc(100vh - 110px);
overflow-y: auto;
padding-right: 25px;
}
.demo-dispatchForm::-webkit-scrollbar {
width: 6px;
}
.demo-dispatchForm::-webkit-scrollbar-thumb {
width: 6px;
background: #e6e6e6;
height: 20px;
border-radius: 3px;
}
.pagination,
.el-pagination {
margin: 0;
}
.el-pagination__sizes {
display: none !important;
}
[v-cloak] {
display: none
}
</style>
<script src="__CDN__/assets/addons/shopro/libs/vue.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/element/element.js"></script>
<script src="__CDN__/assets/addons/shopro/libs/moment.js"></script>
<div id="dispatchDetail" v-cloak>
<el-form :model="dispatchForm" ref="dispatchForm" :rules="rules" label-width="100px" class="demo-dispatchForm">
<el-form-item label="模板名称:" prop="name">
<el-input v-model="dispatchForm.name" placeholder="请输入模板名称"></el-input>
</el-form-item>
<el-form-item label="配送门店:">
<div class="display-flex" style="justify-content: space-between;">
<el-radio-group v-model="self_user_type">
<el-radio label="all">所有门店</el-radio>
<el-radio label="part">部分门店</el-radio>
</el-radio-group>
<div class="form-tip theme-color cursor-pointer" @click="createStore">新增门店</div>
</div>
<div style="flex: 1;" v-if="self_user_type=='part'">
<el-select style="position: relative;width: 100%;" v-model="dispatchForm.store_ids" multiple filterable
placeholder="" :filter-method="dataFilter">
<el-option v-for="item in storeOptions" :key="item.name" :label="item.name" :value="item.id">
<div class="display-flex" style="justify-content: space-around;">
<span>{{ item.id }}</span>
<div class="ellipsis-1" style="width: 80px;">{{ item.name }}</div>
<div class="ellipsis-1" style="width: 280px;">
{{item.province_name}}{{item.city_name}}{{item.area_name}}{{item.address}}
</div>
</div>
</el-option>
<div class="text-center display-flex"
style="position: sticky;background: #fff;height:32px;top:0;z-index:1;justify-content: center;">
<el-pagination class="pagination" :page-sizes="[6]" :current-page="currentPage"
:total="totalPage" layout="total, sizes, prev, pager,next, jumper" pager-count="5"
@size-change.stop="pageSizeChange" @current-change="pageCurrentChange" />
</el-pagination>
<div class="theme-color cursor-pointer" style="margin-left: 8px;" @click="getstoreOptions">
跳转
</div>
</div>
</el-select>
</div>
</el-form-item>
</el-form>
<div class="dialog-footer display-flex">
<div @click="dispatchSub" class="dialog-cancel-btn display-flex-c cursor-pointer">取消</div>
<div @click="dispatchSub('yes','dispatchForm')" class="dialog-define-btn display-flex-c cursor-pointer">确定</div>
</div>
</div>

查看文件

@@ -0,0 +1,25 @@
<div class="panel panel-default panel-intro">
{:build_heading()}
<div class="panel-body">
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="one">
<div class="widget-body no-padding">
<div id="toolbar" class="toolbar">
{:build_toolbar('refresh')}
<a class="btn btn-info btn-multi btn-disabled disabled {:$auth->check('shopro/dispatch/store/restore')?'':'hide'}" href="javascript:;" data-url="shopro/dispatch/store/restore" data-action="restore"><i class="fa fa-rotate-left"></i> {:__('Restore')}</a>
<a class="btn btn-danger btn-multi btn-disabled disabled {:$auth->check('shopro/dispatch/store/destroy')?'':'hide'}" href="javascript:;" data-url="shopro/dispatch/store/destroy" data-action="destroy"><i class="fa fa-times"></i> {:__('Destroy')}</a>
<a class="btn btn-success btn-restoreall {:$auth->check('shopro/dispatch/store/restore')?'':'hide'}" href="javascript:;" data-url="shopro/dispatch/store/restore" title="{:__('Restore all')}"><i class="fa fa-rotate-left"></i> {:__('Restore all')}</a>
<a class="btn btn-danger btn-destroyall {:$auth->check('shopro/dispatch/store/destroy')?'':'hide'}" href="javascript:;" data-url="shopro/dispatch/store/destroy" title="{:__('Destroy all')}"><i class="fa fa-times"></i> {:__('Destroy all')}</a>
</div>
<table id="table" class="table table-striped table-bordered table-hover"
data-operate-restore="{:$auth->check('shopro/dispatch/store/restore')}"
data-operate-destroy="{:$auth->check('shopro/dispatch/store/destroy')}"
width="100%">
</table>
</div>
</div>
</div>
</div>
</div>