zhangxiaojun 7 місяців тому
батько
коміт
bb6dda7f1a

+ 5 - 1
src/components/CustomSelect/index.vue

@@ -6,7 +6,7 @@
       style="width: 100%"
       filterable
       clearable
-      placeholder="请选择公司名称"
+      :placeholder="placeholder"
       :disabled="disabled"
       @blur="selectBlur"
       @clear="selectClear"
@@ -28,6 +28,10 @@ export default {
     value: {
       type: [String, Number],
       default: ''
+    },
+    placeholder: {
+      type: String,
+      default: '请选择公司名称'
     }
   },
   data() {

+ 11 - 11
src/router/moudules/myBusiness.js

@@ -21,77 +21,77 @@ export default {
         name: 'SupplierEnterprise',
         component: () => import('@/views/myBusiness/supplierEnterprise/index'),
         hidden: true,
-        meta: { title: '供应商企业信息', icon: 'dashboard' }
+        meta: { title: '供应商企业信息', icon: 'dashboard', activeMenu: '/myBusiness' }
       },
       {
         path: '/myBusiness/guaranteeEnterprise/:id',
         name: 'GuaranteeEnterprise',
         component: () => import('@/views/myBusiness/guaranteeEnterprise/index'),
         hidden: true,
-        meta: { title: '担保企业信息' }
+        meta: { title: '担保企业信息', activeMenu: '/myBusiness' }
       },
       {
         path: '/myBusiness/supplementaryInfo/:id',
         name: 'MyBusinessSupplementaryInfo',
         component: () => import('@/views/myBusiness/supplementaryInfo/index'),
         hidden: true,
-        meta: { title: '补充信息' }
+        meta: { title: '补充信息', activeMenu: '/myBusiness' }
       },
       {
         path: '/myBusiness/supplementaryInfoSee/:id',
         name: 'MyBusinessSupplementaryInfoSee',
         component: () => import('@/views/myBusiness/supplementaryInfo/index'),
         hidden: true,
-        meta: { title: '供应商企业信息' }
+        meta: { title: '供应商企业信息', activeMenu: '/myBusiness' }
       },
       {
         path: '/myBusiness/projectInfo/:id',
         name: 'MyBusinessProjectInfo',
         component: () => import('@/views/myBusiness/projectInfo/index'),
         hidden: true,
-        meta: { title: '项目信息' }
+        meta: { title: '项目信息', activeMenu: '/myBusiness' }
       },
       {
         path: '/myBusiness/projectSupplement/:id',
         name: 'MyBusinessProjectSupplement',
         component: () => import('@/views/myBusiness/projectSupplement/index'),
         hidden: true,
-        meta: { title: '项目补充信息', icon: 'dashboard' }
+        meta: { title: '项目补充信息', icon: 'dashboard', activeMenu: '/myBusiness' }
       },
       {
         path: '/myBusiness/projectView/:id',
         name: 'MyBusinessProjectView',
         component: () => import('@/views/myBusiness/admittanceDetail/projectDetail'),
         hidden: true,
-        meta: { title: '项目信息查看', icon: 'dashboard' }
+        meta: { title: '项目信息查看', icon: 'dashboard', activeMenu: '/myBusiness' }
       },
       {
         path: '/myBusiness/offlineDueDiligence/:id',
         name: 'MyBusinessOfflineDueDiligence',
         component: () => import('@/views/myBusiness/offlineDueDiligence/index'),
         hidden: true,
-        meta: { title: '尽调预约', icon: 'dashboard' }
+        meta: { title: '尽调预约', icon: 'dashboard', activeMenu: '/myBusiness' }
       },
       {
         path: '/myBusiness/videoDueDiligence/:id',
         name: 'MyBusinessVideoDueDiligence',
         component: () => import('@/views/myBusiness/videoDueDiligence/index'),
         hidden: true,
-        meta: { title: '视频尽调预约', icon: 'dashboard' }
+        meta: { title: '视频尽调预约', icon: 'dashboard', activeMenu: '/myBusiness' }
       },
       {
         path: '/myBusiness/admittanceDetail/:id',
         name: 'MyBusinessAdmittanceDetail',
         component: () => import('@/views/myBusiness/admittanceDetail/index'),
         hidden: true,
-        meta: { title: '准入详情', icon: 'dashboard' }
+        meta: { title: '准入详情', icon: 'dashboard', activeMenu: '/myBusiness' }
       },
       {
         path: '/myBusiness/error/:id',
         name: 'MyBusinessError',
         component: () => import('@/views/myBusiness/error'),
         hidden: true,
-        meta: { title: '结果', icon: 'dashboard' }
+        meta: { title: '结果', icon: 'dashboard', activeMenu: '/myBusiness' }
       }
     ]
   }]

+ 5 - 5
src/router/moudules/myTrade.js

