Browse Source

海安pda生产发料和退料

dev
shenzhouyu 3 months ago
parent
commit
133fe29837
  1. 24
      src/views/modules/production-issue/directIssue.vue
  2. 6
      src/views/modules/production-issue/directIssueDetail.vue
  3. 30
      src/views/modules/production-issue/directIssueNoMaterial.vue
  4. 6
      src/views/modules/production-issue/directIssueNoMaterialDetail.vue
  5. 61
      src/views/modules/production-issue/production.vue
  6. 62
      src/views/modules/production-return/production.vue
  7. 7
      src/views/modules/production-return/productionReturnIssueList.vue
  8. 20
      src/views/modules/production-return/productionReturnPicking.vue
  9. 14
      src/views/modules/production-return/productionReturnPickingDetail.vue

24
src/views/modules/production-issue/directIssue.vue

@ -138,6 +138,7 @@ import {
getWorkOrderMaterials, getWorkOrderMaterials,
getShopOrderLine, getShopOrderLine,
} from "@/api/production/production-issue"; } from "@/api/production/production-issue";
import { filterRowsByAuthorizedSubSite, getAuthorizedSubSiteCodeList } from "@/utils/subSiteAuth.js";
import moment from "moment"; import moment from "moment";
export default { export default {
@ -229,7 +230,7 @@ export default {
workOrderNo: this.workOrderNo.trim(), workOrderNo: this.workOrderNo.trim(),
releaseNo: (this.releaseNo || "*").trim() || "*", releaseNo: (this.releaseNo || "*").trim() || "*",
sequenceNo: (this.sequenceNo || "*").trim() || "*", sequenceNo: (this.sequenceNo || "*").trim() || "*",
site: localStorage.getItem('site'),
site: localStorage.getItem('site')+'%',
}; };
getWorkOrderInfo(params) getWorkOrderInfo(params)
@ -277,7 +278,7 @@ export default {
this.loading = true; this.loading = true;
const params = { const params = {
workOrderNo: this.workOrderNo.trim(), workOrderNo: this.workOrderNo.trim(),
site: localStorage.getItem('site'),
site: localStorage.getItem('site')+'%',
}; };
getShopOrderLine(params) getShopOrderLine(params)
@ -285,17 +286,19 @@ export default {
this.loading = false; this.loading = false;
console.log("工单信息", data); console.log("工单信息", data);
if (
data.workOrders &&
data.workOrders.length > 0 &&
data.code === 0
) {
this.workOrderList = data.workOrders;
if (data.code === 0) {
const sourceRows = data.workOrders || [];
const authorizedSubSiteCodeList = getAuthorizedSubSiteCodeList(this.$store.state.user.subSiteCodeList);
// 接口按site前缀查询会返回同前缀下的所有子site,这里按当前用户授权子site做二次过滤
this.workOrderList = filterRowsByAuthorizedSubSite(sourceRows, authorizedSubSiteCodeList, ['contract']);
this.selectedWorkOrder = null; this.selectedWorkOrder = null;
this.materialList = []; this.materialList = [];
this.showOnlySelected = false; this.showOnlySelected = false;
if (this.workOrderList.length === 0) {
this.$message.error(data.msg || "未找到该工单信息");
}
} else { } else {
this.$message.error(data.msg ||"未找到该工单信息");
this.$message.error(data.msg || "未找到该工单信息");
this.workOrderList = []; this.workOrderList = [];
this.selectedWorkOrder = null; this.selectedWorkOrder = null;
this.materialList = []; this.materialList = [];
@ -347,7 +350,7 @@ export default {
const params = { const params = {
workOrderNo: this.selectedWorkOrder.orderNo, workOrderNo: this.selectedWorkOrder.orderNo,
site: localStorage.getItem('site'),
site: this.selectedWorkOrder.contract,
releaseNo: (this.selectedWorkOrder.releaseNo || "*").trim() || "*", releaseNo: (this.selectedWorkOrder.releaseNo || "*").trim() || "*",
sequenceNo: (this.selectedWorkOrder.sequenceNo || "*").trim() || "*", sequenceNo: (this.selectedWorkOrder.sequenceNo || "*").trim() || "*",
}; };
@ -392,6 +395,7 @@ export default {
requiredQty: material.qtyRequired, requiredQty: material.qtyRequired,
issuedQty: material.qtyIssued || 0, issuedQty: material.qtyIssued || 0,
partDesc: material.componentPartDesc, partDesc: material.componentPartDesc,
site: this.selectedWorkOrder.contract,
} }
}); });
}, },

