Browse Source

Merge remote-tracking branch 'origin/master'

liuwj 1 year ago
parent
commit
70363834e0
30 changed files with 20320 additions and 13096 deletions
  1. 15328 11372
      itdmWeb/package-lock.json
  2. 27 20
      itdmWeb/package.json
  3. 209 0
      itdmWeb/src/views/module-iTDM/chuanganqi/ItdmChuanganqiList.vue
  4. 131 0
      itdmWeb/src/views/module-iTDM/chuanganqi/modules/ItdmChuanganqiForm.vue
  5. 84 0
      itdmWeb/src/views/module-iTDM/chuanganqi/modules/ItdmChuanganqiModal.Style#Drawer.vue
  6. 60 0
      itdmWeb/src/views/module-iTDM/chuanganqi/modules/ItdmChuanganqiModal.vue
  7. 204 0
      itdmWeb/src/views/module-iTDM/itdmPeizhi/ItdmPeizhiList.vue
  8. 26 0
      itdmWeb/src/views/module-iTDM/itdmPeizhi/ItdmPeizhi_menu_insert.sql
  9. 115 0
      itdmWeb/src/views/module-iTDM/itdmPeizhi/modules/ItdmPeizhiForm.vue
  10. 84 0
      itdmWeb/src/views/module-iTDM/itdmPeizhi/modules/ItdmPeizhiModal.Style#Drawer.vue
  11. 60 0
      itdmWeb/src/views/module-iTDM/itdmPeizhi/modules/ItdmPeizhiModal.vue
  12. 209 0
      itdmWeb/src/views/module-iTDM/itdmYuzhi/ItdmYuzhiList.vue
  13. 26 0
      itdmWeb/src/views/module-iTDM/itdmYuzhi/ItdmYuzhi_menu_insert.sql
  14. 127 0
      itdmWeb/src/views/module-iTDM/itdmYuzhi/modules/ItdmYuzhiForm.vue
  15. 84 0
      itdmWeb/src/views/module-iTDM/itdmYuzhi/modules/ItdmYuzhiModal.Style#Drawer.vue
  16. 60 0
      itdmWeb/src/views/module-iTDM/itdmYuzhi/modules/ItdmYuzhiModal.vue
  17. 256 0
      itdmWeb/src/views/module-iTDM/weituo/ItdmWeituoInfoList.vue
  18. 150 0
      itdmWeb/src/views/module-iTDM/weituo/modules/ItdmWeituoInfoForm.vue
  19. 84 0
      itdmWeb/src/views/module-iTDM/weituo/modules/ItdmWeituoInfoModal.Style#Drawer.vue
  20. 79 0
      itdmWeb/src/views/module-iTDM/weituo/modules/ItdmWeituoInfoModal.vue
  21. 129 0
      itdmWeb/src/views/module-iTDM/weituo/modules/step/ItdmWeituoYangpinExtendForm.vue
  22. 159 0
      itdmWeb/src/views/module-iTDM/weituo/modules/step/Step1.vue
  23. 195 0
      itdmWeb/src/views/module-iTDM/weituo/modules/step/Step2.vue
  24. 247 0
      itdmWeb/src/views/module-iTDM/weituo/modules/step/Step3.vue
  25. 198 0
      itdmWeb/src/views/module-iTDM/weituoyiju/ItdmWeituoYijuList.vue
  26. 117 0
      itdmWeb/src/views/module-iTDM/weituoyiju/modules/ItdmWeituoYijuForm.vue
  27. 84 0
      itdmWeb/src/views/module-iTDM/weituoyiju/modules/ItdmWeituoYijuModal.Style#Drawer.vue
  28. 60 0
      itdmWeb/src/views/module-iTDM/weituoyiju/modules/ItdmWeituoYijuModal.vue
  29. 1 0
      itdmWeb/vue.config.js
  30. 1727 1704
      itdmWeb/yarn.lock

File diff suppressed because it is too large
+ 15328 - 11372
itdmWeb/package-lock.json


+ 27 - 20
itdmWeb/package.json

@@ -10,58 +10,62 @@
     "lint": "vue-cli-service lint"
   },
   "dependencies": {
+    "@antv/data-set": "^0.11.4",
     "@jeecg/antd-online-mini": "3.4.3-beta2",
+    "@tinymce/tinymce-vue": "2.1.0",
+    "@toast-ui/editor": "^2.1.2",
     "ant-design-vue": "^1.7.2",
-    "@antv/data-set": "^0.11.4",
-    "viser-vue": "^2.4.8",
     "axios": "^0.18.0",
+    "china-area-data": "^5.0.1",
+    "clipboard": "^2.0.4",
+    "codemirror": "^5.46.0",
+    "cron-parser": "^2.10.0",
     "dayjs": "^1.8.0",
+    "dhtmlx-gantt": "^8.0.1",
+    "dom-align": "1.12.0",
     "enquire.js": "^2.1.6",
+    "font-awesome": "^4.7.0",
     "js-cookie": "^2.2.0",
     "lodash.get": "^4.4.2",
     "lodash.pick": "^4.4.0",
     "md5": "^2.2.1",
     "nprogress": "^0.2.0",
+    "qiankun": "^2.5.1",
+    "tinymce": "5.4.1",
+    "viser-vue": "^2.4.8",
     "vue": "^2.6.10",
+    "vue-area-linkage": "^5.1.0",
     "vue-cropper": "^0.5.4",
     "vue-i18n": "^8.7.0",
     "vue-loader": "^15.7.0",
     "vue-ls": "^3.2.0",
-    "vue-router": "^3.0.1",
-    "vuex": "^3.1.0",
-    "vue-print-nb-jeecg": "^1.0.12",
-    "clipboard": "^2.0.4",
     "vue-photo-preview": "^1.1.3",
+    "vue-print-nb-jeecg": "^1.0.12",
+    "vue-router": "^3.0.1",
     "vue-splitpane": "^1.0.4",
     "vuedraggable": "^2.20.0",
-    "codemirror": "^5.46.0",
-    "@tinymce/tinymce-vue": "2.1.0",
-    "tinymce": "5.4.1",
-    "@toast-ui/editor": "^2.1.2",
-    "vue-area-linkage": "^5.1.0",
-    "china-area-data": "^5.0.1",
-    "dom-align": "1.12.0",
-    "xe-utils": "2.4.8",
+    "vuex": "^3.1.0",
     "vxe-table": "2.9.13",
     "vxe-table-plugin-antd": "1.8.10",
-    "cron-parser": "^2.10.0",
-    "qiankun": "^2.5.1",
+    "xe-utils": "2.4.8",
     "xss": "^1.0.13"
   },
   "devDependencies": {
+    "sass": "^1.34.1",
+    "sass-loader": "^12.1.0", 
     "@babel/polyfill": "^7.2.5",
     "@vue/cli-plugin-babel": "^3.3.0",
     "@vue/cli-plugin-eslint": "^3.3.0",
     "@vue/cli-service": "^3.3.0",
     "@vue/eslint-config-standard": "^4.0.0",
     "babel-eslint": "7.2.3",
+    "compression-webpack-plugin": "^3.1.0",
     "eslint": "^5.16.0",
     "eslint-plugin-vue": "^5.1.0",
+    "html-webpack-plugin": "^4.2.0",
     "less": "^3.9.0",
     "less-loader": "^4.1.0",
-    "vue-template-compiler": "^2.6.10",
-    "html-webpack-plugin": "^4.2.0",
-    "compression-webpack-plugin": "^3.1.0"
+    "vue-template-compiler": "^2.6.10"
   },
   "eslintConfig": {
     "root": true,
@@ -99,7 +103,10 @@
       "vue/html-closing-bracket-newline": 0,
       "vue/no-parsing-error": 0,
       "no-tabs": 0,
-      "indent": ["off", 2],
+      "indent": [
+        "off",
+        2
+      ],
       "no-console": 0,
       "space-before-function-paren": 0
     }

+ 209 - 0
itdmWeb/src/views/module-iTDM/chuanganqi/ItdmChuanganqiList.vue

