Browse Source

参数

master_hella_20240701
wangyufei 4 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){
let keyValue = params.version.split(' ')
keyValue.forEach(item=>{item = item.trim()})
params.detailVersion = keyValue.join(',')
params.versions = keyValue.join(',')
}
params.version = ''
return params

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

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

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

@ -28,7 +28,7 @@
v-model:sort="tableObject.sort"
>
<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>
</Table>
</ContentWrap>
@ -188,8 +188,8 @@ onMounted(async () => {
</script>
<style lang="scss" scoped>
.red-text{
color:var(--el-color-danger);
.success-text{
color:var(--el-color-success);
font-weight:700;
}
</style>
Loading…
Cancel
Save