|
@ -12,9 +12,9 @@ |
|
|
|
|
|
|
|
|
<u-loadmore :status="loadingType" v-if="jobList.length > 0" /> |
|
|
<u-loadmore :status="loadingType" v-if="jobList.length > 0" /> |
|
|
</view> |
|
|
</view> |
|
|
<win-scan-button @goScan="openScanPopup" v-if="false"></win-scan-button> |
|
|
<win-scan-button @goScan="openScanPopup" v-if="jobList.length > 0"></win-scan-button> |
|
|
<winScanPackJob ref="scanPopup" @getResult="getScanResult"></winScanPackJob> |
|
|
<winScanPackJob ref="scanPopup" @getResult="getScanResult"></winScanPackJob> |
|
|
<jobList ref="jobListRef" @selectItem="selectItem"></jobList> |
|
|
<jobListView ref="jobListRef" @selectItem="selectItem"></jobListView> |
|
|
<com-message ref="comMessageRef" /> |
|
|
<com-message ref="comMessageRef" /> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
@ -35,7 +35,7 @@ import jobInfoPopup from '@/pages/issue/coms/jobInfoPopup.vue' |
|
|
|
|
|
|
|
|
import winScanButton from '@/mycomponents/scan/winScanButton.vue' |
|
|
import winScanButton from '@/mycomponents/scan/winScanButton.vue' |
|
|
import winScanPackJob from '@/mycomponents/scan/winScanPackJob.vue' |
|
|
import winScanPackJob from '@/mycomponents/scan/winScanPackJob.vue' |
|
|
import jobList from '@/mycomponents/jobList/jobList.vue' |
|
|
import jobListView from '@/mycomponents/jobList/jobList.vue' |
|
|
|
|
|
|
|
|
const { proxy } = getCurrentInstance() |
|
|
const { proxy } = getCurrentInstance() |
|
|
const jobList = ref([]) |
|
|
const jobList = ref([]) |
|
@ -50,6 +50,7 @@ const status = ref('1,2') // 待处理 、进行中 |
|
|
const detailOptions = ref([]) |
|
|
const detailOptions = ref([]) |
|
|
const detailGiveupOptions = ref([]) |
|
|
const detailGiveupOptions = ref([]) |
|
|
const filter = ref() |
|
|
const filter = ref() |
|
|
|
|
|
const scanMessage = ref('') |
|
|
const comMessageRef = ref() |
|
|
const comMessageRef = ref() |
|
|
const jobInfoPopupRef = ref() |
|
|
const jobInfoPopupRef = ref() |
|
|
const jobListPopupRef = ref() |
|
|
const jobListPopupRef = ref() |
|
@ -166,15 +167,15 @@ const getList = (type, fromLocationCode = '', productionLineCode = '') => { |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const openJobDetail = (item, packingNumber = '') => { |
|
|
const openJobDetail = (item, scanMessage = '') => { |
|
|
proxy.$tab.navigateTo(`./issueDetail?id=${item.masterId}&status=${item.status}&scaned=${packingNumber}`) |
|
|
proxy.$tab.navigateTo(`./issueDetail?id=${item.masterId}&status=${item.status}&scanMessage=${scanMessage}`) |
|
|
} |
|
|
} |
|
|
const selectedItem = (item) => { |
|
|
const selectedItem = (item) => { |
|
|
openJobDetail(item) |
|
|
openJobDetail(item) |
|
|
} |
|
|
} |
|
|
const selectItem = (item) => { |
|
|
const selectItem = (item) => { |
|
|
scanPopup.value.closeScanPopup() |
|
|
scanPopup.value.closeScanPopup() |
|
|
openJobDetail(item, item.packingNumber) |
|
|
openJobDetail(item, scanMessage.value) |
|
|
} |
|
|
} |
|
|
const swipeClick = (index, index1) => { |
|
|
const swipeClick = (index, index1) => { |
|
|
// var text = clearTirmAndWrap(requestList.value[index].options[index].text) |
|
|
// var text = clearTirmAndWrap(requestList.value[index].options[index].text) |
|
@ -323,6 +324,7 @@ const getScanResult = (result) => { |
|
|
by: 'asc' |
|
|
by: 'asc' |
|
|
}) |
|
|
}) |
|
|
.then((res) => { |
|
|
.then((res) => { |
|
|
|
|
|
scanMessage.value = result.scanMessage |
|
|
const resultList = res.data.list |
|
|
const resultList = res.data.list |
|
|
if (resultList.length > 0) { |
|
|
if (resultList.length > 0) { |
|
|
resultList.forEach((item) => { |
|
|
resultList.forEach((item) => { |
|
@ -338,10 +340,10 @@ const getScanResult = (result) => { |
|
|
if (list.length > 1) { |
|
|
if (list.length > 1) { |
|
|
jobListRef.value.openList(list) |
|
|
jobListRef.value.openList(list) |
|
|
} else { |
|
|
} else { |
|
|
selectItem(list[0]) |
|
|
selectItem(list[0], scanMessage) |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
showMessage('未查找到任务') |
|
|
showMessage(`物料号[${result.label.itemCode}]批次[${result.label.batch}]未查找到任务`) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
.catch((error) => { |
|
|
.catch((error) => { |
|
|