@@ -0,0 +1,209 @@
+<template>
+  <a-card :bordered="false">
+    <!-- 查询区域 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline" @keyup.enter.native="searchQuery">
+        <a-row :gutter="24">
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="型号">
+              <a-input placeholder="请输入型号" v-model="queryParam.xinghao"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="序列号">
+              <a-input placeholder="请输入序列号" v-model="queryParam.xuliehao"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
+              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
+              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
+              <a @click="handleToggleSearch" style="margin-left: 8px">
+                {{ toggleSearchStatus ? '收起' : '展开' }}
+                <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
+              </a>
+            </span>
+          </a-col>
+        </a-row>
+      </a-form>
+    </div>
+    <!-- 查询区域-END -->
+
+    <!-- 操作按钮区域 -->
+    <div class="table-operator">
+      <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
+      <a-button type="primary" icon="download" @click="handleExportXls('传感器管理')">导出</a-button>
+      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
+        <a-button type="primary" icon="import">导入</a-button>
+      </a-upload>
+      <!-- 高级查询区域 -->
+      <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
+      <a-dropdown v-if="selectedRowKeys.length > 0">
+        <a-menu slot="overlay">
+          <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
+        </a-menu>
+        <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
+      </a-dropdown>
+    </div>
+
+    <!-- table区域-begin -->
+    <div>
+      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
+        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
+        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
+      </div>
+
+      <a-table
+        ref="table"
+        size="middle"
+        :scroll="{x:true}"
+        bordered
+        rowKey="id"
+        :columns="columns"
+        :dataSource="dataSource"
+        :pagination="ipagination"
+        :loading="loading"
+        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
+        class="j-table-force-nowrap"
+        @change="handleTableChange">
+
+        <template slot="htmlSlot" slot-scope="text">
+          <div v-html="text"></div>
+        </template>
+        <template slot="imgSlot" slot-scope="text,record">
+          <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
+          <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
+        </template>
+        <template slot="fileSlot" slot-scope="text">
+          <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
+          <a-button
+            v-else
+            :ghost="true"
+            type="primary"
+            icon="download"
+            size="small"
+            @click="downloadFile(text)">
+            下载
+          </a-button>
+        </template>
+
+        <span slot="action" slot-scope="text, record">
+          <a @click="handleEdit(record)">编辑</a>
+
+          <a-divider type="vertical" />
+          <a-dropdown>
+            <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
+            <a-menu slot="overlay">
+              <a-menu-item>
+                <a @click="handleDetail(record)">详情</a>
+              </a-menu-item>
+              <a-menu-item>
+                <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
+                  <a>删除</a>
+                </a-popconfirm>
+              </a-menu-item>
+            </a-menu>
+          </a-dropdown>
+        </span>
+
+      </a-table>
+    </div>
+
+    <itdm-chuanganqi-modal ref="modalForm" @ok="modalFormOk"></itdm-chuanganqi-modal>
+  </a-card>
+</template>
+
+<script>
+
+  import '@/assets/less/TableExpand.less'
+  import { mixinDevice } from '@/utils/mixin'
+  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+  import ItdmChuanganqiModal from './modules/ItdmChuanganqiModal'
+
+  export default {
+    name: 'ItdmChuanganqiList',
+    mixins:[JeecgListMixin, mixinDevice],
+    components: {
+      ItdmChuanganqiModal
+    },
+    data () {
+      return {
+        description: '传感器管理管理页面',
+        // 表头
+        columns: [
+          {
+            title: '#',
+            dataIndex: '',
+            key:'rowIndex',
+            width:60,
+            align:"center",
+            customRender:function (t,r,index) {
+              return parseInt(index)+1;
+            }
+          },
+          {
+            title:'型号',
+            align:"center",
+            dataIndex: 'xinghao'
+          },
+          {
+            title:'序列号',
+            align:"center",
+            dataIndex: 'xuliehao'
+          },
+          {
+            title:'灵敏度',
+            align:"center",
+            dataIndex: 'lingmindu'
+          },
+          {
+            title:'有效期',
+            align:"center",
+            dataIndex: 'youxiaoqi'
+          },
+          {
+            title: '操作',
+            dataIndex: 'action',
+            align:"center",
+            fixed:"right",
+            width:147,
+            scopedSlots: { customRender: 'action' }
+          }
+        ],
+        url: {
+          list: "/chuanganqi/itdmChuanganqi/list",
+          delete: "/chuanganqi/itdmChuanganqi/delete",
+          deleteBatch: "/chuanganqi/itdmChuanganqi/deleteBatch",
+          exportXlsUrl: "/chuanganqi/itdmChuanganqi/exportXls",
+          importExcelUrl: "chuanganqi/itdmChuanganqi/importExcel",
+          
+        },
+        dictOptions:{},
+        superFieldList:[],
+      }
+    },
+    created() {
+    this.getSuperFieldList();
+    },
+    computed: {
+      importExcelUrl: function(){
+        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+      },
+    },
+    methods: {
+      initDictConfig(){
+      },
+      getSuperFieldList(){
+        let fieldList=[];
+        fieldList.push({type:'string',value:'xinghao',text:'型号',dictCode:''})
+        fieldList.push({type:'string',value:'xuliehao',text:'序列号',dictCode:''})
+        fieldList.push({type:'string',value:'lingmindu',text:'灵敏度',dictCode:''})
+        fieldList.push({type:'string',value:'youxiaoqi',text:'有效期',dictCode:''})
+        this.superFieldList = fieldList
+      }
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less';
+</style>

+ 131 - 0
itdmWeb/src/views/module-iTDM/chuanganqi/modules/ItdmChuanganqiForm.vue

@@ -0,0 +1,131 @@
+<template>
+  <a-spin :spinning="confirmLoading">
+    <j-form-container :disabled="formDisabled">
+      <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
+        <a-row>
+          <a-col :span="24">
+            <a-form-model-item label="型号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="xinghao">
+              <a-input v-model="model.xinghao" placeholder="请输入型号"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="序列号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="xuliehao">
+              <a-input v-model="model.xuliehao" placeholder="请输入序列号"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="灵敏度" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="lingmindu">
+              <a-input v-model="model.lingmindu" placeholder="请输入灵敏度"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="有效期" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="youxiaoqi">
+              <a-input v-model="model.youxiaoqi" placeholder="请输入有效期"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+        </a-row>
+      </a-form-model>
+    </j-form-container>
+  </a-spin>
+</template>
+
+<script>
+
+  import { httpAction, getAction } from '@/api/manage'
+  import { validateDuplicateValue } from '@/utils/util'
+
+  export default {
+    name: 'ItdmChuanganqiForm',
+    components: {
+    },
+    props: {
+      //表单禁用
+      disabled: {
+        type: Boolean,
+        default: false,
+        required: false
+      }
+    },
+    data () {
+      return {
+        model:{
+         },
+        labelCol: {
+          xs: { span: 24 },
+          sm: { span: 5 },
+        },
+        wrapperCol: {
+          xs: { span: 24 },
+          sm: { span: 16 },
+        },
+        confirmLoading: false,
+        validatorRules: {
+           xinghao: [
+              { required: true, message: '请输入型号!'},
+           ],
+           xuliehao: [
+              { required: true, message: '请输入序列号!'},
+           ],
+           lingmindu: [
+              { required: true, message: '请输入灵敏度!'},
+           ],
+           youxiaoqi: [
+              { required: true, message: '请输入有效期!'},
+           ],
+        },
+        url: {
+          add: "/chuanganqi/itdmChuanganqi/add",
+          edit: "/chuanganqi/itdmChuanganqi/edit",
+          queryById: "/chuanganqi/itdmChuanganqi/queryById"
+        }
+      }
+    },
+    computed: {
+      formDisabled(){
+        return this.disabled
+      },
+    },
+    created () {
+       //备份model原始值
+      this.modelDefault = JSON.parse(JSON.stringify(this.model));
+    },
+    methods: {
+      add () {
+        this.edit(this.modelDefault);
+      },
+      edit (record) {
+        this.model = Object.assign({}, record);
+        this.visible = true;
+      },
+      submitForm () {
+        const that = this;
+        // 触发表单验证
+        this.$refs.form.validate(valid => {
+          if (valid) {
+            that.confirmLoading = true;
+            let httpurl = '';
+            let method = '';
+            if(!this.model.id){
+              httpurl+=this.url.add;
+              method = 'post';
+            }else{
+              httpurl+=this.url.edit;
+               method = 'put';
+            }
+            httpAction(httpurl,this.model,method).then((res)=>{
+              if(res.success){
+                that.$message.success(res.message);
+                that.$emit('ok');
+              }else{
+                that.$message.warning(res.message);
+              }
+            }).finally(() => {
+              that.confirmLoading = false;
+            })
+          }
+         
+        })
+      },
+    }
+  }
+</script>

+ 84 - 0
itdmWeb/src/views/module-iTDM/chuanganqi/modules/ItdmChuanganqiModal.Style#Drawer.vue

@@ -0,0 +1,84 @@
+<template>
+  <a-drawer
+    :title="title"
+    :width="width"
+    placement="right"
+    :closable="false"
+    @close="close"
+    destroyOnClose
+    :visible="visible">
+    <itdm-chuanganqi-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" normal></itdm-chuanganqi-form>
+    <div class="drawer-footer">
+      <a-button @click="handleCancel" style="margin-bottom: 0;">关闭</a-button>
+      <a-button v-if="!disableSubmit"  @click="handleOk" type="primary" style="margin-bottom: 0;">提交</a-button>
+    </div>
+  </a-drawer>
+</template>
+
+<script>
+
+  import ItdmChuanganqiForm from './ItdmChuanganqiForm'
+
+  export default {
+    name: 'ItdmChuanganqiModal',
+    components: {
+      ItdmChuanganqiForm
+    },
+    data () {
+      return {
+        title:"操作",
+        width:800,
+        visible: false,
+        disableSubmit: false
+      }
+    },
+    methods: {
+      add () {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.add();
+        })
+      },
+      edit (record) {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.edit(record);
+        });
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      submitCallback(){
+        this.$emit('ok');
+        this.visible = false;
+      },
+      handleOk () {
+        this.$refs.realForm.submitForm();
+      },
+      handleCancel () {
+        this.close()
+      }
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+/** Button按钮间距 */
+  .ant-btn {
+    margin-left: 30px;
+    margin-bottom: 30px;
+    float: right;
+  }
+  .drawer-footer{
+    position: absolute;
+    bottom: -8px;
+    width: 100%;
+    border-top: 1px solid #e8e8e8;
+    padding: 10px 16px;
+    text-align: right;
+    left: 0;
+    background: #fff;
+    border-radius: 0 0 2px 2px;
+  }
+</style>

+ 60 - 0
itdmWeb/src/views/module-iTDM/chuanganqi/modules/ItdmChuanganqiModal.vue

@@ -0,0 +1,60 @@
+<template>
+  <j-modal
+    :title="title"
+    :width="width"
+    :visible="visible"
+    switchFullscreen
+    @ok="handleOk"
+    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
+    @cancel="handleCancel"
+    cancelText="关闭">
+    <itdm-chuanganqi-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></itdm-chuanganqi-form>
+  </j-modal>
+</template>
+
+<script>
+
+  import ItdmChuanganqiForm from './ItdmChuanganqiForm'
+  export default {
+    name: 'ItdmChuanganqiModal',
+    components: {
+      ItdmChuanganqiForm
+    },
+    data () {
+      return {
+        title:'',
+        width:800,
+        visible: false,
+        disableSubmit: false
+      }
+    },
+    methods: {
+      add () {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.add();
+        })
+      },
+      edit (record) {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.edit(record);
+        })
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      handleOk () {
+        this.$refs.realForm.submitForm();
+      },
+      submitCallback(){
+        this.$emit('ok');
+        this.visible = false;
+      },
+      handleCancel () {
+        this.close()
+      }
+    }
+  }
+</script>

+ 204 - 0
itdmWeb/src/views/module-iTDM/itdmPeizhi/ItdmPeizhiList.vue

