Browse Source

发运结算明细按钮显示

master
chenfang 10 months ago
parent
commit
3d0d1ee5db
  1. 1
      src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts
  2. 2
      src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue
  3. 59
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue
  4. 1
      src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/index.vue
  5. 29
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue

1
src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts

@ -387,7 +387,6 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
disabled: true
} }
}, },
}, },

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

@ -72,6 +72,8 @@
:apiDelete="CustomerreceiptRequestDetailApi.deleteCustomerreceiptRequestDetail" :apiDelete="CustomerreceiptRequestDetailApi.deleteCustomerreceiptRequestDetail"
fromeWhere="customerreceipt" fromeWhere="customerreceipt"
:detailButtonIsShowAdd="false" :detailButtonIsShowAdd="false"
:detailButtonIsShowEdit="false"
:detailButtonIsShowDelete="false"
/> />
</template> </template>

59
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue

@ -68,6 +68,9 @@
:apiPage="CustomerreturnRequestDetailApi.getCustomerreturnRequestDetailPage" :apiPage="CustomerreturnRequestDetailApi.getCustomerreturnRequestDetailPage"
:apiDelete="CustomerreturnRequestDetailApi.deleteCustomerreturnRequestDetail" :apiDelete="CustomerreturnRequestDetailApi.deleteCustomerreturnRequestDetail"
@searchTableSuccessDetail="searchTableSuccessDetail" @searchTableSuccessDetail="searchTableSuccessDetail"
:detailButtonIsShowAdd="trueFalse"
:detailButtonIsShowDelete="trueFalse"
@detailOpenForm="detailOpenForm"
/> />
<!-- 导入 --> <!-- 导入 -->
@ -171,7 +174,7 @@ const { tableObject, tableMethods } = useTable({
// //
const { getList, setSearchParams } = tableMethods const { getList, setSearchParams } = tableMethods
const trueFalse = ref() const trueFalse = ref(true)
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:customerreturn-request-main:create'}), // defaultButtons.defaultAddBtn({hasPermi:'wms:customerreturn-request-main:create'}), //
@ -290,14 +293,66 @@ 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) => {
if(type == "update"){
CustomerreturnRequestMain.allSchemas.formSchema.forEach((item) => {
if(item.field == 'deliverRecordNumber'){
item.componentProps.isSearchList = false,
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 {
CustomerreturnRequestMain.allSchemas.formSchema.forEach((item) => {
if(item.field == 'deliverRecordNumber'){
item.componentProps.isSearchList = true
}
if(item.field == 'customerCode'){
item.componentProps.isSearchList = true
}
if(item.field == 'customerDockCode'){
item.componentProps.isSearchList = true
}
})
CustomerreturnRequestDetail.allSchemas.formSchema.forEach((itemDetail) => {
if(itemDetail.field == 'packingNumber'){
itemDetail.componentProps.isSearchList = true
}
})
}
tableData.value = [] // tableData.value = [] //
formRef.value.open(type, row) formRef.value.open(type, row)
} }
/**
* 详情 编辑页面打开
* @param type
*/
const detailOpenForm = (type) => {
if(type == 'update'){
CustomerreturnRequestDetail.allSchemas.formSchema.forEach((itemDetail) => {
if(itemDetail.field == 'packingNumber'){
itemDetail.componentProps.isSearchList = false
itemDetail.componentProps.disabled = true
}
})}else {
CustomerreturnRequestDetail.allSchemas.formSchema.forEach((itemDetail) => {
if(itemDetail.field == 'packingNumber'){
itemDetail.componentProps.isSearchList = true
}
})
}
}
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
console.log(999,row.deliverPlanNumber);
if(row.deliverPlanNumber != null){ if(row.deliverPlanNumber != null){
trueFalse.value = false trueFalse.value = false
}else { }else {

1
src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/index.vue

@ -70,6 +70,7 @@
:Echo="Echo" :Echo="Echo"
@searchTableSuccessDetail="searchTableSuccessDetail" @searchTableSuccessDetail="searchTableSuccessDetail"
:detailButtonIsShowEdit="false" :detailButtonIsShowEdit="false"
:detailButtonIsShowAdd="false"
:detailButtonIsShowDelete="false" :detailButtonIsShowDelete="false"
/> />

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

@ -73,8 +73,9 @@
:apiDelete="DeliverRequestDetailApi.deleteDeliverRequestDetail" :apiDelete="DeliverRequestDetailApi.deleteDeliverRequestDetail"
fromeWhere="DeliverRequestMain" fromeWhere="DeliverRequestMain"
@searchTableSuccessDetail="searchTableSuccessDetail" @searchTableSuccessDetail="searchTableSuccessDetail"
:detailButtonIsShowAdd="false" :detailButtonIsShowAdd="trueFalse"
:detailButtonIsShowDelete="false" :detailButtonIsShowDelete="trueFalse"
@detailOpenForm="detailOpenForm"
/> />
<!-- 导入 --> <!-- 导入 -->
@ -313,14 +314,34 @@ const openForm =async (type: string, row?: number) => {
formRef.value.open(type, row) formRef.value.open(type, row)
} }
/**
* 详情 编辑页面打开
* @param row
*/
const detailOpenForm = (type) => {
if(type == 'update'){
DeliverRequestDetail.allSchemas.formSchema.forEach((itemDetail) => {
if(itemDetail.field == 'itemCode'){
itemDetail.componentProps.isSearchList = false
itemDetail.componentProps.disabled = true
}
})}else {
DeliverRequestDetail.allSchemas.formSchema.forEach((itemDetail) => {
if(itemDetail.field == 'itemCode'){
itemDetail.componentProps.isSearchList = true
}
})
}
}
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
console.log(999,row.deliverPlanNumber); console.log(999,row.deliverPlanNumber);
if(row.deliverPlanNumber != null){ if(row.deliverPlanNumber != null){
trueFalse.value = true
}else {
trueFalse.value = false trueFalse.value = false
}else {
trueFalse.value = true
} }
detailRef.value.openDetail(row, titleName, titleValue,'requestDeliverMain') detailRef.value.openDetail(row, titleName, titleValue,'requestDeliverMain')
} }

Loading…
Cancel
Save