feat: 初始化雄戈商城服务端代码与Webhook自动部署配置
这个提交包含在:
@@ -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>
|
||||
在新工单中引用
屏蔽一个用户