@@ -0,0 +1,204 @@
+<template>
+  <a-card :bordered="false">
+    <!-- 查询区域 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline" @keyup.enter.native="searchQuery">
+        <a-row :gutter="24">
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="配置名称">
+              <a-input placeholder="请输入配置名称" v-model="queryParam.peizhiName"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="配置状态">
+              <j-dict-select-tag placeholder="请选择配置状态" v-model="queryParam.peizhiState" dictCode="peizhi_state"/>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
+              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
+              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
+              <!-- <a @click="handleToggleSearch" style="margin-left: 8px">
+                {{ toggleSearchStatus ? '收起' : '展开' }}
+                <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
+              </a> -->
+            </span>
+          </a-col>
+        </a-row>
+      </a-form>
+    </div>
+    <!-- 查询区域-END -->
+
+    <!-- 操作按钮区域 -->
+    <div class="table-operator">
+      <a-button @click="handleAdd" v-has="'peizhi:add'" type="primary" icon="plus">新增</a-button>
+      <!-- <a-button type="primary" icon="download" @click="handleExportXls('系统配置')">导出</a-button>
+      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
+        <a-button type="primary" icon="import">导入</a-button>
+      </a-upload> -->
+      <!-- 高级查询区域 -->
+      <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery" v-has="'peizhi:gaoji'"></j-super-query>
+      <a-dropdown v-if="selectedRowKeys.length > 0">
+        <a-menu slot="overlay">
+          <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
+        </a-menu>
+        <a-button v-has="'peizhi:batch'" style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
+      </a-dropdown>
+    </div>
+
+    <!-- table区域-begin -->
+    <div>
+      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
+        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
+        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
+      </div>
+
+      <a-table
+        ref="table"
+        size="middle"
+        :scroll="{x:true}"
+        bordered
+        rowKey="id"
+        :columns="columns"
+        :dataSource="dataSource"
+        :pagination="ipagination"
+        :loading="loading"
+        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
+        class="j-table-force-nowrap"
+        @change="handleTableChange">
+
+        <template slot="htmlSlot" slot-scope="text">
+          <div v-html="text"></div>
+        </template>
+        <template slot="imgSlot" slot-scope="text,record">
+          <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
+          <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
+        </template>
+        <template slot="fileSlot" slot-scope="text">
+          <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
+          <a-button
+            v-else
+            :ghost="true"
+            type="primary"
+            icon="download"
+            size="small"
+            @click="downloadFile(text)">
+            下载
+          </a-button>
+        </template>
+
+        <span slot="action" slot-scope="text, record">
+          <a @click="handleEdit(record)" v-has="'peizhi:update'">编辑</a>
+
+          <a-divider type="vertical" />
+          <a-dropdown>
+            <a class="ant-dropdown-link" v-has="'peizhi:more'">更多 <a-icon type="down" /></a>
+            <a-menu slot="overlay">
+              <a-menu-item>
+                <a @click="handleDetail(record)" v-has="'peizhi:detail'">详情</a>
+              </a-menu-item>
+              <a-menu-item>
+                <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)" v-has="'peizhi:delete'">
+                  <a>删除</a>
+                </a-popconfirm>
+              </a-menu-item>
+            </a-menu>
+          </a-dropdown>
+        </span>
+
+      </a-table>
+    </div>
+
+    <itdm-peizhi-modal ref="modalForm" @ok="modalFormOk"></itdm-peizhi-modal>
+  </a-card>
+</template>
+
+<script>
+
+  import '@/assets/less/TableExpand.less'
+  import { mixinDevice } from '@/utils/mixin'
+  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+  import ItdmPeizhiModal from './modules/ItdmPeizhiModal'
+  import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
+
+  export default {
+    name: 'ItdmPeizhiList',
+    mixins:[JeecgListMixin, mixinDevice],
+    components: {
+      ItdmPeizhiModal
+    },
+    data () {
+      return {
+        description: '系统配置管理页面',
+        // 表头
+        columns: [
+          {
+            title: '#',
+            dataIndex: '',
+            key:'rowIndex',
+            width:60,
+            align:"center",
+            customRender:function (t,r,index) {
+              return parseInt(index)+1;
+            }
+          },
+          {
+            title:'配置名称',
+            align:"center",
+            dataIndex: 'peizhiName'
+          },
+          {
+            title:'配置状态',
+            align:"center",
+            dataIndex: 'peizhiState_dictText'
+          },
+          {
+            title:'备注',
+            align:"center",
+            dataIndex: 'peizhiNotes'
+          },
+          {
+            title: '操作',
+            dataIndex: 'action',
+            align:"center",
+            fixed:"right",
+            width:147,
+            scopedSlots: { customRender: 'action' }
+          }
+        ],
+        url: {
+          list: "/itdmPeizhi/itdmPeizhi/list",
+          delete: "/itdmPeizhi/itdmPeizhi/delete",
+          deleteBatch: "/itdmPeizhi/itdmPeizhi/deleteBatch",
+          exportXlsUrl: "/itdmPeizhi/itdmPeizhi/exportXls",
+          importExcelUrl: "itdmPeizhi/itdmPeizhi/importExcel",
+          
+        },
+        dictOptions:{},
+        superFieldList:[],
+      }
+    },
+    created() {
+    this.getSuperFieldList();
+    },
+    computed: {
+      importExcelUrl: function(){
+        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+      },
+    },
+    methods: {
+      initDictConfig(){
+      },
+      getSuperFieldList(){
+        let fieldList=[];
+        fieldList.push({type:'string',value:'peizhiName',text:'配置名称',dictCode:''})
+        fieldList.push({type:'int',value:'peizhiState',text:'配置状态',dictCode:'peizhi_state'})
+        fieldList.push({type:'string',value:'peizhiNotes',text:'备注',dictCode:''})
+        this.superFieldList = fieldList
+      }
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less';
+</style>

+ 26 - 0
itdmWeb/src/views/module-iTDM/itdmPeizhi/ItdmPeizhi_menu_insert.sql

@@ -0,0 +1,26 @@
+-- 注意:该页面对应的前台目录为views/itdmPeizhi文件夹下
+-- 如果你想更改到其他目录,请修改sql中component字段对应的值
+
+
+INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external)
+VALUES ('2023051805279940430', NULL, '系统配置', '/itdmPeizhi/itdmPeizhiList', 'module-iTDM/itdmPeizhi/ItdmPeizhiList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 1, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-05-18 17:27:43', NULL, NULL, 0);
+
+-- 权限控制sql
+-- 新增
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023051805279940431', '2023051805279940430', '新增', NULL, NULL, 0, NULL, NULL, 2, 'org.jeecg.modules:itdm_peizhi:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-18 17:27:43', NULL, NULL, 0, 0, '1', 0);
+-- 编辑
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023051805279940432', '2023051805279940430', '编辑', NULL, NULL, 0, NULL, NULL, 2, 'org.jeecg.modules:itdm_peizhi:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-18 17:27:43', NULL, NULL, 0, 0, '1', 0);
+-- 删除
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023051805279940433', '2023051805279940430', '删除', NULL, NULL, 0, NULL, NULL, 2, 'org.jeecg.modules:itdm_peizhi:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-18 17:27:43', NULL, NULL, 0, 0, '1', 0);
+-- 批量删除
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023051805279940434', '2023051805279940430', '批量删除', NULL, NULL, 0, NULL, NULL, 2, 'org.jeecg.modules:itdm_peizhi:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-18 17:27:43', NULL, NULL, 0, 0, '1', 0);
+-- 导出excel
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023051805279940435', '2023051805279940430', '导出excel', NULL, NULL, 0, NULL, NULL, 2, 'org.jeecg.modules:itdm_peizhi:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-18 17:27:43', NULL, NULL, 0, 0, '1', 0);
+-- 导入excel
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023051805279940436', '2023051805279940430', '导入excel', NULL, NULL, 0, NULL, NULL, 2, 'org.jeecg.modules:itdm_peizhi:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-18 17:27:43', NULL, NULL, 0, 0, '1', 0);

+ 115 - 0
itdmWeb/src/views/module-iTDM/itdmPeizhi/modules/ItdmPeizhiForm.vue

@@ -0,0 +1,115 @@
+<template>
+  <a-spin :spinning="confirmLoading">
+    <j-form-container :disabled="formDisabled">
+      <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
+        <a-row>
+          <a-col :span="24">
+            <a-form-model-item label="配置名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="peizhiName">
+              <a-input v-model="model.peizhiName" placeholder="请输入配置名称"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="配置状态" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="peizhiState">
+              <j-dict-select-tag type="radio" v-model="model.peizhiState" dictCode="peizhi_state" placeholder="请选择配置状态" />
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="peizhiNotes">
+              <a-textarea v-model="model.peizhiNotes" rows="4" placeholder="请输入备注" />
+            </a-form-model-item>
+          </a-col>
+        </a-row>
+      </a-form-model>
+    </j-form-container>
+  </a-spin>
+</template>
+
+<script>
+
+  import { httpAction, getAction } from '@/api/manage'
+  import { validateDuplicateValue } from '@/utils/util'
+
+  export default {
+    name: 'ItdmPeizhiForm',
+    components: {
+    },
+    props: {
+      //表单禁用
+      disabled: {
+        type: Boolean,
+        default: false,
+        required: false
+      }
+    },
+    data () {
+      return {
+        model:{
+            peizhiState:0,
+         },
+        labelCol: {
+          xs: { span: 24 },
+          sm: { span: 5 },
+        },
+        wrapperCol: {
+          xs: { span: 24 },
+          sm: { span: 16 },
+        },
+        confirmLoading: false,
+        validatorRules: {
+        },
+        url: {
+          add: "/itdmPeizhi/itdmPeizhi/add",
+          edit: "/itdmPeizhi/itdmPeizhi/edit",
+          queryById: "/itdmPeizhi/itdmPeizhi/queryById"
+        }
+      }
+    },
+    computed: {
+      formDisabled(){
+        return this.disabled
+      },
+    },
+    created () {
+       //备份model原始值
+      this.modelDefault = JSON.parse(JSON.stringify(this.model));
+    },
+    methods: {
+      add () {
+        this.edit(this.modelDefault);
+      },
+      edit (record) {
+        this.model = Object.assign({}, record);
+        this.visible = true;
+      },
+      submitForm () {
+        const that = this;
+        // 触发表单验证
+        this.$refs.form.validate(valid => {
+          if (valid) {
+            that.confirmLoading = true;
+            let httpurl = '';
+            let method = '';
+            if(!this.model.id){
+              httpurl+=this.url.add;
+              method = 'post';
+            }else{
+              httpurl+=this.url.edit;
+               method = 'put';
+            }
+            httpAction(httpurl,this.model,method).then((res)=>{
+              if(res.success){
+                that.$message.success(res.message);
+                that.$emit('ok');
+              }else{
+                that.$message.warning(res.message);
+              }
+            }).finally(() => {
+              that.confirmLoading = false;
+            })
+          }
+         
+        })
+      },
+    }
+  }
+</script>

+ 84 - 0
itdmWeb/src/views/module-iTDM/itdmPeizhi/modules/ItdmPeizhiModal.Style#Drawer.vue

@@ -0,0 +1,84 @@
+<template>
+  <a-drawer
+    :title="title"
+    :width="width"
+    placement="right"
+    :closable="false"
+    @close="close"
+    destroyOnClose
+    :visible="visible">
+    <itdm-peizhi-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" normal></itdm-peizhi-form>
+    <div class="drawer-footer">
+      <a-button @click="handleCancel" style="margin-bottom: 0;">关闭</a-button>
+      <a-button v-if="!disableSubmit"  @click="handleOk" type="primary" style="margin-bottom: 0;">提交</a-button>
+    </div>
+  </a-drawer>
+</template>
+
+<script>
+
+  import ItdmPeizhiForm from './ItdmPeizhiForm'
+
+  export default {
+    name: 'ItdmPeizhiModal',
+    components: {
+      ItdmPeizhiForm
+    },
+    data () {
+      return {
+        title:"操作",
+        width:800,
+        visible: false,
+        disableSubmit: false
+      }
+    },
+    methods: {
+      add () {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.add();
+        })
+      },
+      edit (record) {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.edit(record);
+        });
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      submitCallback(){
+        this.$emit('ok');
+        this.visible = false;
+      },
+      handleOk () {
+        this.$refs.realForm.submitForm();
+      },
+      handleCancel () {
+        this.close()
+      }
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+/** Button按钮间距 */
+  .ant-btn {
+    margin-left: 30px;
+    margin-bottom: 30px;
+    float: right;
+  }
+  .drawer-footer{
+    position: absolute;
+    bottom: -8px;
+    width: 100%;
+    border-top: 1px solid #e8e8e8;
+    padding: 10px 16px;
+    text-align: right;
+    left: 0;
+    background: #fff;
+    border-radius: 0 0 2px 2px;
+  }
+</style>

+ 60 - 0
itdmWeb/src/views/module-iTDM/itdmPeizhi/modules/ItdmPeizhiModal.vue

@@ -0,0 +1,60 @@
+<template>
+  <j-modal
+    :title="title"
+    :width="width"
+    :visible="visible"
+    switchFullscreen
+    @ok="handleOk"
+    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
+    @cancel="handleCancel"
+    cancelText="关闭">
+    <itdm-peizhi-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></itdm-peizhi-form>
+  </j-modal>
+</template>
+
+<script>
+
+  import ItdmPeizhiForm from './ItdmPeizhiForm'
+  export default {
+    name: 'ItdmPeizhiModal',
+    components: {
+      ItdmPeizhiForm
+    },
+    data () {
+      return {
+        title:'',
+        width:800,
+        visible: false,
+        disableSubmit: false
+      }
+    },
+    methods: {
+      add () {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.add();
+        })
+      },
+      edit (record) {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.edit(record);
+        })
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      handleOk () {
+        this.$refs.realForm.submitForm();
+      },
+      submitCallback(){
+        this.$emit('ok');
+        this.visible = false;
+      },
+      handleCancel () {
+        this.close()
+      }
+    }
+  }
+</script>

+ 209 - 0
itdmWeb/src/views/module-iTDM/itdmYuzhi/ItdmYuzhiList.vue

