Compare commits

...

3 Commits

Author SHA1 Message Date
7535ec8c45 修改店铺信息校验 2024-05-15 17:34:09 +08:00
1154079537
ee5f03d3e8 核销码 2024-05-14 17:58:54 +08:00
1154079537
58728db898 布局 2024-04-29 14:41:19 +08:00
9 changed files with 47 additions and 34 deletions

View File

@ -59,7 +59,7 @@
"jszip": "3.2.1", "jszip": "3.2.1",
"moment": "^2.29.1", "moment": "^2.29.1",
"monaco-editor": "^0.19.3", "monaco-editor": "^0.19.3",
"node-sass": "^4.13.1", "node-sass": "^4.14.1",
"normalize.css": "7.0.0", "normalize.css": "7.0.0",
"nprogress": "0.2.0", "nprogress": "0.2.0",
"path-to-regexp": "2.4.0", "path-to-regexp": "2.4.0",
@ -67,9 +67,11 @@
"printjs": "^1.1.0", "printjs": "^1.1.0",
"qiniu-js": "^2.5.5", "qiniu-js": "^2.5.5",
"qrcodejs2": "0.0.2", "qrcodejs2": "0.0.2",
"regenerator-runtime": "^0.14.1",
"screenfull": "4.2.0", "screenfull": "4.2.0",
"showdown": "1.9.0", "showdown": "1.9.0",
"sortablejs": "^1.15.0", "sortablejs": "^1.15.0",
"svg-baker-runtime": "^1.4.7",
"v-viewer": "^1.5.1", "v-viewer": "^1.5.1",
"view-design": "^4.3.2", "view-design": "^4.3.2",
"vue": "2.6.10", "vue": "2.6.10",
@ -78,6 +80,7 @@
"vue-qr": "^2.5.0", "vue-qr": "^2.5.0",
"vue-router": "3.0.2", "vue-router": "3.0.2",
"vue-splitpane": "1.0.4", "vue-splitpane": "1.0.4",
"vue-style-loader": "^4.1.3",
"vue-ueditor-wrap": "^2.4.1", "vue-ueditor-wrap": "^2.4.1",
"vuedraggable": "2.20.0", "vuedraggable": "2.20.0",
"vuex": "3.1.0", "vuex": "3.1.0",

View File

