|
@@ -63,7 +63,7 @@
|
|
|
</scroll-view>
|
|
|
</uni-drawer>
|
|
|
<view class="bottom uni-row">
|
|
|
- <button class="start-batch-btn" style="margin-right: 10rpx; background-color: #68f000;"
|
|
|
+ <button class="start-batch-btn" style="margin-right: 10rpx; background-color: #60d500;"
|
|
|
@click="handleScanCode">扫码添加</button>
|
|
|
<button class="start-batch-btn" :disabled="allData.length === 0" type="primary"
|
|
|
@click="showDoTurnover">周转申请</button>
|
|
@@ -93,6 +93,9 @@
|
|
|
import {
|
|
|
store
|
|
|
} from '@/store/index.js'
|
|
|
+ import {
|
|
|
+ debounce
|
|
|
+ } from '@/utils/common.js'
|
|
|
|
|
|
const turnoverApplicationDialog = ref(null)
|
|
|
const selectProduction = ref(null)
|
|
@@ -146,13 +149,25 @@
|
|
|
})
|
|
|
return;
|
|
|
}
|
|
|
+ // 测试时用
|
|
|
getDayworkByCarrierCode({
|
|
|
carrierId: vehicleObj.carrierId,
|
|
|
status: 7,
|
|
|
deptId: store.curDeptDetails.deptId
|
|
|
}).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- console.log(res)
|
|
|
+ if (res.data.length === 0) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '该批次未周转到当前工段',
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ allData.value.push(...res.data.filter(v =>
|
|
|
+ allData.value.findIndex(e => e.id === v.id) <
|
|
|
+ 0))
|
|
|
+ handleSearch()
|
|
|
+ debounce(handleScanCode, 700)
|
|
|
+ }
|
|
|
} else {
|
|
|
uni.showToast({
|
|
|
icon: 'none',
|
|
@@ -160,6 +175,8 @@
|
|
|
duration: 2000
|
|
|
})
|
|
|
}
|
|
|
+ }).catch(err => {
|
|
|
+ console.log(err)
|
|
|
})
|
|
|
}
|
|
|
);
|
|
@@ -234,13 +251,14 @@
|
|
|
function handleClickProcessList(item) {
|
|
|
let curProcessAfterList = [];
|
|
|
let nextIndex = 0;
|
|
|
+ console.log(item)
|
|
|
for (let i = 0; i < item.processSequence.length; i++) {
|
|
|
- if (item.technologicalProcessDetail.id == item.processSequence[i].id) {
|
|
|
+ if (item.technologicalProcessDetail.id == item.processSequence[i].technologicalProcessDetailId) {
|
|
|
nextIndex = i;
|
|
|
}
|
|
|
}
|
|
|
for (let i = 0; i < item.processSequence.length; i++) {
|
|
|
- if (i >= nextIndex) {
|
|
|
+ if (i > nextIndex) {
|
|
|
curProcessAfterList.push(item.processSequence[i]);
|
|
|
}
|
|
|
}
|
|
@@ -254,7 +272,7 @@
|
|
|
<style lang="scss">
|
|
|
$nav-height: 60rpx;
|
|
|
$gray: #ebebeb;
|
|
|
- $green: #68f000;
|
|
|
+ $green: #62e200;
|
|
|
|
|
|
/* 遮罩层样式 */
|
|
|
.mask {
|