@@ -0,0 +1,209 @@
+<template>
+  <a-card :bordered="false">
+    <!-- 查询区域 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline" @keyup.enter.native="searchQuery">
+        <a-row :gutter="24">
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="设备名称">
+              <a-input placeholder="请输入设备名称" v-model="queryParam.deviceName"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="数据类型">
+              <a-input placeholder="请输入数据类型" v-model="queryParam.dataType"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
+              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
+              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
+              <!-- <a @click="handleToggleSearch" style="margin-left: 8px">
+                {{ toggleSearchStatus ? '收起' : '展开' }}
+                <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
+              </a> -->
+            </span>
+          </a-col>
+        </a-row>
+      </a-form>
+    </div>
+    <!-- 查询区域-END -->
+
+    <!-- 操作按钮区域 -->
+    <div class="table-operator">
+      <a-button @click="handleAdd" v-has="'yuzhi:add'" type="primary" icon="plus">新增</a-button>
+      <a-button type="primary" v-has="'yuzhi:export'" icon="download" @click="handleExportXls('阈值管理')">导出</a-button>
+      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
+        <a-button v-has="'yuzhi:inport'" type="primary" icon="import">导入</a-button>
+      </a-upload>
+      <!-- 高级查询区域 -->
+      <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery" v-has="'yuzhi:gaoji'"></j-super-query>
+      <a-dropdown v-if="selectedRowKeys.length > 0">
+        <a-menu slot="overlay">
+          <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
+        </a-menu>
+        <a-button v-has="'yuzhi:batch'" style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
+      </a-dropdown>
+    </div>
+
+    <!-- table区域-begin -->
+    <div>
+      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
+        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
+        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
+      </div>
+
+      <a-table
+        ref="table"
+        size="middle"
+        :scroll="{x:true}"
+        bordered
+        rowKey="id"
+        :columns="columns"
+        :dataSource="dataSource"
+        :pagination="ipagination"
+        :loading="loading"
+        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
+        class="j-table-force-nowrap"
+        @change="handleTableChange">
+
+        <template slot="htmlSlot" slot-scope="text">
+          <div v-html="text"></div>
+        </template>
+        <template slot="imgSlot" slot-scope="text,record">
+          <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
+          <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
+        </template>
+        <template slot="fileSlot" slot-scope="text">
+          <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
+          <a-button
+            v-else
+            :ghost="true"
+            type="primary"
+            icon="download"
+            size="small"
+            @click="downloadFile(text)">
+            下载
+          </a-button>
+        </template>
+
+        <span slot="action" slot-scope="text, record">
+          <a @click="handleEdit(record)" v-has="'yuzhi:update'">编辑</a>
+
+          <a-divider type="vertical" />
+          <a-dropdown>
+            <a class="ant-dropdown-link" v-has="'yuzhi:more'">更多 <a-icon type="down" /></a>
+            <a-menu slot="overlay">
+              <a-menu-item>
+                <a @click="handleDetail(record)" v-has="'yuzhi:detail'">详情</a>
+              </a-menu-item>
+              <a-menu-item>
+                <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)" v-has="'yuzhi:delete'">
+                  <a>删除</a>
+                </a-popconfirm>
+              </a-menu-item>
+            </a-menu>
+          </a-dropdown>
+        </span>
+
+      </a-table>
+    </div>
+
+    <itdm-yuzhi-modal ref="modalForm" @ok="modalFormOk"></itdm-yuzhi-modal>
+  </a-card>
+</template>
+
+<script>
+
+  import '@/assets/less/TableExpand.less'
+  import { mixinDevice } from '@/utils/mixin'
+  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+  import ItdmYuzhiModal from './modules/ItdmYuzhiModal'
+
+  export default {
+    name: 'ItdmYuzhiList',
+    mixins:[JeecgListMixin, mixinDevice],
+    components: {
+      ItdmYuzhiModal
+    },
+    data () {
+      return {
+        description: '阈值管理管理页面',
+        // 表头
+        columns: [
+          {
+            title: '#',
+            dataIndex: '',
+            key:'rowIndex',
+            width:60,
+            align:"center",
+            customRender:function (t,r,index) {
+              return parseInt(index)+1;
+            }
+          },
+          {
+            title:'设备名称',
+            align:"center",
+            dataIndex: 'deviceName'
+          },
+          {
+            title:'数据类型',
+            align:"center",
+            dataIndex: 'dataType'
+          },
+          {
+            title:'数据上限',
+            align:"center",
+            dataIndex: 'dataMax'
+          },
+          {
+            title:'数据下限',
+            align:"center",
+            dataIndex: 'dataMin'
+          },
+          {
+            title: '操作',
+            dataIndex: 'action',
+            align:"center",
+            fixed:"right",
+            width:147,
+            scopedSlots: { customRender: 'action' }
+          }
+        ],
+        url: {
+          list: "/itdmYuzhi/itdmYuzhi/list",
+          delete: "/itdmYuzhi/itdmYuzhi/delete",
+          deleteBatch: "/itdmYuzhi/itdmYuzhi/deleteBatch",
+          exportXlsUrl: "/itdmYuzhi/itdmYuzhi/exportXls",
+          importExcelUrl: "itdmYuzhi/itdmYuzhi/importExcel",
+          
+        },
+        dictOptions:{},
+        superFieldList:[],
+      }
+    },
+    created() {
+    this.getSuperFieldList();
+    },
+    computed: {
+      importExcelUrl: function(){
+        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+      },
+    },
+    methods: {
+      initDictConfig(){
+      },
+      getSuperFieldList(){
+        let fieldList=[];
+        fieldList.push({type:'string',value:'deviceName',text:'设备名称',dictCode:''})
+        fieldList.push({type:'string',value:'dataType',text:'数据类型',dictCode:''})
+        fieldList.push({type:'BigDecimal',value:'dataMax',text:'数据上限',dictCode:''})
+        fieldList.push({type:'BigDecimal',value:'dataMin',text:'数据下限',dictCode:''})
+        this.superFieldList = fieldList
+      }
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less';
+</style>

+ 26 - 0
itdmWeb/src/views/module-iTDM/itdmYuzhi/ItdmYuzhi_menu_insert.sql

@@ -0,0 +1,26 @@
+-- 注意:该页面对应的前台目录为views/itdmYuzhi文件夹下
+-- 如果你想更改到其他目录,请修改sql中component字段对应的值
+
+
+INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external)
+VALUES ('2023051805273800580', NULL, '阈值管理', '/itdmYuzhi/itdmYuzhiList', 'module-iTDM/itdmYuzhi/ItdmYuzhiList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 1, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-05-18 17:27:58', NULL, NULL, 0);
+
+-- 权限控制sql
+-- 新增
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023051805273800581', '2023051805273800580', '新增', NULL, NULL, 0, NULL, NULL, 2, 'org.jeecg.modules:itdm_yuzhi:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-18 17:27:58', NULL, NULL, 0, 0, '1', 0);
+-- 编辑
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023051805273800582', '2023051805273800580', '编辑', NULL, NULL, 0, NULL, NULL, 2, 'org.jeecg.modules:itdm_yuzhi:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-18 17:27:58', NULL, NULL, 0, 0, '1', 0);
+-- 删除
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023051805273800583', '2023051805273800580', '删除', NULL, NULL, 0, NULL, NULL, 2, 'org.jeecg.modules:itdm_yuzhi:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-18 17:27:58', NULL, NULL, 0, 0, '1', 0);
+-- 批量删除
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023051805273810584', '2023051805273800580', '批量删除', NULL, NULL, 0, NULL, NULL, 2, 'org.jeecg.modules:itdm_yuzhi:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-18 17:27:58', NULL, NULL, 0, 0, '1', 0);
+-- 导出excel
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023051805273810585', '2023051805273800580', '导出excel', NULL, NULL, 0, NULL, NULL, 2, 'org.jeecg.modules:itdm_yuzhi:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-18 17:27:58', NULL, NULL, 0, 0, '1', 0);
+-- 导入excel
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023051805273810586', '2023051805273800580', '导入excel', NULL, NULL, 0, NULL, NULL, 2, 'org.jeecg.modules:itdm_yuzhi:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-18 17:27:58', NULL, NULL, 0, 0, '1', 0);

+ 127 - 0
itdmWeb/src/views/module-iTDM/itdmYuzhi/modules/ItdmYuzhiForm.vue

@@ -0,0 +1,127 @@
+<template>
+  <a-spin :spinning="confirmLoading">
+    <j-form-container :disabled="formDisabled">
+      <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
+        <a-row>
+          <a-col :span="24">
+            <a-form-model-item label="设备名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="deviceName">
+              <a-input v-model="model.deviceName" placeholder="请输入设备名称"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="数据类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dataType">
+              <a-input v-model="model.dataType" placeholder="请输入数据类型"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="数据上限" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dataMax">
+              <a-input-number v-model="model.dataMax" placeholder="请输入数据上限" style="width: 100%" />
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="数据下限" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dataMin">
+              <a-input-number v-model="model.dataMin" placeholder="请输入数据下限" style="width: 100%" />
+            </a-form-model-item>
+          </a-col>
+        </a-row>
+      </a-form-model>
+    </j-form-container>
+  </a-spin>
+</template>
+
+<script>
+
+  import { httpAction, getAction } from '@/api/manage'
+  import { validateDuplicateValue } from '@/utils/util'
+
+  export default {
+    name: 'ItdmYuzhiForm',
+    components: {
+    },
+    props: {
+      //表单禁用
+      disabled: {
+        type: Boolean,
+        default: false,
+        required: false
+      }
+    },
+    data () {
+      return {
+        model:{
+         },
+        labelCol: {
+          xs: { span: 24 },
+          sm: { span: 5 },
+        },
+        wrapperCol: {
+          xs: { span: 24 },
+          sm: { span: 16 },
+        },
+        confirmLoading: false,
+        validatorRules: {
+           dataMax: [
+              { required: false},
+              { pattern: /^-?\d+\.?\d*$/, message: '请输入数字!'},
+           ],
+           dataMin: [
+              { required: false},
+              { pattern: /^-?\d+\.?\d*$/, message: '请输入数字!'},
+           ],
+        },
+        url: {
+          add: "/itdmYuzhi/itdmYuzhi/add",
+          edit: "/itdmYuzhi/itdmYuzhi/edit",
+          queryById: "/itdmYuzhi/itdmYuzhi/queryById"
+        }
+      }
+    },
+    computed: {
+      formDisabled(){
+        return this.disabled
+      },
+    },
+    created () {
+       //备份model原始值
+      this.modelDefault = JSON.parse(JSON.stringify(this.model));
+    },
+    methods: {
+      add () {
+        this.edit(this.modelDefault);
+      },
+      edit (record) {
+        this.model = Object.assign({}, record);
+        this.visible = true;
+      },
+      submitForm () {
+        const that = this;
+        // 触发表单验证
+        this.$refs.form.validate(valid => {
+          if (valid) {
+            that.confirmLoading = true;
+            let httpurl = '';
+            let method = '';
+            if(!this.model.id){
+              httpurl+=this.url.add;
+              method = 'post';
+            }else{
+              httpurl+=this.url.edit;
+               method = 'put';
+            }
+            httpAction(httpurl,this.model,method).then((res)=>{
+              if(res.success){
+                that.$message.success(res.message);
+                that.$emit('ok');
+              }else{
+                that.$message.warning(res.message);
+              }
+            }).finally(() => {
+              that.confirmLoading = false;
+            })
+          }
+         
+        })
+      },
+    }
+  }
+</script>

+ 84 - 0
itdmWeb/src/views/module-iTDM/itdmYuzhi/modules/ItdmYuzhiModal.Style#Drawer.vue

@@ -0,0 +1,84 @@
+<template>
+  <a-drawer
+    :title="title"
+    :width="width"
+    placement="right"
+    :closable="false"
+    @close="close"
+    destroyOnClose
+    :visible="visible">
+    <itdm-yuzhi-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" normal></itdm-yuzhi-form>
+    <div class="drawer-footer">
+      <a-button @click="handleCancel" style="margin-bottom: 0;">关闭</a-button>
+      <a-button v-if="!disableSubmit"  @click="handleOk" type="primary" style="margin-bottom: 0;">提交</a-button>
+    </div>
+  </a-drawer>
+</template>
+
+<script>
+
+  import ItdmYuzhiForm from './ItdmYuzhiForm'
+
+  export default {
+    name: 'ItdmYuzhiModal',
+    components: {
+      ItdmYuzhiForm
+    },
+    data () {
+      return {
+        title:"操作",
+        width:800,
+        visible: false,
+        disableSubmit: false
+      }
+    },
+    methods: {
+      add () {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.add();
+        })
+      },
+      edit (record) {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.edit(record);
+        });
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      submitCallback(){
+        this.$emit('ok');
+        this.visible = false;
+      },
+      handleOk () {
+        this.$refs.realForm.submitForm();
+      },
+      handleCancel () {
+        this.close()
+      }
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+/** Button按钮间距 */
+  .ant-btn {
+    margin-left: 30px;
+    margin-bottom: 30px;
+    float: right;
+  }
+  .drawer-footer{
+    position: absolute;
+    bottom: -8px;
+    width: 100%;
+    border-top: 1px solid #e8e8e8;
+    padding: 10px 16px;
+    text-align: right;
+    left: 0;
+    background: #fff;
+    border-radius: 0 0 2px 2px;
+  }
+</style>

+ 60 - 0
itdmWeb/src/views/module-iTDM/itdmYuzhi/modules/ItdmYuzhiModal.vue

