feat: 新增带默认BOM的产品和原材料接口并优化界面

refactor(HomeModules): 重构统计面板组件并添加骨架屏
feat(coil): 添加物料类型和更新时间查询条件
style(ProductInfo/RawMaterialInfo): 阻止事件冒泡
chore: 添加钢卷图标资源
This commit is contained in:
砂糖
2025-10-31 11:52:45 +08:00
parent 93cd0e5238
commit cd040e57ea
16 changed files with 449 additions and 58 deletions

View File

@@ -153,12 +153,12 @@
icon="el-icon-delete"
@click="handleDelete(scope.row)"
>删除</el-button>
<el-button
<!-- <el-button
size="mini"
type="text"
icon="el-icon-document"
@click="goLedger(scope.row)"
>台账</el-button>
>台账</el-button> -->
</template>
</el-table-column>
</KLPTable>
@@ -297,7 +297,7 @@
</template>
<script>
import { listRawMaterial, getRawMaterial, delRawMaterial, addRawMaterial, updateRawMaterial } from "@/api/wms/rawMaterial";
import { listRawMaterial, getRawMaterial, delRawMaterial, addRawMaterial, updateRawMaterial, addRawMaterialWithBom } from "@/api/wms/rawMaterial";
import CategorySelect from "@/components/KLPService/CategorySelect/index.vue";
import CategoryRenderer from '@/components/KLPService/Renderer/CategoryRenderer.vue';
import BomPanel from '@/views/wms/bom/components/BomPanel.vue';
@@ -504,7 +504,7 @@ export default {
this.buttonLoading = false;
});
} else {
addRawMaterial(this.form).then(response => {
addRawMaterialWithBom(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();