Browse Source

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

csx 4 years ago
parent
commit
0dbf0a81f5

+ 8 - 8
src/xt_pages/medicalScheduling/class.vue View File

@@ -87,7 +87,7 @@
87 87
                     v-model="form.timeone_start"
88 88
                     :picker-options="{
89 89
                     start: '01:00',
90
-                    step: '00:15',
90
+                    step: '00:05',
91 91
                     end: '24:00'
92 92
                     }"
93 93
                     placeholder="选择时间">
@@ -107,7 +107,7 @@
107 107
                     v-model="form.timeone_end"
108 108
                     :picker-options="{
109 109
                     start: '01:00',
110
-                    step: '00:15',
110
+                    step: '00:05',
111 111
                     end: '24:00'
112 112
                     }"
113 113
                     placeholder="选择时间">
@@ -123,7 +123,7 @@
123 123
                     v-model="form.timetwo_start"
124 124
                     :picker-options="{
125 125
                     start: '01:00',
126
-                    step: '00:15',
126
+                    step: '00:05',
127 127
                     end: '24:00'
128 128
                     }"
129 129
                     placeholder="选择时间">
@@ -142,7 +142,7 @@
142 142
                     v-model="form.timetwo_end"
143 143
                     :picker-options="{
144 144
                     start: '01:00',
145
-                    step: '00:15',
145
+                    step: '00:05',
146 146
                     end: '24:00'
147 147
                     }"
148 148
                     placeholder="选择时间">
@@ -193,7 +193,7 @@
193 193
                     v-model="form.timeone_start"
194 194
                     :picker-options="{
195 195
                     start: '01:00',
196
-                    step: '00:15',
196
+                    step: '00:05',
197 197
                     end: '24:00'
198 198
                     }"
199 199
                     placeholder="选择时间">
@@ -213,7 +213,7 @@
213 213
                     v-model="form.timeone_end"
214 214
                     :picker-options="{
215 215
                     start: '01:00',
216
-                    step: '00:15',
216
+                    step: '00:05',
217 217
                     end: '24:00'
218 218
                     }"
219 219
                     placeholder="选择时间">
@@ -229,7 +229,7 @@
229 229
                     v-model="form.timetwo_start"
230 230
                     :picker-options="{
231 231
                     start: '01:00',
232
-                    step: '00:15',
232
+                    step: '00:05',
233 233
                     end: '24:00'
234 234
                     }"
235 235
                     placeholder="选择时间">
@@ -248,7 +248,7 @@
248 248
                     v-model="form.timetwo_end"
249 249
                     :picker-options="{
250 250
                     start: '01:00',
251
-                    step: '00:15',
251
+                    step: '00:05',
252 252
                     end: '24:00'
253 253
                     }"
254 254
                     placeholder="选择时间">

+ 5 - 5
src/xt_pages/stock/stockOutOrder.vue View File

@@ -207,8 +207,8 @@
207 207
         </div>
208 208
 
209 209
         <div class="filter-container" style="margin-top: 10px">
210
-        <el-button size="small" icon="el-icon-edit" @click="editRecord" v-if="warehousingOutInfo.info.is_sys != 1">编辑</el-button>
211
-        <el-button size="small" icon="el-icon-delete" @click="deleteRecord" v-if="warehousingOutInfo.info.is_sys != 1">删除</el-button>
210
+         <!-- <el-button size="small" icon="el-icon-edit" @click="editRecord" v-if="warehousingOutInfo.info.is_sys != 1">编辑</el-button>
211
+         <el-button size="small" icon="el-icon-delete" @click="deleteRecord" v-if="warehousingOutInfo.info.is_sys != 1">删除</el-button> -->
212 212
         </div>
213 213
 
214 214
 
@@ -259,8 +259,8 @@
259 259
                 <span>出库数量</span>
260 260
               </template>
261 261
               <template slot-scope="scope">
