|
@@ -41,7 +41,7 @@
|
41
|
41
|
<div style="display:flex; align-items:center;margin-bottom:10px;">
|
42
|
42
|
<el-button type="primary" size="small" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028" >批量备案</el-button>
|
43
|
43
|
<el-button type="primary" size="small" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028" @click="GDYBBatchPutOnRecord()">批量备案</el-button>
|
44
|
|
- <!-- <el-link target="_blank" href="https://kuyi.shengws.com/project_template.xlsx" :underline="false"
|
|
44
|
+ <!-- <el-link target="_blank" href="https://kuyi.shengws.com/project_template1.xlsx" :underline="false"
|
45
|
45
|
style="margin-left:15px">
|
46
|
46
|
<el-button
|
47
|
47
|
class="filter-item"
|
|
@@ -49,9 +49,9 @@
|
49
|
49
|
size="small"
|
50
|
50
|
>下载模版
|
51
|
51
|
</el-button>
|
52
|
|
- </el-link>
|
|
52
|
+ </el-link> -->
|
53
|
53
|
|
54
|
|
- <project-excel :on-success='handleSuccessOne'></project-excel>
|
|
54
|
+ <!-- <project-excel :on-success='handleSuccessOne'></project-excel>
|
55
|
55
|
|
56
|
56
|
<el-button
|
57
|
57
|
style="margin-left:10px;"
|
|
@@ -741,48 +741,8 @@ export default {
|
741
|
741
|
tableData.push(obj)
|
742
|
742
|
console.log("项目列表",tableData)
|
743
|
743
|
|
744
|
|
- var costClassify = this.getDictionaryDataConfig('system','cost_classify')
|
745
|
|
- console.log("费用类别",costClassify)
|
746
|
|
- var medicalInsuranceLevel = this.getDictionaryDataConfig('system','medical_insurance_level')
|
747
|
|
- console.log("医保等级",medicalInsuranceLevel)
|
748
|
|
-
|
749
|
|
- var statistical_classification = getDictionaryDataConfig('system','statistics_category')
|
750
|
|
- console.log("统计分类",statistical_classification)
|
751
|
|
-
|
752
|
|
- var tube_color = this.getDictionaryDataConfig('system','tube_color')
|
753
|
|
- console.log("试管颜色",tube_color)
|
754
|
|
-
|
755
|
744
|
for(let i=0;i<tableData.length;i++){
|
756
|
|
- for(let j=0;j<costClassify.length;j++){
|
757
|
|
-
|
758
|
|
- if(tableData[i].cost_classify === costClassify[j].name){
|
759
|
|
- tableData[i].cost_classify_id = costClassify[j].id
|
760
|
|
- }
|
761
|
|
- }
|
762
|
|
-
|
763
|
|
- for(let j=0;j<medicalInsuranceLevel.length;j++){
|
764
|
|
- if(tableData[i].medical_coverage == medicalInsuranceLevel[j].name ){
|
765
|
|
- tableData[i].medical_insurance_level_id = medicalInsuranceLevel[j].id
|
766
|
|
- }
|
767
|
|
- }
|
768
|
|
-
|
769
|
|
-
|
770
|
745
|
|
771
|
|
- for(let j=0;j<this.departMentList.length;j++){
|
772
|
|
- if(tableData[i].executive_section == this.departMentList[j].name){
|
773
|
|
- tableData[i].executive_section_id = this.departMentList[j].id
|
774
|
|
- }
|
775
|
|
- }
|
776
|
|
-
|
777
|
|
-
|
778
|
|
- for(let j=0;j<statistical_classification.length;j++){
|
779
|
|
- if(tableData[i].statistical_classification == statistical_classification[j].name){
|
780
|
|
- tableData[i].statistical_classification_id = statistical_classification[j].id
|
781
|
|
- }
|
782
|
|
- }
|
783
|
|
-
|
784
|
|
-
|
785
|
|
-
|
786
|
746
|
if(tableData[i].disease_directory == ""){
|
787
|
747
|
tableData[i].disease_directory = 0
|
788
|
748
|
}
|
|
@@ -805,11 +765,7 @@ export default {
|
805
|
765
|
tableData[i].is_record = 2
|
806
|
766
|
}
|
807
|
767
|
|
808
|
|
- for(let j=0;j<tube_color.length;j++){
|
809
|
|
- if(tableData[i].tube_color == tube_color[j].name){
|
810
|
|
- tableData[i].tube_color_id = tube_color[j].id
|
811
|
|
- }
|
812
|
|
- }
|
|
768
|
+
|
813
|
769
|
|
814
|
770
|
if(tableData[i].category == ""){
|
815
|
771
|
tableData[i].category = 0
|
|
@@ -845,25 +801,18 @@ export default {
|
845
|
801
|
if(tableData[i].medical_status == "收费"){
|
846
|
802
|
tableData[i].medical_status = 2
|
847
|
803
|
}
|
848
|
|
-
|
849
|
|
-
|
850
|
804
|
}
|
851
|
|
- }
|
852
|
|
-
|
853
|
|
- for(let i=0;i<tableData.length;i++){
|
854
|
|
- tableData[i].price = parseInt(tableData[i].price)
|
855
|
|
- }
|
856
|
|
-
|
|
805
|
+ }
|
857
|
806
|
let params = {
|
858
|
807
|
'projects':tableData
|
859
|
808
|
}
|
860
|
809
|
console.log("params2222",params)
|
861
|
|
-
|
|
810
|
+
|
862
|
811
|
postProjectInformation(params).then(response=>{
|
863
|
812
|
if(response.data.state == 1){
|
864
|
813
|
var msg = response.data.data.msg
|
865
|
814
|
this.$message.success("导入成功!")
|
866
|
|
-
|
|
815
|
+ this.getlist()
|
867
|
816
|
}else{
|
868
|
817
|
this.$message.error("导入失败")
|
869
|
818
|
}
|