ソースを参照

关于单位名称的修改

shish 5 年 前
コミット
70c69105c3

+ 1 - 1
ghs/src/service/item/index.js

@@ -1,6 +1,6 @@
 import { BaseService, Service } from '@/cool';
 
-@Service('item-class')
+@Service('item')
 export class ItemService extends BaseService {
 
 }

+ 20 - 4
ghs/src/views/item/list.vue

@@ -96,6 +96,10 @@ export default {
 	},
 	computed: {
 	},
+	created() {
+		console.log(88888888888888888888)
+		console.log(this.$route.query)
+	},
 	methods: {
 		handleClick(tab, e) {
 			this.app.refresh({ type: this.tabIndex });
@@ -111,14 +115,26 @@ export default {
 							align: 'center'
 						},
 						{
-							prop: 'name',
-							label: '标题',
+							prop: 'itemName',
+							label: '名称',
 							align: 'center',
 							'min-width': 180
 						},
 						{
-							prop: 'num',
-							label: '花材数量',
+							prop: 'stockWarning',
+							label: '库存预警',
+							align: 'center',
+							'min-width': 100
+						},
+						{
+							prop: 'cost',
+							label: '成本价',
+							align: 'center',
+							'min-width': 100
+						},
+						{
+							prop: 'addPrice',
+							label: '单位加价',
 							align: 'center',
 							'min-width': 100
 						},

+ 2 - 2
ghsApp/src/components/app-flower-sel.vue

@@ -29,8 +29,8 @@
 							</view>
 							<view class="item-info">
 								<view class="item-name"> {{ item.name }}</view>
-								<view class="item-weight">{{ item.unitWeight }}斤/扎</view>
-								<view class="item-price"> ¥{{ item.unitCost }}/扎</view></view
+								<view class="item-weight">{{ item.weight }}斤/扎</view>
+								<view class="item-price"> ¥{{ item.cost }}/扎</view></view
 							>
 
 							<view class="item-tag" v-if="hasSelect(item)">

+ 11 - 11
ghsApp/src/pagesStorehouse/flower/category.vue

@@ -87,7 +87,7 @@ export default {
 					width: 130,
 					color: "info",
 					align: "center",
-					dataIndex: "unitCost",
+					dataIndex: "cost",
 					custom: "cost"
 				},
 				{
@@ -95,7 +95,7 @@ export default {
 					width: 130,
 					color: "info",
 					align: "center",
-					dataIndex: "unitAddPrice",
+					dataIndex: "addPrice",
 					custom: "price"
 				}
 			]
@@ -149,9 +149,9 @@ export default {
 				let params = {
 					id: item.id,
 					stockWarning: item.stockWarning,
-					unitWeight: item.unitWeight,
-					unitCost: item.unitCost,
-					unitAddPrice: item.unitAddPrice,
+					weight: item.weight,
+					cost: item.cost,
+					addPrice: item.addPrice,
 					inTurn: ++item.inTurn
 				};
 				let api = updateFlowerApi;
@@ -170,9 +170,9 @@ export default {
 				let params = {
 					id: item.id,
 					stockWarning: item.stockWarning,
-					unitWeight: item.unitWeight,
-					unitCost: item.unitCost,
-					unitAddPrice: item.unitAddPrice,
+					weight: item.weight,
+					cost: item.cost,
+					addPrice: item.addPrice,
 					inTurn: --item.inTurn
 				};
 				let api = updateFlowerApi;
@@ -217,9 +217,9 @@ export default {
 				let params = {
 					id: item.id,
 					stockWarning: item.stockWarning,
-					unitWeight: item.unitWeight,
-					unitCost: item.unitCost,
-					unitAddPrice: item.unitAddPrice
+					weight: item.weight,
+					cost: item.cost,
+					addPrice: item.addPrice
 				};
 				params[key] = value;
 				updateFlowerApi(params)

+ 2 - 2
hdApp/src/components/app-flower-sel.vue

@@ -29,8 +29,8 @@
 							</view>
 							<view class="item-info">
 								<view class="item-name"> {{ item.name }}</view>
-								<view class="item-weight">{{ item.unitWeight }}斤/扎</view>
-								<view class="item-price"> ¥{{ item.unitCost }}/扎</view></view
+								<view class="item-weight">{{ item.weight }}斤/扎</view>
+								<view class="item-price"> ¥{{ item.cost }}/扎</view></view
 							>
 
 							<view class="item-tag" v-if="hasSelect(item)">

+ 11 - 11
hdApp/src/pagesStorehouse/flower/category.vue

@@ -112,7 +112,7 @@ export default {
 					width: 130,
 					color: "info",
 					align: "center",
-					dataIndex: "unitCost",
+					dataIndex: "cost",
 					custom: "cost"
 				},
 				{
@@ -120,7 +120,7 @@ export default {
 					width: 130,
 					color: "info",
 					align: "center",
-					dataIndex: "unitAddPrice",
+					dataIndex: "addPrice",
 					custom: "price"
 				},
 				{
@@ -179,9 +179,9 @@ export default {
 				let params = {
 					id: item.id,
 					stockWarning: item.stockWarning,
-					unitWeight: item.unitWeight,
-					unitCost: item.unitCost,
-					unitAddPrice: item.unitAddPrice,
+					weight: item.weight,
+					cost: item.cost,
+					addPrice: item.addPrice,
 					inTurn: ++item.inTurn
 				};
 				let api = updateFlowerApi;
@@ -200,9 +200,9 @@ export default {
 				let params = {
 					id: item.id,
 					stockWarning: item.stockWarning,
-					unitWeight: item.unitWeight,
-					unitCost: item.unitCost,
-					unitAddPrice: item.unitAddPrice,
+					weight: item.weight,
+					cost: item.cost,
+					addPrice: item.addPrice,
 					inTurn: --item.inTurn
 				};
 				let api = updateFlowerApi;
@@ -247,9 +247,9 @@ export default {
 				let params = {
 					id: item.id,
 					stockWarning: item.stockWarning,
-					unitWeight: item.unitWeight,
-					unitCost: item.unitCost,
-					unitAddPrice: item.unitAddPrice
+					weight: item.weight,
+					cost: item.cost,
+					addPrice: item.addPrice
 				};
 				params[key] = value;
 				updateFlowerApi(params)