| | |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | |
| | | <el-descriptions class="margin-top" :column="4" :size="size" border> |
| | | <el-descriptions class="margin-top" :column="4" border> |
| | | <el-descriptions-item :span="1"> |
| | | <template slot="label"> |
| | | <i class="el-icon-user"></i> |
| | |
| | | </el-table-column> |
| | | <el-table-column label="操作内容" :show-overflow-tooltip='true' width="150" align="center" prop="operationSteps"> |
| | | </el-table-column> |
| | | <el-table-column label="技术要求" width="150" :show-overflow-tooltip='true' align="center" prop="techRequirement"> |
| | | <el-table-column label="技术要求" width="150" :show-overflow-tooltip='true' align="center" prop="techRequirement"> |
| | | </el-table-column> |
| | | <el-table-column label="类型" width="90" align="center" prop="operationType"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="dict.type.operation_type" :value="scope.row.operationType"/> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="排序" width="90" align="center" prop="stepSort"> |
| | | </el-table-column> |
| | | <el-table-column label="参数编码" width="130" align="center" prop="paramCode"> |
| | | <el-table-column label="参数编码" :show-overflow-tooltip='true' width="130" align="center" prop="paramCode"> |
| | | </el-table-column> |
| | | <el-table-column label="物料编码" width="130" align="center" prop="materialCode"> |
| | | <el-table-column label="物料编码" :show-overflow-tooltip='true' width="130" align="center" prop="materialCode"> |
| | | </el-table-column> |
| | | <el-table-column label="配方编码" width="130" align="center" prop="formulaCode"> |
| | | </el-table-column> |
| | | <el-table-column label="图片" :show-overflow-tooltip='true' width="130" align="center" prop="picture"> |
| | | <template slot-scope="scope"> |
| | | <el-image |
| | | style="width: 100px; height: 100px" |
| | | :src="pjtUrl+scope.row.picture" |
| | | :fit="fit"> |
| | | </el-image> |
| | | </template> |
| | | <!-- <template slot-scope="scope">--> |
| | | <!-- <el-image--> |
| | | <!-- style="width: 100px; height: 100px"--> |
| | | <!-- :src="pjtUrl+scope.row.picture"--> |
| | | <!-- :fit="fit">--> |
| | | <!-- </el-image>--> |
| | | <!-- </template>--> |
| | | </el-table-column> |
| | | <el-table-column label="备注" width="130" align="center" prop="remarks"> |
| | | </el-table-column> |
| | |
| | | <el-form-item label="技术要求" prop="techRequirement"> |
| | | <el-input v-model="form.techRequirement" placeholder="请输入技术要求" /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="类型" prop="operationType">--> |
| | | <!-- <el-select v-model="form.operationType" placeholder="请选择类型">--> |
| | | <!-- <el-option--> |
| | | <!-- v-for="dict in dict.type.${dictType}"--> |
| | | <!-- :key="dict.value"--> |
| | | <!-- :label="dict.label"--> |
| | | <!-- :value="dict.value"--> |
| | | <!-- ></el-option>--> |
| | | <!-- </el-select>--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item label="类型" prop="operationType"> |
| | | <el-select style="width: 100%" v-model="form.operationType" placeholder="请选择类型"> |
| | | <el-option |
| | | v-for="dict in dict.type.operation_type" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="排序" prop="stepSort"> |
| | | <el-input v-model="form.stepSort" placeholder="请输入排序" /> |
| | | </el-form-item> |
| | |
| | | |
| | | export default { |
| | | name: "FormulaChild", |
| | | dicts: ['operation_type'], |
| | | data() { |
| | | return { |
| | | pjtUrl: process.env.VUE_APP_BASE_API, |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | const formulaCode = this.$route.params && this.$route.params.formulaCode; |
| | | let formulaCode = this.$route.query.formulaCode; |
| | | this.queryParams.formulaCode = formulaCode; |
| | | this.formulaCode = formulaCode; |
| | | this.headerInformation(); |