|
|
@@ -39,9 +39,10 @@
|
|
|
style="width: 100%" @sort-change="orderby" v-loading="tableLoading">
|
|
|
<el-table-column label="操作" min-width="80" align="center" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
- <router-link :to="'/select/aptitude/goods/' + scope.row.Id + '/operation'">
|
|
|
- <el-button type="primary" plain title="查看" size="mini">查看</el-button>
|
|
|
- </router-link>
|
|
|
+<!-- <router-link :to="'/select/aptitude/goods/' + scope.row.Id + '/operation'">-->
|
|
|
+<!-- <el-button type="primary" plain title="查看" size="mini">查看</el-button>-->
|
|
|
+<!-- </router-link>-->
|
|
|
+ <el-button type="primary" plain title="查看" size="mini" @click="selectInfo(scope.row.Id)">查看</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
@@ -175,6 +176,42 @@
|
|
|
<el-button size="mini" type="primary" @click="handleSearch">查 询</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog title="查看详情" :visible.sync="dialogVisible1" width="80%">
|
|
|
+ <div slot="header">
|
|
|
+ <span>
|
|
|
+ <i class="icon icon-table2"></i> 查看
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <el-form label-width="240px" ref="EntityForm" :model="formData1">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="名称" label-width="110px">
|
|
|
+ <el-input v-model="formData1.Name" disabled placeholder="名称">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label-width="110px" label="编码">
|
|
|
+ <el-input v-model="formData1.Code" style="width:100%" disabled placeholder="编码"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="16" style="margin-left: 60px; margin-bottom: 15px">
|
|
|
+ <span style="color: #606266; margin-left: 10px">· 通用</span>
|
|
|
+ <span style="color: #409EFF; margin-left: 10px">· 制造商</span>
|
|
|
+ <span style="color: #E6A23C; margin-left: 10px">· 非制造商</span>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="6" v-for="(item,i) in dynamicTableColumns" :key="i">
|
|
|
+ <el-form-item :label="item.label" :class="isManuf(item.IsManuf)">
|
|
|
+ <el-switch v-model="formData1[item.prop]" active-value="1" inactive-value="0" disabled></el-switch>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -205,6 +242,7 @@
|
|
|
classid: '',
|
|
|
myclassid: '',
|
|
|
dialogVisible: false,
|
|
|
+ dialogVisible1: false,
|
|
|
// 列表数据
|
|
|
entityList: [],
|
|
|
// 分页参数
|
|
|
@@ -244,6 +282,73 @@
|
|
|
Code4: '',
|
|
|
Name4: ''
|
|
|
},
|
|
|
+ formData1: {
|
|
|
+ Id: '',
|
|
|
+ Code: '',
|
|
|
+ Name: '',
|
|
|
+ BigClassName: '',
|
|
|
+ MiddleClassName: '',
|
|
|
+ SmallClassName: '',
|
|
|
+ GoodsName: '',
|
|
|
+ GoodsLevel: '',
|
|
|
+ GoodsDesc: '',
|
|
|
+ Standard: '',
|
|
|
+ CompanyType: '',
|
|
|
+ F01: '',
|
|
|
+ F02: '',
|
|
|
+ F03: '',
|
|
|
+ F04: '',
|
|
|
+ F05: '',
|
|
|
+ F06: '',
|
|
|
+ F07: '',
|
|
|
+ F08: '',
|
|
|
+ F09: '',
|
|
|
+ F10: '',
|
|
|
+ F11: '',
|
|
|
+ F12: '',
|
|
|
+ F13: '',
|
|
|
+ F14: '',
|
|
|
+ F15: '',
|
|
|
+ F16: '',
|
|
|
+ F17: '',
|
|
|
+ F18: '',
|
|
|
+ F19: '',
|
|
|
+ F20: '',
|
|
|
+ F21: '',
|
|
|
+ F22: '',
|
|
|
+ F23: '',
|
|
|
+ F24: '',
|
|
|
+ F25: '',
|
|
|
+ F26: '',
|
|
|
+ F27: '',
|
|
|
+ F28: '',
|
|
|
+ F29: '',
|
|
|
+ F30: '',
|
|
|
+ F31: '',
|
|
|
+ F32: '',
|
|
|
+ F33: '',
|
|
|
+ F34: '',
|
|
|
+ F35: '',
|
|
|
+ F36: '',
|
|
|
+ F37: '',
|
|
|
+ F38: '',
|
|
|
+ F39: '',
|
|
|
+ F40: '',
|
|
|
+ F41: '',
|
|
|
+ F42: '',
|
|
|
+ F43: '',
|
|
|
+ F44: '',
|
|
|
+ F45: '',
|
|
|
+ F46: '',
|
|
|
+ Remark: '',
|
|
|
+ DeletionStateCode: '',
|
|
|
+ CreateOn: '',
|
|
|
+ CreateUserId: '',
|
|
|
+ CreateBy: '',
|
|
|
+ ModifiedOn: '',
|
|
|
+ ModifiedUserId: '',
|
|
|
+ ModifiedBy: ''
|
|
|
+ },
|
|
|
// 查询时间
|
|
|
CreateOn: [],
|
|
|
conList: [],
|
|
|
@@ -508,6 +613,27 @@
|
|
|
this.getDictOptions()
|
|
|
},
|
|
|
methods: {
|
|
|
+ selectInfo (id) {
|
|
|
+ this.dialogVisible1 = true
|
|
|
+ this.initInfo(id)
|
|
|
+ },
|
|
|
+ initInfo (id) {
|
|
|
+ api.getEntity(id, this.$axios).then(res => {
|
|
|
+ this.formData1 = res.data
|
|
|
+ // this.isdis = true
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ isManuf (val) {
|
|
|
+ if (val === '1') {
|
|
|
+ return 'setLabelRed'
|
|
|
+ } else if (val === '2') {
|
|
|
+ return 'setLabelGreen'
|
|
|
+ } else {
|
|
|
+ return 'setLabelBlue'
|
|
|
+ }
|
|
|
+ },
|
|
|
exportExcel () {
|
|
|
this.loading = true
|
|
|
// 显示列
|