Browse Source

委外退料修改

master
shenzhouyu 3 months ago
parent
commit
4a9fea2be7
  1. 2
      src/views/modules/outsourcing-issue/outsourcingDirectIssue.vue
  2. 28
      src/views/modules/outsourcing-issue/outsourcingDirectIssueDetail.vue
  3. 16
      src/views/modules/outsourcing-issue/outsourcingDirectIssueList.vue
  4. 4
      src/views/modules/outsourcing-return/outsourcingReturn.vue
  5. 18
      src/views/modules/outsourcing-return/outsourcingReturnPDAIssueList.vue

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

@ -200,7 +200,7 @@ export default {
selectMaterial(material) {
this.$router.push({
name: 'outsourcingDirectIssueList',
params: {
query: {
outsourcingNo: this.selectedOrder.orderNo,
partNo: material.partNo,
outsourcingInfo:{

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

@ -2,7 +2,7 @@
<div class="pda-container">
<!-- 头部栏 -->
<div class="header-bar">
<div class="header-left" @click="$router.back()">
<div class="header-left" @click="$router.push({name:'outsourcingDirectIssue'})">
<i class="el-icon-arrow-left"></i>
<span>委外直接发料</span>
</div>
@ -192,12 +192,12 @@ export default {
})
.then(() => {
this.scannedLabels = []
this.$router.back()
this.$router.push({name:'outsourcingDirectIssue'})
this.$message.success('已清空')
})
.catch(() => {})
} else {
this.$router.back()
this.$router.push({name:'outsourcingDirectIssue'})
}
},
confirmIssue() {
@ -229,7 +229,7 @@ export default {
.then(({ data }) => {
if (data && data.code === 0) {
this.$message.success('委外发料成功')
this.$router.back()
this.$router.push({name:'outsourcingDirectIssue'})
} else {
this.$message.error(data.msg || '委外发料失败')
}
@ -241,15 +241,15 @@ export default {
})
},
initFromRoute() {
this.outsourcingNo = this.$route.params.outsourcingNo
this.partNo = this.$route.params.partNo
this.outsourcingNo = this.$route.query.outsourcingNo
this.partNo = this.$route.query.partNo
//
const issueRecord = this.$route.params.issueRecord
const issueRecord = this.$route.query.issueRecord
if (issueRecord) {
this.componentPartNo = issueRecord.componentPartNo
this.componentPartDesc = issueRecord.componentPartDescription || ''
this.requiredQty = Number(issueRecord.requiredQty || this.$route.params.requiredQty || 0)
this.requiredQty = Number(issueRecord.requiredQty || this.$route.query.requiredQty || 0)
this.issuedQty = Number(issueRecord.issuedQty || 0)
this.releaseNo = issueRecord.releaseNo
this.lineNo = issueRecord.lineNo
@ -257,12 +257,12 @@ export default {
} else {
//
this.componentPartNo = issueRecord.componentPartNo
this.componentPartDesc = this.$route.params.componentPartDescription || ''
this.requiredQty = Number(this.$route.params.requiredQty || 0)
this.issuedQty = Number(this.$route.params.issuedQty || 0)
this.releaseNo = this.$route.params.releaseNo
this.lineNo = this.$route.params.lineNo
this.itemNo = this.$route.params.lineItemNo
this.componentPartDesc = this.$route.query.componentPartDescription || ''
this.requiredQty = Number(this.$route.query.requiredQty || 0)
this.issuedQty = Number(this.$route.query.issuedQty || 0)
this.releaseNo = this.$route.query.releaseNo
this.lineNo = this.$route.query.lineNo
this.itemNo = this.$route.query.lineItemNo
}
},
},

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

@ -111,18 +111,18 @@ export default {
goDetail(item) {
this.$router.push({
name: 'outsourcingDirectIssueDetail',
params: {
query: {
outsourcingNo: this.outsourcingNo,
partNo: this.partNo,
partDesc: item.partDesc || '',
requiredQty: this.requiredQty,
issuedQty: item.issuedQty || 0,
issuedQty:item.qtyIssued,
issueRecord: {
orderType: 'outsourcing',
transactionId: item.transactionId,
quantity: item.quantity,
batchNo: item.batchNo,
issuedQty: item.issuedQty || 0,
issuedQty: item.qtyIssued || 0,
accountingId: item.accountingId,
componentPartNo: item.componentPartNo,
componentPartDescription: item.componentPartDescription,
@ -135,11 +135,11 @@ export default {
},
},
mounted() {
this.outsourcingNo = this.$route.params.outsourcingNo
this.partNo = this.$route.params.partNo
this.requiredQty = this.$route.params.outsourcingInfo.requiredQty
this.lineNo = this.$route.params.outsourcingInfo.lineNo
this.releaseNo = this.$route.params.outsourcingInfo.releaseNo
this.outsourcingNo = this.$route.query.outsourcingNo
this.partNo = this.$route.query.partNo
this.requiredQty = this.$route.query.outsourcingInfo.requiredQty
this.lineNo = this.$route.query.outsourcingInfo.lineNo
this.releaseNo = this.$route.query.outsourcingInfo.releaseNo
this.loadIssueList()
},
}

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

@ -44,11 +44,11 @@
</div>
<div class="card-details">
<div class="detail-item">
<div class="detail-label">库存数量</div>
<div class="detail-label">工单数量</div>
<div class="detail-value">{{ item.inventoryQty }}</div>
</div>
<div class="detail-item">
<div class="detail-label">已退数量</div>
<div class="detail-label">待接收数量</div>
<div class="detail-value">{{ item.invQtyToReceive || 0 }}</div>
</div>
<div class="detail-item">

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

@ -2,7 +2,7 @@
<div class="pda-container">
<!-- 头部栏 -->
<div class="header-bar">
<div class="header-left" @click="$router.back()">
<div class="header-left" @click="$router.push({ name: 'outsourcingReturn' })">
<i class="el-icon-arrow-left"></i>
<span>委外退料成功</span>
</div>
@ -66,9 +66,9 @@
<i class="el-icon-circle-check"></i>
<span>退料信息确认</span>
</div>
<div class="title-right">
<!-- <div class="title-right">
<span class="material-list-link" @click="showMaterialListDialog">物料清单</span>
</div>
</div> -->
</div>
<!-- 退料标签列表 -->
@ -304,7 +304,7 @@ export default {
this.$message.success('操作成功')
} else {
this.$message.error(data.message || '该标签不符合退料要求,请检查')
this.$message.error(data.msg || '该标签不符合退料要求,请检查')
}
})
.catch(() => {
@ -379,8 +379,8 @@ export default {
return
}
if(this.totalScannedQty > this.orderInfo.quantity){
this.$message.warning('请先扫描退料数量大于发料数量')
if(this.totalScannedQty > this.unissureQty){
this.$message.warning('请先扫描退料数量大于可退数量')
return
}
@ -440,13 +440,13 @@ export default {
type: 'warning',
})
.then(() => {
this.$router.back()
this.$router.push({ name: 'outsourcingReturn' })
})
.catch(() => {
//
})
} else {
this.$router.back()
this.$router.push({ name: 'outsourcingReturn' })
}
},
@ -557,7 +557,7 @@ export default {
if (!this.orderNo) {
this.$message.error('参数错误')
this.$router.back()
this.$router.push({ name: 'outsourcingReturn' })
return
}

Loading…
Cancel
Save