소스 검색

产品和花材

shish 2 년 전
부모
커밋
b80669de77
4개의 변경된 파일30개의 추가작업 그리고 8개의 파일을 삭제
  1. 1 1
      pt/src/mock/userInfo.js
  2. 1 1
      pt/src/views/item-cat-relate/list.vue
  3. 1 1
      pt/src/views/item-cat/list.vue
  4. 27 5
      pt/src/views/item/list.vue

+ 1 - 1
pt/src/mock/userInfo.js

@@ -185,7 +185,7 @@ let menu = {
 		{id: '830',parentId: '8',name: '基础分类',type: 1,icon: 'icongongzuotai',orderNum: 4,router: '/item-cat/list',viewPath: 'views/item-cat/list.vue',keepAlive: 1},
 		{id: '7',parentId: null,name: '套餐',type: 0,icon: 'icongongzuotai',orderNum: 7,router: '/saas/manage/list',viewPath: 'saas/manage/list',keepAlive: 1},
 		{id: '701',parentId: '7',name: '套餐列表',type: 1,icon: 'icongongzuotai',orderNum: 7,router: '/saas/manage/package',viewPath: 'saas/manage/package',keepAlive: 1},
-		{id: '701',parentId: '7',name: '权限',type: 1,icon: 'icongongzuotai',orderNum: 7,router: '/saas/manage/auth',viewPath: 'saas/manage/auth',keepAlive: 1},
+		{id: '701',parentId: '7',name: '权限',type: 1,icon: 'icongongzuotai',orderNum: 7,router: '/views/system/user',viewPath: 'views/system/user',keepAlive: 1},
 
 	]
 };

+ 1 - 1
pt/src/views/item-cat-relate/list.vue

@@ -64,7 +64,7 @@ export default {
 			tabIndex: '0',
 			tabsData: [
 				{
-					text: '平台花材列表',
+					text: '基础花材',
 					key: '0',
 				},
 			],

+ 1 - 1
pt/src/views/item-cat/list.vue

@@ -51,7 +51,7 @@ export default {
 			sortLink: '',
 			operateData: {},
 			tabIndex: '0',
-			tabsData: [ { text: '花材分类(供)', key: '0' } ],
+			tabsData: [ { text: '基础分类', key: '0' } ],
 			selects: {},
 			sort: {
 				status: false

+ 27 - 5
pt/src/views/item/list.vue

@@ -52,7 +52,7 @@
 				</div>
 			</template>
 
-			<template #slot-add-goods-btn>
+			<template #slot-add-item-btn>
 				<el-button type="primary" size="mini" @click="replaceBtnFn(0)">添加</el-button>
 			</template>
 
@@ -63,6 +63,15 @@
 				</el-radio-group>
 			</template>
 
+			<template #slot-more-do-btn>
+				<el-dropdown size="medium" split-button type="primary" @click="setCp" @command="doMore">
+				产品归类
+				<el-dropdown-menu slot="dropdown">
+					<el-dropdown-item command="delItem">全部删除</el-dropdown-item>
+				</el-dropdown-menu>
+				</el-dropdown>
+			</template>
+
 		</x-crud>
 
 		<el-dialog :title="`${currentItemId == 0 ? '添加' : '修改'}花材`" :visible.sync="addDialog" :close-on-click-modal="false" width="600px" >
@@ -239,6 +248,19 @@ export default {
 	},
 	computed: {},
 	methods: {
+		setCp(){
+			if (this.$util.isEmpty(this.selects.ids)) {
+				this.$message.error('请选择花材')
+				return false
+			}
+		},
+		doMore(c){
+			if (this.$util.isEmpty(this.selects.ids)) {
+				this.$message.error('请选择花材')
+				return false
+			}
+			this.$message.success(c)
+		},
     	changeCpClassStyle(e){
 			this.cpClassStyle = e
 			this.app.refresh({ classId: this.classId,cpId:this.cpId,cpClassStyle:this.cpClassStyle })
@@ -420,13 +442,13 @@ export default {
 						},
 						{
 							prop: 'stockWarning',
-							label: '库存预警',
+							label: '库存预警',
 							align: 'center',
 							'min-width': 100,
 						},
 						{
 							prop: 'weight',
-							label: '重量(公斤)',
+							label: '重量',
 							align: 'center',
 							'min-width': 100,
 						},
@@ -480,9 +502,9 @@ export default {
 				})
 				.set('layout', [
 					['slot-tabs'],
-					['slot-cpClassStyle','slot-cp-class','slot-item-class','search-key','flex1', 'refresh-btn'],
+					['slot-cpClassStyle','slot-cp-class','slot-item-class','search-key','flex1','slot-add-item-btn', 'refresh-btn'],
 					['data-table'],
-					['flex1', 'pagination'],
+					['slot-more-do-btn','flex1', 'pagination'],
 				])
 				.done();
 			app.refresh({ classId: this.classId,cpId:this.cpId,cpClassStyle:this.cpClassStyle })