6
src/views/modules/production-issue/directIssueDetail.vue

@ -176,6 +176,7 @@ export default {
requiredQty: 0, requiredQty: 0,
issuedQty: 0, issuedQty: 0,
itemNo: '', itemNo: '',
site: '',
loading: false, loading: false,
issueInfo: {}, issueInfo: {},
quantityDialogVisible: false, quantityDialogVisible: false,
@ -210,7 +211,7 @@ export default {
scannedLabel: labelCode, scannedLabel: labelCode,
workOrderNo: this.workOrderNo, workOrderNo: this.workOrderNo,
componentPartNo: this.componentPartNo, componentPartNo: this.componentPartNo,
site: localStorage.getItem('site'),
site: this.site,
} }
scanMaterialLabelIssue(params) scanMaterialLabelIssue(params)
.then(({ data }) => { .then(({ data }) => {
@ -298,7 +299,7 @@ export default {
} }
const params = { const params = {
site: localStorage.getItem('site'),
site: this.site,
workOrderNo: this.workOrderNo, workOrderNo: this.workOrderNo,
componentPartNo: this.componentPartNo, componentPartNo: this.componentPartNo,
operatorName: localStorage.getItem('userName'), operatorName: localStorage.getItem('userName'),
@ -345,6 +346,7 @@ export default {
this.requiredQty = Number(this.$route.query.requiredQty || 0) this.requiredQty = Number(this.$route.query.requiredQty || 0)
this.issuedQty = Number(this.$route.query.issuedQty || 0) this.issuedQty = Number(this.$route.query.issuedQty || 0)
this.itemNo = this.$route.query.itemNo || '' this.itemNo = this.$route.query.itemNo || ''
this.site = this.$route.query.site || ''
this.issueInfo = { this.issueInfo = {
releaseNo: this.$route.query.releaseNo, releaseNo: this.$route.query.releaseNo,
sequenceNo: this.$route.query.sequenceNo, sequenceNo: this.$route.query.sequenceNo,

30
src/views/modules/production-issue/directIssueNoMaterial.vue

@ -92,6 +92,7 @@ import {
getWorkOrderMaterials, getWorkOrderMaterials,
getShopOrderLine, getShopOrderLine,
} from '@/api/production/production-issue-no-material' } from '@/api/production/production-issue-no-material'
import { filterRowsByAuthorizedSubSite, getAuthorizedSubSiteCodeList } from '@/utils/subSiteAuth.js'
import moment from 'moment' import moment from 'moment'
export default { export default {
@ -196,24 +197,29 @@ export default {
this.loading = true this.loading = true
const params = { const params = {
workOrderNo: this.workOrderNo.trim(), workOrderNo: this.workOrderNo.trim(),
site: localStorage.getItem('site'),
site: localStorage.getItem('site')+'%',
} }
getShopOrderLine(params) getShopOrderLine(params)
.then(({ data }) => { .then(({ data }) => {
this.loading = false this.loading = false
if (
data.workOrders &&
data.workOrders.length > 0 &&
data.code === 0
) {
this.workOrderList = data.workOrders
if (data.code === 0) {
const sourceRows = data.workOrders || []
const authorizedSubSiteCodeList = getAuthorizedSubSiteCodeList(this.$store.state.user.subSiteCodeList)
// 接口按site前缀查询会返回同前缀下的所有子site,这里按当前用户授权子site做二次过滤
this.workOrderList = filterRowsByAuthorizedSubSite(sourceRows, authorizedSubSiteCodeList, ['contract'])
this.selectedWorkOrder = null
this.materialList = []
this.showOnlySelected = false
if (this.workOrderList.length === 0) {
this.$message.error(data.msg || '未找到该工单信息')
}
} else { } else {
this.$message.error(data.msg || '未找到该工单信息') this.$message.error(data.msg || '未找到该工单信息')
this.workOrderList = [] this.workOrderList = []
this.selectedWorkOrder = null
this.materialList = []
this.showOnlySelected = false
} }
this.selectedWorkOrder = null
this.materialList = []
this.showOnlySelected = false
}) })
.catch((error) => { .catch((error) => {
this.loading = false this.loading = false
@ -250,7 +256,7 @@ export default {
this.loading = true this.loading = true
const params = { const params = {
workOrderNo: this.selectedWorkOrder.orderNo, workOrderNo: this.selectedWorkOrder.orderNo,
site: localStorage.getItem('site'),
site: this.selectedWorkOrder.contract,
releaseNo: (this.selectedWorkOrder.releaseNo || '*').trim() || '*', releaseNo: (this.selectedWorkOrder.releaseNo || '*').trim() || '*',
sequenceNo: (this.selectedWorkOrder.sequenceNo || '*').trim() || '*', sequenceNo: (this.selectedWorkOrder.sequenceNo || '*').trim() || '*',
} }
@ -286,6 +292,7 @@ export default {
requiredQty: 0, requiredQty: 0,
issuedQty: 0, issuedQty: 0,
partDesc: '物料详情', partDesc: '物料详情',
site: this.selectedWorkOrder.contract,
}, },
}) })
} }
@ -353,6 +360,7 @@ export default {
requiredQty: material.qtyRequired, requiredQty: material.qtyRequired,
issuedQty: material.qtyIssued || 0, issuedQty: material.qtyIssued || 0,
partDesc: material.componentPartDesc, partDesc: material.componentPartDesc,
site: this.selectedWorkOrder.contract,
}, },
}) })
}, },

6
src/views/modules/production-issue/directIssueNoMaterialDetail.vue

@ -268,6 +268,7 @@ export default {
requiredQty: 0, requiredQty: 0,
issuedQty: 0, issuedQty: 0,
itemNo: "", itemNo: "",
site: "",
loading: false, loading: false,
issueInfo: {}, issueInfo: {},
quantityDialogVisible: false, quantityDialogVisible: false,
@ -300,7 +301,7 @@ export default {
const params = { const params = {
scannedLabel: labelCode, scannedLabel: labelCode,
workOrderNo: this.workOrderNo, workOrderNo: this.workOrderNo,
site: localStorage.getItem("site"),
site: this.site,
} }
scanMaterialLabelNoPartNo(params) scanMaterialLabelNoPartNo(params)
.then(({ data }) => { .then(({ data }) => {
@ -472,7 +473,7 @@ export default {
} }
const params = { const params = {
site: localStorage.getItem("site"),
site: this.site,
workOrderNo: this.workOrderNo, workOrderNo: this.workOrderNo,
componentPartNo: this.componentPartNo, componentPartNo: this.componentPartNo,
operatorName: localStorage.getItem("userName"), operatorName: localStorage.getItem("userName"),
@ -523,6 +524,7 @@ export default {
this.requiredQty = Number(this.$route.query.requiredQty || 0); this.requiredQty = Number(this.$route.query.requiredQty || 0);
this.issuedQty = Number(this.$route.query.issuedQty || 0); this.issuedQty = Number(this.$route.query.issuedQty || 0);
this.itemNo = this.$route.query.itemNo || ""; this.itemNo = this.$route.query.itemNo || "";
this.site = this.$route.query.site || "";
this.issueInfo = { this.issueInfo = {
releaseNo: this.$route.query.releaseNo, releaseNo: this.$route.query.releaseNo,
sequenceNo: this.$route.query.sequenceNo, sequenceNo: this.$route.query.sequenceNo,

61
src/views/modules/production-issue/production.vue

@ -14,6 +14,7 @@
class="menu-item" class="menu-item"
v-for="(btn, index) in buttons" v-for="(btn, index) in buttons"
:key="index" :key="index"
v-site-auth="btn.siteAuth || '*'"
:class="{ disabled: btn.disabled }" :class="{ disabled: btn.disabled }"
@click="handleButtonClick(btn)" @click="handleButtonClick(btn)"
> >
@ -37,6 +38,7 @@ export default {
iconClass: "purchase", iconClass: "purchase",
to: "directIssue", to: "directIssue",
disabled: false, disabled: false,
siteAuth: "*",
}, },
{ {
icon: "scan", icon: "scan",
@ -44,6 +46,7 @@ export default {
iconClass: "purchase", iconClass: "purchase",
to: "directIssueNoMaterial", to: "directIssueNoMaterial",
disabled: false, disabled: false,
siteAuth: "*",
}, },
{ {
icon: "records", icon: "records",
@ -51,6 +54,7 @@ export default {
iconClass: "qualified", iconClass: "qualified",
to: "productionPicking", to: "productionPicking",
disabled: false, disabled: false,
siteAuth: "55",
}, },
/* { /* {
icon: "records", icon: "records",
@ -61,7 +65,64 @@ export default {
], ],
}; };
}, },
directives: {
// 与 main.vue 的 v-site-auth 一致:* 或命中当前 site 才显示
siteAuth: {
inserted(el, binding, vnode) {
if (vnode.context && vnode.context.applySiteAuthForElement) {
vnode.context.applySiteAuthForElement(el, binding);
}
},
componentUpdated(el, binding, vnode) {
if (vnode.context && vnode.context.applySiteAuthForElement) {
vnode.context.applySiteAuthForElement(el, binding);
}
},
},
},
computed: {
currentSite() {
const storeSite = this.$store.state.user.site;
const normalizedStoreSite =
storeSite === null || storeSite === undefined
? ""
: String(storeSite).trim();
if (normalizedStoreSite && normalizedStoreSite !== "0") {
return normalizedStoreSite;
}
return (localStorage.getItem("site") || "").trim();
},
},
methods: { methods: {
normalizeMenuSiteAuthValue(siteAuthValue) {
const rawValue =
siteAuthValue === null || siteAuthValue === undefined
? "*"
: String(siteAuthValue).trim();
return rawValue === "" ? "*" : rawValue;
},
isMenuVisibleForCurrentSite(siteAuthValue) {
const normalizedAuthValue = this.normalizeMenuSiteAuthValue(siteAuthValue);
if (normalizedAuthValue === "*") {
return true;
}
const currentSite = this.currentSite;
if (!currentSite) {
return false;
}
const authSiteList = normalizedAuthValue
.split(",")
.map((item) => item.trim())
.filter((item) => item !== "");
return (
authSiteList.includes("*") ||
authSiteList.includes(String(currentSite).trim())
);
},
applySiteAuthForElement(el, binding) {
const isVisible = this.isMenuVisibleForCurrentSite(binding.value);
el.style.display = isVisible ? "" : "none";
},
handleButtonClick(btn) { handleButtonClick(btn) {
if (btn.disabled) { if (btn.disabled) {
this.$message.warning("正在开发中,敬请期待..."); this.$message.warning("正在开发中,敬请期待...");

62
src/views/modules/production-return/production.vue

@ -14,6 +14,7 @@
class="menu-item" class="menu-item"
v-for="(btn, index) in buttons" v-for="(btn, index) in buttons"
:key="index" :key="index"
v-site-auth="btn.siteAuth || '*'"
:class="{ 'disabled': btn.disabled }" :class="{ 'disabled': btn.disabled }"
@click="handleButtonClick(btn)" @click="handleButtonClick(btn)"
> >
@ -31,12 +32,69 @@ export default {
data() { data() {
return { return {
buttons: [ buttons: [
{ icon: 'scan', label: '直接退料', iconClass: 'direct', to: 'productionReturnPicking', disabled: false },
{ icon: 'records', label: '申请单退料', iconClass: 'request', to: 'productionReturnPDA', disabled: false },
{ icon: 'scan', label: '直接退料', iconClass: 'direct', to: 'productionReturnPicking', disabled: false, siteAuth: '*' },
{ icon: 'records', label: '申请单退料', iconClass: 'request', to: 'productionReturnPDA', disabled: false, siteAuth: '55' },
] ]
} }
}, },
directives: {
// 与 main.vue 的 v-site-auth 一致:* 或命中当前 site 才显示
siteAuth: {
inserted(el, binding, vnode) {
if (vnode.context && vnode.context.applySiteAuthForElement) {
vnode.context.applySiteAuthForElement(el, binding);
}
},
componentUpdated(el, binding, vnode) {
if (vnode.context && vnode.context.applySiteAuthForElement) {
vnode.context.applySiteAuthForElement(el, binding);
}
},
},
},
computed: {
currentSite() {
const storeSite = this.$store.state.user.site;
const normalizedStoreSite =
storeSite === null || storeSite === undefined
? ''
: String(storeSite).trim();
if (normalizedStoreSite && normalizedStoreSite !== '0') {
return normalizedStoreSite;
}
return (localStorage.getItem('site') || '').trim();
},
},
methods: { methods: {
normalizeMenuSiteAuthValue(siteAuthValue) {
const rawValue =
siteAuthValue === null || siteAuthValue === undefined
? '*'
: String(siteAuthValue).trim();
return rawValue === '' ? '*' : rawValue;
},
isMenuVisibleForCurrentSite(siteAuthValue) {
const normalizedAuthValue = this.normalizeMenuSiteAuthValue(siteAuthValue);
if (normalizedAuthValue === '*') {
return true;
}
const currentSite = this.currentSite;
if (!currentSite) {
return false;
}
const authSiteList = normalizedAuthValue
.split(',')
.map((item) => item.trim())
.filter((item) => item !== '');
return (
authSiteList.includes('*') ||
authSiteList.includes(String(currentSite).trim())
);
},
applySiteAuthForElement(el, binding) {
const isVisible = this.isMenuVisibleForCurrentSite(binding.value);
el.style.display = isVisible ? '' : 'none';
},
handleButtonClick(btn) { handleButtonClick(btn) {
if (btn.disabled) { if (btn.disabled) {
this.$message.warning('正在开发中,敬请期待...'); this.$message.warning('正在开发中,敬请期待...');

7
src/views/modules/production-return/productionReturnIssueList.vue

@ -84,7 +84,8 @@ export default {
lineItemNo: '', lineItemNo: '',
releaseNo: '', releaseNo: '',
sequenceNo: '', sequenceNo: '',
umId:''
umId: '',
site: '',
}; };
}, },
methods: { methods: {
@ -95,7 +96,7 @@ export default {
this.loading = true; this.loading = true;
const params = { const params = {
workOrderNo: this.workOrderNo, workOrderNo: this.workOrderNo,
site: localStorage.getItem('site'),
site: this.site,
componentPartNo: this.componentPartNo, componentPartNo: this.componentPartNo,
releaseNo: this.releaseNo || '*', releaseNo: this.releaseNo || '*',
sequenceNo: this.sequenceNo || '*', sequenceNo: this.sequenceNo || '*',
@ -139,6 +140,7 @@ export default {
wdrNo: item.WAIV_DEV_REJ_NO , wdrNo: item.WAIV_DEV_REJ_NO ,
engChgLevel: item.ENG_CHG_LEVEL || '1', engChgLevel: item.ENG_CHG_LEVEL || '1',
umId: this.umId, umId: this.umId,
site: this.site,
}, },
}); });
}, },
@ -153,6 +155,7 @@ export default {
this.releaseNo = this.$route.query.releaseNo; this.releaseNo = this.$route.query.releaseNo;
this.sequenceNo = this.$route.query.sequenceNo; this.sequenceNo = this.$route.query.sequenceNo;
this.umId = this.$route.query.uom; this.umId = this.$route.query.uom;
this.site = this.$route.query.site || '';
this.loadIssueList(); this.loadIssueList();
}, },
}; };

20
src/views/modules/production-return/productionReturnPicking.vue

@ -138,6 +138,7 @@
<script> <script>
import { getWorkOrderMaterials, getShopOrderLine } from '@/api/production/production-issue'; import { getWorkOrderMaterials, getShopOrderLine } from '@/api/production/production-issue';
import { getReturnWorkOrderInfo } from '@/api/production/production-return'; import { getReturnWorkOrderInfo } from '@/api/production/production-return';
import { filterRowsByAuthorizedSubSite, getAuthorizedSubSiteCodeList } from '@/utils/subSiteAuth.js';
import moment from 'moment'; import moment from 'moment';
export default { export default {
@ -269,7 +270,7 @@ export default {
this.loading = true; this.loading = true;
const params = { const params = {
workOrderNo: this.workOrderNo.trim(), workOrderNo: this.workOrderNo.trim(),
site: localStorage.getItem('site'),
site: localStorage.getItem('site')+'%',
}; };
getShopOrderLine(params) getShopOrderLine(params)
@ -277,15 +278,17 @@ export default {
this.loading = false; this.loading = false;
console.log("工单信息", data); console.log("工单信息", data);
if (
data.workOrders &&
data.workOrders.length > 0 &&
data.code === 0
) {
this.workOrderList = data.workOrders;
if (data.code === 0) {
const sourceRows = data.workOrders || [];
const authorizedSubSiteCodeList = getAuthorizedSubSiteCodeList(this.$store.state.user.subSiteCodeList);
// 接口按site前缀查询会返回同前缀下的所有子site,这里按当前用户授权子site做二次过滤
this.workOrderList = filterRowsByAuthorizedSubSite(sourceRows, authorizedSubSiteCodeList, ['contract']);
this.selectedWorkOrder = null; this.selectedWorkOrder = null;
this.materialList = []; this.materialList = [];
this.showOnlySelected = false; this.showOnlySelected = false;
if (this.workOrderList.length === 0) {
this.$message.error(data.msg || "未找到该工单信息");
}
} else { } else {
this.$message.error(data.msg || "未找到该工单信息"); this.$message.error(data.msg || "未找到该工单信息");
this.workOrderList = []; this.workOrderList = [];
@ -333,7 +336,7 @@ export default {
workOrderNo: this.selectedWorkOrder.orderNo, workOrderNo: this.selectedWorkOrder.orderNo,
releaseNo: (this.selectedWorkOrder.releaseNo || this.releaseNo || "*").trim() || "*", releaseNo: (this.selectedWorkOrder.releaseNo || this.releaseNo || "*").trim() || "*",
sequenceNo: (this.selectedWorkOrder.sequenceNo || this.sequenceNo || "*").trim() || "*", sequenceNo: (this.selectedWorkOrder.sequenceNo || this.sequenceNo || "*").trim() || "*",
site: localStorage.getItem('site'),
site: this.selectedWorkOrder.contract,
}; };
getWorkOrderMaterials(params) getWorkOrderMaterials(params)
@ -371,6 +374,7 @@ export default {
componentPartDesc: material.componentPartDesc, componentPartDesc: material.componentPartDesc,
lineItemNo: material.lineItemNo, lineItemNo: material.lineItemNo,
uom: material.uom, uom: material.uom,
site: this.selectedWorkOrder.contract,
}, },
}); });
}, },

14
src/views/modules/production-return/productionReturnPickingDetail.vue

@ -327,6 +327,7 @@ export default {
releaseNo: '', releaseNo: '',
sequenceNo: '', sequenceNo: '',
wdrNo: '', wdrNo: '',
site: '',
engChgLevel: '', engChgLevel: '',
enablePrint: true, // 是否打印标签,默认勾选 enablePrint: true, // 是否打印标签,默认勾选
umId: '', umId: '',
@ -406,6 +407,7 @@ export default {
componentPartDesc: this.componentPartDesc, componentPartDesc: this.componentPartDesc,
releaseNo: this.releaseNo, releaseNo: this.releaseNo,
sequenceNo: this.sequenceNo, sequenceNo: this.sequenceNo,
site: this.site,
} }
sessionStorage.setItem( sessionStorage.setItem(
'productionReturnPickingDetail_state_manual', 'productionReturnPickingDetail_state_manual',
@ -453,6 +455,7 @@ export default {
state.componentPartDesc || this.componentPartDesc state.componentPartDesc || this.componentPartDesc
this.releaseNo = state.releaseNo || this.releaseNo this.releaseNo = state.releaseNo || this.releaseNo
this.sequenceNo = state.sequenceNo || this.sequenceNo this.sequenceNo = state.sequenceNo || this.sequenceNo
this.site = state.site || this.site
} }
} catch (error) { } catch (error) {
console.warn('恢复生产退料手动页面状态失败', error) console.warn('恢复生产退料手动页面状态失败', error)
@ -468,7 +471,7 @@ export default {
scannedLabel: labelCode, scannedLabel: labelCode,
orderNo: this.orderNo, orderNo: this.orderNo,
orderType: this.orderType, orderType: this.orderType,
site: localStorage.getItem('site'),
site: this.site,
batchNo: this.batchNo, batchNo: this.batchNo,
componentPartNo: this.componentPartNo, componentPartNo: this.componentPartNo,
} }
@ -691,7 +694,7 @@ export default {
} }
const returnParams = { const returnParams = {
site: localStorage.getItem('site'),
site: this.site,
workOrderNo: this.orderNo, workOrderNo: this.orderNo,
orderType: this.orderType, orderType: this.orderType,
batchNo: this.batchNo, batchNo: this.batchNo,
@ -758,7 +761,7 @@ export default {
const printRequest = { const printRequest = {
userId: localStorage.getItem('userName'), userId: localStorage.getItem('userName'),
username: localStorage.getItem('userName'), username: localStorage.getItem('userName'),
site: localStorage.getItem('site'),
site: this.site,
unitIds: unitIds, unitIds: unitIds,
labelType: 'BIL标签', labelType: 'BIL标签',
} }
@ -847,7 +850,7 @@ export default {
const paramdetail = { const paramdetail = {
workOrderNo: this.orderNo, workOrderNo: this.orderNo,
batchNo: this.batchNo, batchNo: this.batchNo,
site: localStorage.getItem('site'),
site: this.site,
partNo: this.componentPartNo, partNo: this.componentPartNo,
quantity: this.quantity, quantity: this.quantity,
} }
@ -867,7 +870,7 @@ export default {
return return
} }
let newLabel = { let newLabel = {
site: localStorage.getItem('site'),
site: this.site,
partNo: this.printData.materialCode1, partNo: this.printData.materialCode1,
quantity: this.printData.materialCode2, quantity: this.printData.materialCode2,
batchNo: this.batchNo, batchNo: this.batchNo,
@ -922,6 +925,7 @@ export default {
this.wdrNo = this.$route.query.wdrNo this.wdrNo = this.$route.query.wdrNo
this.engChgLevel = this.$route.query.engChgLevel this.engChgLevel = this.$route.query.engChgLevel
this.umId = this.$route.query.umId this.umId = this.$route.query.umId
this.site = this.$route.query.site || ''
console.log( console.log(
'订单号:', '订单号:',
this.orderNo, this.orderNo,

Loading…
Cancel
Save