Browse Source

site+'%'

dev
han\hanst 3 days ago
parent
commit
231c8fafac
  1. 11
      src/views/modules/other-transaction/other-inbound.vue
  2. 10
      src/views/modules/other-transaction/other-outbound.vue
  3. 15
      src/views/modules/other-transaction/scrap.vue
  4. 8
      src/views/modules/production-inbound/inboundRegister.vue
  5. 3
      src/views/modules/production-withdrawal/order-list.vue
  6. 4
      src/views/modules/production-withdrawal/scan-hu.vue
  7. 6
      src/views/modules/recv/qualifiedStorage.vue
  8. 4
      src/views/modules/recv/recv.vue

11
src/views/modules/other-transaction/other-inbound.vue

@ -213,7 +213,7 @@ export default {
validateAndAddLabel(unitId) { validateAndAddLabel(unitId) {
const params = { const params = {
unitId: unitId, unitId: unitId,
site: this.site,
//site: this.site,
}; };
scanHandlingUnitLabel(params).then(({ data }) => { scanHandlingUnitLabel(params).then(({ data }) => {
@ -236,10 +236,10 @@ export default {
this.$message.warning('该HandlingUnit已扫描,请勿重复扫描'); this.$message.warning('该HandlingUnit已扫描,请勿重复扫描');
return; return;
} }
// HU
this.site = this.scannedItems.length > 0 ? this.scannedItems[0].site : huInfo.site; // HU
// site
if (huInfo.site && huInfo.site !== this.site) { if (huInfo.site && huInfo.site !== this.site) {
this.$message.error('HandlingUnit站点不匹配');
this.$message.error('所有标签site必须一致');
return; return;
} }
// HU // HU
@ -256,7 +256,8 @@ export default {
qty: huInfo.qty, qty: huInfo.qty,
unit: huInfo.unit, unit: huInfo.unit,
batchNo: huInfo.batchNo, batchNo: huInfo.batchNo,
locationId: huInfo.locationId
locationId: huInfo.locationId,
site: huInfo.site
}); });
this.$message.success('扫描成功'); this.$message.success('扫描成功');

10
src/views/modules/other-transaction/other-outbound.vue

@ -158,7 +158,7 @@ export default {
validateAndAddLabel(unitId) { validateAndAddLabel(unitId) {
const params = { const params = {
unitId: unitId, unitId: unitId,
site: this.site,
//site: this.site,
}; };
scanHandlingUnitLabelForOther(params).then(({ data }) => { scanHandlingUnitLabelForOther(params).then(({ data }) => {
@ -182,9 +182,10 @@ export default {
return; return;
} }
// HU
this.site = this.scannedItems.length > 0 ? this.scannedItems[0].site : huInfo.site; // HU
// site
if (huInfo.site && huInfo.site !== this.site) { if (huInfo.site && huInfo.site !== this.site) {
this.$message.error('HandlingUnit站点不匹配');
this.$message.error('所有标签site必须一致');
return; return;
} }
@ -203,7 +204,8 @@ export default {
qty: huInfo.qty, qty: huInfo.qty,
unit: huInfo.unit, unit: huInfo.unit,
batchNo: huInfo.batchNo, batchNo: huInfo.batchNo,
locationId: huInfo.locationId
locationId: huInfo.locationId,
site: huInfo.site
}); });
this.$message.success('扫描成功'); this.$message.success('扫描成功');

15
src/views/modules/other-transaction/scrap.vue

@ -136,7 +136,8 @@ export default {
{ value: 'ST010-ZH', label: '材料表面划伤' }, { value: 'ST010-ZH', label: '材料表面划伤' },
{ value: 'ST011-ZH', label: '材料过期' }, { value: 'ST011-ZH', label: '材料过期' },
], ],
errorMessage: ''
errorMessage: '',
site: '', //
}; };
}, },
methods: { methods: {
@ -162,10 +163,8 @@ export default {
this.$message.warning('该标签已扫描,请勿重复扫描'); this.$message.warning('该标签已扫描,请勿重复扫描');
return; return;
} }
const params = { const params = {
labelCode: labelCode, labelCode: labelCode,
site: localStorage.getItem('site'),
}; };
scanScrapLabel(params).then(({ data }) => { scanScrapLabel(params).then(({ data }) => {
@ -175,7 +174,12 @@ export default {
this.$message.error('库存不存在,该HU未入库或已出库'); this.$message.error('库存不存在,该HU未入库或已出库');
return; return;
} }
this.site = this.labelList.length > 0 ? this.labelList[0].site : data.labelInfo.site; // HU
// site
if (data.labelInfo.site !== this.site) {
this.$message.error('所有标签site必须一致');
return;
}
// //
this.labelList.push({ this.labelList.push({
id: Date.now(), id: Date.now(),
@ -189,6 +193,7 @@ export default {
warehouseId: data.labelInfo.warehouseId, warehouseId: data.labelInfo.warehouseId,
inStockFlag: data.labelInfo.inStockFlag, inStockFlag: data.labelInfo.inStockFlag,
engChgLevel: data.labelInfo.engChgLevel, engChgLevel: data.labelInfo.engChgLevel,
site: data.labelInfo.site,
}); });
this.$message.success('扫描成功'); this.$message.success('扫描成功');
@ -234,7 +239,7 @@ export default {
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
const params = { const params = {
site: localStorage.getItem('site'),
site: this.site,
scrapReason: this.selectedReason, scrapReason: this.selectedReason,
labels: this.labelList.map(label => ({ labels: this.labelList.map(label => ({
labelCode: label.labelCode, labelCode: label.labelCode,

8
src/views/modules/production-inbound/inboundRegister.vue

@ -315,7 +315,7 @@ export default {
} }
const requestData = { const requestData = {
ifsSiteID: this.site,
ifsSiteID: this.site+'%',
ifsOrderNo: orderNo, ifsOrderNo: orderNo,
ifsReleaseNo: releaseNo, ifsReleaseNo: releaseNo,
ifsSequenceNo: sequenceNo ifsSequenceNo: sequenceNo
@ -361,7 +361,7 @@ export default {
try { try {
// 1. // 1.
const validateResult = await validateMaterialIssued({ const validateResult = await validateMaterialIssued({
site: this.site,
site: this.site+'%',
orderNo: row.orderNo, orderNo: row.orderNo,
releaseNo: row.releaseNo || '*', releaseNo: row.releaseNo || '*',
sequenceNo: row.sequenceNo || '*' sequenceNo: row.sequenceNo || '*'
@ -430,7 +430,7 @@ export default {
try { try {
const { data } = await getHandlingUnitDetail({ const { data } = await getHandlingUnitDetail({
site: this.site,
//site: this.site,
unitId: unitId unitId: unitId
}); });
@ -656,7 +656,7 @@ export default {
// //
const submitData = { const submitData = {
// //
site: this.site,
site: item.contract,
warehouseId: this.warehouseId, warehouseId: this.warehouseId,
orderNo: item.orderNo, orderNo: item.orderNo,
releaseNo: item.releaseNo, releaseNo: item.releaseNo,

3
src/views/modules/production-withdrawal/order-list.vue

@ -111,7 +111,7 @@ export default {
} }
} }
const queryData = { const queryData = {
ifsSiteID: localStorage.getItem('site'),
ifsSiteID: localStorage.getItem('site')+'%',
ifsOrderNo: orderNo, ifsOrderNo: orderNo,
ifsReleaseNo: releaseNo, ifsReleaseNo: releaseNo,
ifsSequenceNo: sequenceNo ifsSequenceNo: sequenceNo
@ -161,6 +161,7 @@ export default {
this.$router.push({ this.$router.push({
path: '/productionWithdrawalScan', path: '/productionWithdrawalScan',
query: { query: {
site: item.contract,
orderNo: item.sourceRef1, orderNo: item.sourceRef1,
releaseNo: item.sourceRef2, releaseNo: item.sourceRef2,
sequenceNo: item.sourceRef3, sequenceNo: item.sourceRef3,

4
src/views/modules/production-withdrawal/scan-hu.vue

@ -152,6 +152,7 @@ export default {
return { return {
// //
orderInfo: { orderInfo: {
site: '',
orderNo: '', orderNo: '',
releaseNo: '', releaseNo: '',
sequenceNo: '', sequenceNo: '',
@ -201,6 +202,7 @@ export default {
mounted() { mounted() {
// //
this.orderInfo = { this.orderInfo = {
site: this.$route.query.site || '',
orderNo: this.$route.query.orderNo || '', orderNo: this.$route.query.orderNo || '',
releaseNo: this.$route.query.releaseNo || '', releaseNo: this.$route.query.releaseNo || '',
sequenceNo: this.$route.query.sequenceNo || '', sequenceNo: this.$route.query.sequenceNo || '',
@ -350,7 +352,7 @@ export default {
const unitIds = this.scannedHus.map(hu => hu.unitId) const unitIds = this.scannedHus.map(hu => hu.unitId)
const params = { const params = {
site: this.site,
site: this.orderInfo.site,
orderNo: this.orderInfo.orderNo, orderNo: this.orderInfo.orderNo,
releaseNo: this.orderInfo.releaseNo, releaseNo: this.orderInfo.releaseNo,
sequenceNo: this.orderInfo.sequenceNo, sequenceNo: this.orderInfo.sequenceNo,

6
src/views/modules/recv/qualifiedStorage.vue

@ -294,7 +294,7 @@ export default {
const params = { const params = {
purchaseOrderNo: this.scanCode.trim(), purchaseOrderNo: this.scanCode.trim(),
site: this.site
site: this.site+'%'
}; };
getPurchaseOrderReceiptList(params).then(({ data }) => { getPurchaseOrderReceiptList(params).then(({ data }) => {
@ -439,7 +439,7 @@ export default {
const params = { const params = {
unitId: unitId, unitId: unitId,
site: this.site,
site: this.selectedReceipt.contract,
expectedPartNo: this.selectedReceipt.sourcePartNo, expectedPartNo: this.selectedReceipt.sourcePartNo,
expectedBatchNo: this.getBatchNoFromReceipt() // expectedBatchNo: this.getBatchNoFromReceipt() //
}; };
@ -552,7 +552,7 @@ export default {
const totalQty = this.scannedItems.reduce((sum, item) => sum + (parseFloat(item.qty) || 0), 0); const totalQty = this.scannedItems.reduce((sum, item) => sum + (parseFloat(item.qty) || 0), 0);
const params = { const params = {
site: this.site,
site: this.selectedReceipt.contract,
receiptSequence: this.selectedReceipt.receiptSequence, receiptSequence: this.selectedReceipt.receiptSequence,
sourceRef1: this.selectedReceipt.sourceRef1, sourceRef1: this.selectedReceipt.sourceRef1,
sourceRef2: this.selectedReceipt.sourceRef2, sourceRef2: this.selectedReceipt.sourceRef2,

4
src/views/modules/recv/recv.vue

@ -260,7 +260,7 @@ export default {
// loading // loading
this.loadingText = '搜索中...'; this.loadingText = '搜索中...';
this.fullscreenLoading = true; this.fullscreenLoading = true;
getPoList({ poNumber: this.scanCode,site: this.site }).then(({ data }) => {
getPoList({ poNumber: this.scanCode,site: this.site+'%' }).then(({ data }) => {
if (data.code === 0) { if (data.code === 0) {
/*let subSiteCodeList = localStorage.getItem('userSubSiteCodeList') ; /*let subSiteCodeList = localStorage.getItem('userSubSiteCodeList') ;
let subSiteCodeList2 = this.$store.state.user.subSiteCodeList;*/ let subSiteCodeList2 = this.$store.state.user.subSiteCodeList;*/
@ -542,7 +542,7 @@ export default {
// TransDetailDto // TransDetailDto
const receiveData = { const receiveData = {
// //
site: this.site,
site: item.contract,
warehouseId: this.warehouseId, warehouseId: this.warehouseId,
partNo: item.partNo, partNo: item.partNo,
partDesc: item.description, partDesc: item.description,

Loading…
Cancel
Save