diff --git a/11.txt b/11.txt index 13815c3..f35e9e2 100644 --- a/11.txt +++ b/11.txt @@ -6,4 +6,44 @@ 5.品质和碳中和 字体放大; -- 6.外部情报 留言板 列表 已回复; --- 7.碳中和内容管理的 查看范围; -8.碳中和相关活动报告-- 显示其他的活动 后面排.; \ No newline at end of file +8.碳中和相关活动报告-- 显示其他的活动 后面排.; + +wang123_ +urfhsdkjdwerwnvsojj + + +[ + { + 年份:2023, + data:[ + { + type:DIS, + 铜原材料使用量合计:xxx, + 铜原材料碳排放量合计:xxx, + ... (铁,铝、树脂 两个合计,list里面放对应明细) + list:[ + { + 类型:铜, + 原材料使用量:xx, + 原材料碳排放量量:xx, + }, + .... + ] + }, + { + type:DSZ, + 铜原材料使用量合计:xxx, + 铜原材料碳排放量合计:xxx, + ... (铁,铝、树脂 两个合计,list里面放对应明细) + list:[ + { + 类型:铜, + 原材料使用量:xx, + 原材料碳排放量量:xx, + }, + .... + ] + }, + ] + }, +] \ No newline at end of file diff --git a/components.d.ts b/components.d.ts index 84c7554..59aea42 100644 --- a/components.d.ts +++ b/components.d.ts @@ -29,11 +29,14 @@ declare module 'vue' { ElFormItem: typeof import('element-plus/es')['ElFormItem'] ElIcon: typeof import('element-plus/es')['ElIcon'] ElInput: typeof import('element-plus/es')['ElInput'] + ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] + ElOption: typeof import('element-plus/es')['ElOption'] ElPagination: typeof import('element-plus/es')['ElPagination'] ElProgress: typeof import('element-plus/es')['ElProgress'] ElRadio: typeof import('element-plus/es')['ElRadio'] ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] ElRow: typeof import('element-plus/es')['ElRow'] + ElSelect: typeof import('element-plus/es')['ElSelect'] ElTable: typeof import('element-plus/es')['ElTable'] ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] ElTabPane: typeof import('element-plus/es')['ElTabPane'] diff --git a/src/App.vue b/src/App.vue index 3c5b7bd..916c4a3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,11 +1,12 @@ diff --git a/src/api/daikin/base.ts b/src/api/daikin/base.ts index 04561bb..93bbe7f 100644 --- a/src/api/daikin/base.ts +++ b/src/api/daikin/base.ts @@ -1250,6 +1250,75 @@ export async function timeStat(data: any){ return http.post(`/moduleStat/timeStat`,data) } +/** + * 网站外部足迹 https://console-docs.apipost.cn/preview/24b343ac43bb13e7/d871c156cc579e86?target_id=5edbf818-b7c7-426f-83c0-fb16f48c196c + */ +export async function externalTimeStat(data: any){ + return http.post(`/moduleStat/externalTimeStat`,data) +} + +/** + * csr供应商月份列表 https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=5e2e22e5-fab5-4c46-8a93-8f0c3a3675cb + */ +export async function fetchCsrSupplier(params: any){ + return http.get(`/csrSupplier/statList`,{params}) +} + +/** + * csr供应商右侧排行列表(分页) https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=5e2e22e5-fab5-4c46-8a93-8f0c3a3675cb + */ +export async function fetchCsrSupplierTopList(params: any){ + return http.get(`/csrSupplier/topList`,{params}) +} +/** + * csr供应商右侧排行列表(分页) https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=5e2e22e5-fab5-4c46-8a93-8f0c3a3675cb + */ +export async function fetchCsrSupplierList(params: any){ + return http.get(`/csrSupplier/statMonthList`,{params}) +} +/** + * csr供应商更新时间 https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=5e2e22e5-fab5-4c46-8a93-8f0c3a3675cb + */ +export async function fetchCsrSupplierTaskInfo(params?: any){ + return http.get(`/csrSupplier/taskInfo`,{params}) +} +/** + * csr原材料-列表(分页) https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=5e2e22e5-fab5-4c46-8a93-8f0c3a3675cb + */ +export async function fetchMaterialPage(params?: any){ + return http.get(`/material/getPage`,{params}) +} +/** + * csr原材料-删除 https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=5e2e22e5-fab5-4c46-8a93-8f0c3a3675cb + */ +export async function fetchMaterialPageDel(params?: any){ + return http.get(`/material/delInfo`,{params}) +} +/** + * csr原材料-主图 https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=5e2e22e5-fab5-4c46-8a93-8f0c3a3675cb + */ +export async function fetchStatListlBar(params?: any){ + return http.get(`/material/statList`,{params}) +} +/** !!!!!! + * csr原材料-饼图 https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=5e2e22e5-fab5-4c46-8a93-8f0c3a3675cb + */ +export async function fetchStatListlPie(params?: any){ + return http.get(`/material/proportionList`,{params}) +} +/** + * csr原材料-填报数据 https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=5e2e22e5-fab5-4c46-8a93-8f0c3a3675cb +*/ +export async function fetchMaterialAddInfo(data?: any){ + return http.post(`/material/addInfo`,data) +} + +/** + * 查看模块查看范围历史 https://console-docs.apipost.cn/preview/d9d2c859db1009cd/18265d950ad924e4?target_id=4c25a720-44f2-472e-be82-c2eaf41d9a43 + */ +export async function fetchGetViewScope(params?: any){ + return http.get(`/common/getViewScope`,{params}) +} diff --git a/src/styles/reset.less b/src/styles/reset.less index ead0f18..9f1cc0a 100644 --- a/src/styles/reset.less +++ b/src/styles/reset.less @@ -6,7 +6,7 @@ input { } input:-webkit-autofill, input:-webkit-autofill:hover, -input:-webkit-autofill:focus, +// input:-webkit-autofill:focus, input:-webkit-autofill:active { font-size: inherit !important; -webkit-box-shadow: none !important; diff --git a/src/views/dataPlatform/index.vue b/src/views/dataPlatform/index.vue index 4eec802..c8a16fa 100644 --- a/src/views/dataPlatform/index.vue +++ b/src/views/dataPlatform/index.vue @@ -16,6 +16,8 @@ const message = useMessage() const store = useUserStore() const header = { 'token': store.user.token } +const showEditTime = ref(false); +const editDFormRef = ref(null); const dataA = ref([]) const dataB = ref([]) const dataC = ref([]) @@ -68,6 +70,7 @@ async function getDataC() { const dataDIS = ref() const dataDSZ = ref() const dataDISH = ref() +const timeObj = ref({}); onMounted(async () => { getDataA(); getDataB(); @@ -76,8 +79,10 @@ onMounted(async () => { }) const getFazhu=async ()=>{ + timeObj.value = {} const { data:fazhu} = await amountList() - fazhu.forEach((i: { number: string; amount: any }) => { + fazhu.forEach((i: { number: string; amount: any,updateDate: string }) => { + timeObj.value[i.number] = i.updateDate; if(i.number=='DIS'){ dataDIS.value = i.amount } @@ -252,6 +257,7 @@ const userList = ref() const showModal = ref(false) const flg = ref() const setUserList =ref() +const editD = ref({}) async function getUser(moduleId: any) { showModal.value = !showModal.value flg.value = moduleId @@ -280,25 +286,46 @@ async function getUser(moduleId: any) { showModal.value = data } const shomkD =ref(false) - const fazhus = ref() + // const fazhus = ref() const numbers = ref() const fazhu= (str: any,number: any ) =>{ numbers.value = str - fazhus.value = number + // fazhus.value = number + editD.value.fazhus = number + editD.value.time = timeObj.value[str] shomkD.value = true - } const submitFazhu=async()=>{ - const number = numbers.value - const amount = fazhus.value - console.log(typeof(number),typeof(amount)) - const {code,msg} = await updateAmount({number,amount}) - if (code === 200) { - shomkD.value = false - message.success("修改成功") - getFazhu() + editDFormRef.value.validate(async (valid: any) => { + if (!valid) return + console.log("🚀 ~ file: index.vue:301 ~ valid:", valid) + const number = numbers.value + const amount = editD.value.fazhus + const {code,msg} = await updateAmount({number,amount,updateDate:editD.value.time}) + if (code === 200) { + shomkD.value = false + message.success("修改成功") + getFazhu() + } + else message.warning(msg) + }) } - else message.warning(msg) + +const rules = { + fazhus: [ + { + required: true, + message: "不能为空", + trigger: "blur" + } + ], + time: [ + { + required: true, + message: "不能为空", + trigger: "blur" + } + ] }
+
新增 发注金额:{{dataDSZ||0}} 百万元 {{activeName}}发注金额修改 + 更新日:{{timeObj.DSZ}} + +
{
+
新增 发注金额:{{dataDISH||0}} 百万元 {{activeName}}发注金额修改 + 更新日:{{timeObj.DISH}} + +
{
- - - - + + + + +
+ + +

@@ -580,6 +628,7 @@ const submitFazhu=async()=>{ 确认
+ diff --git a/src/views/home/csr/CSRContent23.vue b/src/views/home/csr/CSRContent23.vue index 23c3b38..869fe3b 100644 --- a/src/views/home/csr/CSRContent23.vue +++ b/src/views/home/csr/CSRContent23.vue @@ -1,28 +1,103 @@