Browse Source

直接领料修改

master
shenzhouyu 4 months ago
parent
commit
ac6bea1772
  1. 2
      src/api/production/production-issue.js
  2. 2
      src/router/index.js
  3. 8
      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 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) 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: "/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: "/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: "/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: "/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 } }, {path: "/productionReturnPicking", name: "productionReturnPicking", component: resolve => require(["@/views/modules/production-return/productionReturnPicking.vue"], resolve), meta: { transition: 'instant', preload: true, keepAlive: true } },

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

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

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

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

Loading…
Cancel
Save