Pārlūkot izejas kodu

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

csx 4 gadus atpakaļ
vecāks
revīzija
0dbf0a81f5

+ 8 - 8
src/xt_pages/medicalScheduling/class.vue Parādīt failu

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

+ 5 - 5
src/xt_pages/stock/stockOutOrder.vue Parādīt failu

207
         </div>
207
         </div>
208
 
208
 
209
         <div class="filter-container" style="margin-top: 10px">
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
         </div>
212
         </div>
213
 
213
 
214
 
214
 
259
                 <span>出库数量</span>
259
                 <span>出库数量</span>
260
               </template>
260
               </template>
261
               <template slot-scope="scope">
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
               </template>
264
               </template>
265
             </el-table-column>
265
             </el-table-column>
266
             <el-table-column label="总价" min-width="20" align="center">
266
             <el-table-column label="总价" min-width="20" align="center">
714
     
714
     
715
     //新增
715
     //新增
716
     handleSearch(id,row){ 
716
     handleSearch(id,row){ 
717
-      console.log("row2233r5",row)
717
+      
718
       this.warehousingOutInfo.info = []
718
       this.warehousingOutInfo.info = []
719
       this.warehousingOutInfo.warehousingOutData = []
719
       this.warehousingOutInfo.warehousingOutData = []
720
       this.GetOrderDetailOne(id)
720
       this.GetOrderDetailOne(id)

+ 2 - 2
src/xt_pages/stock/stockOutOrderDetail.vue Parādīt failu

77
               <span>出库数量</span>
77
               <span>出库数量</span>
78
             </template>
78
             </template>
79
             <template slot-scope="scope">
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
             </template>
82
             </template>
83
           </el-table-column>
83
           </el-table-column>
84
           <el-table-column label="总价" min-width="20" align="center">
84
           <el-table-column label="总价" min-width="20" align="center">

+ 18 - 20
src/xt_pages/workforce/appointment.vue Parādīt failu

68
     <div class="position">
68
     <div class="position">
69
       <bread-crumb :crumbs="crumbs"></bread-crumb>
69
       <bread-crumb :crumbs="crumbs"></bread-crumb>
70
         <div style="display:flex;align-items:center">
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
           <!-- <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
72
           <!-- <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
73
             导出模版
73
             导出模版
74
           </el-button> -->
74
           </el-button> -->
209
         clen:7,
209
         clen:7,
210
         nowYear: new Date().getFullYear(),
210
         nowYear: new Date().getFullYear(),
211
         schedule_week:0,
211
         schedule_week:0,
212
+
212
       }
213
       }
213
     },
214
     },
214
     components: {
215
     components: {
218
       UploadExcel
219
       UploadExcel
219
     },
220
     },
220
     methods: {
221
     methods: {
222
+
221
       generateTxt: function(log) {
223
       generateTxt: function(log) {
222
         var content = ''
224
         var content = ''
223
         var errlog = log.err_logs
225
         var errlog = log.err_logs
524
           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']
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
           var data = []
528
           var data = []
529
+          console.log("33333",this.tableList)
530
+
527
          this.tableList.map(item=>{
531
          this.tableList.map(item=>{
528
            data.push(Object.values(item))
532
            data.push(Object.values(item))
529
 
533
 
576
         return isShow
580
         return isShow
577
       },
581
       },
578
        handleSuccess({ results, header }) {
582
        handleSuccess({ results, header }) {
579
-
583
+        console.log("results333333333333333333",results)
584
+        console.log("hearder2222222222222",header)
580
         let headers = []
585
         let headers = []
581
         for (let key in results[0]) {
586
         for (let key in results[0]) {
582
           headers.push(key)
587
           headers.push(key)
801
             isHas_56 && isHas_57 && isHas_58 && isHas_59 && isHas_60 &&
806
             isHas_56 && isHas_57 && isHas_58 && isHas_59 && isHas_60 &&
802
             isHas_61 && isHas_62 && isHas_63 && isHas_64 && isHas_65)) {
807
             isHas_61 && isHas_62 && isHas_63 && isHas_64 && isHas_65)) {
803
 
808
 
804
-           console.log("sssssss")
809
+
805
 
810
 
806
             this.dialogVisible = true
811
             this.dialogVisible = true
807
             return
812
             return
808
           }
813
           }
809
         } else {
814
         } else {
810
 
815
 
811
-          console.log("ssssssszzzzzzz")
816
+
812
 
817
 
813
           this.dialogVisible = true
818
           this.dialogVisible = true
814
           return
819
           return
854
           }
859
           }
855
         }
860
         }
856
 
861
 
857
-         console.log(zones)
862
+
858
         for (let i = 0; i < zones.length; i++) {
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
           if (!total_zones.includes(zones[i])) {
866
           if (!total_zones.includes(zones[i])) {
863
             is_system_zone = false
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
         for (let i = 0; i < deviceNumber.length; i++) {
874
         for (let i = 0; i < deviceNumber.length; i++) {
875
           if (!total_device_number.includes(deviceNumber[i])) {
875
           if (!total_device_number.includes(deviceNumber[i])) {
876
-            console.log("number:11111")
876
+
877
             is_device_number = false
877
             is_device_number = false
878
           }
878
           }
879
         }
879
         }
903
               let obj = {}
903
               let obj = {}
904
 
904
 
905
               obj['name'] = results[i + 1][key].replace(/\s/g, '')
905
               obj['name'] = results[i + 1][key].replace(/\s/g, '')
906
-              console.log("88888888",obj['name'])
906
+
907
               if (tempObj[key] == '上午') {
907
               if (tempObj[key] == '上午') {
908
                 obj['schedule_type'] = 1
908
                 obj['schedule_type'] = 1
909
               } else if (tempObj[key] == '下午') {
909
               } else if (tempObj[key] == '下午') {
919
               obj['row'] = this.getRow(key)
919
               obj['row'] = this.getRow(key)
920
 
920
 
921
               tempObjTwo = obj
921
               tempObjTwo = obj
922
-
923
-              console.log("objtwo000000000000000000000",tempObjTwo)
924
             }
922
             }
925
 
923
 
926
 
924
 
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
                         list[i].上午13 = nextWeek[j].name
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
                         list[i].下午13 = nextWeek[j].name
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
                         list[i].晚上13  = nextWeek[j].name
2326
                         list[i].晚上13  = nextWeek[j].name
2329
                     }
2327
                     }
2330
                   }
2328
                   }
2333
               }
2331
               }
2334
              }
2332
              }
2335
 
2333
 
2336
-             console.log("lastWeek",lastWeek)
2334
+             console.log("nextWeek",nextWeek)
2337
 
2335
 
2338
              if(lastWeek.length > 0 ){
2336
              if(lastWeek.length > 0 ){
2339
                for(let i=0;i<list.length;i++){
2337
                for(let i=0;i<list.length;i++){

+ 8 - 10
src/xt_pages/workforce/components/scheduleTemplateUploadExcel/index.vue Parādīt failu

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

+ 12 - 9
src/xt_pages/workforce/components/scheduleUploadExcel/index.vue Parādīt failu

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

+ 1 - 1
src/xt_pages/workforce/template.vue Parādīt failu

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