Commit 79b4e958 by chenwq

弹窗改版-关联门店,多选商品,选择标签,sop,订单,专区管理

1 parent 1f5d9c98
<!-- 关联门店弹窗 --> <!-- 关联门店弹窗 -->
<template> <template>
<glsx-dialog title="关联门店" :isVisible.sync="relateStoreVisible" width="70%" btnOkLabel="关联" @confirmDialog="handleRelateStoreConfirm" @closeDialog="handleRelateStoreClose" class="relateStore"> <GLDialog bigTitle="关联门店" mode="big" :visible.sync="relateStoreVisible" okText="关联" @onOk="handleRelateStoreConfirm" @onCancel="handleRelateStoreClose" class="relateStore">
<slot></slot> <slot></slot>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="merchantName" label="商户名称" align="center"></el-table-column> <el-table-column prop="merchantName" label="商户名称" align="center"></el-table-column>
<el-table-column label="删除" align="center" width="50"> <el-table-column label="删除" align="center" width="70">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button style="padding: 0;" class="el-icon-delete" @click="handleDelete(scope.row)" type="text"></el-button> <el-button style="padding: 0;" class="el-icon-delete" @click="handleDelete(scope.row)" type="text"></el-button>
</template> </template>
...@@ -31,11 +31,10 @@ ...@@ -31,11 +31,10 @@
</el-table> </el-table>
</el-col> </el-col>
</el-row> </el-row>
</glsx-dialog> </GLDialog>
</template> </template>
<script> <script>
import glsxDialog from '@/components/glsx-dialog'
export default { export default {
name: 'relateStoreDialog', name: 'relateStoreDialog',
data() { data() {
...@@ -83,10 +82,6 @@ export default { ...@@ -83,10 +82,6 @@ export default {
// } // }
}, },
components: {
glsxDialog
},
mounted() { mounted() {
this.selectedData = this.storeSelected this.selectedData = this.storeSelected
this.selectedData.forEach(item => { this.selectedData.forEach(item => {
......
<!-- 选择商品弹窗 --> <!-- 选择商品弹窗 -->
<template> <template>
<glsx-dialog class="muti-pro" title="选择商品" :isVisible.sync="isMutiSelectVisible" width="70%" @confirmDialog="handleMutiSelectConfirm" @closeDialog="handleMutiSelectClose"> <GLDialog class="muti-pro" bigTitle="选择商品" mode="big" :visible.sync="isMutiSelectVisible" @onOk="handleMutiSelectConfirm" @onCancel="handleMutiSelectClose">
<div class="flex"> <div class="flex">
<el-form :inline="true" :model="searchForm"> <el-form :inline="true" :model="searchForm">
<el-form-item label="商品名称:"> <el-form-item label="商品名称:">
...@@ -17,12 +17,11 @@ ...@@ -17,12 +17,11 @@
<img class="m-t-10 img-60" :src="scope.scope.coverImgUrl" /> <img class="m-t-10 img-60" :src="scope.scope.coverImgUrl" />
</span> </span>
</GLTable> </GLTable>
</glsx-dialog> </GLDialog>
</template> </template>
<script> <script>
// import { getGoodsList } from '@/api/modules/common' // import { getGoodsList } from '@/api/modules/common'
import glsxDialog from '@/components/glsx-dialog'
export default { export default {
name: 'selectMutiProDialog', name: 'selectMutiProDialog',
data() { data() {
...@@ -84,10 +83,6 @@ export default { ...@@ -84,10 +83,6 @@ export default {
} }
}, },
components: {
glsxDialog
},
mounted() { mounted() {
this.getList({}, true) this.getList({}, true)
}, },
......
<!-- 选择商品弹窗 --> <!-- 选择商品弹窗 -->
<template> <template>
<glsx-dialog class="muti-pro" title="选择商品" :isVisible.sync="isMutiSelectVisible" :btnOkLabel="productList.length ? '确定' : '创建商品'" width="70%" @confirmDialog="handleMutiSelectConfirm" @closeDialog="handleMutiSelectClose" v-loading="loading"> <GLDialog class="muti-pro" bigTitle="选择商品" mode="big" :visible.sync="isMutiSelectVisible" :okText="productList.length ? '确定' : '创建商品'" @onOk="handleMutiSelectConfirm" @onCancel="handleMutiSelectClose" v-loading="loading">
<div class="noproDiv" v-show="!productList.length && fnCallBack"> <div class="noproDiv" v-show="!productList.length && fnCallBack">
<img src="@/assets/noPro.png" /> <img src="@/assets/noPro.png" />
<p class="noproP">系统暂无已创建的商品</p> <p class="noproP">系统暂无已创建的商品</p>
...@@ -13,19 +13,17 @@ ...@@ -13,19 +13,17 @@
</span> </span>
</GLTable> </GLTable>
</div> </div>
</glsx-dialog> </GLDialog>
</template> </template>
<script> <script>
// import { getGoodsList } from '@/api/modules/common' // import { getGoodsList } from '@/api/modules/common'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import glsxDialog from '@/components/glsx-dialog'
export default { export default {
name: 'selectMutiProDialog', name: 'selectMutiProDialog',
data() { data() {
return { return {
// 表格组件 // 表格组件
// getListApi: this.$apis.common.getGoodsListApi,
userInfo: {}, userInfo: {},
productList: [], productList: [],
fnCallBack: false, fnCallBack: false,
...@@ -77,10 +75,6 @@ export default { ...@@ -77,10 +75,6 @@ export default {
} }
}, },
components: {
glsxDialog
},
mounted() { mounted() {
this.userInfo = this.$globalState.session this.userInfo = this.$globalState.session
this.getList({}, true) this.getList({}, true)
......
<template> <template>
<div class="tag-main select-tag"> <div class="tag-main select-tag">
<el-dialog title="选择标签" :visible.sync="dialogVisible" width="70%" :before-close="handleClose"> <GLDialog bigTitle="选择标签" mode="big" :visible.sync="dialogVisible" :before-close="handleClose">
<div class="tag-panel"> <div class="tag-panel">
<div class="tag-panel-select"> <div class="tag-panel-select">
<div class="tag-title">预选标签</div> <div class="tag-title">预选标签</div>
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
</el-button> </el-button>
<el-button size="small" type="primary" @click="handleSelect">确 定</el-button> <el-button size="small" type="primary" @click="handleSelect">确 定</el-button>
</span> </span>
</el-dialog> </GLDialog>
</div> </div>
</template> </template>
......
...@@ -174,7 +174,7 @@ export default { ...@@ -174,7 +174,7 @@ export default {
this.$messageBox.confirm('是否删除该商品?', '删除', { this.$messageBox.confirm('是否删除该商品?', '删除', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
// type: 'error', type: 'warning',
callback: action => { callback: action => {
if (action == 'confirm') { if (action == 'confirm') {
var idx = this.editForm.goodsRefList.findIndex(item => item.id == obj.scope.id) var idx = this.editForm.goodsRefList.findIndex(item => item.id == obj.scope.id)
...@@ -220,12 +220,13 @@ export default { ...@@ -220,12 +220,13 @@ export default {
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', { this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning',
customClass: 'gl-message-box'
}) })
.then(() => { .then(() => {
this.cancelJump() this.cancelJump()
}) })
.catch(() => {}) .catch(() => { })
} else { } else {
this.cancelJump() this.cancelJump()
} }
......
...@@ -51,15 +51,15 @@ ...@@ -51,15 +51,15 @@
<!-- 表格区域 - 全部订单/售后订单 - end --> <!-- 表格区域 - 全部订单/售后订单 - end -->
</div> </div>
<!-- 快递信息 --> <!-- 快递信息 -->
<glsx-dialog v-if="isExpressVisible" title="输入快递信息" :isVisible.sync="isExpressVisible" @confirmDialog="handleExpressConfirm" @closeDialog="handleExpressClose"> <GLDialog v-if="isExpressVisible" title="输入快递信息" mode="small" okText="确定" cancelText="取消" :visible.sync="isExpressVisible" @onOk="handleExpressConfirm" @onCancel="handleExpressClose">
<glsx-combi-form ref="expressRef" :isEdit="isEdit" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="expressForm" :formData="expressFormData" :formRules="expressRules"></glsx-combi-form> <glsx-combi-form class="small-content" ref="expressRef" labelWidth="100px" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="expressForm" :formData="expressFormData" :formRules="expressRules"></glsx-combi-form>
</glsx-dialog> </GLDialog>
<!-- 订单核销 --> <!-- 订单核销 -->
<glsx-dialog v-if="isWriteOffVisible" title="订单核销(请确保用户到店后核销,避免引起不必要问题)" :isVisible.sync="isWriteOffVisible" @confirmDialog="handleWriteOffConfirm" @closeDialog="handleWriteOffClose"> <GLDialog v-if="isWriteOffVisible" title="订单核销(请确保用户到店后核销,避免引起不必要问题)" mode="small" okText="确定" cancelText="取消" :visible.sync="isWriteOffVisible" @onOk="handleWriteOffConfirm" @onCancel="handleWriteOffClose">
<glsx-combi-form ref="writeOffRef" :isEdit="isEdit" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="writeOffForm" :formData="writeOffFormData" :formRules="writeOffRules"></glsx-combi-form> <glsx-combi-form class="small-content" ref="writeOffRef" labelWidth="100px" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="writeOffForm" :formData="writeOffFormData" :formRules="writeOffRules"></glsx-combi-form>
</glsx-dialog> </GLDialog>
<!-- 退款审核 --> <!-- 退款审核 -->
<glsx-dialog v-if="isExamineVisible" title="退款审核" width="50%" :isVisible.sync="isExamineVisible" @confirmDialog="handleExamineConfirm" @closeDialog="handleExamineClose"> <GLDialog v-if="isExamineVisible" bigTitle="退款审核" mode="big" :visible.sync="isExamineVisible" @onOk="handleExamineConfirm" @onCancel="handleExamineClose">
<el-form label-width="144px"> <el-form label-width="144px">
<el-form-item label="售后类型"> <el-form-item label="售后类型">
<span>{{ orderInfo.refundTypeName }}</span> <span>{{ orderInfo.refundTypeName }}</span>
...@@ -88,9 +88,9 @@ ...@@ -88,9 +88,9 @@
<glsx-combi-form ref="examineRef" :isEdit="isEdit" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="examineForm" :formData="examineFormData" :formRules="examineRules"></glsx-combi-form> <glsx-combi-form ref="examineRef" :isEdit="isEdit" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="examineForm" :formData="examineFormData" :formRules="examineRules"></glsx-combi-form>
</template> </template>
</el-form> </el-form>
</glsx-dialog> </GLDialog>
<!-- 确认收货 --> <!-- 确认收货 -->
<glsx-dialog v-if="isReceivingVisible" title="确认收货" width="50%" :isVisible.sync="isReceivingVisible" @confirmDialog="handleReceivingConfirm" @closeDialog="handleReceivingClose"> <GLDialog v-if="isReceivingVisible" bigTitle="确认收货" mode="big" :visible.sync="isReceivingVisible" @onOk="handleReceivingConfirm" @onCancel="handleReceivingClose">
<el-form label-width="140px"> <el-form label-width="140px">
<el-form-item label="售后类型"> <el-form-item label="售后类型">
<span>{{ orderInfo.refundTypeName }}</span> <span>{{ orderInfo.refundTypeName }}</span>
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
<span>{{ orderInfo.deliveryNumber }}</span> <span>{{ orderInfo.deliveryNumber }}</span>
</el-form-item> </el-form-item>
</el-form> </el-form>
</glsx-dialog> </GLDialog>
</div> </div>
</template> </template>
......
<template> <template>
<div class="select-crowd"> <div class="select-crowd">
<el-dialog title="选择人群" :visible="dialogVisible" width="1080px" :before-close="handleClose" :close-on-click-modal="false"> <GLDialog bigTitle="选择人群" mode="big" :visible.sync="dialogVisible" :before-close="handleClose" :close-on-click-modal="false" @onOk="handleConfirm" @onCancel="handleClose">
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData"> <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData">
<span slot="footer"> <span slot="footer">
<el-button :size="size" type="primary" @click="getList">查询</el-button> <el-button :size="size" type="primary" @click="getList">查询</el-button>
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
<el-radio v-model="selectedCrowdId" :label="scope.scope.crowdId" @click.native="handleClick(scope.scope)"></el-radio> <el-radio v-model="selectedCrowdId" :label="scope.scope.crowdId" @click.native="handleClick(scope.scope)"></el-radio>
</div> </div>
</GLTable> </GLTable>
<span slot="footer" class="dialog-footer"> <!-- <span slot="footer" class="dialog-footer">
<el-button size="small" @click="handleClose">取 消</el-button> <el-button size="small" @click="handleClose">取 消</el-button>
<el-button size="small" type="primary" @click="handleConfirm">确 定</el-button> <el-button size="small" type="primary" @click="handleConfirm">确 定</el-button>
</span> </span> -->
</el-dialog> </GLDialog>
</div> </div>
</template> </template>
......
<template> <template>
<div class="select-cutomer"> <div class="select-cutomer">
<el-dialog title="选择客户" :visible="dialogVisible" width="1080px" :before-close="handleClose" :close-on-click-modal="false"> <GLDialog bigTitle="选择客户" mode="big" :visible="dialogVisible" :before-close="handleClose" :close-on-click-modal="false">
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData"> <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData">
<span slot="footer"> <span slot="footer">
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<el-button size="small" @click="handleClose">取 消</el-button> <el-button size="small" @click="handleClose">取 消</el-button>
<el-button size="small" type="primary" @click="handleConfirm">确 定</el-button> <el-button size="small" type="primary" @click="handleConfirm">确 定</el-button>
</span> </span>
</el-dialog> </GLDialog>
</div> </div>
</template> </template>
......
...@@ -178,7 +178,7 @@ export default { ...@@ -178,7 +178,7 @@ export default {
this.$messageBox.confirm('是否删除该门店?', '删除', { this.$messageBox.confirm('是否删除该门店?', '删除', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
// type: 'error', type: 'warning',
callback: action => { callback: action => {
if (action == 'confirm') { if (action == 'confirm') {
var idx = this.editForm.merchantList.findIndex(item => item.merchantNo == obj.scope.merchantNo) var idx = this.editForm.merchantList.findIndex(item => item.merchantNo == obj.scope.merchantNo)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!