浏览代码

审核详情,委托编号限制12位字符

wyh 1 年之前
父节点
当前提交
90586732dc

+ 13 - 4
itdmWeb/src/views/module-iTDM/weituoshenhe/ItdmWeituoshenheInfoList.vue

@@ -95,7 +95,7 @@
             <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
             <a-menu slot="overlay">
               <a-menu-item>
-                <a @click="handleDetail(record)">详情</a>
+                <a @click="handleDetail2(record)">详情</a>
               </a-menu-item>
               <a-menu-item>
                 <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
@@ -109,7 +109,8 @@
       </a-table>
     </div>
 
-    <itdm-weituo-info-modal ref="modalForm" @ok="modalFormOk"></itdm-weituo-info-modal>
+    <itdm-weituo-info-modal2 ref="modalForm" @ok="modalFormOk"></itdm-weituo-info-modal2>
+    <itdm-weituo-info-modal ref="modalForm1"></itdm-weituo-info-modal>
   </a-card>
 </template>
 
@@ -118,14 +119,16 @@
 import '@/assets/less/TableExpand.less'
 import { mixinDevice } from '@/utils/mixin'
 import { JeecgListMixin } from '@/mixins/JeecgListMixin'
-import ItdmWeituoInfoModal from './modules/ItdmWeituoInfoModal'
+import ItdmWeituoInfoModal2 from './modules/ItdmWeituoInfoModal2'
 import { ajaxGetDictItems, loadCategoryData } from '@/api/api'
 import { filterMultiDictText } from '@comp/dict/JDictSelectUtil'
  import { httpAction, getAction } from '@/api/manage'
+import ItdmWeituoInfoModal from '../weituo/modules/ItdmWeituoInfoModal.vue'
 export default {
   name: 'ItdmWeituoInfoList',
   mixins:[JeecgListMixin, mixinDevice],
   components: {
+    ItdmWeituoInfoModal2,
     ItdmWeituoInfoModal
   },
   data () {
@@ -310,7 +313,13 @@ export default {
       fieldList.push({type:'string',value:'teshuyaoqiu',text:'特殊要求',dictCode:''})
       fieldList.push({type:'string',value:'tiaojianFile',text:'试验条件文件地址',dictCode:''})
       this.superFieldList = fieldList
-    }
+    },
+    // 详情
+    handleDetail2:function(record){
+      this.$refs.modalForm1.edit(record);
+      this.$refs.modalForm1.title="详情";
+      this.$refs.modalForm1.disableSubmit = true;
+    },
   }
 }
 </script>

+ 3 - 0
itdmWeb/src/views/module-iTDM/weituoshenhe/modules/ItdmWeituoInfoForm.vue

@@ -56,6 +56,9 @@
         },
         confirmLoading: false,
         validatorRules: {
+          weituoNo: [
+            { min: 1, max: 12, message: "长度不超过12个字符", trigger: "blur" }
+          ],
         },
         url: {
           add: "/weituo/itdmWeituoInfo/add",

+ 1 - 1
itdmWeb/src/views/module-iTDM/weituoshenhe/modules/ItdmWeituoInfoModal.Style#Drawer.vue

@@ -20,7 +20,7 @@
   import ItdmWeituoInfoForm from './ItdmWeituoInfoForm'
 
   export default {
-    name: 'ItdmWeituoInfoModal',
+    name: 'ItdmWeituoInfoModal2',
     components: {
       ItdmWeituoInfoForm
     },

+ 0 - 60
itdmWeb/src/views/module-iTDM/weituoshenhe/modules/ItdmWeituoInfoModal.vue

@@ -1,60 +0,0 @@
-<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: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>