refactor (views/feed) 完善配料清单和饲喂量统计页面
+ 修改了配料清单和饲喂量统计页面的部分页面逻辑
This commit is contained in:
@@ -19,9 +19,9 @@
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<!-- <el-col :span="1.5">
|
||||
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['feed:FeedList:add']">新增</el-button>
|
||||
</el-col>
|
||||
</el-col> -->
|
||||
<el-col :span="1.5">
|
||||
<el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate"
|
||||
v-hasPermi="['feed:FeedList:edit']">修改</el-button>
|
||||
@@ -49,11 +49,11 @@
|
||||
<span>{{ scope.row.rootPlan ? parseTime(scope.row.rootPlan.planDate, '{y}-{m}-{d}') : '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="配料日期" align="center" prop="deployDate" width="180">
|
||||
<!-- <el-table-column label="配料日期" align="center" prop="deployDate" width="180">
|
||||
<template #default="scope">
|
||||
<span>{{ parseTime(scope.row.deployDate, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column> -->
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template #default="scope">
|
||||
<el-button link type="primary" icon="View" @click="handleView(scope.row)">详情</el-button>
|
||||
@@ -75,11 +75,11 @@
|
||||
<el-form-item label="饲草班人员" prop="zookeeper">
|
||||
<el-input v-model="form.zookeeper" placeholder="请输入饲草班人员名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="配料日期" prop="deployDate">
|
||||
<!-- <el-form-item label="配料日期" prop="deployDate">
|
||||
<el-date-picker clearable v-model="form.deployDate" type="date" value-format="YYYY-MM-DD"
|
||||
placeholder="请选择配料日期">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
</el-form-item> -->
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
@@ -102,7 +102,7 @@
|
||||
|
||||
<el-divider content-position="left">配料列表</el-divider>
|
||||
|
||||
<el-table :data="showFeedList.formulaList" stripe border style="width: 100%" max-height="300">
|
||||
<el-table :data="showFeedList.rootFormula.sgFormulaList" stripe border style="width: 100%" max-height="300">
|
||||
<el-table-column label="序号" type="index" width="60" align="center" />
|
||||
<!-- <el-table-column label="原料编号" prop="materialId" align="center" /> -->
|
||||
<el-table-column label="原料" align="center">
|
||||
@@ -186,6 +186,7 @@
|
||||
openModel.value = "view"
|
||||
title.value = "配料清单详情"
|
||||
console.log("查看配料清单", row)
|
||||
console.log("HandView", showFeedList.value)
|
||||
}
|
||||
|
||||
/** 查询配料清单列表 */
|
||||
|
||||
Reference in New Issue
Block a user