Browse Source

生产退料申请修改

master
陈薪名 11 months ago
parent
commit
11ad3cb204
  1. 29
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
  2. 23
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts
  3. 9
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue
  4. 23
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/productionreturnRequestMainNo.data.ts

29
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue

@ -313,29 +313,30 @@ const buttonTableClick = async (val, row) => {
// //
if (res.list[0].type == "RAW") { if (res.list[0].type == "RAW") {
// tableform // tableform
detailListTableColumns.tableFormColumns.map(item => { detailListTableColumns.tableFormColumns.map(itemColumns => {
if(item.field == 'productionLineCodePackage') { if(itemColumns.field == 'productionLineCodePackage') {
item.tableForm.isInpuFocusShow = false // itemColumns.tableForm.isInpuFocusShow = false
item.tableForm.disabled = true // itemColumns.tableForm.disabled = true
ProductionreturnRequestDetailLabelRules.productionLineCodePackage[0].required = false ProductionreturnRequestDetailLabelRules.productionLineCodePackage[0].required = false
} }
if(item.field == 'supplierItemCode') { if(itemColumns.field == 'supplierItemCode') {
item.tableForm.isInpuFocusShow = true itemColumns.tableForm.isInpuFocusShow = true
item.tableForm.disabled = false itemColumns.tableForm.disabled = false
ProductionreturnRequestDetailLabelRules.supplierItemCode[0].required = true ProductionreturnRequestDetailLabelRules.supplierItemCode[0].required = true
} }
}) })
} else { } else {
// tableform // tableform
detailListTableColumns.tableFormColumns.map(item => { detailListTableColumns.tableFormColumns.map(itemColumns => {
if(item.field == 'supplierItemCode') { if(itemColumns.field == 'supplierItemCode') {
item.tableForm.isInpuFocusShow = false itemColumns.tableForm.isInpuFocusShow = false
item.tableForm.disabled = true itemColumns.tableForm.disabled = true
ProductionreturnRequestDetailLabelRules.supplierItemCode[0].required = false ProductionreturnRequestDetailLabelRules.supplierItemCode[0].required = false
} }
if(item.field == 'productionLineCodePackage') { if(itemColumns.field == 'productionLineCodePackage') {
item.tableForm.isInpuFocusShow = true item.productionLineCodePackage = item.productionLineCode
item.tableForm.disabled = false // itemColumns.tableForm.isInpuFocusShow = true
// itemColumns.tableForm.disabled = false
ProductionreturnRequestDetailLabelRules.productionLineCodePackage[0].required = true ProductionreturnRequestDetailLabelRules.productionLineCodePackage[0].required = true
} }
}) })

23
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts

@ -888,17 +888,18 @@ export const ProductionreturnRequestDetailLabel = useCrudSchemas(reactive<CrudSc
width: 150 width: 150
}, },
tableForm:{ tableForm:{
isInpuFocusShow: true, disabled: true
searchListPlaceholder: '请选择生产线代码', // 输入框占位文本 // isInpuFocusShow: true,
searchField: 'productionLineCode', // 查询弹窗赋值字段 // searchListPlaceholder: '请选择生产线代码', // 输入框占位文本
searchTitle: '生产线物品关系信息', // 查询弹窗标题 // searchField: 'productionLineCode', // 查询弹窗赋值字段
searchAllSchemas: Productionlineitem.allSchemas, // 查询弹窗所需类 // searchTitle: '生产线物品关系信息', // 查询弹窗标题
searchPage: ProductionlineitemApi.getProductionlineitemPage, // 查询弹窗所需分页方法 // searchAllSchemas: Productionlineitem.allSchemas, // 查询弹窗所需类
searchCondition:[{ // searchPage: ProductionlineitemApi.getProductionlineitemPage, // 查询弹窗所需分页方法
key: 'itemCode', // searchCondition:[{
value: 'itemCode', // key: 'itemCode',
isMainValue: true // value: 'itemCode',
}] // isMainValue: true
// }]
} }
}, },
{ {

9
src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue

@ -322,8 +322,8 @@ const buttonTableClick = async (val, row) => {
// tableform // tableform
detailListTableColumns.tableFormColumns.map(item => { detailListTableColumns.tableFormColumns.map(item => {
if(item.field == 'productionLineCodePackage') { if(item.field == 'productionLineCodePackage') {
item.tableForm.isInpuFocusShow = false // item.tableForm.isInpuFocusShow = false
item.tableForm.disabled = true // item.tableForm.disabled = true
ProductionreturnRequestDetailNoLabelRules.productionLineCodePackage[0].required = false ProductionreturnRequestDetailNoLabelRules.productionLineCodePackage[0].required = false
} }
if(item.field == 'supplierItemCode') { if(item.field == 'supplierItemCode') {
@ -341,8 +341,9 @@ const buttonTableClick = async (val, row) => {
ProductionreturnRequestDetailNoLabelRules.supplierItemCode[0].required = false ProductionreturnRequestDetailNoLabelRules.supplierItemCode[0].required = false
} }
if(item.field == 'productionLineCodePackage') { if(item.field == 'productionLineCodePackage') {
item.tableForm.isInpuFocusShow = true item.productionLineCodePackage = item.productionLineCode
item.tableForm.disabled = false // item.tableForm.isInpuFocusShow = true
// item.tableForm.disabled = false
ProductionreturnRequestDetailNoLabelRules.productionLineCodePackage[0].required = true ProductionreturnRequestDetailNoLabelRules.productionLineCodePackage[0].required = true
} }
}) })

23
src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/productionreturnRequestMainNo.data.ts

@ -821,17 +821,18 @@ export const ProductionreturnRequestDetailNoLabel = useCrudSchemas(reactive<Crud
width: 150 width: 150
}, },
tableForm:{ tableForm:{
isInpuFocusShow: true, disabled: true
searchListPlaceholder: '请选择生产线代码', // 输入框占位文本 // isInpuFocusShow: true,
searchField: 'productionLineCode', // 查询弹窗赋值字段 // searchListPlaceholder: '请选择生产线代码', // 输入框占位文本
searchTitle: '生产线物品关系信息', // 查询弹窗标题 // searchField: 'productionLineCode', // 查询弹窗赋值字段
searchAllSchemas: Productionlineitem.allSchemas, // 查询弹窗所需类 // searchTitle: '生产线物品关系信息', // 查询弹窗标题
searchPage: ProductionlineitemApi.getProductionlineitemPage, // 查询弹窗所需分页方法 // searchAllSchemas: Productionlineitem.allSchemas, // 查询弹窗所需类
searchCondition:[{ // searchPage: ProductionlineitemApi.getProductionlineitemPage, // 查询弹窗所需分页方法
key: 'itemCode', // searchCondition:[{
value: 'itemCode', // key: 'itemCode',
isMainValue: true // value: 'itemCode',
}] // isMainValue: true
// }]
} }
}, },
{ {

Loading…
Cancel
Save