262
-                <!-- <span>{{scope.row.count}}</span> -->
263
-                <span>{{getOutStockCount(scope.row.good_id)}}</span>
262
+               <span v-if="scope.row.is_sys == 0">{{scope.row.count}}</span>
263
+               <span v-if="scope.row.is_sys == 1">{{getOutStockCount(scope.row.good_id)}}</span>
264 264
               </template>
265 265
             </el-table-column>
266 266
             <el-table-column label="总价" min-width="20" align="center">
@@ -714,7 +714,7 @@ export default {
714 714
     
715 715
     //新增
716 716
     handleSearch(id,row){ 
717
-      console.log("row2233r5",row)
717
+      
718 718
       this.warehousingOutInfo.info = []
719 719
       this.warehousingOutInfo.warehousingOutData = []
720 720
       this.GetOrderDetailOne(id)

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

@@ -77,8 +77,8 @@
77 77
               <span>出库数量</span>
78 78
             </template>
79 79
             <template slot-scope="scope">
80
-              <!-- <span>{{scope.row.count}}</span> -->
81
-                <span>{{getOutStockCount(scope.row.good_id)}}</span>
80
+                <span v-if="scope.row.is_sys == 0">{{scope.row.count}}</span>
81
+                <span v-if="scope.row.is_sys == 1">{{getOutStockCount(scope.row.good_id)}}</span>
82 82
             </template>
83 83
           </el-table-column>
84 84
           <el-table-column label="总价" min-width="20" align="center">

+ 18 - 20
src/xt_pages/workforce/appointment.vue View File

@@ -68,7 +68,7 @@
68 68
     <div class="position">
69 69
       <bread-crumb :crumbs="crumbs"></bread-crumb>
70 70
         <div style="display:flex;align-items:center">
71
-          <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' :before-upload="beforeUpload"></schedule-upload-excel>
71
+          <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' ></schedule-upload-excel>
72 72
           <!-- <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
73 73
             导出模版
74 74
           </el-button> -->
@@ -209,6 +209,7 @@
209 209
         clen:7,
210 210
         nowYear: new Date().getFullYear(),
211 211
         schedule_week:0,
212
+
212 213
       }
213 214
     },
214 215
     components: {
@@ -218,6 +219,7 @@
218 219
       UploadExcel
219 220
     },
220 221
     methods: {
222
+
221 223
       generateTxt: function(log) {
222 224
         var content = ''
223 225
         var errlog = log.err_logs
@@ -524,6 +526,8 @@
524 526
           const merges = ['A1:A2', 'B1:B2', 'C1:E1', 'F1:H1', 'I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1', 'U1:W1', 'X1:Z1', 'AA1:AC1', 'AD1:AF1', 'AG1:AI1', 'AJ1:AL1', 'AM1:AO1', 'AP1:AR1', 'AS1:AU1', 'AV1:AX1', 'AY1:BA1', 'BB1:BD1', 'BE1:BG1', 'BH1:BJ1', 'BK1:BM1']
525 527
 
526 528
           var data = []
529
+          console.log("33333",this.tableList)
530
+
527 531
          this.tableList.map(item=>{
528 532
            data.push(Object.values(item))
529 533
 
@@ -576,7 +580,8 @@
576 580
         return isShow
577 581
       },
578 582
        handleSuccess({ results, header }) {
579
-
583
+        console.log("results333333333333333333",results)
584
+        console.log("hearder2222222222222",header)
580 585
         let headers = []
581 586
         for (let key in results[0]) {
582 587
           headers.push(key)
@@ -801,14 +806,14 @@
801 806
             isHas_56 && isHas_57 && isHas_58 && isHas_59 && isHas_60 &&
802 807
             isHas_61 && isHas_62 && isHas_63 && isHas_64 && isHas_65)) {
803 808
 
804
-           console.log("sssssss")
809
+
805 810
 
806 811
             this.dialogVisible = true
807 812
             return
808 813
           }
809 814
         } else {
810 815
 
811
-          console.log("ssssssszzzzzzz")
816
+
812 817
 
813 818
           this.dialogVisible = true
814 819
           return
@@ -854,26 +859,21 @@
854 859
           }
855 860
         }
856 861
 
857
-         console.log(zones)
862
+
858 863
         for (let i = 0; i < zones.length; i++) {
859
-          console.log(zones[i])
860
-          console.log("err"+total_zones.includes(zones[i]))
864
+
861 865
 
862 866
           if (!total_zones.includes(zones[i])) {
863 867
             is_system_zone = false
864 868
           }
865 869
         }
866 870
 
867
-        console.log("totalzones",total_zones)
868
-        console.log("number:")
869
-        console.log("total",total_device_number)
870
-        console.log("23121212:")
871
-        console.log("devicenumber",deviceNumber)
871
+
872 872
 
873 873
 
874 874
         for (let i = 0; i < deviceNumber.length; i++) {
875 875
           if (!total_device_number.includes(deviceNumber[i])) {
876
-            console.log("number:11111")
876
+
877 877
             is_device_number = false
878 878
           }
879 879
         }
@@ -903,7 +903,7 @@
903 903
               let obj = {}
904 904
 
905 905
               obj['name'] = results[i + 1][key].replace(/\s/g, '')
906
-              console.log("88888888",obj['name'])
906
+
907 907
               if (tempObj[key] == '上午') {
908 908
                 obj['schedule_type'] = 1
909 909
               } else if (tempObj[key] == '下午') {
@@ -919,8 +919,6 @@
919 919
               obj['row'] = this.getRow(key)
920 920
 
921 921
               tempObjTwo = obj
922
-
923
-              console.log("objtwo000000000000000000000",tempObjTwo)
924 922
             }
925 923
 
926 924
 
@@ -2316,15 +2314,15 @@
2316 2314
                     }
