Parcourir la source

修改查看按钮显示错误

余思翰 il y a 11 mois
Parent
révision
c4ccabc931

+ 13
- 14
oa-ui/src/views/flowable/form/components/settlePrint.vue Voir le fichier

92
         <tr>
92
         <tr>
93
           <td :colspan="2" class="fontbold">综合事务部(设备领用情况)</td>
93
           <td :colspan="2" class="fontbold">综合事务部(设备领用情况)</td>
94
           <td :colspan="4" class="conment-width">{{ form.zhComment }}</td>
94
           <td :colspan="4" class="conment-width">{{ form.zhComment }}</td>
95
-          <td :colspan="2" style="text-align:left;">签名:<span class="auditor">{{ form.zhUserName }}</span></td>
96
-          <td :colspan="2" style="text-align:left;">日期:{{ form.zhTime }}</td>
95
+          <td :colspan="2" style="text-align:left;min-width:120px;">签名:<span class="auditor">{{ getUserName(form.zhUserId) }}</span></td>
96
+          <td :colspan="2" style="text-align:left;width:120px;">日期:{{ form.zhTime }}</td>
97
         </tr>
97
         </tr>
98
         <tr>
98
         <tr>
99
           <td :colspan="2" class="fontbold">技术质量部(质量及工作量)</td>
99
           <td :colspan="2" class="fontbold">技术质量部(质量及工作量)</td>
100
           <td :colspan="4" class="conment-width">{{ form.jsComment }}</td>
100
           <td :colspan="4" class="conment-width">{{ form.jsComment }}</td>
101
-          <td :colspan="2" style="text-align:left;">签名:<span class="auditor">{{ form.jsUserName }}</span></td>
102
-          <td :colspan="2" style="text-align:left;">日期:{{ form.jsTime }}</td>
101
+          <td :colspan="2" style="text-align:left;min-width:120px;">签名:<span class="auditor">{{ getUserName(form.jsUserId) }}</span></td>
102
+          <td :colspan="2" style="text-align:left;width:120px;">日期:{{ form.jsTime }}</td>
103
         </tr>
103
         </tr>
104
         <tr>
104
         <tr>
105
           <td :colspan="2" class="fontbold">经营发展部(校核)</td>
105
           <td :colspan="2" class="fontbold">经营发展部(校核)</td>
106
           <td :colspan="4" class="conment-width">{{ form.jyComment }}</td>
106
           <td :colspan="4" class="conment-width">{{ form.jyComment }}</td>
107
-          <td :colspan="2" style="text-align:left;">签名:<span class="auditor">{{ form.jyUserName }}</span></td>
108
-          <td :colspan="2" style="text-align:left;">日期:{{ form.jyTime }}</td>
107
+          <td :colspan="2" style="text-align:left;min-width:120px;">签名:<span class="auditor">{{ getUserName(form.jyUserId) }}</span></td>
108
+          <td :colspan="2" style="text-align:left;width:120px;">日期:{{ form.jyTime }}</td>
109
         </tr>
109
         </tr>
110
         <tr>
110
         <tr>
111
           <td :colspan="2" class="fontbold">分管领导(审核)</td>
111
           <td :colspan="2" class="fontbold">分管领导(审核)</td>
112
           <td :colspan="4" class="conment-width">{{ form.managerComment }}</td>
112
           <td :colspan="4" class="conment-width">{{ form.managerComment }}</td>
113
-          <td :colspan="2" style="text-align:left;">签名:<span class="auditor">{{ form.managerUserName }}</span></td>
114
-          <td :colspan="2" style="text-align:left;">日期:{{ form.managerTime }}</td>
113
+          <td :colspan="2" style="text-align:left;min-width:120px;">签名:<span class="auditor">{{ getUserName(form.managerUserId) }}</span></td>
114
+          <td :colspan="2" style="text-align:left;width:120px;">日期:{{ form.managerTime }}</td>
115
         </tr>
115
         </tr>
116
         <tr>
116
         <tr>
117
           <td :colspan="2" class="fontbold">总经理(审批)</td>
117
           <td :colspan="2" class="fontbold">总经理(审批)</td>
118
           <td :colspan="4" class="conment-width">{{ form.gmComment }}</td>
118
           <td :colspan="4" class="conment-width">{{ form.gmComment }}</td>
119
-          <td :colspan="2" style="text-align:left;">签名:<span class="auditor">{{ form.gmUserName }}</span></td>
120
-          <td :colspan="2" style="text-align:left;">日期:{{ form.gmTime }}</td>
119
+          <td :colspan="2" style="text-align:left;min-width:120px;">签名:<span class="auditor">{{ getUserName(form.gmUserId) }}</span></td>
120
+          <td :colspan="2" style="text-align:left;width:120px;">日期:{{ form.gmTime }}</td>
121
         </tr>
