Browse Source

选不上的问题

hella_online_20240829
wangyufei 5 months ago
parent
commit
06e926182b
  1. 5
      src/views/wms/basicDataManage/itemManage/itemarea/index.vue
  2. 5
      src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue
  3. 2
      src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue
  4. 5
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue
  5. 7
      src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/index.vue
  6. 8
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue
  7. 4
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue
  8. 2
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue
  9. 11
      src/views/wms/productionManage/processproduction/processproductionRequest/index.vue
  10. 5
      src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue
  11. 2
      src/views/wms/productionManage/productionplan/productionMainAssemble/productionMainAssemble.data.ts
  12. 4
      src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue
  13. 4
      src/views/wms/productionManage/productionplan/productionMainPredictSparePart/index.vue
  14. 5
      src/views/wms/productionManage/productputawayAssemble/productputawayAssembleRequestMain/index.vue
  15. 2
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue
  16. 2
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
  17. 2
      src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue

5
src/views/wms/basicDataManage/itemManage/itemarea/index.vue

@ -122,6 +122,7 @@ const updataTableColumns = (val) => {
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(() => { nextTick(() => {
if (type == 'tableForm') { if (type == 'tableForm') {
if(formField == 'locationCode'){
val.forEach(item=>{ val.forEach(item=>{
const newRow = {...row} const newRow = {...row}
if(formField == 'locationCode') { if(formField == 'locationCode') {
@ -133,6 +134,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
newRow['id'] = item['id'] newRow['id'] = item['id']
tableData.value.push(newRow) tableData.value.push(newRow)
}) })
} else {
row[formField] = val[0][searchField]
}
}else{ }else{
const setV = {} const setV = {}

5
src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue

@ -160,16 +160,19 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
val.forEach(item=>{ val.forEach(item=>{
if(tableData.value.find(item1=>item1['itemCode'] == item['itemCode'])) return if(tableData.value.find(item1=>item1['itemCode'] == item['itemCode'])) return
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item}))
row[formField] = item[searchField]
newRow['uom'] = item['customerUom'] newRow['uom'] = item['customerUom']
newRow['id'] = item['id'] newRow['id'] = item['id']
tableData.value.push(newRow) tableData.value.push(newRow)
}) })
}else{
row[formField] = val[0][searchField]
} }
// if(formField == 'itemCode') { // if(formField == 'itemCode') {
// row['uom'] = val[0]['customerUom'] // row['uom'] = val[0]['customerUom']
// } // }
// //
row[formField] = val[0][searchField]
} else { } else {
const setV = {} const setV = {}
if(formField == 'customerDockCode') { if(formField == 'customerDockCode') {

2
src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue

@ -123,6 +123,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}else if(formField == 'fromLocationCode'){ }else if(formField == 'fromLocationCode'){
row['fromLocationCode'] = val[0]['defaultLocationCode'] row['fromLocationCode'] = val[0]['defaultLocationCode']
}else{
row[formField] = val[0][searchField]
} }
}else { }else {
const setV = {} const setV = {}

5
src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue

@ -128,6 +128,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
// tableData.value.push(newRow) // tableData.value.push(newRow)
// }) // })
// //
if(formField == 'packingNumber'){
let param = {'itemCodes':val.map(item=>item.itemCode).join(',') as string} let param = {'itemCodes':val.map(item=>item.itemCode).join(',') as string}
StdcostpriceApi.queryStdcostpriceByItemCode(param).then(res => { StdcostpriceApi.queryStdcostpriceByItemCode(param).then(res => {
val.forEach(item=>{ val.forEach(item=>{
@ -144,6 +145,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}) })
// row['singlePrice'] = res.price // row['singlePrice'] = res.price
}) })
} else {
row[formField] = val[0][searchField]
}
} else { } else {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]

7
src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/index.vue

@ -113,8 +113,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
nextTick(() => { nextTick(() => {
if (type == 'tableForm') { if (type == 'tableForm') {
// //
let newRow = JSON.parse(JSON.stringify(tableFormKeys)) if(formField=='itemCode'){
val.forEach(item=>{ val.forEach(item=>{
let newRow = JSON.parse(JSON.stringify(tableFormKeys))
newRow['packingNumber'] = item['packingNumber'] newRow['packingNumber'] = item['packingNumber']
newRow['containerNumber'] = item['containerNumber'] newRow['containerNumber'] = item['containerNumber']
newRow['batch'] = item['batch'] newRow['batch'] = item['batch']
@ -124,6 +125,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
newRow['uom'] = item['uom'] newRow['uom'] = item['uom']
tableData.value.push(newRow) tableData.value.push(newRow)
}) })
} else {
row[formField] = val[0][searchField]
}
} else { } else {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]

8
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue

@ -127,12 +127,12 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
newRow['qty'] = item['qty'] newRow['qty'] = item['qty']
tableData.value.push(newRow) tableData.value.push(newRow)
}) })
} }else if(formField === 'costcentreCode'){
if(formField === 'costcentreCode'){
row['costcentreCode'] = val[0]['costcentreCode'] row['costcentreCode'] = val[0]['costcentreCode']
} }else if(formField === 'qadProjectCode'){
if(formField === 'qadProjectCode'){
row['qadProjectCode'] = val[0]['projectCode'] row['qadProjectCode'] = val[0]['projectCode']
} else {
row[formField] = val[0][searchField]
} }
} else { } else {
const setV = {} const setV = {}

4
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

@ -114,13 +114,15 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
if (formField == 'itemCode') { if (formField == 'itemCode') {
row['itemCode'] = val[0]['componentItemCode'] row['itemCode'] = val[0]['componentItemCode']
row['uom'] = val[0]['componentUom'] row['uom'] = val[0]['componentUom']
} else { } else if(formField == 'workStation'){
val.forEach(item=>{ val.forEach(item=>{
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item}))
newRow[formField] = item[searchField] newRow[formField] = item[searchField]
newRow['toLocationCode'] = item['rawLocationCode'] newRow['toLocationCode'] = item['rawLocationCode']
tableData.value.push(newRow) tableData.value.push(newRow)
}) })
} else {
row[formField] = val[0][searchField]
} }
} else { } else {
const setV = {} const setV = {}

2
src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue

@ -160,6 +160,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
newRow['uom'] = item['uom'] newRow['uom'] = item['uom']
tableData.value.push(newRow) tableData.value.push(newRow)
}) })
} else {
row[formField] = val[0][searchField]
} }
} else { } else {

11
src/views/wms/productionManage/processproduction/processproductionRequest/index.vue

@ -135,15 +135,14 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}) })
tableData.value.push(newRow) tableData.value.push(newRow)
}) })
} }else if(formField === 'processCode'){
if(formField === 'processCode'){
row['processCode']=val[0]['code'] row['processCode']=val[0]['code']
} }else if(formField === 'locationCode'){
if(formField === 'locationCode'){
row['locationCode']=val[0]['code'] row['locationCode']=val[0]['code']
} }else if(formField === 'componentItemCode'){
if(formField === 'componentItemCode'){
row['componentItemCode']=val[0]['componentItemCode'] row['componentItemCode']=val[0]['componentItemCode']
} else {
row[formField] = val[0][searchField]
} }
}else{ }else{
const setV = {} const setV = {}

5
src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue

@ -117,6 +117,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
// }).catch(err =>{ // }).catch(err =>{
// console.log(err); // console.log(err);
// }) // })
if(formField == 'itemCode'){
val.forEach(async item=>{ val.forEach(async item=>{
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item}))
newRow[formField] = item[searchField] newRow[formField] = item[searchField]
@ -138,6 +139,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}) })
tableData.value.push(newRow) tableData.value.push(newRow)
}) })
} else {
row[formField] = val[0][searchField]
}
} else { } else {
const setV = {} const setV = {}
if(formField == 'workshop'){ if(formField == 'workshop'){

2
src/views/wms/productionManage/productionplan/productionMainAssemble/productionMainAssemble.data.ts

@ -656,7 +656,7 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([
tableForm:{ tableForm:{
multiple: true, multiple: true,
enterSearch:true, enterSearch:true,
isInpuFocusShow: true, // isInpuFocusShow: true,
searchListPlaceholder: '请选择物料代码', // 输入框占位文本 searchListPlaceholder: '请选择物料代码', // 输入框占位文本
searchField: 'itemCode', // 查询弹窗赋值字段 searchField: 'itemCode', // 查询弹窗赋值字段
searchTitle: '生产线物料关系信息', // 查询弹窗标题 searchTitle: '生产线物料关系信息', // 查询弹窗标题

4
src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue

@ -117,6 +117,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
// }).catch(err =>{ // }).catch(err =>{
// console.log(err); // console.log(err);
// }) // })
if(formField == 'itemCode'){
val.forEach(async item=>{ val.forEach(async item=>{
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item}))
newRow[formField] = item[searchField] newRow[formField] = item[searchField]
@ -138,6 +139,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}) })
tableData.value.push(newRow) tableData.value.push(newRow)
}) })
} else {
row[formField] = val[0][searchField]
}
} else { } else {
const setV = {} const setV = {}
if(formField == 'workshop'){ if(formField == 'workshop'){

4
src/views/wms/productionManage/productionplan/productionMainPredictSparePart/index.vue

@ -117,6 +117,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
// }).catch(err =>{ // }).catch(err =>{
// console.log(err); // console.log(err);
// }) // })
if(formField == 'itemCode'){
val.forEach(async item=>{ val.forEach(async item=>{
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item}))
newRow[formField] = item[searchField] newRow[formField] = item[searchField]
@ -138,6 +139,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}) })
tableData.value.push(newRow) tableData.value.push(newRow)
}) })
} else {
row[formField] = val[0][searchField]
}
} else { } else {
const setV = {} const setV = {}
if(formField == 'workshop'){ if(formField == 'workshop'){

5
src/views/wms/productionManage/productputawayAssemble/productputawayAssembleRequestMain/index.vue

@ -109,6 +109,7 @@ const updataTableColumns = (val) => {
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(() => { nextTick(() => {
if (type == 'tableForm') { if (type == 'tableForm') {
if(formField=='itemCode'){
// //
val.forEach(item=>{ val.forEach(item=>{
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item}))
@ -122,6 +123,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
newRow['fromLocationCode'] = item['locationCode'] newRow['fromLocationCode'] = item['locationCode']
tableData.value.push(newRow) tableData.value.push(newRow)
}) })
} else {
row[formField] = val[0][searchField]
}
} else { } else {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]

2
src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

@ -342,6 +342,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}) })
}else if(formField == 'bomVersion'){ }else if(formField == 'bomVersion'){
row['bomVersion'] = val[0]['version'] row['bomVersion'] = val[0]['version']
} else {
row[formField] = val[0][searchField]
} }
} else { } else {
const setV = {} const setV = {}

2
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

@ -246,6 +246,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
row['packUnit'] = val[0]['packUnit'] row['packUnit'] = val[0]['packUnit']
}else if(formField == 'defaultToLocationCode'){ }else if(formField == 'defaultToLocationCode'){
row['defaultToLocationCode'] = val[0]['code'] row['defaultToLocationCode'] = val[0]['code']
} else {
row[formField] = val[0][searchField]
} }
} else { } else {
const setV = {} const setV = {}

2
src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue

@ -193,6 +193,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
row['packUnit'] = val[0]['packUnit'] row['packUnit'] = val[0]['packUnit']
}else if(formField == 'defaultToLocationCode'){ }else if(formField == 'defaultToLocationCode'){
row['defaultToLocationCode'] = val[0]['code'] row['defaultToLocationCode'] = val[0]['code']
} else {
row[formField] = val[0][searchField]
} }
} else { } else {
const setV = {} const setV = {}

Loading…
Cancel
Save