Kaynağa Gözat

修改其他结算异步问题、打印样式

余思翰 3 ay önce
ebeveyn
işleme
1438ab48ad

+ 32
- 16
oa-ui/src/views/flowable/form/components/print/settlePrint.vue Dosyayı Görüntüle

@@ -3,19 +3,23 @@
3 3
     <div id="printArea">
4 4
       <h2 class="text-center title">生产项目委托管理结算清单</h2>
5 5
       <table border="1">
6
-        <tr>
6
+        <tr v-if="chooseProject">
7 7
           <td :colspan="2" class="fontbold">项目名称</td>
8 8
           <td :colspan="4">{{ chooseProject.projectName }}</td>
9 9
           <td :colspan="2" class="fontbold">项目编号</td>
10 10
           <td :colspan="2">{{ chooseProject.projectNumber }}</td>
11 11
         </tr>
12
-        <tr>
12
+        <tr v-if="chooseProject">
13 13
           <td :colspan="2" class="fontbold">承担部门</td>
14 14
           <!-- <td :colspan="4">{{ undertakingDept.join(',') }}</td> -->
15 15
           <td :colspan="4">{{ chooseProject.undertakingDeptName }}</td>
16 16
           <td :colspan="2" class="fontbold">项目负责人</td>
17 17
           <td :colspan="2">{{ chooseProject.projectLeaderUser ? chooseProject.projectLeaderUser.nickName : "" }}</td>
18 18
         </tr>
19
+        <tr v-if="!chooseProject">
20
+          <td :colspan="2" class="fontbold">其他项目名称</td>
21
+          <td :colspan="8">{{ form.xmName }}</td>
22
+        </tr>
19 23
         <tr>
20 24
           <td :colspan="10" class="header bg">测绘项目完成工作量及费用计算</td>
21 25
         </tr>
@@ -92,43 +96,50 @@
92 96
         <tr>
93 97
           <td :colspan="2" class="fontbold">综合事务部(设备领用情况)</td>
94 98
           <td :colspan="4" class="conment-width">{{ form.zhComment }}</td>
95
-          <td :colspan="2" style="text-align:left;min-width:120px;">签名:<span class="auditor">{{ getUserName(form.zhUserId) }}</span></td>
99
+          <td :colspan="2" style="text-align:left;min-width:120px;">签名:<span class="auditor">{{
100
+            getUserName(form.zhUserId) }}</span></td>
96 101
           <td :colspan="2" style="text-align:left;width:120px;">日期:{{ form.zhTime }}</td>
97 102
         </tr>
98 103
         <tr>
99 104
           <td :colspan="2" class="fontbold">综合事务部(车辆排班情况)</td>
100 105
           <td :colspan="4" class="conment-width">{{ form.jsbComment }}</td>
101
-          <td :colspan="2" style="text-align:left;min-width:120px;">签名:<span class="auditor">{{ getUserName(form.jsbUserId) }}</span></td>
106
+          <td :colspan="2" style="text-align:left;min-width:120px;">签名:<span class="auditor">{{
107
+            getUserName(form.jsbUserId) }}</span></td>
102 108
           <td :colspan="2" style="text-align:left;width:120px;">日期:{{ form.jsbTime }}</td>
103 109
         </tr>
104 110
         <tr>
105 111
           <td :colspan="2" class="fontbold">技术质量与安全部(质量及工作量)</td>
106 112
           <td :colspan="4" class="conment-width">{{ form.jsComment }}</td>
107
-          <td :colspan="2" style="text-align:left;min-width:120px;">签名:<span class="auditor">{{ getUserName(form.jsUserId) }}</span></td>
113
+          <td :colspan="2" style="text-align:left;min-width:120px;">签名:<span class="auditor">{{
114
+            getUserName(form.jsUserId) }}</span></td>
108 115
           <td :colspan="2" style="text-align:left;width:120px;">日期:{{ form.jsTime }}</td>
109 116
         </tr>
110 117
         <tr>
111 118
           <td :colspan="2" class="fontbold">经营发展部(校核)</td>
112 119
           <td :colspan="4" class="conment-width">{{ form.jyComment }}</td>
113
-          <td :colspan="2" style="text-align:left;min-width:120px;">签名:<span class="auditor">{{ getUserName(form.jyUserId) }}</span></td>
120
+          <td :colspan="2" style="text-align:left;min-width:120px;">签名:<span class="auditor">{{
121
+            getUserName(form.jyUserId) }}</span></td>
114 122
           <td :colspan="2" style="text-align:left;width:120px;">日期:{{ form.jyTime }}</td>
115 123
         </tr>
116 124
         <tr>
117 125
           <td :colspan="2" class="fontbold">分管领导(审核)</td>
118 126
           <td :colspan="4" class="conment-width">{{ form.managerComment }}</td>
119
-          <td :colspan="2" style="text-align:left;min-width:120px;">签名:<span class="auditor">{{ getUserName(form.managerUserId) }}</span></td>
127
+          <td :colspan="2" style="text-align:left;min-width:120px;">签名:<span class="auditor">{{
128
+            getUserName(form.managerUserId) }}</span></td>
120 129
           <td :colspan="2" style="text-align:left;width:120px;">日期:{{ form.managerTime }}</td>
