对商城的进一步适配

This commit is contained in:
2022-05-09 17:18:05 +08:00
parent 05fdb1d9e7
commit 5c2091ddce
51 changed files with 267 additions and 98 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ import picUpload from '@/components/pic-upload'
import MaterialList from '@/components/material'
// crud交由presenter持有
const defaultCrud = CRUD({ title: '分类', url: 'api/yxStoreCategory', sort: 'sort,desc', crudMethod: { ...crudDept }})
const defaultCrud = CRUD({ title: '分类', url: 'bxg/api/yxStoreCategory', sort: 'sort,desc', crudMethod: { ...crudDept }})
const defaultForm = { id: null, cateName: null, pid: 0, isShow: 1 , sort: 1}
export default {
name: 'Dept',
+1 -1
View File
@@ -736,7 +736,7 @@ export default {
type: 'success'
});
setTimeout(() => {
this.$router.push({ path: '/shop/goods' });
this.$router.push({ path: '/bxg/goods' });
}, 500);
}).catch(res => {
// this.$message({
+2 -2
View File
@@ -130,10 +130,10 @@ export default {
},
methods: {
toAddURL(){
this.$router.push({ path: '/shop/goodsAdd' })
this.$router.push({ path: '/bxg/shop/goodsAdd' })
},
toUpdateURL(id){
this.$router.push({ path: '/shop/goodsEdit/'+id })
this.$router.push({ path: '/bxg/shop/goodsEdit/'+id })
},
dataFilter(val){
this.value=val
+1 -1
View File
@@ -48,7 +48,7 @@
<el-table-column v-if="checkPermission(['admin','YXSTOREPRODUCT_ALL','YXSTOREPRODUCT_EDIT','YXSTOREPRODUCT_DELETE'])" label="操作" width="150px" align="center">
<template slot-scope="scope">
<el-button v-permission="['admin','YXSTOREPRODUCT_ALL','YXSTOREPRODUCT_EDIT']" size="mini" type="primary" icon="el-icon-edit">
<router-link :to="'/shop/goodsEdit/'+scope.row.id">
<router-link :to="'/bxg/shop/goodsEdit/'+scope.row.id">
编辑
</router-link>
</el-button>
+3 -1
View File
@@ -401,7 +401,9 @@ import eRemark from './remark'
components: {eForm, eRefund, editOrder, eRemark},
data() {
return {
orderStatus:null,
orderStatus:{
cacheKeyCreateOrder:""
},
isAdd: false,
id: null,
order: {
+4 -3
View File
@@ -89,7 +89,7 @@
<script>
import { add, edit, express,
getNowOrderStatus } from '@/api/bxg/yxStoreOrder'
import {formatTimeTwo, parseTime} from '@/utils/index'
import {formatTimeTwo} from '@/utils/index'
export default {
props: {
isAdd: {
@@ -99,7 +99,9 @@ export default {
},
data() {
return {
orderStatus:null,
orderStatus:{
cacheKeyCreateOrder:""
},
loading: false, dialog: false, expressInfo: [],
form: {
id: '',
@@ -168,7 +170,6 @@ export default {
}
},
methods: {
parseTime,
cancel() {
this.dialog = false
},
+1 -1
View File
@@ -339,7 +339,7 @@
},
methods: {
toDetailURL(id){
this.$router.push({ path: '/order/detail/'+id })
this.$router.push({ path: '/bxg/order/detail/'+id })
},
formatTime,
checkPermission,
+1 -2
View File
@@ -55,7 +55,7 @@
</template>
<script>
import { formatTime, parseTime, formatTimeTwo } from '@/utils/index'
import { formatTime, formatTimeTwo } from '@/utils/index'
export default {
props: {
printList: {
@@ -77,7 +77,6 @@ export default {
},
methods: {
formatTime,
parseTime,
formatTimeTwo,
cancel() {
this.dialog = false
@@ -55,7 +55,7 @@ import MaterialList from "@/components/material";
import add from './form'
// crud交由presenter持有
const defaultCrud = CRUD({ title: '运费模板', url: 'api/yxShippingTemplates', sort: 'id,desc', crudMethod: { ...crudYxShippingTemplates }})
const defaultCrud = CRUD({ title: '运费模板', url: 'bxg/api/yxShippingTemplates', sort: 'id,desc', crudMethod: { ...crudYxShippingTemplates }})
const defaultForm = { id: null, name: null, type: null, regionInfo: null, appoint: null, appointInfo: null, createTime: null, updateTime: null, isDel: null, sort: null }
export default {
name: 'YxShippingTemplates',
+1 -2
View File
@@ -109,10 +109,9 @@
import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination'
import MaterialList from '@/components/material'
import { parseTime } from '@/utils/index'
// crud交由presenter持有
const defaultCrud = CRUD({ title: '门店', url: 'api/yxSystemStore', sort: 'id,desc', crudMethod: { ...crudYxSystemStore }})
const defaultCrud = CRUD({ title: '门店', url: 'bxg/api/yxSystemStore', sort: 'id,desc', crudMethod: { ...crudYxSystemStore }})
const defaultForm = { id: null, name: null, introduction: null, phone: null, address: null, detailedAddress: null, image: null, latitude:
null, longitude: null, validTime: null, dayTime: null, addTime: null, isShow: 1, imageArr: [], validTimeArr: [], dayTimeArr: [new Date(),new Date()] }
export default {
@@ -47,7 +47,7 @@ import MaterialList from "@/components/material"
import add from './form'
// crud交由presenter持有
const defaultCrud = CRUD({ title: 'sku规则', url: 'api/yxStoreProductRule', sort: 'id,desc', crudMethod: { ...crudYxStoreProductRule }})
const defaultCrud = CRUD({ title: 'sku规则', url: 'bxg/api/yxStoreProductRule', sort: 'id,desc', crudMethod: { ...crudYxStoreProductRule }})
const defaultForm = { id: null, ruleName: null, ruleValue: null, createTime: null, updateTime: null, isDel: null }
export default {
name: 'YxStoreProductRule',
+1 -1
View File
@@ -98,7 +98,7 @@ import crudYxSystemStore from '@/api/bxg/yxSystemStore'
import { formatTimeTwo } from '@/utils/index'
// crud交由presenter持有
const defaultCrud = CRUD({ title: '门店店员', url: 'api/yxSystemStoreStaff', sort: 'id,desc', crudMethod: { ...crudYxSystemStoreStaff }})
const defaultCrud = CRUD({ title: '门店店员', url: 'bxg/api/yxSystemStoreStaff', sort: 'id,desc', crudMethod: { ...crudYxSystemStoreStaff }})
const defaultForm = { user: {uid: null,nickname: null,avatar: null}, id: null, uid: null, avatar: null, storeId: null, staffName: null, phone: null, verifyStatus: 1, status: null, addTime: null, nickname: null, storeName: null }
export default {
name: 'YxSystemStoreStaff',
-2
View File
@@ -60,7 +60,6 @@
<script>
import { add, edit, getSpread } from '@/api/bxg/yxUser'
import { parseTime } from '@/utils/index'
export default {
props: {
// isAdd: {
@@ -91,7 +90,6 @@ export default {
handleClick(tab, event) {
this.spread(this.form.uid)
},
parseTime,
cancel() {
this.dialog = false
},