Browse Source

Merge remote-tracking branch 'origin/20201109_pc_vue_new_branch' into 20201109_pc_vue_new_branch

mainqaq 3 years ago
parent
commit
29496b23b2

+ 6 - 7
src/xt_pages/data/components/consumables.vue View File

334
               total:"",
334
               total:"",
335
               register_number:"",
335
               register_number:"",
336
               is_user:"2",
336
               is_user:"2",
337
+              number:"",
337
             },
338
             },
338
             isVisibility: false,
339
             isVisibility: false,
339
           }
340
           }
568
               response.data.data.goodInfo.good_type_id;
569
               response.data.data.goodInfo.good_type_id;
569
 
570
 
570
 
571
 
571
-            this.goodInfo.goodInfoDialog.formValue.good_name =
572
-              response.data.data.goodInfo.good_name;
572
+            this.goodInfo.goodInfoDialog.formValue.good_name = response.data.data.goodInfo.good_name;
573
 
573
 
574
 
574
 
575
-            this.goodInfo.goodInfoDialog.formValue.pinyin =
576
-              response.data.data.goodInfo.pinyin;
575
+            this.goodInfo.goodInfoDialog.formValue.pinyin = response.data.data.goodInfo.pinyin;
577
 
576
 
578
-            this.goodInfo.goodInfoDialog.formValue.wubi =
579
-              response.data.data.goodInfo.wubi;
577
+            this.goodInfo.goodInfoDialog.formValue.wubi = response.data.data.goodInfo.wubi;
580
 
578
 
581
 
579
 
582
 
580
 
731
             this.goodInfo.goodInfoDialog.formValue.packing_price = response.data.data.goodInfo.packing_price
729
             this.goodInfo.goodInfoDialog.formValue.packing_price = response.data.data.goodInfo.packing_price
732
             this.goodInfo.goodInfoDialog.formValue.default_count_unit = response.data.data.goodInfo.default_count_unit
730
             this.goodInfo.goodInfoDialog.formValue.default_count_unit = response.data.data.goodInfo.default_count_unit
733
             this.goodInfo.goodInfoDialog.formValue.register_number = response.data.data.goodInfo.register_number
731
             this.goodInfo.goodInfoDialog.formValue.register_number = response.data.data.goodInfo.register_number
734
-
732
+            
733
+            this.goodInfo.goodInfoDialog.formValue.number = response.data.data.goodInfo.number
735
            
734
            
736
             this.goodInfo.goodInfoDialog.formValue.is_user = response.data.data.goodInfo.is_user.toString()
735
             this.goodInfo.goodInfoDialog.formValue.is_user = response.data.data.goodInfo.is_user.toString()
737
             
736
             

+ 6 - 0
src/xt_pages/stock/Dialog/goodInfoDailog.vue View File

211
               </el-select>
211
               </el-select>
212
              </el-form-item>
212
              </el-form-item>
213
 
213
 
214
+            <el-form-item label="批准文号:" >
215
+              <el-input v-model="form.number" style="width:180px"></el-input>
216
+            </el-form-item>
217
+
214
 
218
 
215
             <el-form-item label="备注 : " prop="name" style="width:100%;">
219
             <el-form-item label="备注 : " prop="name" style="width:100%;">
216
               <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="form.remark"></el-input>
220
               <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="form.remark"></el-input>
383
           total:"",
387
           total:"",
384
           register_number:"",
388
           register_number:"",
385
           is_user:"2",
389
           is_user:"2",
390
+          number:"",
386
         },
391
         },
387
 
392
 