121 130
         </tr>
122 131
         <tr>
123 132
           <td :colspan="2" class="fontbold">总经理(审批)</td>
124 133
           <td :colspan="4" class="conment-width">{{ form.gmComment }}</td>
125
-          <td :colspan="2" style="text-align:left;min-width:120px;">签名:<span class="auditor">{{ getUserName(form.gmUserId) }}</span></td>
134
+          <td :colspan="2" style="text-align:left;min-width:120px;">签名:<span class="auditor">{{
135
+            getUserName(form.gmUserId) }}</span></td>
126 136
           <td :colspan="2" style="text-align:left;width:120px;">日期:{{ form.gmTime }}</td>
127 137
         </tr>
128 138
         <tr v-if="form.dszTime">
129 139
           <td :colspan="2" class="fontbold">董事长(批准)</td>
130 140
           <td :colspan="4" class="conment-width">{{ form.dszComment }}</td>
131
-          <td :colspan="2" style="text-align:left;min-width:120px;">签名:<span class="auditor">{{ getUserName(form.dszUserId) }}</span></td>
141
+          <td :colspan="2" style="text-align:left;min-width:120px;">签名:<span class="auditor">{{
142
+            getUserName(form.dszUserId) }}</span></td>
132 143
           <td :colspan="2" style="text-align:left;width:120px;">日期:{{ form.dszTime }}</td>
133 144
         </tr>
134 145
       </table>
@@ -156,8 +167,8 @@ export default {
156 167
       type: Array
157 168
     }
158 169
   },
159
-  watch:{
160
-    settleList(val){
170
+  watch: {
171
+    settleList(val) {
161 172
       this.initTable();
162 173
     }
163 174
   },
@@ -166,7 +177,7 @@ export default {
166 177
       settleSum: {},
167 178
       deptSettleList: [],
168 179
       deductionsList: [],
169
-      actualSumSettle: '',
180
+      actualSumSettle: 0,
170 181
       undertakingDept: [],
171 182
       print: {
172 183
         id: 'printArea',
@@ -203,7 +214,11 @@ export default {
203 214
           this.settleSum = s
204 215
         }
205 216
       }
206
-      this.print.popTitle = this.chooseProject.projectName + '结算表单'
217
+      if(this.chooseProject){
218
+        this.print.popTitle = this.chooseProject.projectName + '结算表单'
219
+      }else{
220
+        this.print.popTitle = this.form.xmName + '结算表单'
221
+      }
207 222
       this.calculateActualSumSettle()
208 223
     },
209 224
     calculateActualSumSettle() {
@@ -265,13 +280,14 @@ table {
265 280
 
266 281
 @page {
267 282
   size: auto;
268
-  /* 去除页脚 */ 
269
-  margin-bottom: 0; 
283
+  /* 去除页脚 */
284
+  margin-bottom: 0;
270 285
   // 横向A4
271 286
   // size:A4 landscape;
272 287
 }
288
+
273 289
 @media print {
274
-  #print table{
290
+  #print table {
275 291
     width: 100%;
276 292
   }
277 293
 }

+ 8
- 8
oa-ui/src/views/flowable/form/settleOther.vue Dosyayı Görüntüle

@@ -653,7 +653,7 @@ export default {
653 653
     },
654 654
     calculateSettle(work) {
655 655
       let sum = work.workload * work.coefficient * work.price;
656
-      if (sum < 600) {
656
+      if (sum < 600 && sum != 0 && work.priceId != 147) {
657 657
         this.$message.warning('不足600,按600算')
658 658
         work.remark = '不足600,按600算'
659 659
         sum = 600
@@ -733,25 +733,25 @@ export default {
733 733
         }
734 734
       });
735 735
     },
736
-    addSettleWorkFn(settleId) {
736
+    async addSettleWorkFn(settleId) {
737 737
       for (let work of this.settleWorkList) {
738 738
         work.settleId = settleId;
739
-        addSettleWork(work);
739
+        await addSettleWork(work);
740 740
       }
741 741
     },
742
-    addSettleSummaryFn(settleId) {
742
+    async addSettleSummaryFn(settleId) {
743 743
       this.settleSumTr.settleId = settleId;
744
-      addSettleSummary(this.settleSumTr);
744
+      await addSettleSummary(this.settleSumTr);
745 745
       for (let item of this.settleSumList) {
746 746
         item.settleId = settleId;
747
-        addSettleSummary(item);
747
+        await addSettleSummary(item);
748 748
       }
749 749
       for (let item of this.deptSettleList) {
750 750
         item.settleId = settleId;
751
-        addSettleSummary(item);
751
+        await addSettleSummary(item);
752 752
       }
753 753
       let obj = { settleId: settleId, content: '实际结算总金额', amount: (this.actualSumSettle).toFixed(2), tableNumber: 1 }
754
-      addSettleSummary(obj)
754
+      await addSettleSummary(obj)
755 755
     },
756 756
 
757 757
     // 更新数据

Loading…
İptal
Kaydet