@@ -0,0 +1,60 @@
+<template>
+  <j-modal
+    :title="title"
+    :width="width"
+    :visible="visible"
+    switchFullscreen
+    @ok="handleOk"
+    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
+    @cancel="handleCancel"
+    cancelText="关闭">
+    <itdm-yuzhi-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></itdm-yuzhi-form>
+  </j-modal>
+</template>
+
+<script>
+
+  import ItdmYuzhiForm from './ItdmYuzhiForm'
+  export default {
+    name: 'ItdmYuzhiModal',
+    components: {
+      ItdmYuzhiForm
+    },
+    data () {
+      return {
+        title:'',
+        width:800,
+        visible: false,
+        disableSubmit: false
+      }
+    },
+    methods: {
+      add () {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.add();
+        })
+      },
+      edit (record) {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.edit(record);
+        })
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      handleOk () {
+        this.$refs.realForm.submitForm();
+      },
+      submitCallback(){
+        this.$emit('ok');
+        this.visible = false;
+      },
+      handleCancel () {
+        this.close()
+      }
+    }
+  }
+</script>

+ 256 - 0
itdmWeb/src/views/module-iTDM/weituo/ItdmWeituoInfoList.vue

@@ -0,0 +1,256 @@
+<template>
+  <a-card :bordered="false">
+    <!-- 查询区域 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline" @keyup.enter.native="searchQuery">
+        <a-row :gutter="24">
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="委托单位名称">
+              <a-input placeholder="请输入委托单位名称" v-model="queryParam.weituoClient"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="委托单位地址">
+              <a-input placeholder="请输入委托单位地址" v-model="queryParam.weituoAddress"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
+              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
+              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
+              <a @click="handleToggleSearch" style="margin-left: 8px">
+                {{ toggleSearchStatus ? '收起' : '展开' }}
+                <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
+              </a>
+            </span>
+          </a-col>
+        </a-row>
+      </a-form>
+    </div>
+    <!-- 查询区域-END -->
+
+    <!-- 操作按钮区域 -->
+    <div class="table-operator">
+      <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
+      <a-button type="primary" icon="download" @click="handleExportXls('委托信息')">导出</a-button>
+      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
+        <a-button type="primary" icon="import">导入</a-button>
+      </a-upload>
+      <!-- 高级查询区域 -->
+      <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
+      <a-dropdown v-if="selectedRowKeys.length > 0">
+        <a-menu slot="overlay">
+          <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
+        </a-menu>
+        <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
+      </a-dropdown>
+    </div>
+
+    <!-- table区域-begin -->
+    <div>
+      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
+        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
+        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
+      </div>
+
+      <a-table
+        ref="table"
+        size="middle"
+        :scroll="{x:true}"
+        bordered
+        rowKey="id"
+        :columns="columns"
+        :dataSource="dataSource"
+        :pagination="ipagination"
+        :loading="loading"
+        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
+        class="j-table-force-nowrap"
+        @change="handleTableChange">
+
+        <template slot="htmlSlot" slot-scope="text">
+          <div v-html="text"></div>
+        </template>
+        <template slot="imgSlot" slot-scope="text,record">
+          <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
+          <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
+        </template>
+        <template slot="fileSlot" slot-scope="text">
+          <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
+          <a-button
+            v-else
+            :ghost="true"
+            type="primary"
+            icon="download"
+            size="small"
+            @click="downloadFile(text)">
+            下载
+          </a-button>
+        </template>
+
+        <span slot="action" slot-scope="text, record">
+          <a @click="handleEdit(record)">编辑</a>
+
+          <a-divider type="vertical" />
+          <a-dropdown>
+            <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
+            <a-menu slot="overlay">
+              <a-menu-item>
+                <a @click="handleDetail(record)">详情</a>
+              </a-menu-item>
+              <a-menu-item>
+                <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
+                  <a>删除</a>
+                </a-popconfirm>
+              </a-menu-item>
+            </a-menu>
+          </a-dropdown>
+        </span>
+
+      </a-table>
+    </div>
+
+    <itdm-weituo-info-modal ref="modalForm" @ok="modalFormOk"></itdm-weituo-info-modal>
+  </a-card>
+</template>
+
+<script>
+
+import '@/assets/less/TableExpand.less'
+import { mixinDevice } from '@/utils/mixin'
+import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+import ItdmWeituoInfoModal from './modules/ItdmWeituoInfoModal'
+import { ajaxGetDictItems, loadCategoryData } from '@/api/api'
+import { filterMultiDictText } from '@comp/dict/JDictSelectUtil'
+
+export default {
+  name: 'ItdmWeituoInfoList',
+  mixins:[JeecgListMixin, mixinDevice],
+  components: {
+    ItdmWeituoInfoModal
+  },
+  data () {
+    return {
+      description: '委托信息管理页面',
+      // 表头
+      columns: [
+        {
+          title: '#',
+          dataIndex: '',
+          key:'rowIndex',
+          width:60,
+          align:"center",
+          customRender:function (t,r,index) {
+            return parseInt(index)+1;
+          }
+        },
+        {
+          title:'委托单位名称',
+          align:"center",
+          dataIndex: 'weituoClient'
+        },
+        {
+          title:'委托单位地址',
+          align:"center",
+          dataIndex: 'weituoAddress'
+        },
+        {
+          title:'委托联系人',
+          align:"center",
+          dataIndex: 'weituoLxr'
+        },
+        {
+          title:'委托电话',
+          align:"center",
+          dataIndex: 'weituoPhone'
+        },
+        {
+          title:'委托邮箱',
+          align:"center",
+          dataIndex: 'weituoEmail'
+        },
+        {
+          title:'报告用章',
+          align:"center",
+          dataIndex: 'bgyz',
+          customRender: (text) => (text ? filterMultiDictText(this.dictOptions['bgyz'], text) : '')
+        },
+        {
+          title:'报告形式',
+          align:"center",
+          dataIndex: 'bgxs',
+          customRender: (text) => (text ? filterMultiDictText(this.dictOptions['bgxs'], text) : '')
+        },
+        {
+          title:'特殊要求',
+          align:"center",
+          dataIndex: 'teshuyaoqiu'
+        },
+        {
+          title:'试验条件文件地址',
+          align:"center",
+          dataIndex: 'tiaojianFile',
+          scopedSlots: {customRender: 'fileSlot'}
+        },
+        {
+          title: '操作',
+          dataIndex: 'action',
+          align:"center",
+          fixed:"right",
+          width:147,
+          scopedSlots: { customRender: 'action' }
+        }
+      ],
+      url: {
+        list: "/weituo/itdmWeituoInfo/list",
+        delete: "/weituo/itdmWeituoInfo/delete",
+        deleteBatch: "/weituo/itdmWeituoInfo/deleteBatch",
+        exportXlsUrl: "/weituo/itdmWeituoInfo/exportXls",
+        importExcelUrl: "weituo/itdmWeituoInfo/importExcel",
+
+      },
+      dictOptions:{},
+      superFieldList:[],
+    }
+  },
+  created() {
+    this.getSuperFieldList();
+  },
+  computed: {
+    importExcelUrl: function(){
+      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+    },
+  },
+  methods: {
+    initDictConfig(){
+      ajaxGetDictItems('weituo.bgyz').then((res) => {
+        if (res.success) {
+          console.log(res.result)
+          this.$set(this.dictOptions, 'bgyz', res.result)
+        }
+      })
+      ajaxGetDictItems('weituo.bgxs').then((res) => {
+        if (res.success) {
+          console.log(res.result)
+          this.$set(this.dictOptions, 'bgxs', res.result)
+        }
+      })
+    },
+    getSuperFieldList(){
+      let fieldList=[];
+      fieldList.push({type:'string',value:'weituoClient',text:'委托单位名称',dictCode:''})
+      fieldList.push({type:'string',value:'weituoAddress',text:'委托单位地址',dictCode:''})
+      fieldList.push({type:'string',value:'weituoLxr',text:'委托联系人',dictCode:''})
+      fieldList.push({type:'string',value:'weituoPhone',text:'委托电话',dictCode:''})
+      fieldList.push({type:'string',value:'weituoEmail',text:'委托邮箱',dictCode:''})
+      fieldList.push({type:'string',value:'bgyz',text:'报告用章'})
+      fieldList.push({type:'string',value:'bgxs',text:'报告形式'})
+      fieldList.push({type:'string',value:'teshuyaoqiu',text:'特殊要求',dictCode:''})
+      fieldList.push({type:'string',value:'tiaojianFile',text:'试验条件文件地址',dictCode:''})
+      this.superFieldList = fieldList
+    }
+  }
+}
+</script>
+<style scoped>
+@import '~@assets/less/common.less';
+</style>

+ 150 - 0
itdmWeb/src/views/module-iTDM/weituo/modules/ItdmWeituoInfoForm.vue

@@ -0,0 +1,150 @@
+<template>
+
+
+  <a-card :bordered="false">
+    <a-steps class="steps" :current="currentTab">
+      <a-step title="填写基本信息" />
+      <a-step title="填写样品信息" />
+      <a-step title="填写试验信息" />
+    </a-steps>
+    <div class="content">
+      <step1 v-if="currentTab === 0" ref="data001" @nextStep="nextStep" />
+      <step2 v-if="currentTab === 1" @prevStep="prevStep" @nextStep="nextStep" />
+      <step3 v-if="currentTab === 2" @submitForm="submitForm" @prevStep="prevStep" />
+    </div>
+  </a-card>
+
+
+</template>
+
+<script>
+
+import { httpAction, getAction } from '@api/manage'
+import { validateDuplicateValue } from '@/utils/util'
+import Step1 from './step/Step1'
+import Step2 from './step/Step2'
+import Step3 from './step/Step3'
+
+export default {
+  name: 'ItdmWeituoInfoForm',
+  components: {
+    Step1,
+    Step2,
+    Step3
+  },
+  props: {
+    //表单禁用
+    disabled: {
+      type: Boolean,
+      default: false,
+      required: false
+    }
+  },
+  data() {
+    return {
+      currentTab: 0,
+      weituomodel: {},
+      model: {},
+      labelCol: {
+        xs: { span: 24 },
+        sm: { span: 5 }
+      },
+      wrapperCol: {
+        xs: { span: 24 },
+        sm: { span: 16 }
+      },
+      confirmLoading: false,
+      validatorRules: {},
+      url: {
+        add: '/weituo/itdmWeituoInfo/add',
+        edit: '/weituo/itdmWeituoInfo/edit',
+        queryById: '/weituo/itdmWeituoInfo/queryById'
+      }
+    }
+  },
+  computed: {
+    formDisabled() {
+      return this.disabled
+    }
+  },
+  created() {
+    //备份model原始值
+    this.modelDefault = JSON.parse(JSON.stringify(this.model))
+  },
+  methods: {
+    nextStep() {
+      if (this.currentTab < 3) {
+        this.currentTab += 1
+      }
+
+    },
+
+    prevStep() {
+      if (this.currentTab > 0) {
+        this.currentTab -= 1
+      }
+
+    },
+
+    add() {
+      this.model = Object.assign({}, this.modelDefault)
+      this.visible = true
+    },
+    edit(record) {
+      const that = this
+      const select = { id: record.id }
+      getAction(this.url.queryById, select).then((res) => {
+        if (res.success) {
+          this.model.id = res.result.id
+
+          sessionStorage.setItem('data', JSON.stringify(res.result.data))
+          sessionStorage.setItem('yangpin', JSON.stringify(res.result.yangpins))
+          sessionStorage.setItem('yangpinkz', JSON.stringify(res.result.pinShiYans))
+          this.$refs.data001.init()
+
+        } else {
+          that.$message.warning(res.message)
+        }
+      })
+      this.visible = true
+    },
+
+    submitForm() {
+      const that = this
+      // 触发表单验证
+      this.weituomodel = JSON.parse(sessionStorage.getItem('data'))
+      this.weituomodel.yangpins = JSON.parse(sessionStorage.getItem('yangpin'))
+      this.weituomodel.pinShiYans = JSON.parse(sessionStorage.getItem('yangpinkz'))
+
+      that.confirmLoading = true
+      let httpurl = ''
+      let method = ''
+      if (!this.model.id) {
+        httpurl += this.url.add
+        method = 'post'
+
+      } else {
+        httpurl += this.url.edit
+        method = 'put'
+        this.weituomodel.id = this.model.id
+
+      }
+
+      httpAction(httpurl, this.weituomodel, method).then((res) => {
+        if (res.success) {
+          that.$message.success(res.message)
+          that.$emit('ok')
+        } else {
+          that.$message.warning(res.message)
+        }
+      }).finally(() => {
+        that.confirmLoading = false
+      })
+    },
+
+    handleCategoryChange(value, backObj) {
+      this.model = Object.assign(this.model, backObj)
+    }
+  }
+}
+</script>

