Преглед изворни кода

11月14日 库存扣减更新

XMLWAN пре 3 година
родитељ
комит
b18f2a2f4a

+ 6 - 0
src/xt_pages/role/admin.vue Прегледај датотеку

44
           min-width="160"
44
           min-width="160"
45
           align="center"
45
           align="center"
46
         ></el-table-column>
46
         ></el-table-column>
47
+        <el-table-column
48
+          label="医保医师编码"
49
+          prop="doctor_number"
50
+          min-width="160"
51
+          align="center"
52
+        ></el-table-column>
47
         <el-table-column
53
         <el-table-column
48
           label="最后登录IP"
54
           label="最后登录IP"
49
           prop="ip"
55
           prop="ip"

+ 8 - 9
src/xt_pages/role/components/AdminInfoForm.vue Прегледај датотеку

68
       </el-form-item>
68
       </el-form-item>
69
     </el-col>
69
     </el-col>
70
    </el-row>
70
    </el-row>
71
+   <el-row :span="24">
72
+      <el-col :span="8">
73
+       <el-form-item label="医保医师编码:">
74
+        <el-input v-model="form.doctor_number"></el-input>
75
+       </el-form-item>
76
+    </el-col>
77
+   </el-row>
71
   
78
   
72
   <div v-show="show">
79
   <div v-show="show">
73
    <el-row :span="24">
80
    <el-row :span="24">
343
 
350
 
344
 
351
 
345
   <el-row :gutter="24">
352
   <el-row :gutter="24">
346
-    <el-col :span="8">
347
-       <el-form-item label="医保医师编码:">
348
-         
349
-        <el-input v-model="form.doctor_number"></el-input>
350
-       </el-form-item>
351
-    </el-col>
353
+   
352
      <el-col :span="8">
354
      <el-col :span="8">
353
        <el-form-item label="门诊大病类别:" label-width="130px">
355
        <el-form-item label="门诊大病类别:" label-width="130px">
354
             <el-select v-model="form.outpatient_illnessCategory" placeholder="门诊大病类别">
356
             <el-select v-model="form.outpatient_illnessCategory" placeholder="门诊大病类别">
1063
         })
1065
         })
1064
       },
1066
       },
1065
       changeRole(arr){
1067
       changeRole(arr){
1066
-        console.log("arr",arr)
1067
-        console.log("roles",this.roles)
1068
         var varName = []
1068
         var varName = []
1069
         for(let i=0;i<this.roles.length;i++){
1069
         for(let i=0;i<this.roles.length;i++){
1070
           for(let j=0;j<arr.length;j++){
1070
           for(let j=0;j<arr.length;j++){
1073
              }
1073
              }
1074
           }
1074
           }
1075
         }
1075
         }
1076
-        console.log("33333",varName)
1077
         this.form.role_type = 1
1076
         this.form.role_type = 1
1078
         var ids = varName.join(";")
1077
         var ids = varName.join(";")
1079
         console.log("valee22222",ids)
1078
         console.log("valee22222",ids)

+ 6 - 0
src/xt_pages/stock/cancelStockOrder.vue Прегледај датотеку

186
             </template>
186
             </template>
187
           </el-table-column>
187
           </el-table-column>
188
 
188
 
189
+           <el-table-column label="国家编码" align="center">
190
+            <template slot-scope="scope">
191
+              {{scope.row.GoodInfo.social_security_directory_code}}
192
+            </template>
193
+          </el-table-column>
194
+
189
           <el-table-column label="退库数量" align="center">
195
           <el-table-column label="退库数量" align="center">
190
             <template slot-scope="scope">
196
             <template slot-scope="scope">
191
               {{ scope.row.count}}{{scope.row.GoodInfo.packing_unit}}
197
               {{ scope.row.count}}{{scope.row.GoodInfo.packing_unit}}

+ 5 - 1
src/xt_pages/stock/drugs/cancelDrugStockOrder.vue Прегледај датотеку

182
                 {{ scope.row.BaseDrugLib.dose}}{{scope.row.BaseDrugLib.dose_unit}} * {{scope.row.BaseDrugLib.min_number}}{{scope.row.BaseDrugLib.min_unit}} /{{scope.row.BaseDrugLib.max_unit}}
