From 585fb0bbd4a7bc7f8f333ecba7c5fecd2ee5cbc2 Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期四, 28 三月 2024 09:46:44 +0800
Subject: [PATCH] Merge branch 'master' of http://117.34.109.166:18448/r/vue_mdc_430 into develop

---
 src/views/eam/InspectionReportForms.vue |  561 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 561 insertions(+), 0 deletions(-)

diff --git a/src/views/eam/InspectionReportForms.vue b/src/views/eam/InspectionReportForms.vue
new file mode 100644
index 0000000..fca2173
--- /dev/null
+++ b/src/views/eam/InspectionReportForms.vue
@@ -0,0 +1,561 @@
+<template>
+  <a-card
+    :bordered="false"
+    title="鐢熶骇璁惧鑷富缁存姢鐐规琛�"
+  >
+    <!-- 鏌ヨ鍖哄煙 -->
+    <div class="table-page-search-wrapper">
+      <a-form
+        layout="inline"
+        @keyup.enter.native="searchQuery"
+      >
+        <a-row :gutter="24">
+          <a-col :span="6">
+            <a-form-item
+              :labelCol="labelCol"
+              :wrapperCol="wrapperCol"
+              label="缁熶竴缂栫爜"
+            >
+              <a-input
+                placeholder="璇疯緭鍏ヨ澶囩粺涓�缂栫爜鏌ヨ"
+                v-model="queryParam.num"
+              ></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :span="6">
+            <a-form-item
+              :labelCol="labelCol"
+              :wrapperCol="wrapperCol"
+              label="璁惧鍚嶇О"
+            >
+              <a-input
+                placeholder="璇疯緭鍏ヨ澶囧悕绉版煡璇�"
+                v-model="queryParam.name"
+              ></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :span="6">
+            <a-form-item
+              label="鍨嬪彿"
+              :labelCol="labelCol"
+              :wrapperCol="wrapperCol"
+            >
+              <a-input
+                v-model="queryParam.model"
+                placeholder="璇疯緭鍏ュ瀷鍙�"
+              ></a-input>
+            </a-form-item>
+          </a-col>
+        </a-row>
+      </a-form>
+    </div>
+    <div class="table-operator">
+      <a-button
+        type="primary"
+        @click="searchQuery"
+        icon="search"
+      >鏌ヨ</a-button>
+      <a-button
+        @click="searchReset"
+        icon="reload"
+      >閲嶇疆</a-button>
+    </div>
+    <div>
+      <a-table
+        ref="table"
+        size="small"
+        bordered
+        rowKey="id"
+        :scroll="{x:true}"
+        :columns="columns"
+        :dataSource="dataSource"
+        :pagination="ipagination"
+        :loading="loading"
+        @change="handleTableChange"
+      >
+        <!-- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, type:'checkbox'}" -->
+        <!-- :customRow="clickThenSelect" -->
+        <span
+          slot="yseNoPrecisionParameters"
+          slot-scope="text"
+        >
+          <a-icon
+            type="check"
+            style="color: chartreuse;"
+            v-if="text==='0'"
+          />
+          <a-icon
+            type="close"
+            v-else
+            style="color:red;"
+          />
+        </span>
+        <span
+          slot="yseNoInspectionStandard"
+          slot-scope="text"
+        >
+          <a-icon
+            type="check"
+            style="color: chartreuse;"
+            v-if="text==='0'"
+          />
+          <a-icon
+            type="close"
+            v-else
+            style="color:red;"
+          />
+        </span>
+        <span
+          slot="yseNoMaintenance2Standard"
+          slot-scope="text"
+        >
+          <a-icon
+            type="check"
+            style="color: chartreuse;"
+            v-if="text==='0'"
+          />
+          <a-icon
+            type="close"
+            v-else
+            style="color:red;"
+          />
+        </span>
+        <span
+          slot="yseNoMaintenance3Standard"
+          slot-scope="text"
+        >
+          <a-icon
+            type="check"
+            style="color: chartreuse;"
+            v-if="text==='0'"
+          />
+          <a-icon
+            type="close"
+            v-else
+            style="color:red;"
+          />
+        </span>
+      </a-table>
+      <!-- <a-table
+        ref="table"
+        size="small"
+        bordered
+        rowKey="id"
+        :scroll="{x:true}"
+        :columns="columns"
+        :dataSource="dataSource2"
+        :pagination="ipagination"
+        :loading="loading"
+        @change="handleTableChange"
+      >
+      </a-table> -->
+    </div>
+  </a-card>
+</template>
+
+<script>
+
+import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+import { mixinDevice } from '@/utils/mixin'
+import { getAction } from '@/api/manage'
+import EquipmentPrecisionParametersList from './modules/equipmentNew/EquipmentPrecisionParametersList'
+import '@/assets/less/TableExpand.less'
+import JSearchSelectTag from '../../components/dict/JSearchSelectTag.vue'
+
+export default {
+  name: "EquipmentList",
+  mixins: [JeecgListMixin, mixinDevice],
+  components: {
+    JSearchSelectTag,
+  },
+  data() {
+    return {
+      description: '鐢熶骇璁惧鑷富缁存姢鐐规琛�',
+      columns: [
+        {
+          title: '#',
+          dataIndex: '',
+          key: 'rowIndex',
+          align: 'center',
+          customRender: function (t, r, index) {
+            return parseInt(index) + 1
+          },
+          width: 50,
+        },
+        // {
+        //   title: '璁惧绫诲瀷',
+        //   align: "center",
+        //   dataIndex: 'categoryName',
+        // },
+        {
+          title: '缁熶竴缂栫爜',
+          align: "center",
+          dataIndex: 'equipmentNum',
+        },
+        {
+          title: '璁惧鍚嶇О',
+          align: "center",
+          dataIndex: 'equipmentName',
+        },
+        {
+          title: '鍨嬪彿',
+          align: "center",
+          dataIndex: 'equipmentModel',
+        },
+        {
+          title: '鐐规椤圭洰',
+          align: "center",
+          dataIndex: 'name',
+        },
+        {
+          title: '瀹屾垚鏁版嵁/瑕佹眰',
+          align: "center",
+          dataIndex: 'detectionStandard',
+        },
+        {
+          title: '1',
+          align: "center",
+          dataIndex: 'data1',
+          width: 50,
+        },
+        {
+          title: '2',
+          align: "center",
+          dataIndex: 'data2',
+          width: 50,
+        },
+        {
+          title: '3',
+          align: "center",
+          dataIndex: 'data3',
+          width: 50,
+          // scopedSlots: { customRender: 'yseNoPrecisionParameters' }
+        },
+        {
+          title: '4',
+          align: "center",
+          dataIndex: 'data4',
+          width: 50,
+          // scopedSlots: { customRender: 'yseNoInspectionStandard' }
+        },
+        {
+          title: '5',
+          align: "center",
+          dataIndex: 'data5',
+          // scopedSlots: { customRender: 'yseNoMaintenance2Standard' }
+          width: 50,
+        },
+        {
+          title: '6',
+          align: "center",
+          dataIndex: 'data6',
+          width: 50,
+        },
+        {
+          title: '7',
+          align: "center",
+          dataIndex: 'data7',
+          width: 50,
+        },
+        {
+          title: '8',
+          align: "center",
+          dataIndex: 'data8',
+          width: 50,
+        },
+        {
+          title: '9',
+          align: "center",
+          dataIndex: 'data9',
+          width: 50,
+        },
+        {
+          title: '10',
+          align: "center",
+          dataIndex: 'data10',
+          width: 50,
+        },
+        {
+          title: '11',
+          align: "center",
+          dataIndex: 'data11',
+          width: 50,
+        },
+        {
+          title: '12',
+          align: "center",
+          dataIndex: 'data12',
+          width: 50,
+        },
+        {
+          title: '13',
+          align: "center",
+          dataIndex: 'data13',
+          width: 50,
+        },
+        {
+          title: '14',
+          align: "center",
+          dataIndex: 'data14',
+          width: 50,
+        },
+        {
+          title: '15',
+          align: "center",
+          dataIndex: 'data15',
+          width: 50,
+        },
+        {
+          title: '16',
+          align: "center",
+          dataIndex: 'data16',
+          width: 50,
+        },
+        {
+          title: '17',
+          align: "center",
+          dataIndex: 'data17',
+          width: 50,
+        },
+        {
+          title: '18',
+          align: "center",
+          dataIndex: 'data18',
+          width: 50,
+        },
+        {
+          title: '19',
+          align: "center",
+          dataIndex: 'data19',
+          width: 50,
+        },
+        {
+          title: '20',
+          align: "center",
+          dataIndex: 'data20',
+          width: 50,
+        },
+        {
+          title: '21',
+          align: "center",
+          dataIndex: 'data21',
+          width: 50,
+        },
+        {
+          title: '22',
+          align: "center",
+          dataIndex: 'data22',
+          width: 50,
+        },
+        {
+          title: '23',
+          align: "center",
+          dataIndex: 'data23',
+          width: 50,
+        },
+        {
+          title: '24',
+          align: "center",
+          dataIndex: 'data24',
+          width: 50,
+        },
+        {
+          title: '25',
+          align: "center",
+          dataIndex: 'data25',
+          width: 50,
+        },
+        {
+          title: '26',
+          align: "center",
+          dataIndex: '26',
+          width: 50,
+        },
+        {
+          title: '27',
+          align: "center",
+          dataIndex: '27',
+          width: 50,
+        },
+        {
+          title: '28',
+          align: "center",
+          dataIndex: 'data28',
+          width: 50,
+        },
+        {
+          title: '29',
+          align: "center",
+          dataIndex: 'data29',
+          width: 50,
+        },
+        {
+          title: '30',
+          align: "center",
+          dataIndex: 'data30',
+          width: 50,
+        },
+        {
+          title: '31',
+          align: "center",
+          dataIndex: 'data31',
+          width: 50,
+        },
+      ],
+      columns2: [
+        {
+          title: '#',
+          dataIndex: '',
+          key: 'rowIndex',
+          align: 'center',
+          customRender: function (t, r, index) {
+            return parseInt(index) + 1
+          },
+          width: 50,
+        },
+        {
+          title: '璁惧绫诲瀷',
+          align: "center",
+          dataIndex: 'categoryName',
+        },
+        {
+          title: '缁熶竴缂栫爜',
+          align: "center",
+          dataIndex: 'equipmentNum',
+        },
+        {
+          title: '璁惧鍚嶇О',
+          align: "center",
+          dataIndex: 'equipmentName',
+        },
+        {
+          title: '鍨嬪彿',
+          align: "center",
+          dataIndex: 'equipmentModel',
+        },
+        {
+          title: '浣跨敤閮ㄩ棬',
+          align: "center",
+          dataIndex: 'departName',
+        },
+        {
+          title: 'ABC鏍囪瘑',
+          align: "center",
+          dataIndex: 'abc',
+        },
+        {
+          title: '鍏抽敭璁惧鏍囪瘑',
+          align: "center",
+          dataIndex: 'specificEquipment',
+        },
+        {
+          title: '鎶�鏈姸鎬�',
+          align: "center",
+          dataIndex: 'technologyStatus',
+        },
+      ],
+      url: {
+        list: "/eam/inspectionOrder/findInspectionProjectList",
+      },
+      dictOptions: {
+      },
+      /* 鍒嗛〉鍙傛暟 */
+      ipagination: {
+        current: 1,
+        pageSize: 20,
+        pageSizeOptions: ['5', '10', '20', '50'],
+        showTotal: (total, range) => {
+          return range[0] + "-" + range[1] + " 鍏�" + total + "鏉�"
+        },
+        showQuickJumper: true,
+        showSizeChanger: true,
+        total: 0
+      },
+      // selectedMainId: '',
+      // // superFieldList: [],
+      // equipmentProcessParametersMainId: '',
+      // equipmentDocumentMainId: '',
+      // equipmentPrecisionParametersMainId: '',
+      // precisionParametersTemplateId: '',
+      // isOpenPrecision: true,
+      // isOpenProcess: true,
+      // treeData: [],
+      labelCol: {
+        xs: { span: 24 },
+        sm: { span: 5 },
+      },
+      wrapperCol: {
+        xs: { span: 24 },
+        sm: { span: 16 },
+      },
+      mainId: '',
+    }
+  },
+  created() {
+    // this.getSuperFieldList();
+    // this.initOptions();
+  },
+  // computed: {
+  //   importExcelUrl: function () {
+  //     return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+  //   }
+  // },
+  methods: {
+    // clickThenSelect(record) {
+    //   return {
+    //     on: {
+    //       click: () => {
+    //         this.onSelectChange(record.id.split(","), [record]);
+    //       }
+    //     }
+    //   }
+    // },
+    onClearSelected() {
+      this.selectedRowKeys = [];
+      this.selectionRows = [];
+      // this.selectedMainId = ''
+    },
+    // onSelectChange(selectedRowKeys, selectionRows) {
+    //   if (selectedRowKeys.length == 1) {
+    //     this.selectedMainId = selectedRowKeys[0]
+    //     this.precisionParametersTemplateId = selectionRows[0].precisionParametersTemplateId;
+    //     // this.isOpenProcess = selectionRows[0].processParameters == 1;
+    //     this.isOpenPrecision = selectionRows[0].precisionParameters == 1;
+    //   } else {
+    //     this.selectedMainId = ''
+    //     this.precisionParametersTemplateId = ''
+    //   }
+    //   this.selectedRowKeys = selectedRowKeys;
+    //   this.selectionRows = selectionRows;
+    // },
+    loadData(arg) {
+      if (!this.url.list) {
+        this.$message.error("璇疯缃畊rl.list灞炴��!")
+        return
+      }
+      //鍔犺浇鏁版嵁 鑻ヤ紶鍏ュ弬鏁�1鍒欏姞杞界涓�椤电殑鍐呭
+      if (arg === 1) {
+        this.ipagination.current = 1;
+      }
+      this.onClearSelected()
+      var params = this.getQueryParams();//鏌ヨ鏉′欢
+      this.loading = true;
+      getAction(this.url.list, params).then((res) => {
+        if (res.success) {
+          // this.dataSource = res.result.records;
+          this.dataSource = res.result;
+          this.ipagination.total = res.result.total;
+        }
+        if (res.code === 510) {
+          this.$message.warning(res.message)
+        }
+        this.loading = false;
+      })
+    },
+
+  }
+}
+</script>
+<style scoped>
+@import '~@assets/less/common.less';
+</style>
\ No newline at end of file

--
Gitblit v1.9.3