瀏覽代碼

提交代码

陈少旭 1 年之前
父節點
當前提交
9ab8d7b774

+ 2 - 2
src/xt_pages/data/components/consumables.vue 查看文件

153
           <!--</el-button>-->
153
           <!--</el-button>-->
154
 
154
 
155
           <el-button type="primary" size="small" >
155
           <el-button type="primary" size="small" >
156
-            <span v-if="scope.row.is_mark == 0 || scope.row.is_mark == 2"  @click="putOnRecord(scope.row.id)" >目录对照</span>
157
-            <span v-if="scope.row.is_mark == 1"  @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
156
+            <span   @click="putOnRecord(scope.row.id)" >目录对照</span>
157
+            <span  @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
158
           </el-button>
158
           </el-button>
159
         </template>
159
         </template>
160
       </el-table-column>
160
       </el-table-column>

+ 2 - 2
src/xt_pages/data/components/drugs.vue 查看文件

165
 
165
 
166
 
166
 
167
           <el-button type="primary" size="small" icon="el-icon-refresh-left">
167
           <el-button type="primary" size="small" icon="el-icon-refresh-left">
168
-            <span v-if="scope.row.is_mark == 0 || scope.row.is_mark == 2"  @click="putOnRecord(scope.row.id)" >目录对照</span>
169
-            <span v-if="scope.row.is_mark == 1"  @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
168
+            <span  @click="putOnRecord(scope.row.id)" >目录对照</span>
169
+            <span  @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
170
           </el-button>
170
           </el-button>
171
         </template>
171
         </template>
172
       </el-table-column>
172
       </el-table-column>

+ 10 - 10
src/xt_pages/data/components/project.vue 查看文件

128
                     <!--</el-button>-->
128
                     <!--</el-button>-->
129
 
129
 
130
                     <el-button type="primary" size="small" icon="el-icon-refresh-left">
130
                     <el-button type="primary" size="small" icon="el-icon-refresh-left">
131
-                        <span v-if="scope.row.is_mark == 0 || scope.row.is_mark == 2"  @click="putOnRecord(scope.row.id)" >目录对照</span>
132
-                        <span v-if="scope.row.is_mark == 1"  @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
131
+                        <span  @click="putOnRecord(scope.row.id)" >目录对照</span>
132
+                        <span  @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
133
                     </el-button>
133
                     </el-button>
134
                 </template>
134
                 </template>
135
             </el-table-column>
135
             </el-table-column>
902
       },
902
       },
903
       exportList(){
903
       exportList(){
904
         import('@/vendor/Export2Excel').then(excel => {
904
         import('@/vendor/Export2Excel').then(excel => {
905
-        
905
+
906
          for(let i=0;i<this.tableData.length;i++){
906
          for(let i=0;i<this.tableData.length;i++){
907
            for(let j=0;j<this.getDictionaryDataConfig('system','cost_classify').length;j++){
907
            for(let j=0;j<this.getDictionaryDataConfig('system','cost_classify').length;j++){
908
               if(this.tableData[i].cost_classify == this.getDictionaryDataConfig('system','cost_classify')[j].id){
908
               if(this.tableData[i].cost_classify == this.getDictionaryDataConfig('system','cost_classify')[j].id){
909
-                 this.tableData[i].cost_classify_name = this.getDictionaryDataConfig('system','cost_classify')[j].name 
909
+                 this.tableData[i].cost_classify_name = this.getDictionaryDataConfig('system','cost_classify')[j].name
910
               }
910
               }
911
            }
911
            }
912
            for(let y=0;y<this.getDictionaryDataConfig('system','medical_insurance_level').length;y++){
912
            for(let y=0;y<this.getDictionaryDataConfig('system','medical_insurance_level').length;y++){
913
               if(this.tableData[i].medical_coverage == this.getDictionaryDataConfig('system','medical_insurance_level')[y].id){
913
               if(this.tableData[i].medical_coverage == this.getDictionaryDataConfig('system','medical_insurance_level')[y].id){
914
-                 this.tableData[i].medical_coverage_name = this.getDictionaryDataConfig('system','medical_insurance_level')[y].name 
914
+                 this.tableData[i].medical_coverage_name = this.getDictionaryDataConfig('system','medical_insurance_level')[y].name
915
               }
915
               }
916
            }
916
            }
917
            for(let a=0;a<this.departMentList.length;a++){
917
            for(let a=0;a<this.departMentList.length;a++){
922
          }
922
          }
923
           console.log("this.table",this.tableData)
923
           console.log("this.table",this.tableData)
924
          const tHeader = ['项目名称','零价','单位','费用类别','执行科室','医保等级','国家编码','社保目录编码']
924
          const tHeader = ['项目名称','零价','单位','费用类别','执行科室','医保等级','国家编码','社保目录编码']
925
-         const filterVal = ['project_name', 'price','unit','cost_classify_name','executive_section_name','medical_coverage_name','medical_code','social_security_directory_code'] 
926
-         
925
+         const filterVal = ['project_name', 'price','unit','cost_classify_name','executive_section_name','medical_coverage_name','medical_code','social_security_directory_code']
926
+
927
          const data = this.formatJson(filterVal,this.tableData)
927
          const data = this.formatJson(filterVal,this.tableData)
928
-     
928
+
929
          excel.export_json_to_excel({
929
          excel.export_json_to_excel({
930
            header: tHeader,
930
            header: tHeader,
931
            data,
931
            data,
932
            filename: '项目信息'
932
            filename: '项目信息'
933
          })
933
          })
934
           this.downloadLoading = false
934
           this.downloadLoading = false
935
-    
935
+
936
         })
936
         })
937
        },
937
        },
938
        formatJson(filterVal, jsonData) {
938
        formatJson(filterVal, jsonData) {
939
         return jsonData.map(v => filterVal.map(j => v[j]))
939
         return jsonData.map(v => filterVal.map(j => v[j]))
940
        },
940
        },
941
-     
941
+
942
     },
942
     },
943
     created(){
943
     created(){
944
       this.getlist();
944
       this.getlist();