121
         </tr>
122
         <tr v-if="form.dszTime">
122
         <tr v-if="form.dszTime">
123
           <td :colspan="2" class="fontbold">董事长(批准)</td>
123
           <td :colspan="2" class="fontbold">董事长(批准)</td>
124
           <td :colspan="4" class="conment-width">{{ form.dszComment }}</td>
124
           <td :colspan="4" class="conment-width">{{ form.dszComment }}</td>
125
-          <td :colspan="2" style="text-align:left;">签名:<span class="auditor">{{ form.dszUserName }}</span></td>
126
-          <td :colspan="2" style="text-align:left;">日期:{{ form.dszTime }}</td>
125
+          <td :colspan="2" style="text-align:left;min-width:120px;">签名:<span class="auditor">{{ getUserName(form.dszUserId) }}</span></td>
126
+          <td :colspan="2" style="text-align:left;width:120px;">日期:{{ form.dszTime }}</td>
127
         </tr>
127
         </tr>
128
       </table>
128
       </table>
129
     </div>
129
     </div>
186
   },
186
   },
187
   methods: {
187
   methods: {
188
     initTable() {
188
     initTable() {
189
-      console.log(this.settleList);
190
       this.deductionsList = []
189
       this.deductionsList = []
191
       this.deptSettleList = []
190
       this.deptSettleList = []
192
       for (let s of this.settleList) {
191
       for (let s of this.settleList) {
254
 }
253
 }
255
 
254
 
256
 .conment-width {
255
 .conment-width {
257
-  max-width: 200px;
256
+  // max-width: 200px;
258
 }
257
 }
259
 
258
 
260
 
259
 

+ 5
- 0
oa-ui/src/views/flowable/form/finance/depositForm.vue Voir le fichier

248
       default: true
248
       default: true
249
     }
249
     }
250
   },
250
   },
251
+  watch:{
252
+    'taskForm.formId'(){
253
+      this.initForm();
254
+    }
255
+  },
251
   name: "Deposit",
256
   name: "Deposit",
252
   data() {
257
   data() {
253
     return {
258
     return {

+ 3
- 3
oa-ui/src/views/flowable/form/inProgress/achiData.vue Voir le fichier

1
 <template>
1
 <template>
2
-  <div class="mt20" style="width:99%">
2
+  <div class="mt20" style="width:100%">
3
     <div class="nav-btn" v-if="taskName != ''">
3
     <div class="nav-btn" v-if="taskName != ''">
4
       <div>
4
       <div>
5
         <el-button class="mb20" type="primary" plain size="mini" icon="el-icon-plus" @click="addAchi">成果汇交</el-button>
5
         <el-button class="mb20" type="primary" plain size="mini" icon="el-icon-plus" @click="addAchi">成果汇交</el-button>
36
       <el-table-column label="质量检查时间" prop="qualityTime" show-overflow-tooltip width="120" />
36
       <el-table-column label="质量检查时间" prop="qualityTime" show-overflow-tooltip width="120" />
37
       <el-table-column label="生产部门检查时间" prop="produceTime" show-overflow-tooltip width="130" />
37
       <el-table-column label="生产部门检查时间" prop="produceTime" show-overflow-tooltip width="130" />
38
       <el-table-column label="归档时间" prop="archiveTime" show-overflow-tooltip width="120" />
38
       <el-table-column label="归档时间" prop="archiveTime" show-overflow-tooltip width="120" />
39
-      <el-table-column label="生产部门意见" prop="produceComment" show-overflow-tooltip width="120" />
39
+      <!-- <el-table-column label="生产部门意见" prop="produceComment" show-overflow-tooltip width="120" />
40
       <el-table-column label="质量检查意见" prop="qualityComment" show-overflow-tooltip width="120" />
40
       <el-table-column label="质量检查意见" prop="qualityComment" show-overflow-tooltip width="120" />
41
       <el-table-column label="技术质量与安全部审核意见" prop="deptComment" show-overflow-tooltip width="120" />
41
       <el-table-column label="技术质量与安全部审核意见" prop="deptComment" show-overflow-tooltip width="120" />
42
-      <el-table-column label="归档意见" prop="archiveComment" show-overflow-tooltip width="120" />
42
+      <el-table-column label="归档意见" prop="archiveComment" show-overflow-tooltip width="120" /> -->
43
       <el-table-column label="操作" fixed="right" header-align="center">
43
       <el-table-column label="操作" fixed="right" header-align="center">
44
         <template slot-scope="scope">
44
         <template slot-scope="scope">
45
           <el-button icon="el-icon-view" type="text" size="mini" @click="handleLook(scope.row)">查看明细</el-button>
45
           <el-button icon="el-icon-view" type="text" size="mini" @click="handleLook(scope.row)">查看明细</el-button>

+ 8
- 10
oa-ui/src/views/flowable/form/settleForm.vue Voir le fichier

1
 <!--
1
 <!--
2
  * @Author: ysh
2
  * @Author: ysh
3
  * @Date: 2024-04-30 09:03:14
3
  * @Date: 2024-04-30 09:03:14
4
- * @LastEditors: wrh
5
- * @LastEditTime: 2024-07-11 20:14:35
4
+ * @LastEditors: Please set LastEditors
5
+ * @LastEditTime: 2024-07-12 10:12:15
6
 -->
6
 -->
7
 <template>
7
 <template>
8
   <div class="app-container" v-loading="loading">
8
   <div class="app-container" v-loading="loading">
530
     }
530
     }
531
   },
531
   },