@ -367,6 +367,8 @@ export default {
}, },
mounted() { mounted() {
this.initLayoutConfig(); this.initLayoutConfig();
this.onSetLayout("defaults");
}, },
methods: { methods: {
// //
@ -441,7 +443,6 @@ export default {
themeSelect["--prev-bg-menuBarColor"] = "#fff"; themeSelect["--prev-bg-menuBarColor"] = "#fff";
themeSelect["--prev-MenuActiveColor"] = "#fff"; themeSelect["--prev-MenuActiveColor"] = "#fff";
if (val == "theme-1") { if (val == "theme-1") {
console.log("1111111");
themeSelect["--prev-bg-menu-hover-ba-color"] = "#4073FA"; themeSelect["--prev-bg-menu-hover-ba-color"] = "#4073FA";
themeSelect["--prev-bg-menuBar"] = "#282c34"; themeSelect["--prev-bg-menuBar"] = "#282c34";
themeSelect["--prev-border-color-lighter"] = "#282c34"; themeSelect["--prev-border-color-lighter"] = "#282c34";

View File

@ -154,6 +154,9 @@ export default {
if (Local.get("themeConfigPrev")) { if (Local.get("themeConfigPrev")) {
this.initI18n(); this.initI18n();
this.initComponentSize(); this.initComponentSize();
} }
getBaseInfo() getBaseInfo()
.then(res => { .then(res => {

View File

@ -11,7 +11,7 @@ module.exports = {
// 路由前缀 // 路由前缀
roterPre: '/merchant', roterPre: '/merchant',
// 路由标题 // 路由标题
title: '加载中...', title: '惠农生活 - 商户端',
/** /**
* @type {boolean} true | false * @type {boolean} true | false
* @description Whether show the settings right-panel * @description Whether show the settings right-panel

View File

@ -426,8 +426,6 @@ export default {
this.$store.commit('user/SET_WHOLESALE', resData.wholesale) this.$store.commit('user/SET_WHOLESALE', resData.wholesale)
if ( if (
!resData.mer_avatar || !resData.mer_avatar ||
!resData.mer_banner ||
!resData.mer_info ||
!resData.mer_address !resData.mer_address
) { ) {
this.$alert( this.$alert(

View File

@ -5,7 +5,8 @@
<el-form label-width="80px" size="small"> <el-form label-width="80px" size="small">
<el-form-item v-if="!isColum" label="核销码:"> <el-form-item v-if="!isColum" label="核销码:">
<el-input v-model="code" placeholder="请输入核销码" class="selWidth" size="small" <el-input v-model="code" placeholder="请输入核销码" class="selWidth" size="small"
@keyup.enter.native="searchOrder" /> @keyup.enter.native="searchOrder"
/>
<el-button size="small" type="primary" @click="searchOrder">搜索</el-button> <el-button size="small" type="primary" @click="searchOrder">搜索</el-button>
</el-form-item> </el-form-item>
<el-form-item label="订单号:"> <el-form-item label="订单号:">
@ -14,15 +15,17 @@
</el-form> </el-form>
<div style="margin-top: 20px;"> <div style="margin-top: 20px;">
<el-table ref="multipleSelection" :data="productList" tooltip-effect="dark" size="mini" <el-table ref="multipleSelection" :data="productList" tooltip-effect="dark" size="mini"
:row-key="(row) => { return row.product_id }" @selection-change="handleSelectionChange" :row-key="(row) => { return row.product_id }" @selection-change="handleSelectionChange"
:header-cell-style="{ background: '#F0F5FF' }"> :header-cell-style="{ background: '#F0F5FF' }"
<el-table-column align="center" type="selection" :selectable="judgeSelect" min-width="50" /> >
<el-table-column align="center" type="selection" :selectable="judgeSelect" min-width="50"/>
<el-table-column align="center" label="商品信息" min-width="200"> <el-table-column align="center" label="商品信息" min-width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="acea-row" style="align-items: center;"> <div class="acea-row" style="align-items: center;">
<div class="demo-image__preview"> <div class="demo-image__preview">
<el-image :src="scope.row.cart_info.product.image" <el-image :src="scope.row.cart_info.product.image"
:preview-src-list="[scope.row.cart_info.product.image]" /> :preview-src-list="[scope.row.cart_info.product.image]"
/>
</div> </div>
<span class="priceBox" style="width: 150px;">{{ scope.row.cart_info.product.store_name }}</span> <span class="priceBox" style="width: 150px;">{{ scope.row.cart_info.product.store_name }}</span>
</div> </div>
@ -43,10 +46,10 @@
<span class="priceBox">待核销</span> <span class="priceBox">待核销</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" prop="product_num" label="总数" min-width="80" /> <el-table-column align="center" prop="product_num" label="总数" min-width="80"/>
<el-table-column label="核销码" align="center" min-width="180"> <el-table-column label="核销码" align="center" min-width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="verify_code" class="priceBox" /> <el-input v-model="scope.row.verify_code" class="priceBox"/>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="待核销数量" align="center" min-width="120"> <!-- <el-table-column label="待核销数量" align="center" min-width="120">
@ -69,7 +72,6 @@
<el-button type="primary" @click="handleCancellation" size="small">核销</el-button> <el-button type="primary" @click="handleCancellation" size="small">核销</el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@ -92,8 +94,8 @@ export default {
dialogVisible: false, dialogVisible: false,
loading: false, loading: false,
code: '', code: '',
order_id: "", order_id: '',
orderData: "", orderData: '',
multipleSelection: [], multipleSelection: [],
ids: [], ids: [],
verify_code: '', // verify_code: '', //
@ -115,21 +117,26 @@ export default {
// if (!this.code) { // if (!this.code) {
// return this.$message.warning('!') // return this.$message.warning('!')
// } // }
if (!this.verify_code) { // if (!this.verify_code) {
return this.$message.warning('输入核销码!') // return this.$message.warning('!')
} // }
if (!this.multipleSelection.length) { if (!this.multipleSelection.length) {
return this.$message.warning('请选择核销商品!') return this.$message.warning('请选择核销商品!')
} }
const data = [] const data = []
let verify_code = ''
this.multipleSelection.map((item) => { this.multipleSelection.map((item) => {
if (item.refund_num > 0) { if (item.refund_num > 0) {
data.push({ id: item.order_product_id, num: item.refund_num }) data.push({ id: item.order_product_id, num: item.refund_num })
if (!verify_code) verify_code = item.verify_code
} }
});
if (!verify_code) {
return this.$message.warning('输入核销码!')
}
}) goCancellationApi(this.order_id, { verify_code: verify_code, data: data }).then(res => {
goCancellationApi(this.order_id, { verify_code: this.verify_code, data: data }).then(res => {
this.$message.success(res.message) this.$message.success(res.message)
this.dialogVisible = false this.dialogVisible = false
this.$emit('getList', '') this.$emit('getList', '')
@ -138,10 +145,11 @@ export default {
}) })
}, },
productDetails(code, type = false) { productDetails(code, type = false) {
if (type) { this.code = code } if (type) {
else { this.code = code
this.code = ""; } else {
this.verify_code = ""; this.code = ''
this.verify_code = ''
} }
this.loading = true this.loading = true
orderCancellationApi(code).then(res => { orderCancellationApi(code).then(res => {
@ -160,8 +168,8 @@ export default {
}, },
resetData() { resetData() {
this.orderData = {}, this.orderData = {},
this.productList = []; this.productList = []
this.code = "" this.code = ''
}, },
// //
handleSelectionChange(val) { handleSelectionChange(val) {

View File

@ -24,10 +24,10 @@ module.exports = {
* In most cases please use '/' !!! * In most cases please use '/' !!!
* Detail: https://cli.vuejs.org/config/#publicpath * Detail: https://cli.vuejs.org/config/#publicpath
*/ */
publicPath: '/', publicPath: '/merchant',
outputDir: 'dist', outputDir: 'dist',
assetsDir: 'mer', assetsDir: 'static',
indexPath: process.env.NODE_ENV === 'development' ? 'index.html' : 'mer.html', indexPath: 'index.html',
lintOnSave: false, lintOnSave: false,
// lintOnSave: process.env.NODE_ENV === 'development', // lintOnSave: process.env.NODE_ENV === 'development',
productionSourceMap: false, productionSourceMap: false,