2317 2315
 
2318 2316
                   //周日上午
2319
-                   if( nextWeek[j].schedule_week ==6&& nextWeek[j].schedule_type == 1){
2317
+                   if( nextWeek[j].schedule_week ==7 && nextWeek[j].schedule_type == 1){
2320 2318
                         list[i].上午13 = nextWeek[j].name
2321 2319
                     }
2322 2320
                    //周日下午
2323
-                    if( nextWeek[j].schedule_week ==6 && nextWeek[j].schedule_type == 2){
2321
+                    if( nextWeek[j].schedule_week ==7 && nextWeek[j].schedule_type == 2){
2324 2322
                         list[i].下午13 = nextWeek[j].name
2325 2323
                     }
2326 2324
                    //周日晚上
2327
-                   if( nextWeek[j].schedule_week == 6 && nextWeek[j].schedule_type == 3){
2325
+                   if( nextWeek[j].schedule_week == 7 && nextWeek[j].schedule_type == 3){
2328 2326
                         list[i].晚上13  = nextWeek[j].name
2329 2327
                     }
2330 2328
                   }
@@ -2333,7 +2331,7 @@
2333 2331
               }
2334 2332
              }
2335 2333
 
2336
-             console.log("lastWeek",lastWeek)
2334
+             console.log("nextWeek",nextWeek)
2337 2335
 
