Browse Source

page/productDismantle 文件迁移 8/8-10/25

pull/1/head
test 4 months ago
parent
commit
54ddb6bef0
  1. 77
      src/pages/productDismantle/job/productDismantleDetail.vue
  2. 69
      src/pages/productDismantle/record/productDismantleRecord.vue

77
src/pages/productDismantle/job/productDismantleDetail.vue

@ -47,47 +47,47 @@
</template>
<script>
import {
import {
getManagementPrecisions
} from '@/common/balance.js';
} from '@/common/balance.js';
import {
import {
getProductDismantleJobDetail,
getBasicLocationByCode,
takeProductDismantleJob,
cancleTakeProductDismantleJob,
productDismantleJobSubmit
} from '@/api/request2.js';
} from '@/api/request2.js';
import {
import {
goHome,
getCurrDateTime,
navigateBack,
getPackingNumberAndBatch,
} from '@/common/basic.js';
} from '@/common/basic.js';
import {
import {
getInventoryStatusName
} from '@/common/directory.js';
} from '@/common/directory.js';
import {
import {
getLocationTypeArray
} from '@/common/array.js';
} from '@/common/array.js';
import {
import {
getDataSource,
createRecordInfo,
calcHandleQty
} from '@/common/detail.js';
} from '@/common/detail.js';
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import requiredLocation from '@/mycomponents/location/requiredLocation.vue'
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
import comDetailCard from "@/mycomponents/detail/comDetailCard.vue"
import detailInfoPopup from '@/pages/productDismantle/coms/detailInfoPopup.vue'
import jobTop from '@/mycomponents/job/jobTop.vue'
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import requiredLocation from '@/mycomponents/location/requiredLocation.vue'
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
import comDetailCard from "@/mycomponents/detail/comDetailCard.vue"
import detailInfoPopup from '@/pages/productDismantle/coms/detailInfoPopup.vue'
import jobTop from '@/mycomponents/job/jobTop.vue'
export default {
export default {
components: {
winScanButton,
winScanPackAndLocation,
@ -287,7 +287,7 @@
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
if (this.jobContent.allowModifyInventoryStatus == "TRUE") {
this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
']不一致,是否继续拆解?', res => {
if (res) {
@ -298,7 +298,7 @@
this.scanPopupGetFocus();
}
});
}else {
} else {
this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
']不一致,不允许转移!', res => {
this.scanPopupGetFocus();
@ -342,12 +342,14 @@
//
if (this.jobContent.allowPartialComplete == "TRUE") {
//
this.submitJob();
this.$refs.comMessage.showQuestionMessage1("任务明细未全部完成,是否提交?", 'red', res => {
if (res) {
this.submitJob()
}
});
} else {
//
this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交<br>' + "已经扫描[" + this.scanCount +
"]箱总共[" + this
.subList.length + "]箱", res => {
this.$refs.comMessage.showErrorMessage("任务明细未全部完成,不允许部分提交!", res => {
if (res) {
this.openScanPopup();
}
@ -373,7 +375,7 @@
console.log("提交参数", JSON.stringify(params));
// productDismantleJobSubmit(this.id, params).then(res => {
// if (res.data) {
// this.showCommitSuccessMessage("<br>" + res.data.Number, )
// this.showCommitSuccessMessage("\n" + res.data.Number, )
// } else {
// this.showErrorMessage("[" + res.msg + "]")
// }
@ -430,7 +432,6 @@
})
if (nullLocationList.length > 0) {
//
this.$refs.comMessage.showQuestionMessage("是否把其他的库位都变成默认库位", res => {
@ -507,42 +508,42 @@
})
},
}
}
}
</script>
<style scoped lang="scss">
page {
page {
width: 100%;
height: 100%;
background-color: #fff;
}
}
.page-wraper {
.page-wraper {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
}
}
.page-main {
.page-main {
flex: 1;
position: relative;
}
}
.page-main-scroll {
.page-main-scroll {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
}
.page-main-list {
.page-main-list {
/* height: 80rpx;
line-height: 80rpx; */
text-align: center;
background: #e0e0e0;
}
}
</style>

69
src/pages/productDismantle/record/productDismantleRecord.vue

@ -42,36 +42,36 @@
</template>
<script>
import {
import {
productDismantleRecordSubmit
} from '@/api/request2.js';
import {
} from '@/api/request2.js';
import {
goHome,
} from '@/common/basic.js';
} from '@/common/basic.js';
import {
import {
getInventoryStatusDesc,
getDirectoryItemArray
} from '@/common/directory.js';
} from '@/common/directory.js';
import {
import {
getBusinessType,
createItemInfo,
createDetailInfo,
calcHandleQty
} from '@/common/record.js';
} from '@/common/record.js';
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import winScanPack from '@/mycomponents/scan/winScanPack.vue'
import requiredLocation from '@/mycomponents/location/requiredLocation.vue'
import comProductionRecord from '@/pages/productionReceipt/coms/comProductionRecord.vue'
import comBlankView from '@/mycomponents/common/comBlankView.vue'
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue"
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
import recordComDetailCard from '@/mycomponents/record/recordComDetailCard.vue'
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import winScanPack from '@/mycomponents/scan/winScanPack.vue'
import requiredLocation from '@/mycomponents/location/requiredLocation.vue'
import comProductionRecord from '@/pages/productionReceipt/coms/comProductionRecord.vue'
import comBlankView from '@/mycomponents/common/comBlankView.vue'
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue"
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
import recordComDetailCard from '@/mycomponents/record/recordComDetailCard.vue'
export default {
export default {
components: {
winScanButton,
winScanPack,
@ -180,9 +180,6 @@
this.$forceUpdate();
},
updateData() {
this.calcHandleQty();
},
removeItem(index, item) {
this.detailSource.splice(index, 1)
},
@ -243,7 +240,7 @@
// productDismantleRecordSubmit(params).then(res => {
// uni.hideLoading()
// if (res.data) {
// this.showCommitSuccessMessage("<br>" + res.data, )
// this.showCommitSuccessMessage("\n" + res.data, )
// } else {
// this.showErrorMessage("[" + res.msg + "]")
// }
@ -276,14 +273,6 @@
if (res) {}
});
},
showErrorMessage(message) {
this.$refs.comMessage.showErrorMessage(message, res => {
if (res) {
}
});
},
showScanMessage(message) {
this.$refs.comMessage.showScanMessage(message);
},
@ -332,42 +321,42 @@
}
}
}
}
}
</script>
<style scoped lang="scss">
page {
page {
width: 100%;
height: 100%;
background-color: #fff;
}
}
.page-wraper {
.page-wraper {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
}
}
.page-main {
.page-main {
flex: 1;
position: relative;
}
}
.page-main-scroll {
.page-main-scroll {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
}
.page-main-list {
.page-main-list {
/* height: 80rpx;
line-height: 80rpx; */
text-align: center;
background: #e0e0e0;
}
}
</style>

Loading…
Cancel
Save