|
@ -64,15 +64,22 @@ |
|
|
<view style="height: constant(safe-area-inset-bottom); height: env(safe-area-inset-bottom);"></view> |
|
|
<view style="height: constant(safe-area-inset-bottom); height: env(safe-area-inset-bottom);"></view> |
|
|
<requestButton @goScan='openScanDetailPopup'></requestButton> |
|
|
<requestButton @goScan='openScanDetailPopup'></requestButton> |
|
|
</view> |
|
|
</view> |
|
|
<u-popup v-model="showType" mode="bottom" border-radius="14" length="30%"> |
|
|
<!-- <u-popup v-model="showType" mode="bottom" border-radius="14" length="30%"> |
|
|
|
|
|
|
|
|
<view style="margin-top: 30px; margin-left: 30px;"> |
|
|
<view style="margin-top: 30px; margin-left: 30px;"> |
|
|
<u-input v-model="reworkPersoncode" placeholder="请输入返工返修人员" /> |
|
|
<u-input v-model="reworkPersoncode" placeholder="请输入返工返修人员" /> |
|
|
</view> |
|
|
</view> |
|
|
<view class="btns"> |
|
|
<view class="btns"> |
|
|
<u-button class="sure" @click="handleReceive">确定</u-button> |
|
|
<u-button class="sure" @click="handleReceive()">确定</u-button> |
|
|
</view> |
|
|
</view> |
|
|
</u-popup> |
|
|
</u-popup> --> |
|
|
|
|
|
<view> |
|
|
|
|
|
<u-popup v-model="showWorker" mode="bottom" border-radius="14" length="30%"> |
|
|
|
|
|
<view> |
|
|
|
|
|
<u-select v-model="showWorker" mode="mutil-column-auto" :list="workerList" @confirm="confirmSelectWorker"></u-select> |
|
|
|
|
|
</view> |
|
|
|
|
|
</u-popup> |
|
|
|
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
@ -89,6 +96,7 @@ |
|
|
} from 'vue' |
|
|
} from 'vue' |
|
|
/*引入API*/ |
|
|
/*引入API*/ |
|
|
import * as reworkBatchApi from "@/api/mes/reworkBatch/reworkBatchApi.ts" |
|
|
import * as reworkBatchApi from "@/api/mes/reworkBatch/reworkBatchApi.ts" |
|
|
|
|
|
import * as productOfflineApi from "@/api/mes/productOffline/productOfflineApi.ts" |
|
|
const { proxy } = getCurrentInstance() |
|
|
const { proxy } = getCurrentInstance() |
|
|
const paramData = ref() |
|
|
const paramData = ref() |
|
|
const tabsList = ref([{name:'待返修'},{name:'返修中'},{name:'已完成'},{name:'已终止'}]) |
|
|
const tabsList = ref([{name:'待返修'},{name:'返修中'},{name:'已完成'},{name:'已终止'}]) |
|
@ -102,6 +110,14 @@ |
|
|
pageSize: 10, |
|
|
pageSize: 10, |
|
|
status: 1 |
|
|
status: 1 |
|
|
}) |
|
|
}) |
|
|
|
|
|
const teamParams = ref({ |
|
|
|
|
|
teamGroup:'1', |
|
|
|
|
|
pageNo: 1, |
|
|
|
|
|
pageSize: 50, |
|
|
|
|
|
status: 1 |
|
|
|
|
|
}) |
|
|
|
|
|
const showWorker = ref(false) |
|
|
|
|
|
const workerList = ref([]) |
|
|
/*是否显示"没有更多了"*/ |
|
|
/*是否显示"没有更多了"*/ |
|
|
const status = ref('loadmore') |
|
|
const status = ref('loadmore') |
|
|
/*列表数据集*/ |
|
|
/*列表数据集*/ |
|
@ -126,12 +142,12 @@ |
|
|
} |
|
|
} |
|
|
// 打开处理人员和处理时间弹窗 |
|
|
// 打开处理人员和处理时间弹窗 |
|
|
function handleItem(index){ |
|
|
function handleItem(index){ |
|
|
reworkPersoncode.value = null |
|
|
|
|
|
paramData.value = index |
|
|
paramData.value = index |
|
|
showType.value = true |
|
|
showWorker.value = true |
|
|
} |
|
|
} |
|
|
// “去处理”按钮提交事件 |
|
|
// “去处理”按钮提交事件 |
|
|
function handleReceive(){ |
|
|
function handleReceive(){ |
|
|
|
|
|
console.log(reworkPersoncode.value) |
|
|
if(reworkPersoncode.value != '' && reworkPersoncode.value.trim() != ''){ |
|
|
if(reworkPersoncode.value != '' && reworkPersoncode.value.trim() != ''){ |
|
|
paramData.value.reworkPersoncode=reworkPersoncode.value |
|
|
paramData.value.reworkPersoncode=reworkPersoncode.value |
|
|
changeStatus(2) |
|
|
changeStatus(2) |
|
@ -139,7 +155,7 @@ |
|
|
} |
|
|
} |
|
|
else{ |
|
|
else{ |
|
|
proxy.$modal.showToast('请输入返修人员') |
|
|
proxy.$modal.showToast('请输入返修人员') |
|
|
reworkPersoncode.value = null |
|
|
reworkPersoncode.value = '' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
// 终止按钮提交事件 |
|
|
// 终止按钮提交事件 |
|
@ -220,12 +236,34 @@ |
|
|
proxy.$modal.closeLoading(); |
|
|
proxy.$modal.closeLoading(); |
|
|
}, 500); |
|
|
}, 500); |
|
|
} |
|
|
} |
|
|
|
|
|
// 获取班组人员信息 |
|
|
|
|
|
function getPageChildren(){ |
|
|
|
|
|
productOfflineApi.getPageChildren(teamParams.value).then((res) => { |
|
|
|
|
|
console.log(res) |
|
|
|
|
|
if (res.data) { |
|
|
|
|
|
console.log(res.data) |
|
|
|
|
|
workerList.value = res.data |
|
|
|
|
|
} else { |
|
|
|
|
|
} |
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
// 选择班组人员回调 |
|
|
|
|
|
function confirmSelectWorker(val){ |
|
|
|
|
|
console.log(val) |
|
|
|
|
|
paramData.value.reworkPersoncode = val[1].value |
|
|
|
|
|
proxy.$modal.confirm('确定提交吗').then(() => { |
|
|
|
|
|
changeStatus(2) |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/*通用方法*/ |
|
|
/*通用方法*/ |
|
|
onShow(() => { |
|
|
onShow(() => { |
|
|
params.value.pageNo = 1 |
|
|
params.value.pageNo = 1 |
|
|
list.value = [] |
|
|
list.value = [] |
|
|
status.value = 'loadmore' |
|
|
status.value = 'loadmore' |
|
|
getList() |
|
|
getList() |
|
|
|
|
|
getPageChildren() |
|
|
}) |
|
|
}) |
|
|
onReachBottom(() => { |
|
|
onReachBottom(() => { |
|
|
getList() |
|
|
getList() |
|
|