2338 2336
              if(lastWeek.length > 0 ){
2339 2337
                for(let i=0;i<list.length;i++){

+ 8 - 10
src/xt_pages/workforce/components/scheduleTemplateUploadExcel/index.vue View File

@@ -51,9 +51,6 @@
51 51
     methods: {
52 52
       generateDate({ header, results }) {
53 53
 
54
-        console.log(header)
55
-        console.log(results)
56
-
57 54
         this.excelData.header = header
58 55
         this.excelData.results = results
59 56
 
@@ -99,7 +96,7 @@
99 96
       },
100 97
       upload(rawFile) {
101 98
         this.$refs['excel-upload-input'].value = null // fix can't select the same excel
102
-        console.log("12121212")
99
+       
103 100
         if (!this.beforeUpload) {
104 101
           this.readerData(rawFile)
105 102
           return
@@ -110,26 +107,26 @@
110 107
         }
111 108
       },
112 109
       readerData(rawFile) {
113
-        console.log("2222222")
110
+      
114 111
 
115 112
         this.loading = true
116 113
         return new Promise((resolve, reject) => {
117 114
           const reader = new FileReader()
118 115
           reader.onload = e => {
119 116
             const data = e.target.result
120
-            console.log(data)
117
+            console.log("data",data)
121 118
 
122 119
             const fixedData = this.fixdata(data)
123
-            console.log(fixedData)
120
+            console.log("fixedData",fixedData)
124 121
 
125 122
             const workbook = XLSX.read(btoa(fixedData), { type: 'base64' })
126
-            console.log(workbook)
123
+            console.log("workBook",workbook)
127 124
 
128 125
             const firstSheetName = workbook.SheetNames[0]
129
-            console.log(firstSheetName)
126
+            console.log("firstSheetName",firstSheetName)
130 127
 
131 128
             const worksheet = workbook.Sheets[firstSheetName]
132
-            console.log(worksheet)
129
+            console.log("worksheet",worksheet)
133 130
 
134 131
 
135 132
 
@@ -151,6 +148,7 @@
151 148
         return o
152 149
       },
153 150
       get_header_row(sheet) {
151
+      
154 152
         if(sheet['!ref'] == undefined){
155 153
           this.loading = false
156 154
           return

+ 12 - 9
src/xt_pages/workforce/components/scheduleUploadExcel/index.vue View File

@@ -38,8 +38,7 @@
38 38
     methods: {
39 39
       generateDate({ header, results }) {
40 40
 
41
-        console.log(header)
42
-        console.log(results)
41
+      
43 42
 
44 43
         this.excelData.header = header
45 44
         this.excelData.results = results
@@ -72,21 +71,21 @@
72 71
       },
73 72
       handleUpload() {
74 73
         this.msgTipVisible = false
75
-        console.log("1111111")
74
+       
76 75
         document.getElementById('excel-upload-input').click()
77 76
       },
78 77
       handleClick(e) {
79
-        console.log("1111")
78
+        console.log("333",e.target.files)
80 79
         const files = e.target.files
81 80
         const rawFile = files[0] // only use files[0]
82
-        console.log(rawFile)
83
-
84
-        if (!rawFile) return
81
+        console.log("rawFile333333333",rawFile)  
82
+        if (!rawFile) 
83
+        return
85 84
         this.upload(rawFile)
86 85
       },
87 86
       upload(rawFile) {
88 87
         this.$refs['excel-upload-input'].value = null // fix can't select the same excel
89
-        console.log("12121212")
88
+        
90 89
         if (!this.beforeUpload) {
91 90
           this.readerData(rawFile)
92 91
           return
@@ -97,18 +96,21 @@
97 96
         }
98 97
       },
99 98
       readerData(rawFile) {
100
-        console.log("2222222")
99
+       
101 100
 
102 101
         this.loading = true
103 102
         return new Promise((resolve, reject) => {
104 103
           const reader = new FileReader()
105 104
           reader.onload = e => {
105
+           
106 106
             const data = e.target.result
107 107
             const fixedData = this.fixdata(data)
108 108
             const workbook = XLSX.read(btoa(fixedData), { type: 'base64' })
109 109
             const firstSheetName = workbook.SheetNames[0]
110 110
             const worksheet = workbook.Sheets[firstSheetName]
111
+           
111 112
             const header = this.get_header_row(worksheet)
113
+            
112 114
             const results = XLSX.utils.sheet_to_json(worksheet)
113 115
             this.generateDate({ header, results })
114 116
             this.loading = false
@@ -145,6 +147,7 @@
145 147
         return headers
146 148
       },
147 149
       isExcel(file) {
150
+        console.log("file",file)
148 151
         return /\.(xlsx|xls|csv)$/.test(file.name)
149 152
       }
150 153
     }

+ 1 - 1
src/xt_pages/workforce/template.vue View File

@@ -357,7 +357,7 @@
357 357
         })
358 358
       },
359 359
       handleSuccess({ results, header }) {
360
-
360
+       
361 361
         let headers = []
362 362
         for (let key in results[0]) {
363 363
           headers.push(key)