Kaynağa Gözat

前:资质查询详情改为弹框

dubch 4 yıl önce
ebeveyn
işleme
8d5ee87203

+ 85 - 3
src/dashoo.cn/frontend_web/src/pages/select/aptitude/basisbuild/index.vue

@@ -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/basisbuild/' + scope.row.Id + '/operation'">
-              <el-button type="primary" plain title="查看" size="mini">查看</el-button>
-            </router-link>
+<!--            <router-link :to="'/select/aptitude/basisbuild/' + 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>
 
@@ -64,6 +65,35 @@
         :total="currentItemCount">
       </el-pagination>
     </el-card>
+    <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="6" v-for="(item,i) in dynamicTableColumns" :key="i">
+            <el-form-item :label="item.label">
+              <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>
@@ -85,6 +115,46 @@
         tableLoading: false,
         loading: false,
         dialogVisible: false,
+        dialogVisible1: false,
+        formData1: {
+          Id: '',
+          Code: '',
+          Name: '',
+          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: '',
+          Remark: '',
+          DeletionStateCode: '',
+          CreateOn: '',
+          CreateUserId: '',
+          CreateBy: '',
+          ModifiedOn: '',
+          ModifiedUserId: '',
+          ModifiedBy: ''
+
+        },
         // 列表数据
         entityList: [],
         // 分页参数
@@ -250,6 +320,18 @@
       this.initDatas()
     },
     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)
+        })
+      },
       initTableHeader () {
         setapi.initBbTableHeader(this.$axios).then(res => {
           this.dynamicTableColumns = res.data.items

+ 129 - 3
src/dashoo.cn/frontend_web/src/pages/select/aptitude/goods/index.vue

@@ -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
         // 显示列

+ 122 - 3
src/dashoo.cn/frontend_web/src/pages/select/aptitude/techservice/index.vue

@@ -38,9 +38,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/techservice/' + scope.row.Id + '/operation'">
-              <el-button type="primary" plain title="查看" size="mini">查看</el-button>
-            </router-link>
+<!--            <router-link :to="'/select/aptitude/techservice/' + 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>
         <el-table-column v-for="column in tableColumns" :key="column.Id" :prop="column.prop" sortable
@@ -146,6 +147,35 @@
         <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="6" v-for="(item,i) in dynamicTableColumns" :key="i">
+            <el-form-item :label="item.label">
+              <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>
@@ -170,6 +200,83 @@
         loading3: false,
         classid: '',
         dialogVisible: false,
+        dialogVisible1: false,
+        formData1: {
+          Id: '',
+          Code: '',
+          Name: '',
+          Code1: '',
+          Name1: '',
+          Code2: '',
+          Name2: '',
+          Code3: '',
+          Name3: '',
+          Code4: '',
+          Name4: '',
+          OrgId: '',
+          OrgName: '',
+          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: '',
+          F47: '',
+          F48: '',
+          F49: '',
+          F50: '',
+          F51: '',
+          F52: '',
+          Remark: '',
+          DeletionStateCode: '',
+          CreateOn: '',
+          CreateUserId: '',
+          CreateBy: '',
+          ModifiedOn: '',
+          ModifiedUserId: '',
+          ModifiedBy: ''
+
+        },
         // 列表数据
         entityList: [],
         // 分页参数
@@ -420,6 +527,18 @@
       this.initDatas()
     },
     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)
+        })
+      },
       initTableHeader () {
         setapi.initTsTableHeader(this.$axios).then(res => {
           this.dynamicTableColumns = res.data.items