532
   watch: {
532
   watch: {
533
-    'taskForm.formId'() {
534
-
533
+    'chooseProject.projectId'(val) {
534
+      this.getBudgetSettle();
535
+    },
536
+    'taskForm.formId'(){
535
       this.initForm();
537
       this.initForm();
536
     }
538
     }
537
   },
539
   },
539
     return {
541
     return {
540
       baseUrl: process.env.VUE_APP_BASE_API,
542
       baseUrl: process.env.VUE_APP_BASE_API,
541
       printOpen: false,
543
       printOpen: false,
542
-      loading: true,
544
+      loading: false,
543
       drawer: false,
545
       drawer: false,
544
       prOpen: false,
546
       prOpen: false,
545
       flag: false,
547
       flag: false,
603
       isModify: false, //是否可以修改结算工作量
605
       isModify: false, //是否可以修改结算工作量
604
     };
606
     };
605
   },
607
   },
606
-  watch: {
607
-    'chooseProject.projectId'(val) {
608
-      this.getBudgetSettle();
609
-    }
610
-  },
611
   created() {
608
   created() {
612
     this.getProjectList(); //获取项目列表
609
     this.getProjectList(); //获取项目列表
613
     this.getContractDataList(); //获取合同编码和编号
610
     this.getContractDataList(); //获取合同编码和编号
636
   methods: {
633
   methods: {
637
     // 初始化表单
634
     // 初始化表单
638
     async initForm() {
635
     async initForm() {
636
+      this.loading = true
639
       const res = await listSettle({ settleId: this.taskForm.formId });
637
       const res = await listSettle({ settleId: this.taskForm.formId });
640
       if (res.total === 1) {
638
       if (res.total === 1) {
641
         this.form = res.rows[0];
639
         this.form = res.rows[0];

+ 1
- 0
oa-ui/src/views/oa/brand/brandProject.vue Voir le fichier

459
     async handleUpdate(row) {
459
     async handleUpdate(row) {
460
       this.reset();
460
       this.reset();
461
       this.isView = false;
461
       this.isView = false;
462
+      const projectId = row.projectId
462
       let brandFormData = await listBrand({ projectId })
463
       let brandFormData = await listBrand({ projectId })
463
       let brandId;
464
       let brandId;
464
       if (brandFormData.total == 1) {
465
       if (brandFormData.total == 1) {

+ 1
- 0
oa-ui/src/views/oa/budget/index.vue Voir le fichier

94
 import { listProject } from '@/api/oa/project/project';
94
 import { listProject } from '@/api/oa/project/project';
95
 import budgetInfo from '../../flowable/form/budget/budgetInfo.vue';
95
 import budgetInfo from '../../flowable/form/budget/budgetInfo.vue';
96
 import FormData from './formData.vue';
96
 import FormData from './formData.vue';
97
+import { checkPermi } from '@/utils/permission';
97
 export default {
98
 export default {
98
   name: "Budget",
99
   name: "Budget",
99
   components: { budgetInfo, FormData, },
100
   components: { budgetInfo, FormData, },

+ 1
- 1
oa-ui/src/views/oa/settle/index.vue Voir le fichier

60
           <span>{{ parseTime(scope.row.reportTime, '{y}-{m}-{d}') }}</span>
60
           <span>{{ parseTime(scope.row.reportTime, '{y}-{m}-{d}') }}</span>
61
         </template>
61
         </template>
62
       </el-table-column>
62
       </el-table-column>
63
-      <el-table-column label="工作量上报说明" align="center" prop="workloadReport" />
63
+      <!-- <el-table-column label="工作量上报说明" align="center" prop="workloadReport" /> -->
64
       <el-table-column label="结算说明" align="center" prop="settleComment" />
64
       <el-table-column label="结算说明" align="center" prop="settleComment" />
65
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
65
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
66
         <template slot-scope="scope">
66
         <template slot-scope="scope">

Loading…
Annuler
Enregistrer