This commit is contained in:
		
							parent
							
								
									8c40879895
								
							
						
					
					
						commit
						dd7a2a6be3
					
				| 
						 | 
					@ -426,24 +426,36 @@ const onHandleOutbound = async () => {
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
    let param = {
 | 
					    uni.showModal({
 | 
				
			||||||
        taskId: queryParams.value.taskId,
 | 
					        title: '提示',
 | 
				
			||||||
        typeId: queryParams.value.typeId,
 | 
					        content: '是否确定入库?',
 | 
				
			||||||
        purchaseId: queryParams.value.id,
 | 
					        success: async (req) => {
 | 
				
			||||||
        inPutList: paramsList,
 | 
					            if (req.confirm) {
 | 
				
			||||||
    }
 | 
					                try {
 | 
				
			||||||
    const res = await setInboundCodeAPI(param)
 | 
					                    let param = {
 | 
				
			||||||
    console.log(res, '入库')
 | 
					                        taskId: queryParams.value.taskId,
 | 
				
			||||||
    if (res.code === 200) {
 | 
					                        typeId: queryParams.value.typeId,
 | 
				
			||||||
        uni.showToast({
 | 
					                        purchaseId: queryParams.value.id,
 | 
				
			||||||
            title: '入库成功!',
 | 
					                        inPutList: paramsList,
 | 
				
			||||||
            icon: 'none',
 | 
					                    }
 | 
				
			||||||
        })
 | 
					                    const res = await setInboundCodeAPI(param)
 | 
				
			||||||
        getCodeDeviceListData()
 | 
					                    console.log(res, '入库')
 | 
				
			||||||
        setTimeout(() => {
 | 
					                    if (res.code === 200) {
 | 
				
			||||||
            queryParams.value.inputNum = Number(queryParams.value.inputNum) + paramsList.length
 | 
					                        uni.showToast({
 | 
				
			||||||
        }, 800)
 | 
					                            title: '入库成功!',
 | 
				
			||||||
    }
 | 
					                            icon: 'none',
 | 
				
			||||||
 | 
					                        })
 | 
				
			||||||
 | 
					                        getCodeDeviceListData()
 | 
				
			||||||
 | 
					                        setTimeout(() => {
 | 
				
			||||||
 | 
					                            queryParams.value.inputNum = Number(queryParams.value.inputNum) + paramsList.length
 | 
				
			||||||
 | 
					                        }, 800)
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                } catch (error) {
 | 
				
			||||||
 | 
					                    console.log('🚀 ~ onHandleOutbound ~ error:', error)
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    })
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -50,7 +50,7 @@
 | 
				
			||||||
                  <div class="title">
 | 
					                  <div class="title">
 | 
				
			||||||
                      <div class="title-left">
 | 
					                      <div class="title-left">
 | 
				
			||||||
                          <span class="code">{{ item.repairCode }}</span>
 | 
					                          <span class="code">{{ item.repairCode }}</span>
 | 
				
			||||||
                          <span class="sub-code">{{ `${item.backCode}-${item.level}` }}</span>
 | 
					                          <span class="sub-code" v-if="item.backCode">{{ `${item.backCode}-${item.level}` }}</span>
 | 
				
			||||||
                      </div>
 | 
					                      </div>
 | 
				
			||||||
                      <div class="title-right">
 | 
					                      <div class="title-right">
 | 
				
			||||||
                          <uni-tag v-if="item.dataStatus == 3" text="修饰后入库驳回" type="error" style="margin-right: 5px" custom-style="errorStyle"/>
 | 
					                          <uni-tag v-if="item.dataStatus == 3" text="修饰后入库驳回" type="error" style="margin-right: 5px" custom-style="errorStyle"/>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -124,7 +124,7 @@
 | 
				
			||||||
import { ref, computed } from 'vue' 
 | 
					import { ref, computed } from 'vue' 
 | 
				
			||||||
import { getListScrapExamineApply } from '@/services/repair/scrapExamine.js'
 | 
					import { getListScrapExamineApply } from '@/services/repair/scrapExamine.js'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import { onLoad } from '@dcloudio/uni-app'
 | 
					import { onShow } from '@dcloudio/uni-app'
 | 
				
			||||||
import { debounce } from 'lodash-es'
 | 
					import { debounce } from 'lodash-es'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const total = ref(0) //                 数据总量
 | 
					const total = ref(0) //                 数据总量
 | 
				
			||||||
| 
						 | 
					@ -233,11 +233,11 @@ const getTableList = async (isTap = false) => {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// // 页面加载完毕
 | 
					// // 页面加载完毕
 | 
				
			||||||
// onLoad(() => {
 | 
					// onShow(() => {
 | 
				
			||||||
//     getTableList()
 | 
					//     getTableList()
 | 
				
			||||||
// })
 | 
					// })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
onLoad(() => {
 | 
					onShow(() => {
 | 
				
			||||||
    tableList.value = []
 | 
					    tableList.value = []
 | 
				
			||||||
    total.value = 0
 | 
					    total.value = 0
 | 
				
			||||||
    getTableList()
 | 
					    getTableList()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue