Browse Source

FWHL-75

hella_online_20241212_pandian
王宇飞 2 months ago
parent
commit
3a8bdf86a5
  1. 22
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

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

@ -141,6 +141,7 @@ import * as StdcostpriceApi from '@/api/wms/stdcostprice'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as BomDismantleApi from "@/api/wms/bomDismantle"
import * as BomApi from "@/api/wms/bom";
import * as SwitchApi from '@/api/wms/switch'
import * as BalanceApi from "@/api/wms/balance";
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
@ -356,11 +357,6 @@ const buttonOperationClick = async (row, label, index,isSave = false)=> {
}else{
isShowFooterButtton.value = true
isShowReduceButtonSelection.value = true
ProdcutscrapBomScrap.allSchemas.tableFormColumns.forEach(item=>{
if(item.field=='qty'){
item.tableForm.disabled = false
}
})
bomSearchData.value = ''
bomTableList.value = detatableDataBom.tableList
detailBomRef.value.open('create', row, null,'viewDetail')//
@ -785,6 +781,22 @@ const openForm =async (type: string, row?: number) => {
defaultButtons.formSaveBtn({ hide : mainStatus.value != 1 }), //
defaultButtons.formCloseBtn(null) //
]
try {
let switch1 = await SwitchApi.getByCode('productscrapBomEditSwitch')
console.log('switch',switch1)
ProdcutscrapBomScrap.allSchemas.tableFormColumns.map((bomItem) => {
if (bomItem.field == 'qty') {
bomItem.tableForm.disabled = switch1=='FALSE'
}
})
} catch {
ProdcutscrapBomScrap.allSchemas.tableFormColumns.map((bomItem) => {
if (bomItem.field == 'qty') {
bomItem.tableForm.disabled = false
}
})
}
if(type == 'create'){
ProductscrapRequestMain.allSchemas.formSchema.forEach((item) => {
if(item.field == 'productionLineCode'){

Loading…
Cancel
Save