@@ -112,35 +112,35 @@ export default {
           path: '/acceptanceFormAdd/:id',
           name: 'AcceptanceFormAdd',
           component: () => import('@/views/myTrade/acceptanceManagement/acceptanceAdd'),
-          meta: { title: '新建验收单', icon: 'tree' },
+          meta: { title: '新建验收单', icon: 'tree', activeMenu: '/myTrade' },
           hidden: true
         },
         {
           path: '/acceptanceFormView/:id',
           name: 'AcceptanceFormView',
           component: () => import('@/views/myTrade/acceptanceManagement/acceptanceView'),
-          meta: { title: '验收单查看', icon: 'tree' },
+          meta: { title: '验收单查看', icon: 'tree', activeMenu: '/myTrade' },
           hidden: true
         },
         {
           path: '/acceptanceFormViewTemp/:id',
           name: 'AcceptanceFormViewTemp',
           component: () => import('@/views/myTrade/acceptanceManagement/acceptanceViewTemp'),
-          meta: { title: '验收单查看', icon: 'tree' },
+          meta: { title: '验收单查看', icon: 'tree', activeMenu: '/myTrade' },
           hidden: true
         },
         {
           path: '/acceptanceSign/:id',
           name: 'AcceptanceSign',
           component: () => import('@/views/myTrade/acceptanceManagement/acceptanceSign'),
-          meta: { title: '签署确认', icon: 'tree' },
+          meta: { title: '签署确认', icon: 'tree', activeMenu: '/myTrade' },
           hidden: true
         },
         {
           path: '/changePrice/:id',
           name: 'ChangePrice',
           component: () => import('@/views/myTrade/acceptanceManagement/changePrice'),
-          meta: { title: '验收单单价调整', icon: 'tree' },
+          meta: { title: '验收单单价调整', icon: 'tree', activeMenu: '/myTrade' },
           hidden: true
         },
         {

+ 4 - 0
src/styles/index.scss

@@ -100,3 +100,7 @@ div:focus {
 .iconCharacters {
   font-size: 16px !important;
 }
+.option-label-tip {
+  font-size: 12px;
+  color: #838080;
+}

+ 5 - 0
src/views/myBusiness/components/EnterpriseInspection.vue

@@ -13,6 +13,7 @@
         <custom-select
           :value.sync="ruleForm.corporateName"
           :disabled="disabled"
+          :placeholder="placeholder"
           @search-click="searchClick"
           @search-change="searchChange"
         >
@@ -94,6 +95,10 @@ export default {
     detailsInfo: {
       type: Object,
       default: () => {}
+    },
+    placeholder: {
+      type: String,
+      default: '请选择公司名称'
     }
   },
   data() {

+ 11 - 8
src/views/myBusiness/projectInfo/components/Project.vue

@@ -14,9 +14,11 @@
             <el-option
               v-for="item in projectTypes"
               :key="item.value"
-              :label="item.label"
+              :label="item.label.split(':')[0]"
               :value="item.value"
-            />
+            >
+              <span>{{ item.label.split(':')[0] }}</span><span class="option-label-tip">({{ item.label.split(':')[1] }})</span>
+            </el-option>
           </el-select>
         </el-form-item>
         <el-form-item label="项目名称" class="two-form-item" prop="projectName">
@@ -52,15 +54,15 @@ export default {
       },
       projectTypes: [
         {
-          label: '固定项目',
+          label: '固定项目:货物与项目一一对应,非集采公司采购',
           value: 'c_project_type_1'
         },
         {
-          label: '集采项目',
+          label: '集采项目:货物与项目非一一对应,集采公司采购',
           value: 'c_project_type_2'
         },
         {
-          label: '无项目',
+          label: '无项目:暂无具体项目',
           value: 'c_project_type_3'
         }
       ],
@@ -117,8 +119,9 @@ export default {
 
 <style lang="scss" scoped>
 .project-box {
-.el-form {
-  padding: 10px 20px;
-}
+  .el-form {
+    padding: 10px 20px;
+  }
+
 }
 </style>

+ 1 - 1
src/views/myBusiness/projectInfo/index.vue

@@ -5,7 +5,7 @@
     <project ref="projectInfo" />
     <cy-info-title type="collapse" name="核心企业">
       <!-- <core-enterprise ref="coreEnterprise" /> -->
-      <enterprise-inspection ref="enterpriseInspection" :inspection-data="inspectionData" class="enterprise-content" :source="'projectAdd'" />
+      <enterprise-inspection ref="enterpriseInspection" :inspection-data="inspectionData" class="enterprise-content" :source="'projectAdd'" :placeholder="'本次拟合作下游买方'" />
     </cy-info-title>
     <div class="submit-btn">
       <el-button type="primary" @click="nextClick">下一步</el-button>

+ 4 - 2
src/views/myBusiness/projectSupplement/components/ProjectInfo.vue

@@ -107,9 +107,11 @@
           <el-option
             v-for="item in purposeList"
             :key="item.code"
-            :label="item.name"
+            :label="item.name.split(':')[0]"
             :value="item.code"
-          />
+          >
+            <span>{{ item.name.split(':')[0] }}</span><span class="option-label-tip">({{ item.name.split(':')[1] }})</span>
+          </el-option>
         </el-select>
       </el-form-item>
       <el-form-item label="具体用途" class="one-form-item" prop="purposeDetail">

+ 3 - 5
src/views/myTrade/acceptanceManagement/index.vue

@@ -7,7 +7,7 @@
           <div class="right">
             <template>
               <div>
-                <el-input v-model="search.businessNumber" style="width: 250px" placeholder="请输入验收单编号/业务编号" clearable />
+                <el-input v-model="search.businessNumber" placeholder="请输入验收单编号/业务编号" clearable />
               </div>
               <div>
                 <el-select v-model="search.status" placeholder="请选择状态">
@@ -20,12 +20,10 @@
                 </el-select>
               </div>
               <div>
-                <el-input v-model="search.fastSearch" style="width: 300px" placeholder="请输入项目名称/主企业名称/核心企业名称" clearable />
+                <el-input v-model="search.fastSearch" placeholder="请输入项目名称/主企业名称/核心企业名称" clearable />
               </div>
-              <div class="leftBtn">
+              <div class="right-btn">
                 <el-button type="primary" @click="fetchData">查询</el-button>
-              </div>
-              <div>
                 <el-button type="primary" icon="el-icon-plus" @click="modifyClick('create')">创建验收单</el-button>
               </div>
             </template>