182
                 {{ scope.row.BaseDrugLib.dose}}{{scope.row.BaseDrugLib.dose_unit}} * {{scope.row.BaseDrugLib.min_number}}{{scope.row.BaseDrugLib.min_unit}} /{{scope.row.BaseDrugLib.max_unit}}
183
               </template>
183
               </template>
184
             </el-table-column>
184
             </el-table-column>
185
-          
185
+            <el-table-column label="国家编码" align="center">
186
+              <template slot-scope="scope">
187
+                {{ scope.row.BaseDrugLib.medical_insurance_number}}
188
+              </template>
189
+            </el-table-column>
186
             <el-table-column label="退库数量" align="center">
190
             <el-table-column label="退库数量" align="center">
187
               <template slot-scope="scope">
191
               <template slot-scope="scope">
188
                 {{ scope.row.count}}
192
                 {{ scope.row.count}}

+ 4 - 1
src/xt_pages/stock/drugs/drugQueryPrint.vue Прегледај датотеку

18
               <td style="line-height: 50px" width="100">药品类型</td>
18
               <td style="line-height: 50px" width="100">药品类型</td>
19
               <td style="line-height: 50px" width="150">药品名称</td>
19
               <td style="line-height: 50px" width="150">药品名称</td>
20
               <td style="line-height: 50px" width="150">规格型号&单位</td>
20
               <td style="line-height: 50px" width="150">规格型号&单位</td>
21
+              <td style="line-height: 50px" width="150">国家编码</td>
21
               <td style="line-height: 50px" width="100">进货单价</td>
22
               <td style="line-height: 50px" width="100">进货单价</td>
22
               <td  style="line-height: 50px" width="200">厂家</td>
23
               <td  style="line-height: 50px" width="200">厂家</td>
23
               <td style="line-height: 50px" width="80">入库数量</td>
24
               <td style="line-height: 50px" width="80">入库数量</td>
38
               <td style="line-height: 50px">
39
               <td style="line-height: 50px">
39
                    <span> {{item.dose + item.dose_unit +"*"+item.min_number+item.min_unit+"/"+item.max_unit}}</span>
40
                    <span> {{item.dose + item.dose_unit +"*"+item.min_number+item.min_unit+"/"+item.max_unit}}</span>
40
               </td>
41
               </td>
41
-             
42
+             <td style="line-height: 50px">
43
+                  <span>{{item.medical_insurance_number }}</span>
44
+              </td>
42
               <td style="line-height: 50px">
45
               <td style="line-height: 50px">
43
                   <span>{{item.last_price }}</span>
46
                   <span>{{item.last_price }}</span>
44
               </td>
47
               </td>

+ 5 - 0
src/xt_pages/stock/drugs/drugStockInOrder.vue Прегледај датотеку

189
           <template slot-scope="scope">
189
           <template slot-scope="scope">
190
             {{scope.row.drug.dose}}&nbsp;{{scope.row.drug.dose_unit}}*{{scope.row.drug.min_number}}{{scope.row.drug.min_unit}}/{{scope.row.drug.max_unit}}
190
             {{scope.row.drug.dose}}&nbsp;{{scope.row.drug.dose_unit}}*{{scope.row.drug.min_number}}{{scope.row.drug.min_unit}}/{{scope.row.drug.max_unit}}
191
           </template>
191
           </template>
192
+        </el-table-column>
193
+          <el-table-column label="国家编码" align="center">
194
+          <template slot-scope="scope">
195
+            {{scope.row.drug.medical_insurance_number}}
196
+          </template>
192
         </el-table-column>
197
         </el-table-column>
193
         <el-table-column label="批号" align="center">
198
         <el-table-column label="批号" align="center">
194
           <template slot-scope="scope">
199
           <template slot-scope="scope">

+ 5 - 1
src/xt_pages/stock/drugs/drugStockOutOrder.vue Прегледај датотеку

