实际成本

This commit is contained in:
hanchaobo
2024-09-14 17:19:34 +08:00
parent 5f59baf186
commit 64e6a9ce31
4 changed files with 273 additions and 224 deletions
+12 -18
View File
@@ -10,34 +10,28 @@ export default defineComponent({
const tableRef = ref();
const forecastDialogRef = ref();
const selectionRows = ref([]);
const btnTitle = ref("工时差异");
const btnTitle = ref("工时差异");
// const uploadUrl = ref("/c7525cost/importExcel");
//列
const columnsCheck = ref([
{ prop: "type", label: "对比项", hideInSearchForm: true },
{
label: "金额(单位:元)",
label: "实际",
prop: "costCenterCode",
hideInSearchForm: true
},
{ label: "版本1", prop: "factory", hideInSearchForm: true },
{ label: "版本2", prop: "factory", hideInSearchForm: true },
{ label: "差异金额", prop: "factory", hideInSearchForm: true },
{ label: "标准", prop: "factory", hideInSearchForm: true },
{ label: "差值", prop: "factory", hideInSearchForm: true },
{
type: "operation",
label: "差异分析",
label: "挖掘分析",
minWidth: 120,
render: ({ row }) => (
<base-table-operation
btnList={[
{
key: "check",
label:
row.type === 0
? "工时差异"
: row.type === 1
? "人工制费差异"
: "材料成本差异",
label:"查看明细",
onclick: () => timeVariance(row)
}
]}
@@ -47,20 +41,20 @@ export default defineComponent({
]);
const columns = ref([
{ type: "selection" },
{ prop: "year", label: "内部订单号" },
{ prop: "year", label: "工厂号" },
{ label: "物料号", prop: "costCenterCode" },
{ label: "成本阶段", prop: "factory" },
{ prop: "laborHourRate", label: "版本号", hideInSearchForm: true },
{ prop: "equipHourRate", label: "状态",hideInAddOrEditForm: true},
{ prop: "equipHourRate", label: "工单年月",hideInAddOrEditForm: true},
{
prop: "fuelHourRate",
label: "总标准成本(版本1)",
label: "实际总成本",
hideInSearchForm: true,
hideInAddOrEditForm: true
},
{
prop: "auxiliaryHourRate",
label: "总标准成本(版本2)",
label: "标准总成本",
hideInSearchForm: true,
hideInAddOrEditForm: true
},
@@ -75,7 +69,7 @@ export default defineComponent({
},
{
type: "operation",
label: "操作",
label: "报告状态",
minWidth: 120,
render: ({ row, doAddOrEdit, doDeleteRows, doPreview }) => (
<base-table-operation
@@ -138,7 +132,7 @@ export default defineComponent({
toolbar: ({ doAddOrEdit, doDeleteRows }) => (
<el-space>
<el-button type="primary" onClick={doAddOrEdit}>
添加对比项
新增挖掘任务
</el-button>
</el-space>
)