Browse Source

发货申请编辑时限制修改字段

master
chenfang 8 months ago
parent
commit
8205780f4d
  1. 2
      src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts
  2. 2
      src/views/wms/basicDataManage/customerManage/customeritem/index.vue
  3. 14
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue

2
src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts

@ -77,7 +77,7 @@ export const Customeritem = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '客户计量单位', label: '客户计量单位',
field: 'cusotmerUom', field: 'customerUom',
dictType: DICT_TYPE.UOM, dictType: DICT_TYPE.UOM,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,

2
src/views/wms/basicDataManage/customerManage/customeritem/index.vue

@ -139,6 +139,8 @@ const butttondata = [
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'edit') { // if (val == 'edit') { //
// const res = await CustomeritemApi.getItempackaging(row.id) // const res = await CustomeritemApi.getItempackaging(row.id)
console.log(1111,row);
openForm('update', row) openForm('update', row)
} else if (val == 'delete') { // } else if (val == 'delete') { //
handleDelete(row.id) handleDelete(row.id)

14
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue

@ -312,12 +312,26 @@ const openForm =async (type: string, row?: number) => {
item.componentProps.isSearchList = false, item.componentProps.isSearchList = false,
item.componentProps.disabled = true item.componentProps.disabled = true
} }
if (item.field == 'customerCode') {
item.componentProps.isSearchList = false,
item.componentProps.disabled = true
}
if (item.field == 'customerDockCode') {
item.componentProps.isSearchList = false,
item.componentProps.disabled = true
}
}) })
}else { }else {
DeliverRequestMain.allSchemas.formSchema.forEach((item) => { DeliverRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'deliverPlanNumber') { if (item.field == 'deliverPlanNumber') {
item.componentProps.isSearchList = true item.componentProps.isSearchList = true
} }
if (item.field == 'customerCode') {
item.componentProps.isSearchList = true
}
if (item.field == 'customerDockCode') {
item.componentProps.isSearchList = true
}
}) })
} }
tableData.value = [] // tableData.value = [] //

Loading…
Cancel
Save