Преглед на файлове

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

XMLWAN преди 3 години
родител
ревизия
683705a157
променени са 2 файла, в които са добавени 53 реда и са изтрити 10 реда
  1. 37 2
      src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue
  2. 16 8
      src/xt_pages/stock/stockOutOrderDetailPrint.vue

+ 37 - 2
src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue Целия файл

64
             <div style="width:50px;">会计:</div><div style="width:100px;"></div>
64
             <div style="width:50px;">会计:</div><div style="width:100px;"></div>
65
             <div style="width:50px;">审核:</div><div style="width:100px;"></div>
65
             <div style="width:50px;">审核:</div><div style="width:100px;"></div>
66
             <div style="width:70px;">制单人:</div><div style="width:100px;"></div>
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
             <div style="width:50px;">领料人:</div><div style="width:100px;"></div>
69
             <div style="width:50px;">领料人:</div><div style="width:100px;"></div>
69
             <div style="width:80px;">审批:</div><div style="width:100px;"></div>
70
             <div style="width:80px;">审批:</div><div style="width:100px;"></div>
70
             <div style="width:50px;">会计:</div><div style="width:100px;">徐立琼</div>
71
             <div style="width:50px;">会计:</div><div style="width:100px;">徐立琼</div>
71
             <div style="width:50px;">审核:</div><div style="width:100px;">徐立琼</div>
72
             <div style="width:50px;">审核:</div><div style="width:100px;">徐立琼</div>
72
             <div style="width:70px;">制单人:</div><div style="width:100px;">徐立琼</div>
73
             <div style="width:70px;">制单人:</div><div style="width:100px;">徐立琼</div>
73
           </div>
74
           </div>
74
-          </div>
75
         </div>
75
         </div>
76
 
76
 
77
       </div>
77
       </div>
217
         }
217
         }
218
         return name
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
     created() {
256
     created() {
222
       const order_id = this.$route.query.id
257
       const order_id = this.$route.query.id

+ 16 - 8
src/xt_pages/stock/stockOutOrderDetailPrint.vue Целия файл

46
                             </tbody>
46
                             </tbody>
47
                         </table>
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
                     </div>
63
                     </div>
57
                 </div>
64
                 </div>
58
             </div>
65
             </div>
100
             is_charge:"",
107
             is_charge:"",
101
             list:[],
108
             list:[],
102
             wareoutList:[],
109
             wareoutList:[],
110
+            orgId:''
103
         }
111
         }
104
     },
112
     },
105
     methods:{
113
     methods:{
259
       
267
       
260
     },
268
     },
261
     created(){
269
     created(){
262
-
270
+      this.orgId = this.$store.getters.xt_user.org.id;
263
       const order_id = this.$route.query.id;
271
       const order_id = this.$route.query.id;
264
       const warehouse_out_time = this.$route.query.warehouse_out_time
272
       const warehouse_out_time = this.$route.query.warehouse_out_time
265
       this.GetConfigInfo()
273
       this.GetConfigInfo()