Browse Source

参数

master_hella_20240701
王宇飞 10 months ago
parent
commit
06a41c910a
  1. 2
      src/api/wms/demandforecastingDetail/index.ts
  2. 35
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts
  3. 6
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue

2
src/api/wms/demandforecastingDetail/index.ts

@ -51,7 +51,7 @@ const getPageParams = (params)=>{
if(params.version&&params.version.length>0){ if(params.version&&params.version.length>0){
let keyValue = params.version.split(' ') let keyValue = params.version.split(' ')
keyValue.forEach(item=>{item = item.trim()}) keyValue.forEach(item=>{item = item.trim()})
params.detailVersion = keyValue.join(',') params.versions = keyValue.join(',')
} }
params.version = '' params.version = ''
return params return params

35
src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts

@ -26,34 +26,26 @@ export const Supplier = useCrudSchemas(reactive<CrudSchema[]>([
field: 'userName', field: 'userName',
sort: 'custom', sort: 'custom',
isSearch:true, isSearch:true,
table: {
width: 150,
}
}, },
{ {
label: '用户昵称', label: '用户昵称',
field: 'nickName', field: 'nickName',
sort: 'custom', sort: 'custom',
table: {
width: 150,
}
}, },
{ {
label: '供应商代码', label: '供应商代码',
field: 'supplierCode', field: 'supplierCode',
isSearch:true, isSearch:true,
sort: 'custom', sort: 'custom',
table: {
width: 150,
}
}, },
{ {
label: '供应商名称', label: '供应商名称',
field: 'supplierName', field: 'supplierName',
sort: 'custom', sort: 'custom',
table: {
width: 150,
}
}, },
{ {
label: '创建时间', label: '创建时间',
@ -63,9 +55,7 @@ export const Supplier = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
sort: 'custom', sort: 'custom',
table: {
width: 180
},
} }
])) ]))
export const Version = useCrudSchemas(reactive<CrudSchema[]>([ export const Version = useCrudSchemas(reactive<CrudSchema[]>([
@ -74,43 +64,28 @@ export const Version = useCrudSchemas(reactive<CrudSchema[]>([
field: 'supplerCodes', field: 'supplerCodes',
sort: 'custom', sort: 'custom',
isSearch:true, isSearch:true,
table: {
width: 150,
}
}, },
{ {
label: '订单号', label: '订单号',
field: 'poNumber', field: 'poNumber',
sort: 'custom', sort: 'custom',
isSearch:true, isSearch:true,
table: {
width: 150,
}
}, },
{ {
label: '订单行', label: '订单行',
field: 'poLine', field: 'poLine',
sort: 'custom', sort: 'custom',
table: {
width: 150,
}
}, },
{ {
label: '物料代码', label: '物料代码',
field: 'itemCode', field: 'itemCode',
isSearch:true, isSearch:true,
sort: 'custom', sort: 'custom',
table: {
width: 150,
}
}, },
{ {
label: '子表版本', label: '子表版本',
field: 'detailVersion', field: 'detailVersion',
sort: 'custom', sort: 'custom',
table: {
width: 150,
}
} }
])) ]))
export const DemandforecastingMain = useCrudSchemas(reactive<CrudSchema[]>([ export const DemandforecastingMain = useCrudSchemas(reactive<CrudSchema[]>([

6
src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue

@ -28,7 +28,7 @@
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
> >
<template v-for="name in tableObjectHead.tableList" :key="name" #[name]="{row}"> <template v-for="name in tableObjectHead.tableList" :key="name" #[name]="{row}">
<span :class="{'red-text':row.differencePrice!=0}">{{ row[name] }}</span> <span :class="{'success-text':row['planType_F'].indexOf(name)>-1}">{{ row[name] }}</span>
</template> </template>
</Table> </Table>
</ContentWrap> </ContentWrap>
@ -188,8 +188,8 @@ onMounted(async () => {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.red-text{ .success-text{
color:var(--el-color-danger); color:var(--el-color-success);
font-weight:700; font-weight:700;
} }
</style> </style>
Loading…
Cancel
Save