+ 84 - 0
itdmWeb/src/views/module-iTDM/weituo/modules/ItdmWeituoInfoModal.Style#Drawer.vue

@@ -0,0 +1,84 @@
+<template>
+  <a-drawer
+    :title="title"
+    :width="width"
+    placement="right"
+    :closable="false"
+    @close="close"
+    destroyOnClose
+    :visible="visible">
+    <itdm-weituo-info-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" normal></itdm-weituo-info-form>
+    <div class="drawer-footer">
+      <a-button @click="handleCancel" style="margin-bottom: 0;">关闭</a-button>
+      <a-button v-if="!disableSubmit"  @click="handleOk" type="primary" style="margin-bottom: 0;">提交</a-button>
+    </div>
+  </a-drawer>
+</template>
+
+<script>
+
+  import ItdmWeituoInfoForm from './ItdmWeituoInfoForm'
+
+  export default {
+    name: 'ItdmWeituoInfoModal',
+    components: {
+      ItdmWeituoInfoForm
+    },
+    data () {
+      return {
+        title:"操作",
+        width:800,
+        visible: false,
+        disableSubmit: false
+      }
+    },
+    methods: {
+      add () {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.add();
+        })
+      },
+      edit (record) {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.edit(record);
+        });
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      submitCallback(){
+        this.$emit('ok');
+        this.visible = false;
+      },
+      handleOk () {
+        this.$refs.realForm.submitForm();
+      },
+      handleCancel () {
+        this.close()
+      }
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+/** Button按钮间距 */
+  .ant-btn {
+    margin-left: 30px;
+    margin-bottom: 30px;
+    float: right;
+  }
+  .drawer-footer{
+    position: absolute;
+    bottom: -8px;
+    width: 100%;
+    border-top: 1px solid #e8e8e8;
+    padding: 10px 16px;
+    text-align: right;
+    left: 0;
+    background: #fff;
+    border-radius: 0 0 2px 2px;
+  }
+</style>

+ 79 - 0
itdmWeb/src/views/module-iTDM/weituo/modules/ItdmWeituoInfoModal.vue

@@ -0,0 +1,79 @@
+<template>
+  <j-modal
+    :title="title"
+    :width="width"
+    :visible="visible"
+    switchFullscreen
+    @ok="handleOk"
+    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
+    @cancel="handleCancel"
+    cancelText="关闭">
+    <itdm-weituo-info-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></itdm-weituo-info-form>
+  </j-modal>
+</template>
+
+<script>
+
+  import ItdmWeituoInfoForm from './ItdmWeituoInfoForm'
+  export default {
+    name: 'ItdmWeituoInfoModal',
+    components: {
+      ItdmWeituoInfoForm
+    },
+    data () {
+      return {
+        title:'',
+        width:1300,
+        visible: false,
+        disableSubmit: false
+      }
+    },
+    methods: {
+      add () {
+
+        sessionStorage.removeItem("data")
+        sessionStorage.removeItem("yangpin")
+        sessionStorage.removeItem("yangpinkz")
+
+        sessionStorage.removeItem("count")
+        sessionStorage.removeItem("count1")
+
+
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.add();
+        })
+      },
+      edit (record) {
+        sessionStorage.removeItem("data")
+        sessionStorage.removeItem("yangpin")
+        sessionStorage.removeItem("yangpinkz")
+        sessionStorage.removeItem("count")
+        sessionStorage.removeItem("count1")
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.edit(record);
+        })
+      },
+      close () {
+        sessionStorage.removeItem("data")
+        sessionStorage.removeItem("yangpin")
+        sessionStorage.removeItem("yangpinkz")
+        sessionStorage.removeItem("count")
+        sessionStorage.removeItem("count1")
+        this.$emit('close');
+        this.visible = false;
+      },
+      handleOk () {
+        this.$refs.realForm.submitForm();
+      },
+      submitCallback(){
+        this.$emit('ok');
+        this.visible = false;
+      },
+      handleCancel () {
+        this.close()
+      }
+    }
+  }
+</script>

+ 129 - 0
itdmWeb/src/views/module-iTDM/weituo/modules/step/ItdmWeituoYangpinExtendForm.vue

@@ -0,0 +1,129 @@
+<template>
+  <a-spin :spinning="confirmLoading">
+    <j-form-container :disabled="formDisabled">
+      <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
+        <a-row>
+          <a-col :span="24">
+            <a-form-model-item label="委托id" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="weituoId">
+              <a-input v-model="model.weituoId" placeholder="请输入委托id"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="样品id" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="yangpinId">
+              <a-input v-model="model.yangpinId" placeholder="请输入样品id"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="检测项目" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="testItems">
+              <a-input v-model="model.testItems" placeholder="请输入检测项目"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="检测依据" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="standardRequirement">
+              <j-search-select-tag v-model="model.standardRequirement" dict=""  />
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="判定依据" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="judgementBasis">
+              <a-input v-model="model.judgementBasis" placeholder="请输入判定依据"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="beizhu">
+              <a-input v-model="model.beizhu" placeholder="请输入备注"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+        </a-row>
+      </a-form-model>
+    </j-form-container>
+  </a-spin>
+</template>
+
+<script>
+
+  import { httpAction, getAction } from '@/api/manage'
+  import { validateDuplicateValue } from '@/utils/util'
+
+  export default {
+    name: 'ItdmWeituoYangpinExtendForm',
+    components: {
+    },
+    props: {
+      //表单禁用
+      disabled: {
+        type: Boolean,
+        default: false,
+        required: false
+      }
+    },
+    data () {
+      return {
+        model:{
+         },
+        labelCol: {
+          xs: { span: 24 },
+          sm: { span: 5 },
+        },
+        wrapperCol: {
+          xs: { span: 24 },
+          sm: { span: 16 },
+        },
+        confirmLoading: false,
+        validatorRules: {
+        },
+        url: {
+          add: "/weituo/itdmWeituoYangpinExtend/add",
+          edit: "/weituo/itdmWeituoYangpinExtend/edit",
+          queryById: "/weituo/itdmWeituoYangpinExtend/queryById"
+        }
+      }
+    },
+    computed: {
+      formDisabled(){
+        return this.disabled
+      },
+    },
+    created () {
+       //备份model原始值
+      this.modelDefault = JSON.parse(JSON.stringify(this.model));
+    },
+    methods: {
+      add () {
+        this.edit(this.modelDefault);
+      },
+      edit (record) {
+        this.model = Object.assign({}, record);
+        this.visible = true;
+      },
+      submitForm () {
+        const that = this;
+        // 触发表单验证
+        this.$refs.form.validate(valid => {
+          if (valid) {
+            that.confirmLoading = true;
+            let httpurl = '';
+            let method = '';
+            if(!this.model.id){
+              httpurl+=this.url.add;
+              method = 'post';
+            }else{
+              httpurl+=this.url.edit;
+               method = 'put';
+            }
+            httpAction(httpurl,this.model,method).then((res)=>{
+              if(res.success){
+                that.$message.success(res.message);
+                that.$emit('ok');
+              }else{
+                that.$message.warning(res.message);
+              }
+            }).finally(() => {
+              that.confirmLoading = false;
+            })
+          }
+         
+        })
+      },
+    }
+  }
+</script>

+ 159 - 0
itdmWeb/src/views/module-iTDM/weituo/modules/step/Step1.vue

@@ -0,0 +1,159 @@
+<template>
+
+
+  <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
+    <a-row>
+      <a-col :span="24">
+        <a-form-model-item label="委托单位名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="weituoClient">
+          <a-input v-model="model.weituoClient" placeholder="请输入委托单位名称"></a-input>
+        </a-form-model-item>
+      </a-col>
+      <a-col :span="24">
+        <a-form-model-item label="委托单位地址" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="weituoAddress">
+          <a-input v-model="model.weituoAddress" placeholder="请输入委托单位地址"></a-input>
+        </a-form-model-item>
+      </a-col>
+      <a-col :span="24">
+        <a-form-model-item label="委托联系人" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="weituoLxr">
+          <a-input v-model="model.weituoLxr" placeholder="请输入委托联系人"></a-input>
+        </a-form-model-item>
+      </a-col>
+      <a-col :span="24">
+        <a-form-model-item label="委托电话" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="weituoPhone">
+          <a-input v-model="model.weituoPhone" placeholder="请输入委托电话"></a-input>
+        </a-form-model-item>
+      </a-col>
+      <a-col :span="24">
+        <a-form-model-item label="委托邮箱" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="weituoEmail">
+          <a-input v-model="model.weituoEmail" placeholder="请输入委托邮箱"></a-input>
+        </a-form-model-item>
+      </a-col>
+      <a-col :span="24">
+        <a-form-model-item label="报告用章" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="bgyz">
+          <j-dict-select-tag v-model="model.bgyz" placeholder="请选择报告形式"
+                             dictCode="weituo.bgyz" />
+        </a-form-model-item>
+      </a-col>
+      <a-col :span="24">
+        <a-form-model-item label="报告形式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="bgxs">
+
+
+          <j-dict-select-tag v-model="model.bgxs" placeholder="请选择报告形式"
+                             dictCode="weituo.bgxs" />
+
+        </a-form-model-item>
+      </a-col>
+      <a-col :span="24">
+        <a-form-model-item label="特殊要求" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="teshuyaoqiu">
+          <a-textarea v-model="model.teshuyaoqiu" placeholder="请输入特殊要求"></a-textarea>
+        </a-form-model-item>
+      </a-col>
+
+      <a-col :span="24">
+        <a-form-model-item label="试验条件文件地址" :labelCol="labelCol" :wrapperCol="wrapperCol"
+                           prop="tiaojianFile">
+          <j-upload v-model="model.tiaojianFile"></j-upload>
+        </a-form-model-item>
+      </a-col>
+    </a-row>
+    <a-form-item :wrapperCol="{span: 19, offset: 5}">
+      <a-button type="primary" @click="nextStep">下一步</a-button>
+    </a-form-item>
+  </a-form-model>
+
+</template>
+
+<script>
+
+import { httpAction, getAction } from '@api/manage'
+import { validateDuplicateValue } from '@/utils/util'
+
+export default {
+  name: 'step1',
+  components: {},
+  data() {
+    return {
+      model: {},
+      labelCol: {
+        xs: { span: 24 },
+        sm: { span: 5 }
+      },
+      wrapperCol: {
+        xs: { span: 24 },
+        sm: { span: 16 }
+      },
+      confirmLoading: false,
+      validatorRules: {
+        weituoClient: [
+          { required: true, message: '请输入委托单位!' }
+        ],
+        weituoAddress: [
+          { required: true, message: '请输入委托单位!' }
+        ],
+        weituoLxr: [
+          { required: true, message: '请输入委托联系人!' }
+        ],
+        weituoPhone: [
+          { required: true, message: '请输入委托电话!' }
+        ],
+        weituoEmail: [
+          { required: true, message: '请输入委托邮箱!' }
+        ],
+        bgyz: [
+          { required: true, message: '请输入报告用章!' }
+        ],
+        bgxs: [
+          { required: true, message: '请输入报告形式!' }
+        ],
+        teshuyaoqiu: [
+          { required: true, message: '请输入特殊要求!' }
+        ]
+      }
+
+    }
+  },
+  created() {
+
+  },
+
+  methods: {
+
+    init() {
+      const data = JSON.parse(sessionStorage.getItem('data'))
+
+      if (data != null) {
+        this.model = data
+
+
+
+
+      }
+    },
+
+    nextStep() {
+      const data = {
+        weituoClient: this.model.weituoClient,
+        weituoAddress: this.model.weituoAddress,
+        weituoLxr: this.model.weituoLxr,
+        weituoPhone: this.model.weituoPhone,
+        weituoEmail: this.model.weituoEmail,
+        bgyz: this.model.bgyz,
+        bgxs: this.model.bgxs,
+        teshuyaoqiu: this.model.teshuyaoqiu,
+        tiaojianFile: this.model.tiaojianFile
+      }
+
+      sessionStorage.setItem('data', JSON.stringify(data))
+      this.$emit('nextStep')
+
+      // this.$refs.form.validate(valid => {
+      //
+      //   if(valid){
+
+      //   }
+      // })
+    }
+  }
+
+}
+</script>

