Browse Source

修复bug

master
chenfang 11 months ago
parent
commit
fe229a81cc
  1. 6
      src/components/Detail/src/Detail.vue
  2. 4
      src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue
  3. 2
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue
  4. 3
      src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue

6
src/components/Detail/src/Detail.vue

@ -428,6 +428,12 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName:
defaultButtons.defaultFilterBtn(null) // defaultButtons.defaultFilterBtn(null) //
] ]
} }
//
if (props.fromeWhere == 'customerreceipt') {
HeadButttondata.value = [
defaultButtons.defaultFilterBtn(null) //
]
}
} }
// //

4
src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue

@ -51,6 +51,7 @@
:apiUpdate="CustomerreceiptRequestMainApi.updateCustomerreceiptRequestMain" :apiUpdate="CustomerreceiptRequestMainApi.updateCustomerreceiptRequestMain"
:apiCreate="CustomerreceiptRequestMainApi.createCustomerreceiptRequestMain" :apiCreate="CustomerreceiptRequestMainApi.createCustomerreceiptRequestMain"
:isBusiness="true" :isBusiness="true"
fromeWhere="customerreceipt"
@handleAddTable="handleAddTable" @handleAddTable="handleAddTable"
@handleDeleteTable="handleDeleteTable" @handleDeleteTable="handleDeleteTable"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@ -69,6 +70,7 @@
:apiUpdate="CustomerreceiptRequestDetailApi.updateCustomerreceiptRequestDetail" :apiUpdate="CustomerreceiptRequestDetailApi.updateCustomerreceiptRequestDetail"
:apiPage="CustomerreceiptRequestDetailApi.getCustomerreceiptRequestDetailPage" :apiPage="CustomerreceiptRequestDetailApi.getCustomerreceiptRequestDetailPage"
:apiDelete="CustomerreceiptRequestDetailApi.deleteCustomerreceiptRequestDetail" :apiDelete="CustomerreceiptRequestDetailApi.deleteCustomerreceiptRequestDetail"
fromeWhere="customerreceipt"
:Echo="Echo" :Echo="Echo"
/> />
@ -145,7 +147,7 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultExportBtn({hasPermi:'wms:customerreceipt-request-main:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:customerreceipt-request-main:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //

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

@ -285,6 +285,8 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const formRef = ref() const formRef = ref()
const openForm =async (type: string, row?: number) => { const openForm =async (type: string, row?: number) => {
console.log(9999,row)
console.log(996669,type)
tableData.value = [] // tableData.value = [] //
formRef.value.open(type, row) formRef.value.open(type, row)
} }

3
src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue

@ -109,6 +109,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
} else { } else {
const setV = {} const setV = {}
if(formField == 'itemCode') {
row['uom'] = val[0]['uom']
}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
formRef.setValues(setV) formRef.setValues(setV)
} }

Loading…
Cancel
Save