Sfoglia il codice sorgente

企业,链属管理修改

sqg 3 anni fa
parent
commit
915beac7c0

+ 2 - 2
front-vue/src/api/service/rel/companyRel.js

@@ -46,9 +46,9 @@ export function listAllCompany(query) {
 }
 
 // 查询企业
-export function listCompanyQuery(scyName) {
+export function listCompanyQuery(scyId) {
   return request({
-    url: '/sc-service/rel/companyListQuery/'+ scyName,
+    url: '/sc-service/rel/companyListQuery/'+ scyId,
     method: 'get'
   })
 }

+ 5 - 2
front-vue/src/views/service/company/coreCompanyManage.vue

@@ -22,6 +22,7 @@
       </el-form-item>
       <el-form-item label="社会统一代码" prop="scySocialCode">
         <el-input
+          maxlength="30"
           v-model="queryParams.scySocialCode"
           placeholder="请输入社会统一代码"
           clearable
@@ -32,6 +33,7 @@
       <el-form-item label="联系人" prop="scyLegal">
         <el-input
           v-model="queryParams.scyLegal"
+          maxlength="30"
           placeholder="请输入联系人"
           clearable
           size="small"
@@ -41,6 +43,7 @@
       <el-form-item label="联系电话" prop="scyPhone">
         <el-input
           v-model="queryParams.scyPhone"
+          maxlength="11"
           placeholder="请输入联系电话"
           clearable
           size="small"
@@ -490,7 +493,7 @@ export default {
       const scyId = row.scyId || this.ids;
       const scyName = row.scyName;
       const state = '00';
-      this.$confirm('是否确认冻公司名称为"' + scyName + '"的数据?', "警告", {
+      this.$confirm('是否确认冻公司名称为"' + scyName + '"的数据?', "警告", {
           confirmButtonText: "确定",
           cancelButtonText: "取消",
           type: "warning"
@@ -503,7 +506,7 @@ export default {
         .catch(() => {
           this.$message({
             type: "warning",
-            message: "已取消冻",
+            message: "已取消冻",
            
           });
         }); 

+ 1 - 2
front-vue/src/views/service/company/detailCompany.vue

@@ -389,8 +389,7 @@ export default {
                         });
                         updateCompanyInfor(self.form).then((response) => {
                             this.msgSuccess("修改成功");
-                            this.getList();
-                            this.getRelList();
+                            this.created();
                         });
                         loading.close();
                     }

+ 5 - 2
front-vue/src/views/service/company/supCompanyManage.vue

@@ -23,6 +23,7 @@
       <el-form-item label="社会统一代码" prop="scySocialCode">
         <el-input
           v-model="queryParams.scySocialCode"
+          maxlength="30"
           placeholder="请输入社会统一代码"
           clearable
           size="small"
@@ -32,6 +33,7 @@
       <el-form-item label="联系人" prop="scyLegal">
         <el-input
           v-model="queryParams.scyLegal"
+          maxlength="30"
           placeholder="请输入联系人"
           clearable
           size="small"
@@ -41,6 +43,7 @@
       <el-form-item label="联系电话" prop="scyPhone">
         <el-input
           v-model="queryParams.scyPhone"
+          maxlength="11"
           placeholder="请输入联系电话"
           clearable
           size="small"
@@ -491,7 +494,7 @@ export default {
       const scyId = row.scyId || this.ids;
       const scyName = row.scyName;
       const state = '00';
-      this.$confirm('是否确认冻公司名称为"' + scyName + '"的数据?', "警告", {
+      this.$confirm('是否确认冻公司名称为"' + scyName + '"的数据?', "警告", {
           confirmButtonText: "确定",
           cancelButtonText: "取消",
           type: "warning"
@@ -504,7 +507,7 @@ export default {
         .catch(() => {
           this.$message({
             type: "warning",
-            message: "已取消冻",
+            message: "已取消冻",
            
           });
         }); 

+ 10 - 42
front-vue/src/views/service/rel/companyRel.vue

@@ -270,7 +270,7 @@
     <!-- 添加链属框 -->
     <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
       <el-form ref="form" :model="form" :rules="rules" label-width="140px" :inline="true">
-        <el-form-item label="企业编号" prop="scyId" v-if="idShow" >
+        <el-form-item label="企业编号" prop="scyId" style="display:none" >
           <el-input v-model="form.scyId" disabled />
         </el-form-item>
         <el-form-item label="企业类型" prop="scrReceiveType">
@@ -304,7 +304,7 @@
                 v-for="item in companyList"
                 :key="item.value"
                 :label="item.label"
-                :value="item.label">
+                :value="item.value">
               </el-option>
             </el-select>
         </el-form-item>
@@ -397,7 +397,6 @@ export default {
       spareTitol: 0,
       // 公司数据
       companyList: [],
-      companyIdList:[],
       //链属表格数据
       companyRelList: [],
       //链属未认证列表数据
@@ -557,7 +556,6 @@ export default {
     this.getList();
     this.getSpare();
     this.getCompanyList();
-    this.getCompanyIdList();
     this.getUser();
   },
   activated() {
@@ -576,7 +574,6 @@ export default {
     this.getList();
     this.getSpare();
     this.getCompanyList();
-    this.getCompanyIdList();
     this.getUser();
   },
   mounted() {
@@ -667,6 +664,7 @@ export default {
       this.$refs.upload.clearFiles();
       this.$alert(response.msg, "导入结果", { dangerouslyUseHTMLString: true });
       this.getList();
+      this.getSpare();
     },
     // 提交上传文件
     submitFileForm() {
@@ -706,29 +704,13 @@ export default {
         }
       );
     },
-    //查询企业
-    getCompanyIdList(query){
-        this.loading = true;
-        this.companyQueryParams.scyType = '01';
-        this.companyQueryParams.scyName = query;
-        listCompany(this.companyQueryParams).then(response => {
-            if(response){
-                if(response.data){
-                    if(response.data.records.length > 0){
-                        this.companyIdList = response.data.records;
-                        this.loading = false;
-                    }
-                }
-            }
-        })
-    },
     //查询所有企业
     getCompanyList(){
         this.loading = true;
         listAllCompany().then(response => {
           this.comlist = response.data;
           this.listCom = this.comlist.map(item => {
-            return { value: item.scyName, label: item.scyName };
+            return { value: item.scyId, label: item.scyName };
           });
         })
     },
@@ -755,19 +737,12 @@ export default {
         }
       },
 
-    //清空企业
-    clearBoth(){
-        this.$set(this.templateForm, "scyId", '');
-        this.companyQueryParams.scyType = '01';
-        listCompany(this.companyQueryParams).then(response => {
-            this.companyIdList = response.data.records;
-        })
-    },
     //选择企业后反显
     choice(item){
-        let scyName = item;
-        if(scyName){
-            listCompanyQuery(scyName).then(response => {
+      debugger
+        let scyId = item;
+        if(scyId){
+            listCompanyQuery(scyId).then(response => {
                 if(response.data.length > 0){
                 this.$set(this.form, "scySocialCode", response.data[0].scySocialCode);
                 }else{
@@ -792,15 +767,7 @@ export default {
     },
     // 表单重置
     reset() {
-      this.form = {
-        scyId: null,
-        scrLaunchType : null,
-        scyName: null,
-        scySocialCode: null,
-        scrContarct : null,
-        scrContarctPhone : null,
-        scrContarctEmail : null
-      };
+      this.clearRemote();
       this.resetForm("form");
     },
     /** 搜索按钮操作 */
@@ -826,6 +793,7 @@ export default {
 
     /** 新增按钮操作 */
     handleAdd() {
+      this.reset();
       this.open = true;
       this.title = "新增链属";
     },

+ 1 - 1
front-vue/src/views/service/rel/companyRelManage.vue

@@ -1,6 +1,6 @@
 <template>
   <el-tabs type="border-card">
-    <el-tab-pane label="我的链属">
+    <el-tab-pane label="链属列表">
       <el-card class="fiche">
           <right-toolbar :showSearch.sync="showSearch" @queryTable="getList">收起</right-toolbar>
           <span style="margin-bottom: 10px;color:#333333;font:14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial,sans-serif">所选条件:</span>