Browse Source

海安委外,成品,mr发料退料

dev
shenzhouyu 3 weeks ago
parent
commit
b32d6c5ec5
  1. 36
      src/views/modules/customerIssue/customerIssuePDA.vue
  2. 160
      src/views/modules/customerIssue/customerIssuePDAIssueList.vue
  3. 23
      src/views/modules/mr-issue/mrPicking.vue
  4. 8
      src/views/modules/mr-issue/mrPickingDetail.vue
  5. 19
      src/views/modules/outsourcing-issue/outsourcingDirectIssue.vue
  6. 10
      src/views/modules/outsourcing-issue/outsourcingDirectIssueDetail.vue
  7. 9
      src/views/modules/outsourcing-issue/outsourcingDirectIssueList.vue
  8. 15
      src/views/modules/outsourcing-return/outsourcingReturn.vue
  9. 14
      src/views/modules/outsourcing-return/outsourcingReturnPDAIssueList.vue
  10. 9
      src/views/modules/outsourcing-return/outsourcingReturnPDAList.vue

36
src/views/modules/customerIssue/customerIssuePDA.vue

@ -108,6 +108,7 @@ import {
getCustomerIssueNotifyHeaderOrderMaterialList,
} from '@/api/customerIssue/customer-issue'
import { getWorkOrderMaterials } from '@/api/production/production-issue'
import { filterRowsByAuthorizedSubSite, getAuthorizedSubSiteCodeList } from '@/utils/subSiteAuth.js'
export default {
name: 'customerIssuePDA',
@ -120,7 +121,7 @@ export default {
//
requestIssueForm: {
site: localStorage.getItem('site'),
site: '',
requestNo: '',
operatorName: 'PDA_USER',
issueReason: '',
@ -162,6 +163,12 @@ export default {
this.message = ''
},
// CONTRACT site
getMaterialSite(material) {
if (!material) return ''
return material.CONTRACT || material.contract || ''
},
//
async loadIssueRequestMaterials() {
if (this.loading) {
@ -185,13 +192,21 @@ export default {
this.materialList = []
this.selectedRequestMaterial = null
this.showOnlySelected = false
this.requestIssueForm.site = ''
getCustomerIssueNotifyHeaderInfo({
site: localStorage.getItem('site'),
site: localStorage.getItem('site')+'%',
workOrderNo: this.requestIssueForm.requestNo,
}).then(({ data }) => {
if (data.code === 0) {
this.issueRequestMaterials = data.data || []
const sourceRows = data.data || []
const authorizedSubSiteCodeList = getAuthorizedSubSiteCodeList(this.$store.state.user.subSiteCodeList)
// sitesitesite
this.issueRequestMaterials = filterRowsByAuthorizedSubSite(
sourceRows,
authorizedSubSiteCodeList,
['CONTRACT', 'contract']
)
if (this.issueRequestMaterials.length === 0) {
this.$message.warning('查询申请单不存在')
}
@ -222,18 +237,25 @@ export default {
this.selectedWorkOrder = ''
this.materialList = []
this.showOnlySelected = false
this.requestIssueForm.site = ''
return
}
//
this.selectedRequestMaterial = material
this.selectedWorkOrder = material.SHIPMENT_ID
this.requestIssueForm.site = this.getMaterialSite(material)
this.showOnlySelected = true
this.getCustomerIssueNotifyHeaderOrderMaterialList(material)
},
getCustomerIssueNotifyHeaderOrderMaterialList(material){
const site = this.getMaterialSite(material)
if (!site) {
this.$message.warning('未获取到申请单站点信息')
return
}
let params = {
site: localStorage.getItem('site'),
site,
workOrderNo: material.SHIPMENT_ID,
};
getCustomerIssueNotifyHeaderOrderMaterialList(params).then(({ data }) => {
@ -255,12 +277,18 @@ export default {
// 仿 productionReturnPicking.vue openIssueList
openIssueDetail(material) {
const site = this.getMaterialSite(material) || this.requestIssueForm.site
if (!site) {
this.$message.warning('未获取到申请单站点信息')
return
}
this.$router.push({
name: 'customerIssuePDAIssueList',
query: {
state: material.STATE, //
shipmentId: material.SHIPMENT_ID, //
orderType: material.SHIPMENT_TYPE, //
site,
}
})
},

160
src/views/modules/customerIssue/customerIssuePDAIssueList.vue

@ -26,9 +26,12 @@
<!-- 订单信息卡片 -->
<div class="work-order-list" v-if="orderNo">
<div class="work-order-card">
<div class="card-title">
<span class="title-label">申请单号{{ orderInfo.orderNo }}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
<span class="title-label">本次: {{ totalScannedQty }}</span>
<div class="card-title order-card-header">
<div class="order-card-left">
<span class="title-label">申请单号{{ orderInfo.orderNo }}</span>
<span class="title-label">本次: {{ totalScannedQty }}</span>
</div>
<span class="material-list-link" @click="showShipmentLineDialog">物料清单</span>
</div>
</div>
</div>
@ -193,6 +196,58 @@
</div>
</div>
<!-- shipmentline 物料清单弹窗 -->
<div v-if="showShipmentLineDialogVisible" class="summary-overlay">
<div class="summary-modal shipment-line-modal">
<div class="modal-header">
<span class="modal-title">物料清单</span>
<i class="el-icon-close close-btn" @click="closeShipmentLineDialog"></i>
</div>
<div class="modal-body summary-body">
<div v-if="shipmentLineLoading" class="summary-loading">
正在获取物料清单请稍候...
</div>
<template v-else>
<div v-if="shipmentLineList.length === 0" class="summary-empty" style="padding: 40px 20px; text-align: center;">
暂无物料数据
</div>
<div v-else class="summary-section">
<div class="section-title-row">
<div>
<span class="section-title-text">Shipment Line</span>
<span class="section-sub">申请单号 {{ orderNo }}</span>
</div>
<span class="section-count"> {{ shipmentLineList.length }} </span>
</div>
<div class="summary-table shipment-line-table">
<div class="summary-table-row summary-table-head">
<div>行号</div>
<div>物料号</div>
<div>需求</div>
<div>已分配</div>
<div>待发</div>
</div>
<div
v-for="(item, index) in shipmentLineList"
:key="'line-' + index + '-' + item.partNo"
class="summary-table-row"
>
<div>{{ item.lineNo || '-' }}</div>
<div class="part">{{ item.partNo || '-' }}</div>
<div>{{ formatQty(item.inventoryQty) }}</div>
<div>{{ formatQty(item.qtyAssigned) }}</div>
<div class="highlight-qty">{{ formatQty(item.remainQty) }}</div>
</div>
</div>
</div>
</template>
</div>
<div class="modal-footer">
<el-button class="btn-cancel" @click="closeShipmentLineDialog">关闭</el-button>
</div>
</div>
</div>
<!-- 编辑标签弹框 -->
<div v-if="showEditDialog" class="edit-overlay">
<div class="edit-modal">
@ -364,6 +419,7 @@ export default {
labelList: [],
orderNo: '',
orderType: '',
site: '',
isRemoveMode: false, //
partNo: '', //
transactionId: '', //
@ -410,6 +466,10 @@ export default {
},
pendingIssueParams: null,
shipmentLine: [],
// shipmentline
showShipmentLineDialogVisible: false,
shipmentLineLoading: false,
shipmentLineList: [],
}
},
computed: {
@ -494,7 +554,7 @@ export default {
const params = {
scannedLabel: labelCode,
workOrderNo: this.orderNo,
site: localStorage.getItem('site'),
site: this.site,
batchNo: this.batchNo,
}
//
@ -522,7 +582,7 @@ export default {
engChgLevel: labelInfo.engChgLevel || '1',
detailId: labelInfo.detailId || '',
unitId: labelInfo.unitId || '',
site: labelInfo.site || localStorage.getItem('site'),
site: labelInfo.site || this.site,
height: labelInfo.height || null,
})
@ -544,7 +604,7 @@ export default {
return
}
let params = {
site: localStorage.getItem('site'),
site: this.site,
unitId: labelCode,
detailId: exists.detailId,
}
@ -622,7 +682,7 @@ export default {
const updateParams = {
detailId: this.editForm.detailId,
site:
this.labelList[this.editIndex].site || localStorage.getItem('site'),
this.labelList[this.editIndex].site || this.site,
unitId: this.labelList[this.editIndex].unitId,
locationId: this.editForm.locationId,
qtyToIssue: Number(this.editForm.quantity),
@ -687,7 +747,7 @@ export default {
},
buildIssueParams() {
return {
site: localStorage.getItem('site'),
site: this.site,
workOrderNo: this.orderNo,
batchNo: this.batchNo,
componentPartNo: this.partNo,
@ -712,7 +772,7 @@ export default {
async prepareComparisonData() {
this.shipmentLine = []
const params = {
site: localStorage.getItem('site'),
site: this.site,
workOrderNo: this.orderNo,
}
await getCustomerIssueNotifyHeaderOrderMaterialList(params).then(
@ -796,6 +856,53 @@ export default {
this.showSummaryDialog = false
this.pendingIssueParams = null
},
// shipment shipmentline
showShipmentLineDialog() {
this.showShipmentLineDialogVisible = true
this.loadShipmentLineList()
},
closeShipmentLineDialog() {
this.showShipmentLineDialogVisible = false
},
async loadShipmentLineList() {
if (!this.site || !this.orderNo) {
this.$message.error('缺少必要参数,无法获取物料清单')
this.shipmentLineList = []
return
}
this.shipmentLineLoading = true
try {
const { data } = await getCustomerIssueNotifyHeaderOrderMaterialList({
site: this.site,
workOrderNo: this.orderNo,
})
if (!data || data.code !== 0) {
this.$message.error((data && data.msg) || '获取物料清单失败')
this.shipmentLineList = []
return
}
const materials = data.data || []
this.shipmentLineList = materials.map((item) => {
const inventoryQty =
Number(this.pickFieldValue(item, ['INVENTORY_QTY'], 0)) || 0
const qtyAssigned =
Number(this.pickFieldValue(item, ['QTY_ASSIGNED'], 0)) || 0
return {
lineNo: this.pickFieldValue(item, ['SHIPMENT_LINE_NO'], ''),
partNo: this.pickFieldValue(item, ['INVENTORY_PART_NO'], ''),
inventoryQty,
qtyAssigned,
remainQty: this.safeAdd(inventoryQty, -qtyAssigned),
uom: this.pickFieldValue(item, ['INVENTORY_UOM'], ''),
}
})
} catch (error) {
this.$message.error('获取物料清单失败')
this.shipmentLineList = []
} finally {
this.shipmentLineLoading = false
}
},
proceedIssueConfirm() {
if (!this.pendingIssueParams) {
this.pendingIssueParams = this.buildIssueParams()
@ -864,7 +971,7 @@ export default {
const printRequest = {
userId: localStorage.getItem('userName'),
username: localStorage.getItem('userName'),
site: localStorage.getItem('site'),
site: this.site,
unitIds: unitIds,
labelType: printLabelType,
}
@ -916,7 +1023,7 @@ export default {
let params = {
shipmentId: this.orderNo,
partNo: this.partNo,
site: localStorage.getItem('site'),
site: this.site,
}
this.labelList = []
getShipmentHuDetail(params)
@ -1081,6 +1188,7 @@ export default {
this.orderNo = this.$route.query.shipmentId
this.state = this.$route.query.state
this.orderType = this.$route.query.orderType
this.site = this.$route.query.site || ''
if (!this.orderNo) {
this.$message.error('参数错误')
@ -1246,6 +1354,36 @@ export default {
margin-bottom: 16px;
}
.order-card-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 0;
gap: 8px;
}
.order-card-left {
flex: 1;
min-width: 0;
}
.order-card-left .title-label {
margin-bottom: 4px;
}
.order-card-left .title-label:last-child {
margin-bottom: 0;
}
.shipment-line-table .summary-table-row {
grid-template-columns: 0.6fr 1.4fr 0.8fr 0.8fr 0.8fr;
}
.shipment-line-table .highlight-qty {
color: #17b3a3;
font-weight: 600;
}
.title-label {
font-size: 11px;
color: #999;

23
src/views/modules/mr-issue/mrPicking.vue

@ -104,6 +104,7 @@
<script>
import { getMrList, getMrMaterialLines } from '@/api/mr/mr'
import moment from 'moment'
import { filterRowsByAuthorizedSubSite, getAuthorizedSubSiteCodeList } from '@/utils/subSiteAuth.js'
export default {
data() {
@ -171,18 +172,25 @@ export default {
}
},
// siteMR
applyAuthorizedMrList(sourceRows = []) {
const authorizedSubSiteCodeList = getAuthorizedSubSiteCodeList(this.$store.state.user.subSiteCodeList)
// sitesitesite
return filterRowsByAuthorizedSubSite(sourceRows, authorizedSubSiteCodeList, ['site'])
},
// MR
loadMrList() {
this.loading = true
const params = {
site: localStorage.getItem('site'),
site: localStorage.getItem('site') + '%',
}
getMrList(params)
.then(({ data }) => {
this.loading = false
if (data && data.code === 0) {
this.mrList = data.list || []
this.mrList = this.applyAuthorizedMrList(data.list || [])
} else {
this.$message.error(data.msg || '获取数据失败')
}
@ -199,17 +207,17 @@ export default {
this.loading = true
const params = {
orderNo: searchCode,
site: localStorage.getItem('site'),
site: localStorage.getItem('site') + '%',
}
getMrList(params)
.then(({ data }) => {
this.loading = false
if (data && data.code === 0) {
if (data.list.length === 0) {
this.mrList = this.applyAuthorizedMrList(data.list || [])
if (this.mrList.length === 0) {
this.$message.warning('未找到匹配的MR')
}
this.mrList = data.list || []
//
this.selectedMr = null
this.materialList = []
@ -227,7 +235,7 @@ export default {
// MR
isSameMr(a, b) {
if (!a || !b) return false
return a.orderNo === b.orderNo && a.lineNo === b.lineNo
return a.orderNo === b.orderNo && a.site === b.site
},
// MR
@ -258,7 +266,7 @@ export default {
}
let params = {
orderNo: this.selectedMr.orderNo,
site: localStorage.getItem('site'),
site: this.selectedMr.site,
}
getMrMaterialLines(params)
.then(({ data }) => {
@ -288,6 +296,7 @@ export default {
orderNo: this.selectedMr.orderNo,
lineNo: material.lineNo,
partNo: material.partNo,
site: this.selectedMr.site,
material: {
partDesc: material.partDesc,
qtyDue: material.qtyDue,

8
src/views/modules/mr-issue/mrPickingDetail.vue

@ -173,6 +173,7 @@ export default {
orderNo: '',
lineNo: '',
partNo: '',
site: '',
isRemoveMode: false, //
material: {},
//
@ -225,7 +226,7 @@ export default {
orderNo: this.orderNo,
lineNo: this.lineNo,
partNo: this.partNo,
site: localStorage.getItem('site'),
site: this.site,
}
scanMaterialLabel(params)
@ -301,7 +302,7 @@ export default {
}
const params = {
site: localStorage.getItem('site'),
site: this.site,
orderNo: this.orderNo,
lineNo: this.lineNo,
partNo: this.partNo,
@ -359,7 +360,7 @@ export default {
const printRequest = {
userId: localStorage.getItem('userName'),
username: localStorage.getItem('userName'),
site: localStorage.getItem('site'),
site: this.site,
unitIds: unitIds,
labelType: printLabelType,
}
@ -473,6 +474,7 @@ export default {
this.orderNo = this.$route.query.orderNo
this.lineNo = this.$route.query.lineNo
this.partNo = this.$route.query.partNo
this.site = this.$route.query.site || ''
this.material = this.$route.query.material
console.log('路由参数', this.$route.query)

19
src/views/modules/outsourcing-issue/outsourcingDirectIssue.vue

@ -113,6 +113,7 @@
<script>
import { getOutsourcingOrderLineInfo } from '@/api/outsourcing/outsourcing-issue.js'
import { getOutsourcingOrderInfo } from '@/api/outsourcing/outsourcing.js'
import { filterRowsByAuthorizedSubSite, getAuthorizedSubSiteCodeList } from '@/utils/subSiteAuth.js'
import moment from 'moment'
export default {
@ -209,22 +210,25 @@ export default {
}
this.loading = true
const params = {
site: localStorage.getItem('site'),
site: localStorage.getItem('site')+'%',
outsourcingNo: this.outsourcingNo.trim(),
}
getOutsourcingOrderInfo(params)
.then(({ data }) => {
this.loading = false
if (data && data.code === 0) {
//
this.orderList = (data.orders || []).map((row) => ({
const sourceRows = (data.orders || []).map((row) => ({
orderNo: row.orderNo,
site: row.site,
supplierName: row.supplierName,
supplierNo: row.supplierNo,
status:row.status,
receiptDate:row.receiptDate,
buyerCode:row.buyerCode
status: row.status,
receiptDate: row.receiptDate,
buyerCode: row.buyerCode,
}))
const authorizedSubSiteCodeList = getAuthorizedSubSiteCodeList(this.$store.state.user.subSiteCodeList)
// sitesitesite
this.orderList = filterRowsByAuthorizedSubSite(sourceRows, authorizedSubSiteCodeList, ['site'])
this.selectedOrder = null
this.materialList = []
if (this.orderList.length === 0) {
@ -257,7 +261,7 @@ export default {
}
this.loading = true
const params = {
site: localStorage.getItem('site'),
site: this.selectedOrder.site,
outsourcingNo: this.selectedOrder.orderNo,
}
getOutsourcingOrderLineInfo(params)
@ -287,6 +291,7 @@ export default {
outsourcingNo: this.selectedOrder.orderNo,
partNo: material.partNo,
partDesc: material.description,
site: this.selectedOrder.site,
outsourcingInfo:{
requiredQty: material.purchaseQty || 0,
lineNo: material.lineNo,

10
src/views/modules/outsourcing-issue/outsourcingDirectIssueDetail.vue

@ -188,6 +188,7 @@ export default {
releaseNo: '',
lineNo: '',
batchNo: '',
site: '',
quantityDialogVisible: false,
currentEditLabel: {},
currentEditIndex: -1,
@ -222,7 +223,7 @@ export default {
scannedLabel: labelCode,
outsourcingNo: this.outsourcingNo,
componentPartNo: this.componentPartNo,
site: localStorage.getItem('site'),
site: this.site,
}
scanOutsourcingMaterialLabel(params)
.then(({ data }) => {
@ -298,7 +299,7 @@ export default {
}
const params = {
site: localStorage.getItem('site'),
site: this.site,
orderNo: this.outsourcingNo,
componentPartNo: this.componentPartNo,
operatorName: localStorage.getItem('userName'),
@ -314,7 +315,7 @@ export default {
materialCode: l.componentPartNo,
height: l.height,
wdrNo: l.wdrNo,
engCngLevel: l.engChgLevel || '1',
engChgLevel: l.engChgLevel || '1',
})),
}
this.loading = true
@ -362,7 +363,7 @@ export default {
const printRequest = {
userId: localStorage.getItem('userName'),
username: localStorage.getItem('userName'),
site: localStorage.getItem('site'),
site: this.site,
unitIds: unitIds,
labelType: printLabelType,
}
@ -428,6 +429,7 @@ export default {
initFromRoute() {
this.outsourcingNo = this.$route.query.outsourcingNo
this.partNo = this.$route.query.partNo
this.site = this.$route.query.site || ''
//
const issueRecord = this.$route.query.issueRecord

9
src/views/modules/outsourcing-issue/outsourcingDirectIssueList.vue

@ -84,6 +84,7 @@ export default {
issueList: [],
lineNo:'',
releaseNo:'',
site: '',
}
},
methods: {
@ -102,6 +103,7 @@ export default {
requiredQty: this.requiredQty,
lineNo: this.lineNo,
releaseNo: this.releaseNo,
site: this.site,
issueList: this.issueList,
}
sessionStorage.setItem('outsourcingDirectIssueList_state_fromDetail', JSON.stringify(state))
@ -118,6 +120,7 @@ export default {
this.requiredQty = state.requiredQty || 0
this.lineNo = state.lineNo || ''
this.releaseNo = state.releaseNo || ''
this.site = state.site || ''
this.issueList = state.issueList || []
//
sessionStorage.removeItem('outsourcingDirectIssueList_shouldRestore')
@ -135,7 +138,7 @@ export default {
this.loading = true
const params = {
outsourcingNo: this.outsourcingNo,
site: localStorage.getItem('site'),
site: this.site,
partNo: this.partNo,
}
@ -143,7 +146,7 @@ export default {
this.loading = false
if (data && data.code === 0) {
const materials = data.materials || []
const site = this.normalizeValue(localStorage.getItem('site'))
const site = this.normalizeValue(this.site)
const releaseNo = this.normalizeValue(this.releaseNo)
const lineNo = this.normalizeValue(this.lineNo)
this.issueList = materials.filter((item) => {
@ -170,6 +173,7 @@ export default {
partDesc: item.partDesc || '',
requiredQty: this.requiredQty,
issuedQty:item.qtyIssued,
site: this.site,
issueRecord: {
orderType: 'outsourcing',
transactionId: item.transactionId,
@ -195,6 +199,7 @@ export default {
if (!this.outsourcingNo) {
this.outsourcingNo = this.$route.query.outsourcingNo
this.partNo = this.$route.query.partNo
this.site = this.$route.query.site || ''
this.requiredQty = this.$route.query.outsourcingInfo.requiredQty
this.lineNo = this.$route.query.outsourcingInfo.lineNo
this.releaseNo = this.$route.query.outsourcingInfo.releaseNo

15
src/views/modules/outsourcing-return/outsourcingReturn.vue

@ -15,7 +15,7 @@
clearable
class="compact-input"
v-model="searchValue"
placeholder="请扫描委外订单号或物料编码"
placeholder="请扫描委外订单号"
prefix-icon="el-icon-search"
@keyup.enter.native="handleSearch"
ref="searchInput"
@ -110,6 +110,7 @@
<script>
import { searchOutsourcingOrdersForReturn,getOutsourcingReturnOrderLineInfo } from '@/api/outsourcing/outsourcing-return';
import { filterRowsByAuthorizedSubSite, getAuthorizedSubSiteCodeList } from '@/utils/subSiteAuth.js';
export default {
data() {
@ -189,14 +190,17 @@ export default {
const params = {
searchValue: this.searchValue.trim(),
site: localStorage.getItem('site'),
site: localStorage.getItem('site') + '%',
};
searchOutsourcingOrdersForReturn(params).then(({ data }) => {
this.loading = false;
if (data && data.code === 0) {
this.searchResults = data.orders || [];
const sourceRows = data.orders || [];
const authorizedSubSiteCodeList = getAuthorizedSubSiteCodeList(this.$store.state.user.subSiteCodeList);
// sitesitesite
this.searchResults = filterRowsByAuthorizedSubSite(sourceRows, authorizedSubSiteCodeList, ['site']);
if (this.searchResults.length === 0) {
this.$message.info('未找到相关委外订单');
}
@ -214,7 +218,7 @@ export default {
isSameOrder(a, b) {
if (!a || !b) return false;
return a.orderNo === b.orderNo && a.partNo === b.partNo && a.lineNo === b.lineNo;
return a.orderNo === b.orderNo && a.partNo === b.partNo && a.lineNo === b.lineNo && a.site === b.site;
},
selectOrder(order) {
@ -240,7 +244,7 @@ export default {
// API
let params = {
outsourcingNo:order.orderNo,
site:localStorage.getItem('site'),
site: order.site,
lineNo: order.lineNo,
releaseNo: order.releaseNo,
}
@ -280,6 +284,7 @@ export default {
partNo: item.componentPartNo,
partDesc: item.componentPartDescription,
unissureQty: returnableQty,
site: this.selectedOrder.site,
itemNo: {
lineNo: item.lineNo,
lineItemNo: item.lineItemNo,

14
src/views/modules/outsourcing-return/outsourcingReturnPDAIssueList.vue

@ -299,6 +299,7 @@ export default {
},
engChgLevel: '1', //
wdrNo:'', // WDR
site: '',
}
},
computed: {
@ -337,7 +338,7 @@ export default {
scannedLabel: labelCode,
orderNo: this.orderNo,
orderType: this.orderType,
site: localStorage.getItem('site'),
site: this.site,
batchNo: this.batchNo,
componentPartNo: this.partNo,
}
@ -508,7 +509,7 @@ export default {
this.loading = true
const returnParams = {
site: localStorage.getItem('site'),
site: this.site,
outsourcingOrderNo: this.orderNo,
orderType: this.orderType,
batchNo: this.batchNo,
@ -532,7 +533,7 @@ export default {
warehouseId: label.warehouseId,
wdrNo: label.wdrNo || '*',
height: label.height || 0,
engCngLevel: label.engChgLevel || '1',
engChgLevel: label.engChgLevel || '1',
newPrint: label.newPrint || ''
})),
}
@ -579,7 +580,7 @@ export default {
const printRequest = {
userId: localStorage.getItem('userName'),
username: localStorage.getItem('userName'),
site: localStorage.getItem('site'),
site: this.site,
unitIds: unitIds,
labelType: printLabelType,
}
@ -632,14 +633,14 @@ export default {
loadMaterialList() {
console.log('加载委外退料物料清单', this.orderInfo, this.orderNo)
if (!localStorage.getItem('site') || !this.orderNo) {
if (!this.site || !this.orderNo) {
this.$message.error('缺少必要参数,无法获取物料清单')
return
}
this.materialListLoading = true
const params = {
site: localStorage.getItem('site'),
site: this.site,
orderNo: this.orderNo,
orderType: this.orderType,
}
@ -717,6 +718,7 @@ export default {
console.log('路由参数:', this.$route.query.material)
this.orderNo = this.$route.query.outsourcingOrderNo
this.site = this.$route.query.site || ''
this.orderType = this.$route.query.material.orderType || 'outsourcingOrder'
this.partNo = this.$route.query.material.partNo
this.transactionId = this.$route.query.material.ifsTransactionID

9
src/views/modules/outsourcing-return/outsourcingReturnPDAList.vue

@ -79,6 +79,7 @@ export default {
itemNo: {},
lineNo: '',
lineItemNo: '',
site: '',
};
},
methods: {
@ -96,6 +97,7 @@ export default {
lineNo: this.lineNo,
lineItemNo: this.lineItemNo,
releaseNo: this.releaseNo,
site: this.site,
issueList: this.issueList,
}
sessionStorage.setItem('outsourcingReturnPDAList_state_fromDetail', JSON.stringify(state))
@ -114,6 +116,7 @@ export default {
this.lineNo = state.lineNo || ''
this.lineItemNo = state.lineItemNo || ''
this.releaseNo = state.releaseNo || ''
this.site = state.site || ''
this.issueList = state.issueList || []
//
sessionStorage.removeItem('outsourcingReturnPDAList_shouldRestore')
@ -131,7 +134,7 @@ export default {
this.loading = true;
const params = {
orderNo: this.outsourcingOrderNo,
site: localStorage.getItem('site'),
site: this.site,
partNo: this.partNo,
releaseNo: this.lineNo,
sequenceNo: this.releaseNo,
@ -158,7 +161,8 @@ export default {
this.$router.push({
name: 'outsourcingReturnPDAIssueList',
query: {
outsourcingOrderNo: this.outsourcingOrderNo,
outsourcingOrderNo: this.outsourcingOrderNo,
site: this.site,
material:{
itemNo: this.itemNo,
partNo: this.partNo,
@ -193,6 +197,7 @@ export default {
this.outsourcingOrderNo = this.$route.query.orderNo;
this.partNo = this.$route.query.partNo;
this.unissureQty = this.$route.query.unissureQty;
this.site = this.$route.query.site || '';
this.itemNo = this.$route.query.itemNo;
this.lineNo = this.$route.query.itemNo.lineNo;
this.lineItemNo = this.$route.query.itemNo.lineItemNo;

Loading…
Cancel
Save