Browse Source

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

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

21
src/components/Detail/src/Detail.vue

@ -832,25 +832,8 @@ const opensearchTable = (
const buttonTableClick = async (val, row) => {
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') {
//
handleDelete(row.id)

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

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

Loading…
Cancel
Save