211
               {{scope.row.dose}}&nbsp;{{scope.row.dose_unit}}*{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
211
               {{scope.row.dose}}&nbsp;{{scope.row.dose_unit}}*{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
212
             </template>
212
             </template>
213
           </el-table-column>
213
           </el-table-column>
214
-         
214
+          <el-table-column label="国家编码" align="center">
215
+            <template slot-scope="scope">
216
+              {{scope.row.medical_insurance_number}}
217
+            </template>
218
+          </el-table-column>
215
           <el-table-column label="出库数量" align="center">
219
           <el-table-column label="出库数量" align="center">
216
             <template slot-scope="scope">
220
             <template slot-scope="scope">
217
               <!-- <span v-if="scope.row.is_sys ==  0">{{getTotalCount(scope.row.drug_id,scope.row.min_number,scope.row.max_unit,scope.row.min_unit)}}</span> -->
221
               <!-- <span v-if="scope.row.is_sys ==  0">{{getTotalCount(scope.row.drug_id,scope.row.min_number,scope.row.max_unit,scope.row.min_unit)}}</span> -->

+ 7 - 2
src/xt_pages/stock/drugs/query.vue Прегледај датотеку

94
            <template slot-scope="scope">
94
            <template slot-scope="scope">
95
              {{scope.row.dose + scope.row.dose_unit +"*"+scope.row.min_number+scope.row.min_unit+"/"+scope.row.max_unit}}
95
              {{scope.row.dose + scope.row.dose_unit +"*"+scope.row.min_number+scope.row.min_unit+"/"+scope.row.max_unit}}
96
            </template>
96
            </template>
97
+        </el-table-column>
98
+        <el-table-column prop="drug_name" label="国家编码" align="center">
99
+           <template slot-scope="scope">
100
+             {{scope.row.medical_insurance_number}}
101
+           </template>
97
         </el-table-column>
102
         </el-table-column>
98
          <el-table-column prop="drug_name" label="进货单价" align="center">
103
          <el-table-column prop="drug_name" label="进货单价" align="center">
99
            <template slot-scope="scope">
104
            <template slot-scope="scope">
482
           }   
487
           }   
483
          }
488
          }
