Browse Source

pc无订单修改

dev
shenzhouyu 2 weeks ago
parent
commit
9850a34584
  1. 4
      src/views/modules/haianWarehouse/noOrderIssue/newNoOrderIssueNotify54.vue
  2. 17
      src/views/modules/haianWarehouse/shipment/shipmentIssue54.vue

4
src/views/modules/haianWarehouse/noOrderIssue/newNoOrderIssueNotify54.vue

@ -477,6 +477,8 @@ import {
queryPartAttributeData, queryPartAttributeData,
searchOtherPart, searchOtherPart,
} from '@/api/haianWarehouse/noOrderIssueNotify.js' } from '@/api/haianWarehouse/noOrderIssueNotify.js'
import { haiAnGetShipmentAndLineForIssure as getShipmentAndLineForIssure } from '@/api/haianWarehouse/shipmentIssue.js'
import { haiAnGetShopOrderAndMaterialByShoporder as getShopOrderAndMaterialByShoporder } from '@/api/haianWarehouse/shopOrderIssueNotify.js'
import noorderUploadExcel from '@/views/modules/noOrderIssue/noorder_upload_excel.vue' import noorderUploadExcel from '@/views/modules/noOrderIssue/noorder_upload_excel.vue'
import baofeiUploadExcel from '@/views/modules/noOrderIssue/baofei_upload_excel.vue' import baofeiUploadExcel from '@/views/modules/noOrderIssue/baofei_upload_excel.vue'
import Chooselist from '@/views/modules/common/Chooselist_eam' import Chooselist from '@/views/modules/common/Chooselist_eam'
@ -1894,7 +1896,7 @@ export default {
// 3. - rqrq // 3. - rqrq
const requestParams = { const requestParams = {
site: this.$store.state.user.site,
site: this.$store.state.user.site+'%',
orderNo: this.orderManageData.orderNo.trim(), orderNo: this.orderManageData.orderNo.trim(),
releaseNo: this.orderManageData.releaseNo || '*', releaseNo: this.orderManageData.releaseNo || '*',
sequenceNo: this.orderManageData.sequenceNo || '*', sequenceNo: this.orderManageData.sequenceNo || '*',

17
src/views/modules/haianWarehouse/shipment/shipmentIssue54.vue

@ -2402,7 +2402,7 @@ export default {
}) })
}, },
/** /**
* 销售发货单查询IFS入参仍用大site回传contract/site映射为subsite保存 - rqrq
* 销售发货单查询site按大site+'%'模糊查IFS头行项目按返回CONTRACT分别拉取 - rqrq
*/ */
searchSOSRouting () { searchSOSRouting () {
if (this.seqNoData.orderNo == null || this.seqNoData.orderNo === '') { if (this.seqNoData.orderNo == null || this.seqNoData.orderNo === '') {
@ -2423,7 +2423,12 @@ export default {
return false return false
} }
this.seqNoModalLoading = true this.seqNoModalLoading = true
haiAnGetShipmentAndLineForIssure(this.seqNoData).then(({ data }) => {
// IFS Shipmentsitesite+'%'siteCONTRACT - rqrq
const queryData = {
...this.seqNoData,
site: (this.$store.state.user.site || '') + '%'
}
haiAnGetShipmentAndLineForIssure(queryData).then(({ data }) => {
if (data && data.code === 0) { if (data && data.code === 0) {
;(data.rows || []).forEach((newRow) => { ;(data.rows || []).forEach((newRow) => {
const inventoryQty = parseFloat(newRow.inventoryQty) || 0 const inventoryQty = parseFloat(newRow.inventoryQty) || 0
@ -2432,7 +2437,7 @@ export default {
this.$set(newRow, 'qtyToApply', qtyToApply > 0 ? qtyToApply : 0) this.$set(newRow, 'qtyToApply', qtyToApply > 0 ? qtyToApply : 0)
newRow.orderNo = newRow.orderNo || newRow.shipmentId newRow.orderNo = newRow.orderNo || newRow.shipmentId
newRow.partNo = newRow.partNo || newRow.inventoryPartNo newRow.partNo = newRow.partNo || newRow.inventoryPartNo
newRow.subSite = newRow.subSite || newRow.contract || newRow.site || this.$store.state.user.site
newRow.subSite = newRow.subSite || newRow.contract || this.$store.state.user.site
// shipmentrelease/sequence - rqrq // shipmentrelease/sequence - rqrq
newRow.releaseNo = '*' newRow.releaseNo = '*'
newRow.sequenceNo = '*' newRow.sequenceNo = '*'
@ -2450,6 +2455,7 @@ export default {
}, },
/** /**
* 海安销售发料批量保存主单site=大site明细subsite取IFS工厂编码 - rqrq * 海安销售发料批量保存主单site=大site明细subsite取IFS工厂编码 - rqrq
* 保存前将发料页字段映射为后端buildChildren所需字段componentPartNo/applyQty/lineItemNo - rqrq
*/ */
saveNewSoIssueNotify () { saveNewSoIssueNotify () {
for (let i = 0; i < this.seqNoList.length; i++) { for (let i = 0; i < this.seqNoList.length; i++) {
@ -2460,6 +2466,11 @@ export default {
this.seqNoList[i].site = this.$store.state.user.site this.seqNoList[i].site = this.$store.state.user.site
this.seqNoList[i].orderNo = this.seqNoList[i].orderNo || this.seqNoList[i].shipmentId this.seqNoList[i].orderNo = this.seqNoList[i].orderNo || this.seqNoList[i].shipmentId
this.seqNoList[i].partNo = this.seqNoList[i].partNo || this.seqNoList[i].inventoryPartNo this.seqNoList[i].partNo = this.seqNoList[i].partNo || this.seqNoList[i].inventoryPartNo
// haiAnSaveNewSoIssueNotifycomponentPartNo/applyQty/lineItemNo - rqrq
this.seqNoList[i].componentPartNo = this.seqNoList[i].componentPartNo || this.seqNoList[i].partNo || this.seqNoList[i].inventoryPartNo
this.seqNoList[i].applyQty = this.seqNoList[i].qtyToApply
// shipmentLineNoBOM_item_nolineItemNo - rqrq
this.seqNoList[i].lineItemNo = this.seqNoList[i].lineItemNo || this.seqNoList[i].shipmentLineNo
this.seqNoList[i].subSite = this.seqNoList[i].subSite || this.seqNoList[i].contract || this.seqNoList[i].site || this.$store.state.user.site this.seqNoList[i].subSite = this.seqNoList[i].subSite || this.seqNoList[i].contract || this.seqNoList[i].site || this.$store.state.user.site
this.seqNoList[i].releaseNo = this.seqNoList[i].releaseNo || '*' this.seqNoList[i].releaseNo = this.seqNoList[i].releaseNo || '*'
this.seqNoList[i].sequenceNo = this.seqNoList[i].sequenceNo || '*' this.seqNoList[i].sequenceNo = this.seqNoList[i].sequenceNo || '*'

Loading…
Cancel
Save