|
@@ -38,8 +38,6 @@
|
|
|
<text class="label">下序</text>
|
|
|
<text class="label right">{{item['process']}}</text>
|
|
|
</view> -->
|
|
|
-
|
|
|
-
|
|
|
<view class="item-info uni-row">
|
|
|
<text class="label">当前序</text>
|
|
|
<text class="label right">{{item['process'].processAlias}}</text>
|
|
@@ -70,7 +68,7 @@
|
|
|
<button class='bottom-btn right-btn' type="primary" @click="handleContinue">继续扫码</button>
|
|
|
</view>
|
|
|
<dialog-lotReporting ref="lotReporting" :getList="init" @scan="handleAdd"></dialog-lotReporting>
|
|
|
- <dialog-Search ref="searchRef"></dialog-Search>
|
|
|
+ <dialog-Search ref="searchRef" @search="refreshSearch"></dialog-Search>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -105,6 +103,7 @@
|
|
|
const lotReporting = ref(null)
|
|
|
const workshopId = ref(null);
|
|
|
const searchRef = ref(null);
|
|
|
+ const keyword = ref('')
|
|
|
|
|
|
const form = ref([]); //表单数据true
|
|
|
const checkAll = ref(false); //是否全选
|
|
@@ -156,6 +155,11 @@
|
|
|
function handleSearch() {
|
|
|
searchRef.value.open();
|
|
|
}
|
|
|
+
|
|
|
+ function refreshSearch(keyword) {
|
|
|
+ keyword.value = keyword
|
|
|
+ handleChangeWorkshop(workshopId.value)
|
|
|
+ }
|
|
|
|
|
|
function handleAdd() {
|
|
|
const mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module");
|
|
@@ -240,6 +244,7 @@
|
|
|
function handleContinue() {
|
|
|
handleAdd()
|
|
|
}
|
|
|
+
|
|
|
// 全选按钮操作
|
|
|
function handleAll() {
|
|
|
//清空选中数据
|
|
@@ -258,7 +263,7 @@
|
|
|
console.log(allData.value)
|
|
|
console.log(workshop)
|
|
|
// console.log()
|
|
|
- listData.value = allData.value.filter(v => workshop.depts.some(e => e.deptId === v.quickInfo.deptId))
|
|
|
+ listData.value = allData.value.filter(v => workshop.depts.some(e => e.deptId === v.quickInfo.deptId) && (v.lotCode.includes(keyword.value) || v.productDescription.include(keyword.value)))
|
|
|
}
|
|
|
|
|
|
|