guoyujia 1 anno fa
parent
commit
c5909c0c57
2 ha cambiato i file con 6 aggiunte e 4 eliminazioni
  1. 4 3
      pages/batchReporting/index.vue
  2. 2 1
      pages/productionPlan/index.vue

+ 4 - 3
pages/batchReporting/index.vue

@@ -3,7 +3,7 @@
 		<view class="box-bg uni-row">
 			<view class="input-view uni-row">
 				<uni-icons class="input-uni-icon" type="search" size="18" color="#999" />
-				<input class="nav-bar-input" type="text" v-model="keywords" placeholder="输入搜索关键词" />
+				<input class="nav-bar-input" type="text" v-model="keywords" placeholder="请输入批次号" />
 			</view>
 			<view class="search" @click="handleSearch">
 				搜索
@@ -176,7 +176,8 @@
 		});
 		let reqData = {
 			productionPlanDetailId: id,
-			deptId: store.curDeptDetails.deptId
+			deptId: store.curDeptDetails.deptId,
+			keywords:keywords.value
 		};
 
 		getDayWorkList(reqData).then(res => {
@@ -203,7 +204,7 @@
 	}
 
 	function handleSearch() {
-		
+		init(store.planDetails.id);
 	}
 
 	function handleToreportingForWork(item) {

+ 2 - 1
pages/productionPlan/index.vue

@@ -102,7 +102,8 @@
 			title: '加载中'
 		});
 		getPlanDetailsList({
-			deptId: Number(store.curDeptDetails.deptId)
+			deptId: Number(store.curDeptDetails.deptId),
+			keywords:keywords.value
 		}).then(res => {
 			if(res.code == 200){
 				listData.value = res.data;