修改bug

This commit is contained in:
‘937886381’
2024-11-14 08:45:45 +08:00
parent a492fe4c87
commit 43d0a2668d
15 changed files with 525 additions and 3185 deletions

View File

@@ -252,7 +252,7 @@ export default {
computed: {},
created() {
this.fillLineOptions();
this.fillProductOptions();
// this.fillProductOptions();
},
mounted() {
// window.addEventListener('resize', () => {
@@ -284,23 +284,23 @@ export default {
);
},
async fillProductOptions() {
const { data } = await this.$axios({
url: '/base/core-product/listAll',
method: 'get',
});
const cfg = this.searchBarFormConfig.find(
(item) => item.__index == 'product'
);
this.$set(
cfg,
'selectOptions',
data.map((item) => ({
id: item.id,
name: item.name,
}))
);
},
// async fillProductOptions() {
// const { data } = await this.$axios({
// url: '/base/core-product/listAll',
// method: 'get',
// });
// const cfg = this.searchBarFormConfig.find(
// (item) => item.__index == 'product'
// );
// this.$set(
// cfg,
// 'selectOptions',
// data.map((item) => ({
// id: item.id,
// name: item.name,
// }))
// );
// },
async getList() {
const { data } = await this.$axios({