388
         rules: {
393
         rules: {
610
         form["total"] = this.form.total
615
         form["total"] = this.form.total
611
         form["register_number"] = this.form.register_number
616
         form["register_number"] = this.form.register_number
612
         form["is_user"] = this.form.is_user
617
         form["is_user"] = this.form.is_user
618
+        form["number"] = this.form.number
613
 
619
 
614
         return form
620
         return form
615
       }, changeSelected: function(val) {
621
       }, changeSelected: function(val) {

+ 2 - 2
src/xt_pages/stock/stockQuery.vue View File

113
        </el-table-column>
113
        </el-table-column>
114
        <el-table-column label="出库数量" align="center" v-if="showOne">
114
        <el-table-column label="出库数量" align="center" v-if="showOne">
115
          <template slot-scope="scope">
115
          <template slot-scope="scope">
116
-          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id== 10245 || org_id == 9779 || org_id == 10106 || org_id == 9504 || org_id ==  10215 || org_id ==  10088 || org_id == 10191 || org_id == 9919 || org_id == 10265 || org_id == 10164 || org_id ==10290 ">
116
+          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id== 10245 || org_id == 9779 || org_id == 10106 || org_id == 9504 || org_id ==  10215 || org_id ==  10188 || org_id == 10191 || org_id == 9919 || org_id == 10265 || org_id == 10164 || org_id ==10290 ">
117
              <span>
117
              <span>
118
               {{getWareInfo(scope.row.xt_warehouse_info) - getOverFlushInfo(scope.row.xt_warehouse_info)}}
118
               {{getWareInfo(scope.row.xt_warehouse_info) - getOverFlushInfo(scope.row.xt_warehouse_info)}}
119
             </span>
119
             </span>
124
       
124
       
125
         <el-table-column label="剩余库存量" align="center" v-if="showThree">
125
         <el-table-column label="剩余库存量" align="center" v-if="showThree">
126
          <template slot-scope="scope">
126
          <template slot-scope="scope">
127
-          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9779 || org_id == 10106 || org_id == 9504 || org_id ==  10215 || org_id == 10088 || org_id == 10191 || org_id == 9919 || org_id == 10265 || org_id == 10164 || org_id == 10290">
127
+          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9779 || org_id == 10106 || org_id == 9504 || org_id ==  10215 || org_id == 10188 || org_id == 10191 || org_id == 9919 || org_id == 10265 || org_id == 10164 || org_id == 10290">
128
             {{getOverFlushInfo(scope.row.xt_warehouse_info)}}
128
             {{getOverFlushInfo(scope.row.xt_warehouse_info)}}
129
           </span>
129
           </span>
130
           <span v-else>{{getWareInfo(scope.row.xt_warehouse_info) - getAutoCount(scope.row.id) - getOutCount(scope.row.id) + getCancelCount(scope.row.id) }}</span>
130
           <span v-else>{{getWareInfo(scope.row.xt_warehouse_info) - getAutoCount(scope.row.id) - getOutCount(scope.row.id) + getCancelCount(scope.row.id) }}</span>

+ 1 - 1
src/xt_pages/supply/components/addGoodOrder.vue View File

645
             goodList[i].supply_count = "";
645
             goodList[i].supply_count = "";
646
             goodList[i].supply_total_price = "";
646
             goodList[i].supply_total_price = "";
647
             goodList[i].supply_manufacturer = goodList[i].manufacturer;
647
             goodList[i].supply_manufacturer = goodList[i].manufacturer;
648
-            goodList[i].supply_license_number = "";
648
+            goodList[i].supply_license_number = goodList[i].number;
649
             goodList[i].supply_remake = "";
649
             goodList[i].supply_remake = "";
650
             goodList[i].type = 2;
650
             goodList[i].type = 2;
651
             goodList[i].name = goodList[i].good_name;
651
             goodList[i].name = goodList[i].good_name;

+ 1 - 1
src/xt_pages/supply/components/addGoodReturn.vue View File

537
             goodList[i].supply_count = "";
537
             goodList[i].supply_count = "";
538
             goodList[i].supply_total_price = "";
538
             goodList[i].supply_total_price = "";
539
             goodList[i].supply_manufacturer = goodList[i].manufacturer;
539
             goodList[i].supply_manufacturer = goodList[i].manufacturer;
540
-            goodList[i].supply_license_number = "";
540
+            goodList[i].supply_license_number = goodList[i].number;
541
             goodList[i].supply_remake = "";
541
             goodList[i].supply_remake = "";
542
             goodList[i].type = 2;
542
             goodList[i].type = 2;
543
             goodList[i].name = goodList[i].good_name;
543
             goodList[i].name = goodList[i].good_name;

+ 2 - 2
src/xt_pages/supply/components/addPurchaseOrder.vue View File

507
         goodList[i].supply_count = ""
507
         goodList[i].supply_count = ""
508
         goodList[i].supply_total_price = ""
508
         goodList[i].supply_total_price = ""
509
         goodList[i].supply_manufacturer = goodList[i].manufacturer
509
         goodList[i].supply_manufacturer = goodList[i].manufacturer
510
-        goodList[i].supply_license_number = ""
510
+        goodList[i].supply_license_number = goodList[i].number
511
         goodList[i].supply_remake = ""
511
         goodList[i].supply_remake = ""
512
         goodList[i].type = 2
512
         goodList[i].type = 2
513
         goodList[i].name = goodList[i].good_name
513
         goodList[i].name = goodList[i].good_name
716
       var min_str = "";
716
       var min_str = "";
717
       if (arr.length > 0) {
717
       if (arr.length > 0) {
718
         for (let i = 0; i < arr.length; i++) {
718
         for (let i = 0; i < arr.length; i++) {
719
-          total += parseInt(arr[i].stock_max_number);
719
+          total += parseInt(arr[i].stock_max_number+arr[i].stock_min_number);
720
         }
720
         }
721
       }
721
       }
722
       if (total < min_number) {
722
       if (total < min_number) {

+ 12 - 1
src/xt_pages/supply/components/editGoodOrder.vue View File

18
             v-model="supplier_name"
18
             v-model="supplier_name"
19
             style="width: 140px; margin-right: 10px"
19
             style="width: 140px; margin-right: 10px"
20
             placeholder="请选择"
20
             placeholder="请选择"
21
+            :disabled="disabled"
21
           >
22
           >
22
             <el-option
23
             <el-option
23
               v-for="item in supplyList"
24
               v-for="item in supplyList"
39
             align="right"
40
             align="right"
40
             format="yyyy-MM-dd"
41
             format="yyyy-MM-dd"
41
             value-format="yyyy-MM-dd"
42
             value-format="yyyy-MM-dd"
43
+            :disabled="disabled"
42
           ></el-date-picker>
44
           ></el-date-picker>
43
           <!-- <span>交货日期:</span> -->
45
           <!-- <span>交货日期:</span> -->
44
           <!-- <el-date-picker
46
           <!-- <el-date-picker
213
                   placeholder="选择日期时间"
215
                   placeholder="选择日期时间"
214
                   format="yyyy-MM-dd"
216
                   format="yyyy-MM-dd"
215
                   value-format="yyyy-MM-dd"
217
                   value-format="yyyy-MM-dd"
218
+                  :disabled="disabled"
216
                 >
219
                 >
217
                 </el-date-picker>
220
                 </el-date-picker>
218
               </el-form-item>
221
               </el-form-item>
272
               <el-form-item
275
               <el-form-item
273
                 :prop="'tableList.' + scope.$index + '.supply_product_date'"
276
                 :prop="'tableList.' + scope.$index + '.supply_product_date'"
274
                 :rules="tableRules.supply_product_date"
277
                 :rules="tableRules.supply_product_date"
278
+                
275
               >
279
               >
276
                 <el-date-picker
280
                 <el-date-picker
277
                   prefix-icon="el-icon-date"
281
                   prefix-icon="el-icon-date"
281
                   placeholder="选择日期时间"
285
                   placeholder="选择日期时间"
282
                   format="yyyy-MM-dd"
286
                   format="yyyy-MM-dd"
283
                   value-format="yyyy-MM-dd"
287
                   value-format="yyyy-MM-dd"
288
+                  :disabled="disabled"
284
                 >
289
                 >
285
                 </el-date-picker>
290
                 </el-date-picker>
286
               </el-form-item>
291
               </el-form-item>
384
             :rows="2"
389
             :rows="2"
385
             placeholder="备注信息"
390
             placeholder="备注信息"
386
             v-model="return_remark"
391
             v-model="return_remark"
392
+           :disabled="disabled"
387
           >
393
           >
388
           </el-input>
394
           </el-input>
389
         </div>
395
         </div>
396
             v-model="rate_of_concession"
402
             v-model="rate_of_concession"
397
             @input="addressChange"
403
             @input="addressChange"
398
             placeholder="请输入优惠率"
404
             placeholder="请输入优惠率"
405
+            :disabled="disabled"
399
           ></el-input
406
           ></el-input
400
           >%</span
407
           >%</span
401
         >
408
         >
406
             v-model="discount_amount"
413
             v-model="discount_amount"
407
             @input="count_discount"
414
             @input="count_discount"
408
             placeholder="请输入优惠金额"
415
             placeholder="请输入优惠金额"
416
+            :disabled="disabled"
409
           ></el-input
417
           ></el-input
410
         ></span>
418
         ></span>
411
 
419
 
415
             v-model="payment"
423
             v-model="payment"
416
             @input="count_payment"
424
             @input="count_payment"
417
             placeholder="请输入本次付款"
425
             placeholder="请输入本次付款"
426
+            :disabled="disabled"
418
           ></el-input
427
           ></el-input
419
         ></span>
428
         ></span>
420
 
429
 
424
             v-model="arrearage"
433
             v-model="arrearage"
425
             @input="count_arrearage"
434
             @input="count_arrearage"
426
             placeholder="请输入本次欠款"
435
             placeholder="请输入本次欠款"
436
+            :disabled="disabled"
427
           ></el-input
437
           ></el-input
428
         ></span>
438
         ></span>
429
       </div>
439
       </div>
623
             goodList[i].supply_count = "";
633
             goodList[i].supply_count = "";
624
             goodList[i].supply_total_price = "";
634
             goodList[i].supply_total_price = "";
625
             goodList[i].supply_manufacturer = goodList[i].manufacturer;
635
             goodList[i].supply_manufacturer = goodList[i].manufacturer;
626
-            goodList[i].supply_license_number = "";
636
+            goodList[i].supply_license_number = goodList[i].number;
627
             goodList[i].supply_remake = "";
637
             goodList[i].supply_remake = "";
628
             goodList[i].type = 2;
638
             goodList[i].type = 2;
629
             goodList[i].name = goodList[i].good_name;
639
             goodList[i].name = goodList[i].good_name;
858
             this.showOne = false;
868
             this.showOne = false;
859
             this.showTwo = true;
869
             this.showTwo = true;
860
             this.showThree = true;
870
             this.showThree = true;
871
+            this.disabled = true
861
           }
872
           }
862
 
873
 
863
           this.id = out.id;
874
           this.id = out.id;

+ 1 - 1
src/xt_pages/supply/components/editGoodReturn.vue View File

542
             goodList[i].supply_count = "";
542
             goodList[i].supply_count = "";
543
             goodList[i].supply_total_price = "";
543
             goodList[i].supply_total_price = "";
544
             goodList[i].supply_manufacturer = goodList[i].manufacturer;
544
             goodList[i].supply_manufacturer = goodList[i].manufacturer;
545
-            goodList[i].supply_license_number = "";
545
+            goodList[i].supply_license_number = goodList[i].number;
546
             goodList[i].supply_remake = "";
546
             goodList[i].supply_remake = "";
547
             goodList[i].type = 2;
547
             goodList[i].type = 2;
548
             goodList[i].name = goodList[i].good_name;
548
             goodList[i].name = goodList[i].good_name;

+ 1 - 1
src/xt_pages/supply/components/editPurchaseOrder.vue View File

557
             goodList[i].supply_count = "";
557
             goodList[i].supply_count = "";
558
             goodList[i].supply_total_price = "";
558
             goodList[i].supply_total_price = "";
559
             goodList[i].supply_manufacturer = goodList[i].manufacturer;
559
             goodList[i].supply_manufacturer = goodList[i].manufacturer;
560
-            goodList[i].supply_license_number = "";
560
+            goodList[i].supply_license_number = goodList[i].number
561
             goodList[i].supply_remake = "";
561
             goodList[i].supply_remake = "";
562
             goodList[i].type = 2;
562
             goodList[i].type = 2;
563
             goodList[i].name = goodList[i].good_name;
563
             goodList[i].name = goodList[i].good_name;

+ 0 - 1
src/xt_pages/supply/purchaseOrderQuery.vue View File

258
       return uParseTime(time, '{y}-{m}-{d}')
258
       return uParseTime(time, '{y}-{m}-{d}')
259
      },
259
      },
260
      getlist(){
260
      getlist(){
261
-        console.log("hhhhhh",this.end_time)
262
         var params = {
261
         var params = {
263
           check_id:this.check_id,
262
           check_id:this.check_id,
264
           start_time:this.start_time,
263
           start_time:this.start_time,