Browse Source

直接领料修改

master
shenzhouyu 3 months ago
parent
commit
ac6bea1772
  1. 2
      src/api/production/production-issue.js
  2. 2
      src/router/index.js
  3. 10
      src/views/modules/production-issue/directIssue.vue
  4. 10
      src/views/modules/production-issue/directIssueDetail.vue
  5. 4
      src/views/modules/production-issue/productionPickingDetail.vue

2
src/api/production/production-issue.js

@ -26,7 +26,7 @@ export const validateWorkOrder = data => createAPI(`/pda/production/issue/valida
// 验证申请单状态
export const validateNotify = data => createAPI(`/pda/production/issue/validateNotify`,'post',data)
// 扫描材料是否存在
export const scanMaterialLabel = data => createAPI(`/pda/production/issue/scanMaterialLabel`,'post',data)
export const scanMaterialLabelIssue = data => createAPI(`/pda/production/issue/scanMaterialLabelIssue`,'post',data)
// 获取工单列表
export const getIssureNotifyByNo = data => createAPI(`/pda/production/issue/getIssureNotifyByNo`,'post',data)
// 获取工单列表

2
src/router/index.js

@ -51,7 +51,7 @@ const globalRoutes = [
{ path: "/productionPicking", name: "productionPicking", component: resolve => require(["@/views/modules/production-issue/productionPicking.vue"], resolve), meta: { transition: 'instant', preload: true, keepAlive: true } },
{ path: "/productionPickingDetail/:outboundNo", name: "productionPickingDetail", component: resolve => require(["@/views/modules/production-issue/productionPickingDetail.vue"], resolve), meta: { transition: 'instant', preload: true, keepAlive: true } },
{ path: "/directIssue", name: "directIssue", component: resolve => require(["@/views/modules/production-issue/directIssue.vue"], resolve), meta: { transition: 'instant', preload: true, keepAlive: true } },
{ path: "/directIssueDetail/:workOrderNo/:partNo/:partDesc/:requiredQty/:issuedQty/:issueInfo", name: "directIssueDetail", component: resolve => require(["@/views/modules/production-issue/directIssueDetail.vue"], resolve), meta: { transition: 'instant', preload: true, keepAlive: true } },
{ path: "/directIssueDetail/:workOrderNo/:partNo/:issueInfo", name: "directIssueDetail", component: resolve => require(["@/views/modules/production-issue/directIssueDetail.vue"], resolve), meta: { transition: 'instant', preload: true, keepAlive: true } },
//生产退料
{path: "/productionreturn",name: "productionreturn", component: resolve => require(["@/views/modules/production-return/production.vue"], resolve), meta: { transition: 'instant' ,preload: true,keepAlive: true}},
{path: "/productionReturnPicking", name: "productionReturnPicking", component: resolve => require(["@/views/modules/production-return/productionReturnPicking.vue"], resolve), meta: { transition: 'instant', preload: true, keepAlive: true } },

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

@ -262,14 +262,14 @@ export default {
name: "directIssueDetail",
params: {
workOrderNo: this.selectedWorkOrder.orderNo,
partNo: material.componentPartNo,
partDesc: material.componentPartDesc,
requiredQty: material.qtyRequired,
issuedQty: material.qtyIssued || 0,
partNo: material.componentPartNo,
itemNo: material.lineItemNo,
issueInfo:{
releaseNo:this.selectedWorkOrder.releaseNo,
sequenceNo:this.selectedWorkOrder.sequenceNo
sequenceNo:this.selectedWorkOrder.sequenceNo,
requiredQty: material.qtyRequired,
issuedQty: material.qtyIssued || 0,
partDesc: material.componentPartDesc,
}
},
});

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

@ -101,7 +101,7 @@
<script>
import {
scanMaterialLabel,
scanMaterialLabelIssue,
confirmDirectIssue,
} from '@/api/production/production-issue'
import moment from 'moment'
@ -147,7 +147,7 @@ export default {
componentPartNo: this.componentPartNo,
site: localStorage.getItem('site'),
}
scanMaterialLabel(params)
scanMaterialLabelIssue(params)
.then(({ data }) => {
if (data && data.code === 0) {
const exists = this.scannedLabels.find(
@ -255,9 +255,9 @@ export default {
initFromRoute() {
this.workOrderNo = this.$route.params.workOrderNo
this.componentPartNo = this.$route.params.partNo
this.componentPartDesc = this.$route.params.partDesc || ''
this.requiredQty = Number(this.$route.params.requiredQty || 0)
this.issuedQty = Number(this.$route.params.issuedQty || 0)
this.componentPartDesc = this.$route.params.issueInfo.partDesc || ''
this.requiredQty = this.$route.params.issueInfo.requiredQty
this.issuedQty = this.$route.params.issueInfo.issuedQty
this.itemNo = this.$route.params.itemNo || ''
this.issueInfo = this.$route.params.issueInfo

4
src/views/modules/production-issue/productionPickingDetail.vue

@ -165,7 +165,7 @@
</template>
<script>
import { scanMaterialLabel,getRequestMaterials } from '@/api/production/production-issue';
import { scanMaterialLabelIssue,getRequestMaterials } from '@/api/production/production-issue';
import moment from 'moment';
import { notify } from 'node-notifier';
@ -209,7 +209,7 @@ export default {
site: localStorage.getItem('site'),
};
scanMaterialLabel(params).then(({ data }) => {
scanMaterialLabelIssue(params).then(({ data }) => {
if (data && data.code === 0) {
//
const exists = this.labelList.find(item => item.labelCode === labelCode);

Loading…
Cancel
Save