Ver código fonte

提交工程管理专业版转译

Lijy 2 anos atrás
pai
commit
dc57c60a2a

+ 15 - 4
fhKeeper/formulahousekeeper/timesheet/src/views/project/info.vue

@@ -483,7 +483,8 @@
         <!--修改工程专业界面-->
         <el-dialog :title="$t('engineering')" v-if="editProfessionDialog" :visible.sync="editProfessionDialog" 
         :close-on-click-modal="false" customClass="customWidth" width="1000px">
-            <el-table :data="projectProfessionList" size="small" max-height="400" :key="Math.random()">
+        <div class="gongcheng">
+            <el-table :data="projectProfessionList" size="small" height="500" :key="Math.random()">
                 <el-table-column prop="professionId" width="200">
                                    <template slot-scope="scope">
                                        <el-select v-model="scope.row.professionId" >
@@ -513,12 +514,13 @@
                                        </el-link>
                                    </template>
                                </el-table-column>
-                               <el-table-column prop="inchargerName" width="120" :label="$t('head')">
+                               <el-table-column prop="inchargerName" width="200" :label="$t('head')">
                                    <template slot-scope="scope">
-                                       <el-select v-model="scope.row.inchargerId" >
+                                       <el-select v-model="scope.row.inchargerId" v-if="user.userNameNeedTranslate != 1">
                                            <el-option v-for="item in participator" :key="item.id" :label="item.name" :value="item.id">
                                            </el-option>
                                        </el-select>
+                                       <selectCat v-if="user.userNameNeedTranslate == 1" :size="'mini'" :subject="participator" :subjectId="scope.row.inchargerId" :other="scope.$index" :distinction="'2'" @selectCal="selectCal"></selectCat>
                                    </template>
                                </el-table-column>
                                <el-table-column  width="80">
@@ -534,17 +536,20 @@
                 <el-button @click.native="editProfessionDialog = false">{{ $t('btn.cancel') }}</el-button>
                 <el-button type="primary" @click="saveProjectProfessions" :loading="addLoading">{{ $t('btn.submit') }}</el-button>
             </div>
+        </div>
         </el-dialog>
 
         <!-- 项目专业人员的设置 -->
         <el-dialog :title="$t('setupprojectprofessionals')"  v-if="editPpMembDialog" :visible.sync="editPpMembDialog" :close-on-click-modal="false" customClass="customWidth" width="600px">
+            <div class="gongcheng">
             <el-table :data="curProfessionRow.membList" height="400">
                 <el-table-column prop="name" :label="$t('professionals')">
                     <template slot-scope="scope">
-                        <el-select v-model="scope.row.membId"  filterable :placeholder="$t('professionaladdsparticipant')" style="width:100%;" >
+                        <el-select v-if="user.userNameNeedTranslate != 1" v-model="scope.row.membId"  filterable :placeholder="$t('professionaladdsparticipant')" style="width:100%;" >
                             <el-option v-for="item in participator" :key="item.id" :label="item.name" :value="item.id">
                             </el-option>
                         </el-select>
+                        <selectCat v-if="user.userNameNeedTranslate == 1" :size="'medium'" :subject="participator" :subjectId="scope.row.membId" :distinction="'3'" :other="scope.$index" @selectCal="selectCal"></selectCat>
                     </template>
                 </el-table-column>
                 <el-table-column prop="percentage" width="120" :label="$t('zhan-bi')">
@@ -565,6 +570,7 @@
                 <el-button  @click="editPpMembDialog = false" >{{ $t('btn.cancel') }}</el-button>
                 <el-button type="primary" @click="addPpMemb" >{{ $t('btn.determine') }}</el-button>
             </div>
+            </div>
         </el-dialog>
         <!-- 编辑项目关键节点 -->
         <el-dialog :title="$t('editkeyprojectnodes')" :visible.sync="keyNodeIsShow" width="960px" :before-close="handleClose">
@@ -1987,6 +1993,11 @@
             selectCal(obj) {
                 if(obj.distinction == '1' ) {
                     this.addForm.inchargerId = obj.id
+                } else if(obj.distinction == '2') {
+                    this.projectProfessionList[obj.other].inchargerId = obj.id
+                } else if(obj.distinction == '3') {
+                    let userList = obj.id
+                    this.curProfessionRow.membList[obj.other].membId = userList
                 }
             }
         },

+ 1 - 1
fhKeeper/formulahousekeeper/timesheet/src/views/project/list.vue

@@ -1080,7 +1080,7 @@
             <el-table :data="curProfessionRow.membList" height="400">
                 <el-table-column prop="name" :label="$t('professionals')">
                     <template slot-scope="scope">
-                        <el-select v-model="scope.row.membId"  filterable :placeholder="$t('professionaladdsparticipant')" style="width:100%;" >
+                        <el-select v-model="scope.row.membId" v-if="user.userNameNeedTranslate != 1"  filterable :placeholder="$t('professionaladdsparticipant')" style="width:100%;" >
                             <el-option v-for="item in participator" :key="item.id" :label="item.name" :value="item.id">
                             </el-option>
                         </el-select>

+ 15 - 2
fhKeeper/formulahousekeeper/timesheet/src/views/workflow/report.vue

@@ -67,7 +67,8 @@
               <el-form label-width="80px">
               <el-form-item :label="$t('other.selectdepartment')" >
                   <el-cascader ref="deptCascader"  v-model="curDeptId" :placeholder="$t('qing-xuan-ze-bu-men')" style="width: 100%" @change="chooseDept"
-                    :options="option" :props="{ checkStrictly: true,expandTrigger: 'hover' }" :show-all-levels="false" clearable></el-cascader>
+                    :options="option" :props="{ checkStrictly: true,expandTrigger: 'hover' }" :show-all-levels="false" clearable v-show="user.userNameNeedTranslate != 1"></el-cascader>
+                <vueCascader :size="'small'" :subjectId="curDeptId" :widthStr="'200'" :clearable="true" :subject="option" :radios="true" :distinction="'3'" @vueCasader="vueCasader" v-if="user.userNameNeedTranslate == 1"></vueCascader>
               </el-form-item>
               </el-form>
             <div slot="footer" class="dialog-footer">
@@ -93,7 +94,8 @@
 </template>
 <script>
     import util from "../../common/js/util";
-
+    // 引入自定义级联组件
+    import vueCascader from "@/components/cascader.vue"
     export default {
         data() {
             return {
@@ -124,6 +126,9 @@
                 sysAuditUSer:{}
             };
         },
+        components: {
+            vueCascader
+        },
         methods: {
             setAuditUser() {
                 this.http.post('/audit-workflow-time-setting/setAuditSysUser',{userId: this.auditManagerId},
@@ -337,6 +342,14 @@
                     );
             },
 
+            vueCasader(obj) {
+                if(obj.distinction == '3') {
+                    let arr = []
+                    arr.push(obj.id)
+                    this.curDeptId = arr
+                }
+            }
+
         },
         created() {
             let height = window.innerHeight;