+ 195 - 0
itdmWeb/src/views/module-iTDM/weituo/modules/step/Step2.vue

@@ -0,0 +1,195 @@
+<template>
+
+  <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
+    <a-table
+      :columns="columns"
+      :dataSource="data"
+      :pagination="false"
+    >
+      <template
+        v-for="(col, i) in ['sampleName', 'sampleModelSpecification', 'sampleQuantities','sampleManufacturer']"
+        :slot="col" slot-scope="text, record, index">
+        <a-input
+          :key="col"
+          style="margin: -5px 0"
+          :value="text"
+          :placeholder="columns[i].title"
+          @change="e => handleChange(e.target.value, record.key, col)"
+        />
+
+        <a-input type="hidden" name="id" :value="index"></a-input>
+      </template>
+
+      <template slot="operation" slot-scope="text, record, index">
+          <span>
+              <a-divider type="vertical" />
+              <a-popconfirm title="是否要删除此行?" @confirm="remove(record.key)">
+                <a>删除</a>
+              </a-popconfirm>
+            </span>
+      </template>
+    </a-table>
+    <a-button style="width: 100%; margin-top: 16px; margin-bottom: 8px" type="dashed" icon="plus" @click="newMember">
+      新增成员
+    </a-button>
+
+
+    <a-form-item :wrapperCol="{span: 19, offset: 5}">
+      <a-button style="margin-left: 8px" @click="prevStep">上一步</a-button>
+
+      <a-button type="primary" @click="nextStep">下一步</a-button>
+
+    </a-form-item>
+  </a-form-model>
+
+
+</template>
+
+<script>
+
+
+export default {
+  name: 'step2',
+
+  props: {},
+  data() {
+    return {
+      count: 1,
+      validatorRules: {
+        sampleName: [
+          { required: true, message: '请输入样品名称!' }
+        ],
+        sampleModelSpecification: [
+          { required: true, message: '请输入样品规格/型号!' }
+        ],
+        sampleQuantities: [
+          { required: true, message: '请输入样品数量!' }
+        ],
+        sampleManufacturer: [
+          { required: true, message: '请输入生产厂家!' }
+        ]
+      },
+      model: {},
+      description: '高级表单常见于一次性输入和提交大批量数据的场景。',
+      loading: false,
+
+      // table
+      columns: [
+        {
+          title: '样品名称',
+          dataIndex: 'sampleName',
+          key: 'sampleName',
+          width: '20%',
+          scopedSlots: { customRender: 'sampleName' }
+        },
+        {
+          title: '样品规格/型号',
+          dataIndex: 'sampleModelSpecification',
+          key: 'sampleModelSpecification',
+          width: '20%',
+          scopedSlots: { customRender: 'sampleModelSpecification' }
+        },
+        {
+          title: '样品数量',
+          dataIndex: 'sampleQuantities',
+          key: 'sampleQuantities',
+          width: '40%',
+          scopedSlots: { customRender: 'sampleQuantities' }
+        },
+        {
+          title: '生产厂家',
+          dataIndex: 'sampleManufacturer',
+          key: 'sampleManufacturer',
+          width: '40%',
+          scopedSlots: { customRender: 'sampleManufacturer' }
+        },
+        {
+          title: '操作',
+          key: 'action',
+          scopedSlots: { customRender: 'operation' }
+        }
+      ],
+      data: []
+    }
+  },
+  created() {
+    const data = JSON.parse(sessionStorage.getItem('yangpin'))
+    if (data != null) {
+        for (let  xx of data) {
+          this.data.push({
+            key: xx.key,
+            sampleName: xx.sampleName,
+            sampleModelSpecification: xx.sampleModelSpecification,
+            sampleQuantities: xx.sampleQuantities,
+            sampleManufacturer: xx.sampleManufacturer,
+            editable: true,
+            isNew: true
+          })
+        }
+
+
+    }
+    this.count = sessionStorage.getItem('count') != null ? Number(sessionStorage.getItem('count')) : 1
+
+  },
+  methods: {
+
+    newMember() {
+      this.data.push({
+        key: this.count + '',
+        sampleQuantities: 0,
+        sampleModelSpecification: '',
+        sampleName: '',
+        sampleManufacturer: sessionStorage.getItem('data') ? JSON.parse(sessionStorage.getItem('data')).weituoClient : '',
+        editable: true,
+        isNew: true
+      })
+      this.count++
+      sessionStorage.setItem('count', this.count)
+
+    },
+    remove(key) {
+      const newData = this.data.filter(item => item.key !== key)
+      this.data = newData
+    },
+    saveRow(key) {
+      let target = this.data.filter(item => item.key === key)[0]
+      target.editable = false
+      target.isNew = false
+
+    },
+
+    handleChange(value, key, column) {
+      const newData = [...this.data]
+      const target = newData.filter(item => key === item.key)[0]
+      if (target) {
+        target[column] = value
+        this.data = newData
+      }
+    },
+    nextStep() {
+      sessionStorage.setItem('yangpin', JSON.stringify(this.data))
+
+
+      // this.$refs.form.validate(valid => {
+      //   if (valid) {
+      this.$emit('nextStep')
+      //   }
+      // })
+
+    },
+    prevStep() {
+      sessionStorage.setItem('yangpin', JSON.stringify(this.data))
+
+      this.$emit('prevStep')
+    }
+
+  }
+}
+</script>
+
+<style lang="less" scoped>
+.card {
+  margin-bottom: 24px;
+}
+</style>

+ 247 - 0
itdmWeb/src/views/module-iTDM/weituo/modules/step/Step3.vue

@@ -0,0 +1,247 @@
+<template>
+
+  <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
+    <a-table
+      :columns="columns"
+      :dataSource="data"
+      :pagination="false"
+    >
+
+
+      <template v-for="(col, i) in ['yangpinKeyId', 'testItems', 'standardRequirement','judgementBasis','beizhu']"
+                :slot="col" slot-scope="text, record, index">
+
+
+        <a-select
+          :key="col"
+          v-if="record.editable && col==='yangpinKeyId'"
+          style="margin: -5px 0"
+          :value="text"
+          :placeholder="columns[i].title"
+
+          @change="e => handleChange(e, record.key, col)">
+
+          <a-select-option v-for="d in yangpins" :key="d.key">
+            {{ d.sampleName }}
+          </a-select-option>
+        </a-select>
+
+
+        <a-input
+          :key="col"
+          v-if="record.editable && col==='testItems'"
+          style="margin: -5px 0"
+          :value="text"
+          :placeholder="columns[i].title"
+          @change="e => handleChange(e.target.value, record.key, col)"></a-input>
+
+
+        <j-search-select-tag
+          :key="col"
+          v-if="record.editable && col==='standardRequirement'"
+          style="margin: -5px 0"
+          :value="text"
+          :placeholder="columns[i].title" @change="e=>handleChange(e, record.key, col)"
+          dict="itdm_weituo_yiju,name,name" />
+
+        <a-input
+          :key="col"
+          v-if="record.editable && col==='judgementBasis'"
+          style="margin: -5px 0"
+          :value="text"
+          :placeholder="columns[i].title"
+          @change="e => handleChange(e.target.value, record.key, col)"></a-input>
+
+
+        <a-input
+          :key="col"
+          v-if="record.editable && col==='beizhu'"
+          style="margin: -5px 0"
+          :value="text"
+          :placeholder="columns[i].title"
+          @change="e => handleChange(e.target.value, record.key, col)"></a-input>
+
+
+      </template>
+
+      <template slot="operation" slot-scope="text, record, index">
+          <span>
+              <a-divider type="vertical" />
+              <a-popconfirm title="是否要删除此行?" @confirm="remove(record.key)">
+                <a>删除</a>
+              </a-popconfirm>
+            </span>
+      </template>
+
+
+    </a-table>
+    <a-button style="width: 100%; margin-top: 16px; margin-bottom: 8px" type="dashed" icon="plus" @click="newMember">
+      新增成员
+    </a-button>
+
+
+    <a-form-item :wrapperCol="{span: 19, offset: 5}">
+      <a-button style="margin-left: 8px" @click="prevStep">上一步</a-button>
+      <a-button style="margin-left: 8px" @click="submitForm">提交</a-button>
+
+
+    </a-form-item>
+  </a-form-model>
+
+
+</template>
+
+<script>
+
+
+export default {
+  name: 'step3',
+
+  props: {},
+  data() {
+    return {
+      yangpins: {},
+      count: 1,
+      model: {},
+      description: '高级表单常见于一次性输入和提交大批量数据的场景。',
+      loading: false,
+      validatorRules: {},
+      // table
+      columns: [
+        {
+          title: '样品名称',
+          dataIndex: 'yangpinKeyId',
+          key: 'yangpinKeyId',
+          width: '15%',
+          scopedSlots: { customRender: 'yangpinKeyId' }
+        },
+        {
+          title: '检测项目',
+          dataIndex: 'testItems',
+          key: 'testItems',
+          width: '20%',
+          scopedSlots: { customRender: 'testItems' }
+        },
+        {
+          title: '检测依据',
+          dataIndex: 'standardRequirement',
+          key: 'standardRequirement',
+          width: '20%',
+          scopedSlots: { customRender: 'standardRequirement' }
+        },
+        {
+          title: '判定依据',
+          dataIndex: 'judgementBasis',
+          key: 'judgementBasis',
+          width: '20%',
+          scopedSlots: { customRender: 'judgementBasis' }
+        },
+        {
+          title: '备注',
+          dataIndex: 'beizhu',
+          key: 'beizhu',
+          width: '25%',
+          scopedSlots: { customRender: 'beizhu' }
+        },
+        {
+          title: '操作',
+          key: 'action',
+          scopedSlots: { customRender: 'operation' }
+        }
+      ],
+      data: []
+    }
+  },
+
+  created() {
+    const data = JSON.parse(sessionStorage.getItem('yangpinkz'))
+
+    if (data != null) {
+      for (let  xx of data) {
+        this.data.push({
+          key: xx.key,
+          yangpinKeyId: xx.yangpinKeyId,
+          testItems: xx.testItems,
+          standardRequirement: xx.standardRequirement,
+          judgementBasis: xx.judgementBasis,
+          beizhu: xx.beizhu,
+          editable: true,
+          isNew: true
+        })
+      }
+
+    }
+
+    const yangpins = JSON.parse(sessionStorage.getItem('yangpin'))
+
+    if (yangpins != null) {
+      this.yangpins = yangpins
+    }
+
+    this.count = sessionStorage.getItem('count1') != null ? Number(sessionStorage.getItem('count1')) : 1
+
+
+  },
+  methods: {
+
+    newMember() {
+      this.data.push({
+        key: this.count + '',
+        yangpinKeyId: '',
+        testItems: '',
+        standardRequirement: '',
+        judgementBasis: '',
+        beizhu: '',
+        editable: true,
+        isNew: true
+      })
+
+      this.count++
+      sessionStorage.setItem('count1', this.count)
+
+    },
+    remove(key) {
+      const newData = this.data.filter(item => item.key !== key)
+      this.data = newData
+    },
+    saveRow(key) {
+      let target = this.data.filter(item => item.key === key)[0]
+      target.editable = false
+      target.isNew = false
+
+    },
+
+    handleChange(value, key, column) {
+      const newData = [...this.data]
+      const target = newData.filter(item => key === item.key)[0]
+      if (target) {
+        target[column] = value
+        this.data = newData
+      }
+    },
+    submitForm() {
+      sessionStorage.setItem('yangpinkz', JSON.stringify(this.data))
+
+
+      // this.$refs.form.validate(valid => {
+      //   if (valid) {
+      this.$emit('submitForm')
+      //   }
+      // })
+
+    },
+    prevStep() {
+      sessionStorage.setItem('yangpinkz', JSON.stringify(this.data))
+
+      this.$emit('prevStep')
+    }
+
+  }
+}
+</script>
+
+<style lang="less" scoped>
+.card {
+  margin-bottom: 24px;
+}
+</style>