484
          import('@/vendor/Export2Excel').then(excel => {
489
          import('@/vendor/Export2Excel').then(excel => {
485
-         const tHeader = ['序号', '药品类型', '药品名称','规格型号&单位','进货单价','厂家','入库数量','出库数量','剩余库存量']
486
-         const filterVal = ['index', 'drug_type_name', 'drug_name','unit','last_price','manufacturer_name','inCount','outCount','overplusCount']
490
+         const tHeader = ['序号', '药品类型', '药品名称','规格型号&单位','国家编码','进货单价','厂家','入库数量','出库数量','剩余库存量']
491
+         const filterVal = ['index', 'drug_type_name', 'drug_name','unit','medical_insurance_number','last_price','manufacturer_name','inCount','outCount','overplusCount']
487
 
492
 
488
 
493
 
489
          const data = this.formatJson(filterVal, this.tableList)
494
          const data = this.formatJson(filterVal, this.tableList)

+ 1 - 1
src/xt_pages/stock/inventory.vue Прегледај датотеку

100
           v-model="form.drug_name"
100
           v-model="form.drug_name"
101
           :fetch-suggestions="querySearchAsync"
101
           :fetch-suggestions="querySearchAsync"
102
           :trigger-on-focus="true"
102
           :trigger-on-focus="true"
103
-          placeholder="请输入药品名称"
103
+          placeholder="请输入耗材名称"
104
           @select="handleSelect"
104
           @select="handleSelect"
105
           style="width:300px;"
105
           style="width:300px;"
106
           v-show="showTableOne"
106
           v-show="showTableOne"

+ 10 - 0
src/xt_pages/stock/stockInOrder.vue Прегледај датотеку

193
             {{ scope.row.GoodInfo.specification_name}} / {{scope.row.GoodInfo.packing_unit}}
193
             {{ scope.row.GoodInfo.specification_name}} / {{scope.row.GoodInfo.packing_unit}}
194
           </template>
194
           </template>
195
         </el-table-column>
195
         </el-table-column>
196
+        <el-table-column label="国家编码" align="center">
197
+          <template slot-scope="scope">
198
+            {{ scope.row.GoodInfo.social_security_directory_code}}
199
+          </template>
200
+        </el-table-column>
196
         <el-table-column label="批号" align="center">
201
         <el-table-column label="批号" align="center">
197
           <template slot-scope="scope">
202
           <template slot-scope="scope">
198
             {{ scope.row.number}}
203
             {{ scope.row.number}}
202
           <template slot-scope="scope">
207
           <template slot-scope="scope">
203
             {{ scope.row.warehousing_count}}{{scope.row.GoodInfo.packing_unit}}
208
             {{ scope.row.warehousing_count}}{{scope.row.GoodInfo.packing_unit}}
204
           </template>
209
           </template>
210
+        </el-table-column>
211
+         <el-table-column label="零售价" align="center">
212
+          <template slot-scope="scope">
213
+            {{ scope.row.packing_price}}
214
+          </template>
205
         </el-table-column>
215
         </el-table-column>
206
         <el-table-column label="进货价" align="center">
216
         <el-table-column label="进货价" align="center">
207
           <template slot-scope="scope">
217
           <template slot-scope="scope">

+ 28 - 0
src/xt_pages/stock/stockInOrderAdd.vue Прегледај датотеку

107
             
107
             
108
             </template>
108
             </template>
109
           </el-table-column>
109
           </el-table-column>
110
+        
111
+          <el-table-column align="center" width="120">
112
+            <template slot="header" slot-scope="scope">
113
+              <span>零售价<span style="color: red">*</span></span>
114
+            </template>
115
+            <template slot-scope="scope">
116
+            
117
+              <el-form-item :prop="'recordData.' + scope.$index + '.packing_price'" :rules='tableRules.packing_price'
118
+                            style="padding-top: 20px">
119
+                <el-input placeholder="请输入单价" type="number" v-model="scope.row.packing_price"></el-input>
120
+              </el-form-item>
110
 
121
 
122
+
123
+            </template>
124
+          </el-table-column>
111
           <el-table-column align="center" width="120">
125
           <el-table-column align="center" width="120">
112
             <template slot="header" slot-scope="scope">
126
             <template slot="header" slot-scope="scope">
113
               <span>进货单价<span style="color: red">*</span></span>
127
               <span>进货单价<span style="color: red">*</span></span>
285
           price: [
299
           price: [
286
             { required: true, message: '单价不能为空', trigger: 'blur' }
300
             { required: true, message: '单价不能为空', trigger: 'blur' }
287
           ],
301
           ],
302
+          packing_price: [
303
+            { required: true, message: '零售价不能为空', trigger: 'blur' }
304
+          ],
288
           warehousing_count: [
305
           warehousing_count: [
289
             { required: true, message: '数量不能为空', trigge: 'blur' }
306
             { required: true, message: '数量不能为空', trigge: 'blur' }
290
           ],
307
           ],
511
         tempObj['specification_name'] = ''
528
         tempObj['specification_name'] = ''
512
         tempObj['name'] = ''
529
         tempObj['name'] = ''
513
         tempObj['license_number'] = ""
530
         tempObj['license_number'] = ""
531
+        tempObj["packing_price"] = ""
514
         this.recordInfo.recordData.push(tempObj)
532
         this.recordInfo.recordData.push(tempObj)
515
       }, handleDelete: function(index, row) {
533
       }, handleDelete: function(index, row) {
516
         if (this.recordInfo.recordData.length <= 1) {
534
         if (this.recordInfo.recordData.length <= 1) {
652
                 return
670
                 return
653
               }
671
               }
654
               array[i].price = array[i].price.toString()
672
               array[i].price = array[i].price.toString()
673
+              array[i].packing_price = array[i].packing_price.toString()
655
             }
674
             }
656
 
675
 
657
             if(this.recordInfo.recordData.length <= 0){
676
             if(this.recordInfo.recordData.length <= 0){
755
         this.currentIndex = val
774
         this.currentIndex = val
756
       },
775
       },
757
       handleSelect(val){
776
       handleSelect(val){
777
+         console.log("val3232232323",val)
758
          for(let i=0;i<this.recordInfo.recordData.length;i++){
778
          for(let i=0;i<this.recordInfo.recordData.length;i++){
759
            if(this.currentIndex == i){
779
            if(this.currentIndex == i){
760
               this.recordInfo.recordData[i].good_type_id = val.id
780
               this.recordInfo.recordData[i].good_type_id = val.id
764
               this.recordInfo.recordData[i].number =  val.number
784
               this.recordInfo.recordData[i].number =  val.number
765
               this.recordInfo.recordData[i].manufacturer = val.manufacturer
785
               this.recordInfo.recordData[i].manufacturer = val.manufacturer
766
               this.recordInfo.recordData[i].remark = val.remark
786
               this.recordInfo.recordData[i].remark = val.remark
787
+           
767
               if(val.buy_price == 0){
788
               if(val.buy_price == 0){
768
                this.recordInfo.recordData[i].price = ""
789
                this.recordInfo.recordData[i].price = ""
769
               }else{
790
               }else{
770
                 this.recordInfo.recordData[i].price = val.buy_price
791
                 this.recordInfo.recordData[i].price = val.buy_price
771
               }
792
               }
793
+
794
+              if(val.packing_price == 0){
795
+               this.recordInfo.recordData[i].packing_price = ""
796
+              }else{
797
+                this.recordInfo.recordData[i].packing_price = val.packing_price
798
+              }
772
               
799
               
773
               this.recordInfo.recordData[i].specification_name = val.specification_name
800
               this.recordInfo.recordData[i].specification_name = val.specification_name
774
               this.recordInfo.recordData[i].good_id = val.id
801
               this.recordInfo.recordData[i].good_id = val.id
811
       tempObj['specification_name'] = ''
838
       tempObj['specification_name'] = ''
812
       tempObj['name'] = ''
839
       tempObj['name'] = ''
813
       tempObj['license_number'] = ''
840
       tempObj['license_number'] = ''
841
+      tempObj['packing_price']= ''
814
       this.recordInfo.recordData.push(tempObj)
842
       this.recordInfo.recordData.push(tempObj)
815
       this.GetConfigInfo()
843
       this.GetConfigInfo()
816
       this.propForm.goodUnit = this.$store.getters.good_unit
844
       this.propForm.goodUnit = this.$store.getters.good_unit

+ 19 - 1
src/xt_pages/stock/stockInOrderEdit.vue Прегледај датотеку

122
               </el-form-item>
122
               </el-form-item>
123
             </template>
123
             </template>
124
           </el-table-column>
124
           </el-table-column>
125
+          <el-table-column align="center" width="120">
126
+            <template slot="header" slot-scope="scope">
127
+              <span>零售价<span style="color: red">*</span></span>
128
+            </template>
129
+            <template slot-scope="scope">
130
+            
131
+              <el-form-item :prop="'recordData.' + scope.$index + '.packing_price'" :rules='tableRules.packing_price'
132
+                            style="padding-top: 20px">
133
+                <el-input placeholder="请输入单价" type="number" v-model="scope.row.packing_price"></el-input>
134
+              </el-form-item>
135
+
125
 
136
 
137
+            </template>
138
+          </el-table-column>
126
           <el-table-column align="center" width="120">
139
           <el-table-column align="center" width="120">
127
             <template slot="header" slot-scope="scope">
140
             <template slot="header" slot-scope="scope">
128
-              <span>单价<span style="color: red">*</span></span>
141
+              <span>进货价<span style="color: red">*</span></span>
129
             </template>
142
             </template>
130
             <template slot-scope="scope">
143
             <template slot-scope="scope">
131
               <!--<el-input type="number" v-model="scope.row.price"  @blur="handleBlur(scope.$index, scope.row)"></el-input>-->
144
               <!--<el-input type="number" v-model="scope.row.price"  @blur="handleBlur(scope.$index, scope.row)"></el-input>-->
340
       },
353
       },
341
       tableRules: {
354
       tableRules: {
342
         price: [{ required: true, message: "单价不能为空", trigger: "blur" }],
355
         price: [{ required: true, message: "单价不能为空", trigger: "blur" }],
356
+        packing_price: [
357
+          { required: true, message: '零售价不能为空', trigger: 'blur' }
358
+        ],
343
         warehousing_count: [
359
         warehousing_count: [
344
           { required: true, message: "数量不能为空", trigge: "blur" }
360
           { required: true, message: "数量不能为空", trigge: "blur" }
345
         ],
361
         ],
482
       tempObj["dealer"] = "";
498
       tempObj["dealer"] = "";
483
       tempObj["manufacturer"] = "";
499
       tempObj["manufacturer"] = "";
484
       tempObj["license_number"] = ""
500
       tempObj["license_number"] = ""
501
+      tempObj["packing_price"] = ""
485
       this.recordInfo.recordData.push(tempObj);
502
       this.recordInfo.recordData.push(tempObj);
486
     },
503
     },
487
     handleDelete: function(index, row) {
504
     handleDelete: function(index, row) {
608
          
625
          
609
           for(let i=0;i<this.recordInfo.recordData.length;i++){
626
           for(let i=0;i<this.recordInfo.recordData.length;i++){
610
             this.recordInfo.recordData[i].price = this.recordInfo.recordData[i].price.toString()
627
             this.recordInfo.recordData[i].price = this.recordInfo.recordData[i].price.toString()
628
+             this.recordInfo.recordData[i].packing_price = this.recordInfo.recordData[i].packing_price.toString()
611
              if(this.recordInfo.recordData[i].dealer == ""){
629
              if(this.recordInfo.recordData[i].dealer == ""){
612
                 this.recordInfo.recordData[i].dealer = 0
630
                 this.recordInfo.recordData[i].dealer = 0
613
              }
631
              }

+ 6 - 0
src/xt_pages/stock/stockOutOrder.vue Прегледај датотеку

191
               {{ scope.row.specification_name}} / {{scope.row.packing_unit}}
191
               {{ scope.row.specification_name}} / {{scope.row.packing_unit}}
192
             </template>
192
             </template>
193
           </el-table-column>
193
           </el-table-column>
194
+
195
+          <el-table-column label="国家编码" align="center">
196
+            <template slot-scope="scope">
197
+              {{ scope.row.social_security_directory_code}}
198
+            </template>
199
+          </el-table-column>
194
          
200
          
195
           <el-table-column label="出库数量" align="center">
201
           <el-table-column label="出库数量" align="center">
196
             <template slot-scope="scope">
202
             <template slot-scope="scope">

+ 2 - 0
src/xt_pages/stock/stockPrint.vue Прегледај датотеку

27
                                     <td width="80">耗材类型</td>
27
                                     <td width="80">耗材类型</td>
28
                                     <td width="80">耗材名称</td>
28
                                     <td width="80">耗材名称</td>
29
                                     <td width="80">规格&单位</td>
29
                                     <td width="80">规格&单位</td>
30
+                                    <td width="80">国家编码</td>
30
                                     <td width="80">进货单价</td>
31
                                     <td width="80">进货单价</td>
31
                                     <td width="80">生产商</td>
32
                                     <td width="80">生产商</td>
32
                                     <td width="80">入库数量</td>
33
                                     <td width="80">入库数量</td>
39
                                    <td>{{getGoodType(item.good_type_id)}}</td>
40
                                    <td>{{getGoodType(item.good_type_id)}}</td>
40
                                    <td>{{item.good_name }}</td>
41
                                    <td>{{item.good_name }}</td>
41
                                    <td><span>{{item.specification_name }} / {{item.packing_unit}}</span></td>
42
                                    <td><span>{{item.specification_name }} / {{item.packing_unit}}</span></td>
43
+                                   <td>{{item.social_security_directory_code}}</td>
42
                                    <td>{{item.buy_price}}</td>
44
                                    <td>{{item.buy_price}}</td>
43
                                    <td>{{getManufacture(item.manufacturer)}}</td>
45
                                    <td>{{getManufacture(item.manufacturer)}}</td>
44
                                    <td>
46
                                    <td>

+ 7 - 2
src/xt_pages/stock/stockQuery.vue Прегледај датотеку

91
               <span>{{ scope.row.specification_name }} / {{scope.row.packing_unit}}</span>
91
               <span>{{ scope.row.specification_name }} / {{scope.row.packing_unit}}</span>
92
             </template>
92
             </template>
93
          </el-table-column>
93
          </el-table-column>
94
+         <el-table-column label="国家编码" align="center">
95
+            <template slot-scope="scope">
96
+              <span>{{ scope.row.social_security_directory_code}}</span>
97
+            </template>
98
+         </el-table-column>
94
         <el-table-column label="进货单价" align="center">
99
         <el-table-column label="进货单价" align="center">
95
           <template slot-scope="scope">
100
           <template slot-scope="scope">
96
              {{scope.row.buy_price}}
101
              {{scope.row.buy_price}}
353
     exportList(){
358
     exportList(){
354
          import('@/vendor/Export2Excel').then(excel => {
359
          import('@/vendor/Export2Excel').then(excel => {
355
 
360
 
356
-         const tHeader = ['耗材类型', '耗材名称', '规格&单位','进货单价','生产商','入库数量','出库数量','库存剩余量']
357
-         const filterVal = ['type_name', 'good_name', 'unit','buy_price','prodect_name','inCount','outCount','overplus']
361
+         const tHeader = ['耗材类型', '耗材名称', '规格&单位','国家编码','进货单价','生产商','入库数量','出库数量','库存剩余量']
362
+         const filterVal = ['type_name', 'good_name', 'unit','social_security_directory_code','buy_price','prodect_name','inCount','outCount','overplus']
358
 
363
 
359
 
364
 
360
          for(let i=0;i<this.tableList.length;i++){
365
          for(let i=0;i<this.tableList.length;i++){

+ 49 - 3
src/xt_pages/workforce/components/tableData.vue Прегледај датотеку

86
           </template>
86
           </template>
87
         </el-table-column>
87
         </el-table-column>
88
         <el-table-column label="操作" align="center" width="300">
88
         <el-table-column label="操作" align="center" width="300">
89
+          
90
+           <template slot-scope="scope">
91
+            <span v-if="now_time>scope.row.schedule_date">
92
+              <el-button
93
+                size="mini"
94
+                type="primary"
95
+                :disable="true"
96
+              >
97
+                取消排班
98
+              </el-button>
99
+              <el-button
100
+                size="mini"
101
+                type="primary"
102
+                :disable="true"
103
+              >
104
+                调整机号
105
+              </el-button>
106
+              <el-button
107
+                size="mini"
108
+                type="primary"
109
+              :disable="true"
110
+              >
111
+                调整模式
112
+              </el-button>
113
+           </span>
114
+          </template>
115
+         
116
+         
89
           <template slot-scope="scope">
117
           <template slot-scope="scope">
90
-            <el-button
118
+            <span v-if="now_time <=scope.row.schedule_date">
119
+              <el-button
91
               size="mini"
120
               size="mini"
92
               type="primary"
121
               type="primary"
93
               @click="CancelSchedule(scope.row.id)"
122
               @click="CancelSchedule(scope.row.id)"
108
             >
137
             >
109
               调整模式
138
               调整模式
110
             </el-button>
139
             </el-button>
140
+            </span>
141
+           
111
           </template>
142
           </template>
112
         </el-table-column>
143
         </el-table-column>
113
       </el-table>
144
       </el-table>
774
       },
805
       },
775
       zoneIdList:[],
806
       zoneIdList:[],
776
       strArr:"",
807
       strArr:"",
777
-      patient_id_hover:0
808
+      patient_id_hover:0,
809
+      now_time:"",
778
     };
810
     };
779
   },
811
   },
780
 
812
 
2307
   //    this.tableContainHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 160
2339
   //    this.tableContainHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 160
2308
   // },
2340
   // },
2309
   created() {
2341
   created() {
2310
-    
2342
+    var date = new Date()
2343
+    this.time = date
2344
+    var year = date.getFullYear()
2345
+    var month = date.getMonth() + 1
2346
+    if (month < 10) {
2347
+      month = "0" + month
2348
+    }
2349
+    var day = date.getDate()
2350
+    if (day < 10) {
2351
+      day = "0" + day
2352
+    }
2353
+    var nowDate = year + "-" + month + "-" + day
2354
+    var date = new Date(nowDate + " 00:00:00")
2355
+    console.log("date23232323232323",date.getTime()/1000) 
2356
+    this.now_time = date.getTime()/1000
2311
     this.getAllZones()
2357
     this.getAllZones()
2312
  
2358
  
2313
     this.changeScheduleType(1)
2359
     this.changeScheduleType(1)