Browse Source

供应商发票--明细--编辑

master_hella_20240701
wangyufei 5 months ago
parent
commit
95fe3938fe
  1. 19
      src/components/Detail/src/Detail.vue
  2. 32
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

19
src/components/Detail/src/Detail.vue

@ -832,25 +832,8 @@ const opensearchTable = (
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'edit') { if (val == 'edit') {
// //
if(props.isOpenSearchTable){ // ----
searchTableFormType.value = 'update'
if (row?.id || row?.masterId) {
searchTableFormModel.value = Object.assign(unref(searchTableFormModel), row)
}
const item = props.detailAllSchemas.formSchema[0]
debugger
// opensearchTable(
// item.field, item?.componentProps?.searchField,
// item?.componentProps?.searchTitle,
// item?.componentProps?.searchAllSchemas,
// item?.componentProps?.searchPage,
// item?.componentProps?.searchCondition,
// item?.componentProps?.multiple,
// undefined,undefined
// )
}else{
openForm('update', row) openForm('update', row)
}
} else if (val == 'delete') { } else if (val == 'delete') {
// //
handleDelete(row.id) handleDelete(row.id)

32
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -138,7 +138,7 @@
:apiPage="SupplierinvoiceRequestDetailApi.getSupplierinvoiceRequestDetailPage" :apiPage="SupplierinvoiceRequestDetailApi.getSupplierinvoiceRequestDetailPage"
:apiDelete="SupplierinvoiceRequestDetailApi.deleteSupplierinvoiceRequestDetail" :apiDelete="SupplierinvoiceRequestDetailApi.deleteSupplierinvoiceRequestDetail"
:Echo="Echo" :Echo="Echo"
:detailButtonIsShowEdit="false" :detailButtonIsShowEdit="true"
:detailButtonIsShowAddStatusArray="['1','6']" :detailButtonIsShowAddStatusArray="['1','6']"
:detailButtonIsShowDelete="true" :detailButtonIsShowDelete="true"
:detailButtonIsShowAdd="true" :detailButtonIsShowAdd="true"
@ -447,7 +447,29 @@ const handleImport = () => {
if(item.field == 'orderType'){ if(item.field == 'orderType'){
item.componentProps.disabled = true item.componentProps.disabled = true
} }
if(row.status=='3'){
if(item.field == 'procurementCreator'){
//
item.componentProps.disabled = true
}
if(item.field == 'taxRate'){
//
item.componentProps.disabled = true
}
}else{
if(item.field == 'procurementCreator'){
//
item.componentProps.disabled = false
}
if(item.field == 'taxRate'){
//
item.componentProps.disabled = false
}
}
}) })
}else{ }else{
SupplierinvoiceRequestMain.allSchemas.formSchema.forEach((item) => { SupplierinvoiceRequestMain.allSchemas.formSchema.forEach((item) => {
if(item.field == 'orderType'){ if(item.field == 'orderType'){
@ -457,6 +479,14 @@ const handleImport = () => {
// //
item.value = defaultSupplierCode.value item.value = defaultSupplierCode.value
} }
if(item.field == 'procurementCreator'){
//
item.componentProps.disabled = false
}
if(item.field == 'taxRate'){
//
item.componentProps.disabled = false
}
}) })
} }

Loading…
Cancel
Save