|
@ -25,7 +25,7 @@ |
|
|
|
|
|
|
|
|
<uni-load-more :status="loadingType" v-if="jobList.length>0" /> |
|
|
<uni-load-more :status="loadingType" v-if="jobList.length>0" /> |
|
|
</view> |
|
|
</view> |
|
|
<win-scan-button @goScan='openScanPopup' v-if="jobList.length>0"></win-scan-button> |
|
|
<win-scan-button @goScan='openScanPopup' v-if="manageModel!='BY_BATCH'&&jobList.length>0"></win-scan-button> |
|
|
<winComScanBalance ref="scanPopup" @getBalance='getScanResult' :bussinessCode="businessTypeCode"> |
|
|
<winComScanBalance ref="scanPopup" @getBalance='getScanResult' :bussinessCode="businessTypeCode"> |
|
|
</winComScanBalance> |
|
|
</winComScanBalance> |
|
|
<!-- <winScanPackJob ref="scanPopup" @getResult='getScanResult'></winScanPackJob> --> |
|
|
<!-- <winScanPackJob ref="scanPopup" @getResult='getScanResult'></winScanPackJob> --> |
|
@ -114,7 +114,8 @@ |
|
|
businessTypeCode: "Issue", |
|
|
businessTypeCode: "Issue", |
|
|
businessType: null, |
|
|
businessType: null, |
|
|
timer: null, |
|
|
timer: null, |
|
|
productionLineCode:"" |
|
|
productionLineCode:"", |
|
|
|
|
|
manageModel:import.meta.env.VITE_MANAGE_MODEL |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
onLoad(option) { |
|
|
onLoad(option) { |
|
@ -244,6 +245,9 @@ |
|
|
uni.hideLoading(); |
|
|
uni.hideLoading(); |
|
|
if (type === "refresh") { |
|
|
if (type === "refresh") { |
|
|
uni.stopPullDownRefresh(); |
|
|
uni.stopPullDownRefresh(); |
|
|
|
|
|
if(this.manageModel!='BY_BATCH'){ |
|
|
|
|
|
this.openScanPopup() |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
var list = res.data.list; |
|
|
var list = res.data.list; |
|
@ -260,9 +264,7 @@ |
|
|
if (type === "refresh") { |
|
|
if (type === "refresh") { |
|
|
uni.stopPullDownRefresh(); |
|
|
uni.stopPullDownRefresh(); |
|
|
} |
|
|
} |
|
|
if(this.jobList.length>0){ |
|
|
|
|
|
this.openScanPopup() |
|
|
|
|
|
} |
|
|
|
|
|
}).catch(error => { |
|
|
}).catch(error => { |
|
|
if (type === "refresh") { |
|
|
if (type === "refresh") { |
|
|
uni.stopPullDownRefresh(); |
|
|
uni.stopPullDownRefresh(); |
|
|