Browse Source

修改要货计划页面展示

intex_online20241111
YEJIAXING-PC\lenovo 4 weeks ago
parent
commit
4aef313e8c
  1. 15
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
  2. 325
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts

15
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -40,9 +40,9 @@
v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage" v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
@getSelectionRows="getSelectionRows"> @getSelectionRows="getSelectionRows">
<template #supplierCode="{row}"> <template #number="{row}">
<el-button type="primary" link @click="openDetail(row, '供应商代码', row.supplierCode)"> <el-button type="primary" link @click="openDetail(row, '供应商代码', row.number)">
<span>{{ row.supplierCode }}</span> <span>{{ row.number }}</span>
</el-button> </el-button>
</template> </template>
<template #action="{ row,$index }"> <template #action="{ row,$index }">
@ -511,18 +511,17 @@ const getSearchTableData = async (number,formField,searchField)=>{
if(item.field == 'deliveryDate'){ if(item.field == 'deliveryDate'){
item.componentProps.disabled = false item.componentProps.disabled = false
} }
}) })
}else{ }else if('update'==type){
PurchasePlanMain.allSchemas.formSchema.forEach((item) => { PurchasePlanMain.allSchemas.formSchema.forEach((item) => {
// //
if(item.field == 'supplierCode'){ if(item.field == 'supplierCode'){
item.componentProps.disabled = true item.componentProps.disabled = true
item.componentProps.isSearchList = false item.componentProps.isSearchList = false
} }
if(item.field == 'deliveryDate'){ // if(item.field == 'deliveryDate'){
item.componentProps.disabled = true // item.componentProps.disabled = true
} // }
}) })
} }
} }

325
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts

@ -14,16 +14,55 @@ const { t } = useI18n() // 国际化
* @returns {Array} * @returns {Array}
*/ */
export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '要货计划单号',
field: 'number',
sort: 'custom',
isForm: false,
table: {
width: 180,
fixed: 'left'
},
sortTableDefault:1,
sortSearchDefault:4,
isSearch: true
},
{
label: '状态',
field: 'status',
sort: 'custom',
dictType: DICT_TYPE.PURCHASE_PLAN_STATUS,
dictClass: 'string',
isTable: true,
isForm:false,
isSearch: true,
table: {
width: 150
},
sortTableDefault:2,
sortSearchDefault:6,
search:{
value:[],
componentProps: {
multiple:true
}
},
form: {
value: '1',
componentProps: {
disabled: true
}
}
},
{ {
label: '供应商代码', label: '供应商代码',
field: 'supplierCode', field: 'supplierCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150, width: 150,
fixed: 'left'
}, },
isSearch: true, isSearch: true,
sortTableDefault:1, sortTableDefault:3,
sortSearchDefault:1, sortSearchDefault:1,
form: { form: {
labelMessage: '影响明细中物料代码,需在供应商物料中维护', labelMessage: '影响明细中物料代码,需在供应商物料中维护',
@ -67,6 +106,17 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '供应商名称',
field: 'supplierName',
table: {
width: 150
},
sortTableDefault:4,
sortSearchDefault:1,
isTable:true,
isForm: false
},
//仅是主列表页面的筛选搜索条件 //仅是主列表页面的筛选搜索条件
{ {
label: '送达日期', label: '送达日期',
@ -89,24 +139,12 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '要货计划单号',
field: 'number',
sort: 'custom',
isForm: false,
table: {
width: 180,
},
sortTableDefault:8,
sortSearchDefault:4,
isSearch: true
},
{ {
label: '采购订单', label: '采购订单',
field: 'poNumber', field: 'poNumber',
sort: 'custom', sort: 'custom',
sortSearchDefault:11,
formatter: dateFormatter2,
table: { table: {
width: 150 width: 150
}, },
@ -158,7 +196,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 180 width: 180
}, },
formatter: dateFormatter2, formatter: dateFormatter2,
sortTableDefault:2, sortTableDefault:13,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -175,6 +213,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '采购订单类型', label: '采购订单类型',
field: 'type', field: 'type',
sort: 'custom', sort: 'custom',
sortTableDefault:13,
dictType: DICT_TYPE.PURCHASE_ORDER_TYPE, dictType: DICT_TYPE.PURCHASE_ORDER_TYPE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
@ -295,33 +334,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '状态',
field: 'status',
sort: 'custom',
dictType: DICT_TYPE.PURCHASE_PLAN_STATUS,
dictClass: 'string',
isTable: true,
isForm:false,
isSearch: true,
table: {
width: 150
},
sortTableDefault:13,
sortSearchDefault:6,
search:{
value:[],
componentProps: {
multiple:true
}
},
form: {
value: '1',
componentProps: {
disabled: true
}
}
},
// { // {
// label: '自动发布', // label: '自动发布',
@ -398,6 +411,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([
isTable:true, isTable:true,
isForm: false, isForm: false,
formatter: dateFormatter, formatter: dateFormatter,
sortTableDefault:13,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
@ -512,29 +526,13 @@ export const PurchasePlanMainRules = reactive({
* @returns {Array} * @returns {Array}
*/ */
export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '要货计划单号',
field: 'number',
sort: 'custom',
isTableForm: false,
hiddenInMain:true,
table: {
width: 180
},
form: {
componentProps: {
disabled: true
}
}
},
{ {
label: '采购订单号', label: '采购订单号',
field: 'poNumber', field: 'poNumber',
isSearch:true, isSearch:true,
isTable:true, isTable:true,
sortTableDefault:9, sortTableDefault:11,
sortSearchDefault:2, sortSearchDefault:11,
isForm:false, isForm:false,
isTableForm:false, isTableForm:false,
table: { table: {
@ -568,86 +566,6 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
// {
// label: '订单号',
// field: 'poNumber',
// sort: 'custom',
// table: {
// width: 180
// },
// hiddenInMain:true,
// isTableForm:false,
// tableForm: {
// disabled: true,
// isInpuFocusShow: false,
// searchListPlaceholder: '请选择订单号',
// searchField: 'number',
// searchTitle: '采购订单信息',
// searchAllSchemas: PurchaseMain.allSchemas,
// searchPage: PurchaseMainApi.getPurchaseMainPage,
// searchCondition: [{
// key: 'available',
// value: 'TRUE',
// isMainValue: false
// }, {
// key: 'supplierCode',
// value: 'supplierCode',
// message: '请填写供应商代码!',
// isMainValue: true
// }, {
// key: 'status',
// value: 2,
// isMainValue: false
// }
// ]
// },
// form: {
// // labelMessage: '信息提示说明!!!',
// componentProps: {
// disabled: true,
// isSearchList: false,
// searchListPlaceholder: '请选择订单号',
// searchField: 'number',
// searchTitle: '采购订单信息',
// searchAllSchemas: PurchaseMain.allSchemas,
// searchPage: PurchaseMainApi.getPurchaseMainPage,
// searchCondition: [{
// key: 'available',
// value: 'TRUE',
// isMainValue: false
// },{
// key: 'supplierCode',
// value: 'supplierCode',
// message: '请填写供应商代码!',
// isMainValue: true
// },{
// key: 'status',
// value: 2,
// isMainValue: false
// }]
// }
// }
// },
{
label: '计划数量',
field: 'planQty',
sort: 'custom',
table: {
width: 150
},
tableForm: {
type: 'InputNumber',
precision: 6
},
sortTableDefault:4,
form: {
component: 'InputNumber',
componentProps: {
min: 0,
precision: 6
}
}
},
{ {
label: '订单行', label: '订单行',
field: 'poLine', field: 'poLine',
@ -655,7 +573,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:10, sortTableDefault:12,
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
@ -700,13 +618,13 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '物料代码', label: '品番',
field: 'itemCode', field: 'itemCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:3, sortTableDefault:5,
sortSearchDefault:5, sortSearchDefault:5,
isSearch:true, isSearch:true,
form: { form: {
@ -741,10 +659,54 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '受入地',
field: 'receivedLocation',
sort: 'custom',
sortTableDefault:6,
sortSearchDefault:6,
table: {
width: 150
},
isTableForm: true,
isForm: true,
form: {
componentProps: {
disabled: true
}
},
tableForm: {
type: 'Select',
disabled:true,
},
},
{
label: '受入号',
field: 'receivedNumber',
sort: 'custom',
sortTableDefault:7,
sortSearchDefault:7,
table: {
width: 150
},
isTableForm: true,
isForm: true,
form: {
componentProps: {
disabled: true
}
},
tableForm: {
type: 'Select',
disabled:true,
},
},
{ {
label: '订单数量', label: '订单数量',
field: 'orderQty', field: 'orderQty',
sort: 'custom', sort: 'custom',
sortTableDefault:8,
sortSearchDefault:8,
table: { table: {
width: 150 width: 150
}, },
@ -753,35 +715,44 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
disabled: true disabled: true
} }
}, },
sortTableDefault:11,
tableForm: { tableForm: {
disabled: true disabled: true
} }
}, },
{ {
label: '已发货数量', label: '计划数量',
field: 'shippedQty', field: 'planQty',
sort: 'custom', sort: 'custom',
   sortTableDefault:9,
    sortSearchDefault:9,
table: { table: {
width: 150 width: 150
}, },
isTableForm: false, tableForm: {
isForm: false, type: 'InputNumber',
sortTableDefault:5, precision: 6
},
form: {
component: 'InputNumber',
componentProps: {
min: 0,
precision: 6
}
}
}, },
{ {
label: '已收货数量', label: '已货数量',
field: 'receivedQty', field: 'shippedQty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
sortTableDefault:6, isTable: false,
}, },
{ {
label: '在途数量', label: '在途数量',
field: 'notReceiveQty', field: 'notReceiveQty',
@ -791,6 +762,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
isTable: false,
sortTableDefault:7, sortTableDefault:7,
}, },
{ {
@ -800,10 +772,11 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.UOM, dictType: DICT_TYPE.UOM,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
   sortTableDefault:10,
    sortSearchDefault:10,
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:12,
form: { form: {
componentProps: { componentProps: {
disabled: true disabled: true
@ -814,46 +787,34 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
disabled:true, disabled:true,
} }
}, },
{ {
label: '受入号', label: '要货计划单号',
field: 'receivedNumber', field: 'number',
sort: 'custom', sort: 'custom',
isTableForm: false,
hiddenInMain:true,
table: { table: {
width: 150 width: 180
}, },
isTableForm: true,
isForm: true,
form: { form: {
componentProps: { componentProps: {
disabled: true disabled: true
} }
}, }
tableForm: {
type: 'Select',
disabled:true,
},
sortTableDefault:13,
}, },
{ {
label: '受入地', label: '已收货数量',
field: 'receivedLocation', field: 'receivedQty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isTableForm: true,
isForm: true, isTableForm: false,
form: { isForm: false,
componentProps: { isTable: false,
disabled: true sortTableDefault:6,
}
},
tableForm: {
type: 'Select',
disabled:true,
},
sortTableDefault:14,
}, },
{ {
label: '是否可用', label: '是否可用',

Loading…
Cancel
Save