shish 2 ani în urmă
părinte
comite
89312c4180
2 a modificat fișierele cu 15 adăugiri și 13 ștergeri
  1. 13 9
      ghs/src/service/item/index.js
  2. 2 4
      ghs/src/views/order/add.vue

+ 13 - 9
ghs/src/service/item/index.js

@@ -2,26 +2,30 @@ import { BaseService, Service } from '@/cool';
 
 
 @Service('item')
 @Service('item')
 export class ItemService extends BaseService {
 export class ItemService extends BaseService {
-    /**
-	 * 新增花材 b
-	 */
+
+	getItemList(data) {
+		return this.request({
+			url: '/get-item-list',
+			params: data
+		});
+	}
+
 	itemAdd(data) {
 	itemAdd(data) {
 		return this.request({
 		return this.request({
 			url: '/add',
 			url: '/add',
 			method: 'POST',
 			method: 'POST',
 			data: data
 			data: data
 		});
 		});
-  }
-    /**
-	 * 批量新增花材 b
-	 */
-    batchAdd(data) {
+	}
+
+	batchAdd(data) {
 		return this.request({
 		return this.request({
 			url: '/batch-add',
 			url: '/batch-add',
 			method: 'POST',
 			method: 'POST',
 			data: data
 			data: data
 		});
 		});
-  }
+	}
+
 	getDetail(data) {
 	getDetail(data) {
 		return this.request({
 		return this.request({
 			url: '/detail',
 			url: '/detail',

+ 2 - 4
ghs/src/views/order/add.vue

@@ -200,9 +200,9 @@ export default {
       small:null,//小单位(支)
       small:null,//小单位(支)
       totalMoney:0,//总价
       totalMoney:0,//总价
       modifyPrice:0,//实际收款
       modifyPrice:0,//实际收款
-      allList:'',//所有-可搜索数据
+      allList:'',
       seekVal:'',//搜索值
       seekVal:'',//搜索值
-      seekOldVal:'',//旧-搜索值(上一次搜索值
+      seekOldVal:'',//上一次搜索值
       seekListIndex:0,
       seekListIndex:0,
       seekList:[],//搜索展示的列表
       seekList:[],//搜索展示的列表
       tableDataIndex:0,
       tableDataIndex:0,
@@ -237,7 +237,6 @@ export default {
         if(self.isAccounts){
         if(self.isAccounts){
           self.isAccounts = false
           self.isAccounts = false
           self.createOrder();
           self.createOrder();
-          console.log('ctrl+enter')
         }
         }
       }
       }
       if(e && e.key && e.key.toLowerCase() =='c' && e.ctrlKey ){
       if(e && e.key && e.key.toLowerCase() =='c' && e.ctrlKey ){
@@ -415,7 +414,6 @@ export default {
       let small = this.small;
       let small = this.small;
       big==null?Number(0):big;
       big==null?Number(0):big;
       small==null?Number(0):small;
       small==null?Number(0):small;
-      console.log(big,small)
       if(big<=0 && small<=0){
       if(big<=0 && small<=0){
         this.$message({message: '请先输入数量',type: 'warning'});
         this.$message({message: '请先输入数量',type: 'warning'});
         return;
         return;