see999 3 years ago
parent
commit
57d6304d0d

+ 37 - 2
src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue View File

@@ -64,14 +64,14 @@
64 64
             <div style="width:50px;">会计:</div><div style="width:100px;"></div>
65 65
             <div style="width:50px;">审核:</div><div style="width:100px;"></div>
66 66
             <div style="width:70px;">制单人:</div><div style="width:100px;"></div>
67
-            <div v-if="orgId == 10024" style="display:flex;margin-top:20px;float:right;">
67
+          </div>
68
+          <div v-if="orgId == 10024" style="display:flex;margin-top:20px;float:right;">
68 69
             <div style="width:50px;">领料人:</div><div style="width:100px;"></div>
69 70
             <div style="width:80px;">审批:</div><div style="width:100px;"></div>
70 71
             <div style="width:50px;">会计:</div><div style="width:100px;">徐立琼</div>
71 72
             <div style="width:50px;">审核:</div><div style="width:100px;">徐立琼</div>
72 73
             <div style="width:70px;">制单人:</div><div style="width:100px;">徐立琼</div>
73 74
           </div>
74
-          </div>
75 75
         </div>
76 76
 
77 77
       </div>
@@ -217,6 +217,41 @@
217 217
         }
218 218
         return name
219 219
       },
220
+      handleSpanTempArr(){
221
+        this.tempArr = []
222
+
223
+        for (let i = 0; i < this.warehousingOutInfo.warehousingOutData.length; i++) {
224
+          if (i === 0) {
225
+            this.tempArr.push(1)
226
+            this.pos = 0
227
+          } else {
228
+            // 判断当前元素与上一个元素是否相同
229
+            if (this.warehousingOutInfo.warehousingOutData[i].drug_id === this.warehousingOutInfo.warehousingOutData[i - 1].drug_id) {
230
+              this.tempArr[this.pos] += 1
231
+              this.tempArr.push(0)
232
+            } else {
233
+              this.tempArr.push(1)
234
+              this.pos = i
235
+            }
236
+          }
237
+        }
238
+
239
+        let sameRowArr = [], sIdx = 0
240
+        this.warehousingOutInfo.warehousingOutData.forEach((item, index) => {
241
+          item.index = index
242
+          if (index === 0) {
243
+            sameRowArr.push([index])
244
+          } else {
245
+            if (item.drug_id === this.warehousingOutInfo.warehousingOutData[index - 1].drug_id) {
246
+              sameRowArr[sIdx].push(index)
247
+            } else {
248
+              sIdx = sIdx + 1
249
+              sameRowArr.push([index])
250
+            }
251
+          }
252
+        })
253
+        this.sameRowArr = sameRowArr
254
+      },
220 255
     },
221 256
     created() {
222 257
       const order_id = this.$route.query.id

+ 16 - 8
src/xt_pages/stock/stockOutOrderDetailPrint.vue View File

@@ -46,13 +46,20 @@
46 46
                             </tbody>
47 47
                         </table>
48 48
 
49
-                        <div style="display:flex;margin-top:20px;float:right;">
50
-                            <div style="width:50px;">审批:</div><div style="width:100px;"></div>
51
-                            <div style="width:80px;">药材主任:</div><div style="width:100px;"></div>
52
-                            <div style="width:50px;">会计:</div><div style="width:100px;"></div>
53
-                            <div style="width:50px;">审核:</div><div style="width:100px;"></div>
54
-                            <div style="width:70px;">制单人:</div><div style="width:100px;"></div>
55
-                       </div>
49
+                        <div v-if="orgId != 10024" style="display:flex;margin-top:20px;float:right;">
50
+                          <div style="width:50px;">审批:</div><div style="width:100px;"></div>
51
+                          <div style="width:80px;">药材主任:</div><div style="width:100px;"></div>
52
+                          <div style="width:50px;">会计:</div><div style="width:100px;"></div>
53
+                          <div style="width:50px;">审核:</div><div style="width:100px;"></div>
54
+                          <div style="width:70px;">制单人:</div><div style="width:100px;"></div>
55
+                        </div>
56
+                        <div v-if="orgId == 10024" style="display:flex;margin-top:20px;float:right;">
57
+                          <div style="width:50px;">领料人:</div><div style="width:100px;"></div>
58
+                          <div style="width:80px;">审批:</div><div style="width:100px;"></div>
59
+                          <div style="width:50px;">会计:</div><div style="width:100px;">徐立琼</div>
60
+                          <div style="width:50px;">审核:</div><div style="width:100px;">徐立琼</div>
61
+                          <div style="width:70px;">制单人:</div><div style="width:100px;">徐立琼</div>
62
+                        </div>
56 63
                     </div>
57 64
                 </div>
58 65
             </div>
@@ -100,6 +107,7 @@ export default {
100 107
             is_charge:"",
101 108
             list:[],
102 109
             wareoutList:[],
110
+            orgId:''
103 111
         }
104 112
     },
105 113
     methods:{
@@ -259,7 +267,7 @@ export default {
259 267
       
260 268
     },
261 269
     created(){
262
-
270
+      this.orgId = this.$store.getters.xt_user.org.id;
263 271
       const order_id = this.$route.query.id;
264 272
       const warehouse_out_time = this.$route.query.warehouse_out_time
265 273
       this.GetConfigInfo()