+ 198 - 0
itdmWeb/src/views/module-iTDM/weituoyiju/ItdmWeituoYijuList.vue

@@ -0,0 +1,198 @@
+<template>
+  <a-card :bordered="false">
+    <!-- 查询区域 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline" @keyup.enter.native="searchQuery">
+        <a-row :gutter="24">
+
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="代号">
+              <a-input placeholder="请输入代号" v-model="queryParam.core"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="名称">
+              <a-input placeholder="请输入名称" v-model="queryParam.name"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
+              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
+              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
+              <a @click="handleToggleSearch" style="margin-left: 8px">
+                {{ toggleSearchStatus ? '收起' : '展开' }}
+                <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
+              </a>
+            </span>
+          </a-col>
+        </a-row>
+      </a-form>
+    </div>
+    <!-- 查询区域-END -->
+
+    <!-- 操作按钮区域 -->
+    <div class="table-operator">
+      <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
+      <a-button type="primary" icon="download" @click="handleExportXls('委托依据')">导出</a-button>
+      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
+        <a-button type="primary" icon="import">导入</a-button>
+      </a-upload>
+      <!-- 高级查询区域 -->
+      <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
+      <a-dropdown v-if="selectedRowKeys.length > 0">
+        <a-menu slot="overlay">
+          <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
+        </a-menu>
+        <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
+      </a-dropdown>
+    </div>
+
+    <!-- table区域-begin -->
+    <div>
+      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
+        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
+        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
+      </div>
+
+      <a-table
+        ref="table"
+        size="middle"
+        :scroll="{x:true}"
+        bordered
+        rowKey="id"
+        :columns="columns"
+        :dataSource="dataSource"
+        :pagination="ipagination"
+        :loading="loading"
+        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
+        class="j-table-force-nowrap"
+        @change="handleTableChange">
+
+        <template slot="htmlSlot" slot-scope="text">
+          <div v-html="text"></div>
+        </template>
+        <template slot="imgSlot" slot-scope="text,record">
+          <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
+          <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
+        </template>
+        <template slot="fileSlot" slot-scope="text">
+          <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
+          <a-button
+            v-else
+            :ghost="true"
+            type="primary"
+            icon="download"
+            size="small"
+            @click="downloadFile(text)">
+            下载
+          </a-button>
+        </template>
+
+        <span slot="action" slot-scope="text, record">
+          <a @click="handleEdit(record)">编辑</a>
+
+          <a-divider type="vertical" />
+          <a-dropdown>
+            <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
+            <a-menu slot="overlay">
+              <a-menu-item>
+                <a @click="handleDetail(record)">详情</a>
+              </a-menu-item>
+              <a-menu-item>
+                <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
+                  <a>删除</a>
+                </a-popconfirm>
+              </a-menu-item>
+            </a-menu>
+          </a-dropdown>
+        </span>
+
+      </a-table>
+    </div>
+
+    <itdm-weituo-yiju-modal ref="modalForm" @ok="modalFormOk"></itdm-weituo-yiju-modal>
+  </a-card>
+</template>
+
+<script>
+
+  import '@/assets/less/TableExpand.less'
+  import { mixinDevice } from '@/utils/mixin'
+  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+  import ItdmWeituoYijuModal from './modules/ItdmWeituoYijuModal'
+
+  export default {
+    name: 'ItdmWeituoYijuList',
+    mixins:[JeecgListMixin, mixinDevice],
+    components: {
+      ItdmWeituoYijuModal
+    },
+    data () {
+      return {
+        description: '委托依据管理页面',
+        // 表头
+        columns: [
+          {
+            title: '#',
+            dataIndex: '',
+            key:'rowIndex',
+            width:60,
+            align:"center",
+            customRender:function (t,r,index) {
+              return parseInt(index)+1;
+            }
+          },
+          {
+            title:'名称',
+            align:"center",
+            dataIndex: 'name'
+          },
+          {
+            title:'代号',
+            align:"center",
+            dataIndex: 'core'
+          },
+          {
+            title: '操作',
+            dataIndex: 'action',
+            align:"center",
+            fixed:"right",
+            width:147,
+            scopedSlots: { customRender: 'action' }
+          }
+        ],
+        url: {
+          list: "/weituoyiju/itdmWeituoYiju/list",
+          delete: "/weituoyiju/itdmWeituoYiju/delete",
+          deleteBatch: "/weituoyiju/itdmWeituoYiju/deleteBatch",
+          exportXlsUrl: "/weituoyiju/itdmWeituoYiju/exportXls",
+          importExcelUrl: "weituoyiju/itdmWeituoYiju/importExcel",
+
+        },
+        dictOptions:{},
+        superFieldList:[],
+      }
+    },
+    created() {
+    this.getSuperFieldList();
+    },
+    computed: {
+      importExcelUrl: function(){
+        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+      },
+    },
+    methods: {
+      initDictConfig(){
+      },
+      getSuperFieldList(){
+        let fieldList=[];
+        fieldList.push({type:'string',value:'name',text:'名称',dictCode:''})
+        fieldList.push({type:'string',value:'core',text:'代号',dictCode:''})
+        this.superFieldList = fieldList
+      }
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less';
+</style>

+ 117 - 0
itdmWeb/src/views/module-iTDM/weituoyiju/modules/ItdmWeituoYijuForm.vue

@@ -0,0 +1,117 @@
+<template>
+  <a-spin :spinning="confirmLoading">
+    <j-form-container :disabled="formDisabled">
+      <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
+        <a-row>
+
+          <a-col :span="24">
+            <a-form-model-item label="代号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="core">
+              <a-input v-model="model.core" placeholder="请输入代号"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+
+          <a-col :span="24">
+            <a-form-model-item label="名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="name">
+              <a-input v-model="model.name" placeholder="请输入名称"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+        </a-row>
+      </a-form-model>
+    </j-form-container>
+  </a-spin>
+</template>
+
+<script>
+
+  import { httpAction, getAction } from '@/api/manage'
+  import { validateDuplicateValue } from '@/utils/util'
+
+  export default {
+    name: 'ItdmWeituoYijuForm',
+    components: {
+    },
+    props: {
+      //表单禁用
+      disabled: {
+        type: Boolean,
+        default: false,
+        required: false
+      }
+    },
+    data () {
+      return {
+        model:{
+         },
+        labelCol: {
+          xs: { span: 24 },
+          sm: { span: 5 },
+        },
+        wrapperCol: {
+          xs: { span: 24 },
+          sm: { span: 16 },
+        },
+        confirmLoading: false,
+        validatorRules: {
+           name: [
+              { required: true, message: '请输入名称!'},
+           ],
+           core: [
+              { required: true, message: '请输入代号!'},
+           ],
+        },
+        url: {
+          add: "/weituoyiju/itdmWeituoYiju/add",
+          edit: "/weituoyiju/itdmWeituoYiju/edit",
+          queryById: "/weituoyiju/itdmWeituoYiju/queryById"
+        }
+      }
+    },
+    computed: {
+      formDisabled(){
+        return this.disabled
+      },
+    },
+    created () {
+       //备份model原始值
+      this.modelDefault = JSON.parse(JSON.stringify(this.model));
+    },
+    methods: {
+      add () {
+        this.edit(this.modelDefault);
+      },
+      edit (record) {
+        this.model = Object.assign({}, record);
+        this.visible = true;
+      },
+      submitForm () {
+        const that = this;
+        // 触发表单验证
+        this.$refs.form.validate(valid => {
+          if (valid) {
+            that.confirmLoading = true;
+            let httpurl = '';
+            let method = '';
+            if(!this.model.id){
+              httpurl+=this.url.add;
+              method = 'post';
+            }else{
+              httpurl+=this.url.edit;
+               method = 'put';
+            }
+            httpAction(httpurl,this.model,method).then((res)=>{
+              if(res.success){
+                that.$message.success(res.message);
+                that.$emit('ok');
+              }else{
+                that.$message.warning(res.message);
+              }
+            }).finally(() => {
+              that.confirmLoading = false;
+            })
+          }
+
+        })
+      },
+    }
+  }
+</script>

+ 84 - 0
itdmWeb/src/views/module-iTDM/weituoyiju/modules/ItdmWeituoYijuModal.Style#Drawer.vue

@@ -0,0 +1,84 @@
+<template>
+  <a-drawer
+    :title="title"
+    :width="width"
+    placement="right"
+    :closable="false"
+    @close="close"
+    destroyOnClose
+    :visible="visible">
+    <itdm-weituo-yiju-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" normal></itdm-weituo-yiju-form>
+    <div class="drawer-footer">
+      <a-button @click="handleCancel" style="margin-bottom: 0;">关闭</a-button>
+      <a-button v-if="!disableSubmit"  @click="handleOk" type="primary" style="margin-bottom: 0;">提交</a-button>
+    </div>
+  </a-drawer>
+</template>
+
+<script>
+
+  import ItdmWeituoYijuForm from './ItdmWeituoYijuForm'
+
+  export default {
+    name: 'ItdmWeituoYijuModal',
+    components: {
+      ItdmWeituoYijuForm
+    },
+    data () {
+      return {
+        title:"操作",
+        width:800,
+        visible: false,
+        disableSubmit: false
+      }
+    },
+    methods: {
+      add () {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.add();
+        })
+      },
+      edit (record) {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.edit(record);
+        });
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      submitCallback(){
+        this.$emit('ok');
+        this.visible = false;
+      },
+      handleOk () {
+        this.$refs.realForm.submitForm();
+      },
+      handleCancel () {
+        this.close()
+      }
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+/** Button按钮间距 */
+  .ant-btn {
+    margin-left: 30px;
+    margin-bottom: 30px;
+    float: right;
+  }
+  .drawer-footer{
+    position: absolute;
+    bottom: -8px;
+    width: 100%;
+    border-top: 1px solid #e8e8e8;
+    padding: 10px 16px;
+    text-align: right;
+    left: 0;
+    background: #fff;
+    border-radius: 0 0 2px 2px;
+  }
+</style>

+ 60 - 0
itdmWeb/src/views/module-iTDM/weituoyiju/modules/ItdmWeituoYijuModal.vue

@@ -0,0 +1,60 @@
+<template>
+  <j-modal
+    :title="title"
+    :width="width"
+    :visible="visible"
+    switchFullscreen
+    @ok="handleOk"
+    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
+    @cancel="handleCancel"
+    cancelText="关闭">
+    <itdm-weituo-yiju-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></itdm-weituo-yiju-form>
+  </j-modal>
+</template>
+
+<script>
+
+  import ItdmWeituoYijuForm from './ItdmWeituoYijuForm'
+  export default {
+    name: 'ItdmWeituoYijuModal',
+    components: {
+      ItdmWeituoYijuForm
+    },
+    data () {
+      return {
+        title:'',
+        width:800,
+        visible: false,
+        disableSubmit: false
+      }
+    },
+    methods: {
+      add () {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.add();
+        })
+      },
+      edit (record) {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.edit(record);
+        })
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      handleOk () {
+        this.$refs.realForm.submitForm();
+      },
+      submitCallback(){
+        this.$emit('ok');
+        this.visible = false;
+      },
+      handleCancel () {
+        this.close()
+      }
+    }
+  }
+</script>

+ 1 - 0
itdmWeb/vue.config.js

@@ -108,6 +108,7 @@ module.exports = {
       /* 注意:jeecgboot前端做了改造,此处不需要配置跨域和后台接口(只需要改.env相关配置文件即可)
           issues/3462 很多人此处做了配置,导致刷新前端404问题,请一定注意*/
       '/jeecg-boot': {
+        // target: 'http://192.168.186.146:8080',
         target: 'http://localhost:8080',
         ws: false,
         changeOrigin: true

File diff suppressed because it is too large
+ 1727 - 1704
itdmWeb/yarn.lock