Browse Source

发运结算明细按钮显示

master
chenfang 11 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',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
disabled: true
}
},
},

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

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

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

@ -68,6 +68,9 @@
:apiPage="CustomerreturnRequestDetailApi.getCustomerreturnRequestDetailPage"
:apiDelete="CustomerreturnRequestDetailApi.deleteCustomerreturnRequestDetail"
@searchTableSuccessDetail="searchTableSuccessDetail"
:detailButtonIsShowAdd="trueFalse"
:detailButtonIsShowDelete="trueFalse"
@detailOpenForm="detailOpenForm"
/>
<!-- 导入 -->
@ -171,7 +174,7 @@ const { tableObject, tableMethods } = useTable({
//
const { getList, setSearchParams } = tableMethods
const trueFalse = ref()
const trueFalse = ref(true)
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:customerreturn-request-main:create'}), //
@ -290,14 +293,66 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const formRef = ref()
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 = [] //
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 openDetail = (row: any, titleName: any, titleValue: any) => {
console.log(999,row.deliverPlanNumber);
if(row.deliverPlanNumber != null){
trueFalse.value = false
}else {

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

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

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

@ -73,8 +73,9 @@
:apiDelete="DeliverRequestDetailApi.deleteDeliverRequestDetail"
fromeWhere="DeliverRequestMain"
@searchTableSuccessDetail="searchTableSuccessDetail"
:detailButtonIsShowAdd="false"
:detailButtonIsShowDelete="false"
:detailButtonIsShowAdd="trueFalse"
:detailButtonIsShowDelete="trueFalse"
@detailOpenForm="detailOpenForm"
/>
<!-- 导入 -->
@ -313,14 +314,34 @@ const openForm =async (type: string, row?: number) => {
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 openDetail = (row: any, titleName: any, titleValue: any) => {
console.log(999,row.deliverPlanNumber);
if(row.deliverPlanNumber != null){
trueFalse.value = true
}else {
trueFalse.value = false
}else {
trueFalse.value = true
}
detailRef.value.openDetail(row, titleName, titleValue,'requestDeliverMain')
}

Loading…
Cancel
Save