瀏覽代碼

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

csx 4 年之前
父節點
當前提交
0f9d20cabf

+ 4 - 0
src/xt_pages/data/components/addInspection.vue 查看文件

171
         submitAction(formName){
171
         submitAction(formName){
172
            this.$refs[formName].validate((valid)=>{
172
            this.$refs[formName].validate((valid)=>{
173
                 var arr = []
173
                 var arr = []
174
+                var listId = []
174
                 for(let i=0;i<this.tableData.length;i++){
175
                 for(let i=0;i<this.tableData.length;i++){
175
                     arr.push(this.tableData[i].id)
176
                     arr.push(this.tableData[i].id)
177
+                    
176
                 }
178
                 }
177
                 console.log("arr",arr)
179
                 console.log("arr",arr)
180
+                console.log("table",this.tableData)
178
                 var ids = arr.join(",")
181
                 var ids = arr.join(",")
179
                 var params = {
182
                 var params = {
180
                  project_team:this.form.project_team,
183
                  project_team:this.form.project_team,
187
                  ids:ids,
190
                  ids:ids,
188
                }
191
                }
189
                console.log("params",params)
192
                console.log("params",params)
193
+             
190
               saveProjectTeam(params).then(response=>{
194
               saveProjectTeam(params).then(response=>{
191
                  if(response.data.state == 1){
195
                  if(response.data.state == 1){
192
                    var projectTeam = response.data.data.projectTeam
196
                    var projectTeam = response.data.data.projectTeam

+ 1 - 1
src/xt_pages/data/components/editInspection.vue 查看文件

255
                console.log('projectlist33333',projectList)
255
                console.log('projectlist33333',projectList)
256
                this.projectList = projectList
256
                this.projectList = projectList
257
                var hisprojectlist = response.data.data.hisprojectlist
257
                var hisprojectlist = response.data.data.hisprojectlist
258
-            //    console.log("hisprojectlist",hisprojectlist)
258
+             console.log("hisprojectlist",hisprojectlist)
259
             //    this.tableData = hisprojectlist
259
             //    this.tableData = hisprojectlist
260
              }
260
              }
261
           })   
261
           })   

+ 7 - 6
src/xt_pages/device/airDisinfect.vue 查看文件

108
                     </el-date-picker>
108
                     </el-date-picker>
109
                 </el-form-item>
109
                 </el-form-item>
110
                 <el-form-item label="班次" label-width="110px" required prop="class">
110
                 <el-form-item label="班次" label-width="110px" required prop="class">
111
-                    <el-select v-model="form.class" placeholder="请选择活动区域">
111
+                    <el-select v-model="form.class" placeholder="请选择消毒班次">
112
                         <el-option label="上午" value="1"></el-option>
112
                         <el-option label="上午" value="1"></el-option>
113
                         <el-option label="下午" value="2"></el-option>
113
                         <el-option label="下午" value="2"></el-option>
114
                         <el-option label="晚上" value="3"></el-option>
114
                         <el-option label="晚上" value="3"></el-option>
152
                 <el-form-item label="检测结果" label-width="110px">
152
                 <el-form-item label="检测结果" label-width="110px">
153
                     <el-input v-model="form.detection_result"></el-input>
153
                     <el-input v-model="form.detection_result"></el-input>
154
                 </el-form-item>
154
                 </el-form-item>
155
-                <el-form-item label="上传时间" label-width="110px">
155
+                <el-form-item label="上传时间" label-width="110px" required prop="upload_time">
156
                     <el-date-picker
156
                     <el-date-picker
157
                     value-format="yyyy-MM-dd"
157
                     value-format="yyyy-MM-dd"
158
                     v-model="form.upload_time"
158
                     v-model="form.upload_time"
199
                     </el-date-picker>
199
                     </el-date-picker>
200
                 </el-form-item>
200
                 </el-form-item>
201
                 <el-form-item label="班次" label-width="110px" required prop="class">
201
                 <el-form-item label="班次" label-width="110px" required prop="class">
202
-                    <el-select v-model="form.class" placeholder="请选择活动区域">
202
+                    <el-select v-model="form.class" placeholder="请选择消毒班次">
203
                         <el-option label="上午" value="1"></el-option>
203
                         <el-option label="上午" value="1"></el-option>
204
                         <el-option label="下午" value="2"></el-option>
204
                         <el-option label="下午" value="2"></el-option>
205
                         <el-option label="晚上" value="3"></el-option>
205
                         <el-option label="晚上" value="3"></el-option>
243
                 <el-form-item label="检测结果" label-width="110px">
243
                 <el-form-item label="检测结果" label-width="110px">
244
                     <el-input v-model="form.detection_result"></el-input>
244
                     <el-input v-model="form.detection_result"></el-input>
245
                 </el-form-item>
245
                 </el-form-item>
246
-                <el-form-item label="上传时间" label-width="110px">
246
+                <el-form-item label="上传时间" label-width="110px" required prop="upload_time">
247
                     <el-date-picker
247
                     <el-date-picker
248
                     value-format="yyyy-MM-dd"
248
                     value-format="yyyy-MM-dd"
249
                     v-model="form.upload_time"
249
                     v-model="form.upload_time"
320
         ],
320
         ],
321
        airRules: {
321
        airRules: {
322
         start_time: [{ required: true, message: "请选择时间", trigger: "blur" }],
322
         start_time: [{ required: true, message: "请选择时间", trigger: "blur" }],
323
-        class:[{required:true,message:"请选择班次",trigger:"blur"}],
323
+        class:[{required:true,message:"请选择消毒班次",trigger:"blur"}],
324
         created_time:[{required:true,message:"请选择创建时间",trigger:"blur"}],
324
         created_time:[{required:true,message:"请选择创建时间",trigger:"blur"}],
325
         sort:[{required:true,message:"请填写顺序号",trigger:"blur"}],
325
         sort:[{required:true,message:"请填写顺序号",trigger:"blur"}],
326
         detection_time:[{required:true,message:"请选择检测时间",trigger:"blur"}],
326
         detection_time:[{required:true,message:"请选择检测时间",trigger:"blur"}],
327
         check_out:[{required:true,message:"请选择检验合格",trigger:"blur"}],
327
         check_out:[{required:true,message:"请选择检验合格",trigger:"blur"}],
328
         modifications:[{required:true,message:"请选择修改标志",trigger:"blur"}],
328
         modifications:[{required:true,message:"请选择修改标志",trigger:"blur"}],
329
-        creator:[{required:true,message:"请选择创建人",trigger:"blur"}]
329
+        creator:[{required:true,message:"请选择创建人",trigger:"blur"}],
330
+        upload_time:[{required:true,message:"请选择上传时间",trigger:"blur"}]
330
        },
331
        },
331
        limit:20,
332
        limit:20,
332
        page:1,
333
        page:1,

+ 7 - 6
src/xt_pages/device/objectTableDisinfect.vue 查看文件

108
                     </el-date-picker>
108
                     </el-date-picker>
109
                 </el-form-item>
109
                 </el-form-item>
110
                 <el-form-item label="班次" label-width="110px" required prop="class">
110
                 <el-form-item label="班次" label-width="110px" required prop="class">
111
-                    <el-select v-model="form.class" placeholder="请选择活动区域">
111
+                    <el-select v-model="form.class" placeholder="请选择消毒班次">
112
                         <el-option label="上午" value="1"></el-option>
112
                         <el-option label="上午" value="1"></el-option>
113
                         <el-option label="下午" value="2"></el-option>
113
                         <el-option label="下午" value="2"></el-option>
114
                         <el-option label="晚上" value="3"></el-option>
114
                         <el-option label="晚上" value="3"></el-option>
152
                 <el-form-item label="检测结果" label-width="110px">
152
                 <el-form-item label="检测结果" label-width="110px">
153
                     <el-input v-model="form.detection_result"></el-input>
153
                     <el-input v-model="form.detection_result"></el-input>
154
                 </el-form-item>
154
                 </el-form-item>
155
-                <el-form-item label="上传时间" label-width="110px">
155
+                <el-form-item label="上传时间" label-width="110px" required prop="upload_time">
156
                     <el-date-picker
156
                     <el-date-picker
157
                     value-format="yyyy-MM-dd"
157
                     value-format="yyyy-MM-dd"
158
                     v-model="form.upload_time"
158
                     v-model="form.upload_time"
199
                     </el-date-picker>
199
                     </el-date-picker>
200
                 </el-form-item>
200
                 </el-form-item>
201
                 <el-form-item label="班次" label-width="110px" required prop="class">
201
                 <el-form-item label="班次" label-width="110px" required prop="class">
202
-                    <el-select v-model="form.class" placeholder="请选择活动区域">
202
+                    <el-select v-model="form.class" placeholder="请选择消毒班次">
203
                         <el-option label="上午" value="1"></el-option>
203
                         <el-option label="上午" value="1"></el-option>
204
                         <el-option label="下午" value="2"></el-option>
204
                         <el-option label="下午" value="2"></el-option>
205
                         <el-option label="晚上" value="3"></el-option>
205
                         <el-option label="晚上" value="3"></el-option>
243
                 <el-form-item label="检测结果" label-width="110px">
243
                 <el-form-item label="检测结果" label-width="110px">
244
                     <el-input v-model="form.detection_result"></el-input>
244
                     <el-input v-model="form.detection_result"></el-input>
245
                 </el-form-item>
245
                 </el-form-item>
246
-                <el-form-item label="上传时间" label-width="110px">
246
+                <el-form-item label="上传时间" label-width="110px" required prop="upload_time">
247
                     <el-date-picker
247
                     <el-date-picker
248
                     value-format="yyyy-MM-dd"
248
                     value-format="yyyy-MM-dd"
249
                     v-model="form.upload_time"
249
                     v-model="form.upload_time"
320
         ],
320
         ],
321
        airRules: {
321
        airRules: {
322
         start_time: [{ required: true, message: "请选择时间", trigger: "blur" }],
322
         start_time: [{ required: true, message: "请选择时间", trigger: "blur" }],
323
-        class:[{required:true,message:"请选择班次",trigger:"blur"}],
323
+        class:[{required:true,message:"请选择消毒班次",trigger:"blur"}],
324
         created_time:[{required:true,message:"请选择创建时间",trigger:"blur"}],
324
         created_time:[{required:true,message:"请选择创建时间",trigger:"blur"}],
325
         sort:[{required:true,message:"请填写顺序号",trigger:"blur"}],
325
         sort:[{required:true,message:"请填写顺序号",trigger:"blur"}],
326
         detection_time:[{required:true,message:"请选择检测时间",trigger:"blur"}],
326
         detection_time:[{required:true,message:"请选择检测时间",trigger:"blur"}],
327
         check_out:[{required:true,message:"请选择检验合格",trigger:"blur"}],
327
         check_out:[{required:true,message:"请选择检验合格",trigger:"blur"}],
328
         modifications:[{required:true,message:"请选择修改标志",trigger:"blur"}],
328
         modifications:[{required:true,message:"请选择修改标志",trigger:"blur"}],
329
-        creator:[{required:true,message:"请选择创建人",trigger:"blur"}]
329
+        creator:[{required:true,message:"请选择创建人",trigger:"blur"}],
330
+        upload_time:[{required:true,message:"请选择报告日期",trigger:"blur"}]
330
        },
331
        },
331
        limit:20,
332
        limit:20,
332
        page:1,
333
        page:1,

+ 15 - 28
src/xt_pages/management/home.vue 查看文件

1442
                              </el-row>
1442
                              </el-row>
1443
 
1443
 
1444
                              <el-row>
1444
                              <el-row>
1445
-                               <el-col :span="12">
1445
+                               <el-col :span="8">
1446
                                   <el-form-item label="检测合格:" required prop="pass_examination">
1446
                                   <el-form-item label="检测合格:" required prop="pass_examination">
1447
                                     <el-radio v-model="qualityForm.pass_examination" label="1">是</el-radio>
1447
                                     <el-radio v-model="qualityForm.pass_examination" label="1">是</el-radio>
1448
                                     <el-radio v-model="qualityForm.pass_examination" label="2">否</el-radio>
1448
                                     <el-radio v-model="qualityForm.pass_examination" label="2">否</el-radio>
1449
                                   </el-form-item>
1449
                                   </el-form-item>
1450
                                </el-col>
1450
                                </el-col>
1451
-                               <el-col :span="12">
1451
+                               <el-col :span="8">
1452
                                   <el-form-item label="修改标志:" required prop="modifications">
1452
                                   <el-form-item label="修改标志:" required prop="modifications">
1453
                                     <el-select style="width:150px"  v-model="qualityForm.modifications">
1453
                                     <el-select style="width:150px"  v-model="qualityForm.modifications">
1454
                                        <el-option v-for="(item,index) in modifications" :key="index" :label="item.name" :value="item.id"></el-option>
1454
                                        <el-option v-for="(item,index) in modifications" :key="index" :label="item.name" :value="item.id"></el-option>
1567
                                 </el-col>
1567
                                 </el-col>
1568
                               </el-row>
1568
                               </el-row>
1569
                               <el-row>
1569
                               <el-row>
1570
-                                  <el-col :span="12">
1570
+                                  <el-col :span="8">
1571
                                       <el-form-item label="检测合格:" required prop="pass_examination">
1571
                                       <el-form-item label="检测合格:" required prop="pass_examination">
1572
                                         <el-radio v-model="qualityFormTwo.pass_examination" label="1">是</el-radio>
1572
                                         <el-radio v-model="qualityFormTwo.pass_examination" label="1">是</el-radio>
1573
                                         <el-radio v-model="qualityFormTwo.pass_examination" label="2">否</el-radio>
1573
                                         <el-radio v-model="qualityFormTwo.pass_examination" label="2">否</el-radio>
1574
                                       </el-form-item>
1574
                                       </el-form-item>
1575
                                   </el-col>
1575
                                   </el-col>
1576
-                                  <el-col :span="12">
1576
+                                  <el-col :span="8">
1577
                                       <el-form-item label="修改标志:" required prop="modifications">
1577
                                       <el-form-item label="修改标志:" required prop="modifications">
1578
                                         <el-select style="width:150px"  v-model="qualityFormTwo.modifications">
1578
                                         <el-select style="width:150px"  v-model="qualityFormTwo.modifications">
1579
                                           <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
1579
                                           <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
1694
                                 </el-col>
1694
                                 </el-col>
1695
                               </el-row>
1695
                               </el-row>
1696
                               <el-row>
1696
                               <el-row>
1697
-                                  <el-col :span="12">
1697
+                                  <el-col :span="8">
1698
                                       <el-form-item label="检测合格:" required prop="pass_examination">
1698
                                       <el-form-item label="检测合格:" required prop="pass_examination">
1699
                                         <el-radio v-model="qualityFormFour.pass_examination" label="1">是</el-radio>
1699
                                         <el-radio v-model="qualityFormFour.pass_examination" label="1">是</el-radio>
1700
                                         <el-radio v-model="qualityFormFour.pass_examination" label="2">否</el-radio>
1700
                                         <el-radio v-model="qualityFormFour.pass_examination" label="2">否</el-radio>
1701
                                       </el-form-item>
1701
                                       </el-form-item>
1702
                                   </el-col>
1702
                                   </el-col>
1703
-                                  <el-col :span="12">
1703
+                                  <el-col :span="8">
1704
                                       <el-form-item label="修改标志:" required prop="modifications">
1704
                                       <el-form-item label="修改标志:" required prop="modifications">
1705
                                         <el-select style="width:150px"  v-model="qualityFormFour.modifications">
1705
                                         <el-select style="width:150px"  v-model="qualityFormFour.modifications">
1706
                                           <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
1706
                                           <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
1820
                                 </el-col>
1820
                                 </el-col>
1821
                               </el-row>
1821
                               </el-row>
1822
                               <el-row>
1822
                               <el-row>
1823
-                                  <el-col :span="12">
1823
+                                  <el-col :span="8">
1824
                                       <el-form-item label="检测合格:" required prop="pass_examination">
1824
                                       <el-form-item label="检测合格:" required prop="pass_examination">
1825
                                         <el-radio v-model="qualityFormFive.pass_examination" label="1">是</el-radio>
1825
                                         <el-radio v-model="qualityFormFive.pass_examination" label="1">是</el-radio>
1826
                                         <el-radio v-model="qualityFormFive.pass_examination" label="2">否</el-radio>
1826
                                         <el-radio v-model="qualityFormFive.pass_examination" label="2">否</el-radio>
1827
                                       </el-form-item>
1827
                                       </el-form-item>
1828
                                   </el-col>
1828
                                   </el-col>
1829
-                                  <el-col :span="12">
1829
+                                  <el-col :span="8">
1830
                                       <el-form-item label="修改标志:" required prop="modifications">
1830
                                       <el-form-item label="修改标志:" required prop="modifications">
1831
                                         <el-select style="width:150px"  v-model="qualityFormFive.modifications">
1831
                                         <el-select style="width:150px"  v-model="qualityFormFive.modifications">
1832
                                           <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
1832
                                           <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
1947
                                 </el-col>
1947
                                 </el-col>
1948
                               </el-row>
1948
                               </el-row>
1949
                               <el-row>
1949
                               <el-row>
1950
-                                  <el-col :span="12">
1950
+                                  <el-col :span="8">
1951
                                       <el-form-item label="检测合格:" required prop="pass_examination">
1951
                                       <el-form-item label="检测合格:" required prop="pass_examination">
1952
                                         <el-radio v-model="qualityFormSix.pass_examination" label="1">是</el-radio>
1952
                                         <el-radio v-model="qualityFormSix.pass_examination" label="1">是</el-radio>
1953
                                         <el-radio v-model="qualityFormSix.pass_examination" label="2">否</el-radio>
1953
                                         <el-radio v-model="qualityFormSix.pass_examination" label="2">否</el-radio>
1954
                                       </el-form-item>
1954
                                       </el-form-item>
1955
                                   </el-col>
1955
                                   </el-col>
1956
-                                  <el-col :span="12">
1956
+                                  <el-col :span="8">
1957
                                       <el-form-item label="修改标志:" required prop="modifications">
1957
                                       <el-form-item label="修改标志:" required prop="modifications">
1958
                                         <el-select style="width:150px"  v-model="qualityFormSix.modifications">
1958
                                         <el-select style="width:150px"  v-model="qualityFormSix.modifications">
1959
                                           <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
1959
                                           <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
2073
                                 </el-col>
2073
                                 </el-col>
2074
                               </el-row>
2074
                               </el-row>
2075
                               <el-row>
2075
                               <el-row>
2076
-                                  <el-col :span="12">
2076
+                                  <el-col :span="8">
2077
                                       <el-form-item label="检测合格:" required prop="pass_examination">
2077
                                       <el-form-item label="检测合格:" required prop="pass_examination">
2078
                                         <el-radio v-model="qualityFormSeven.pass_examination" label="1">是</el-radio>
2078
                                         <el-radio v-model="qualityFormSeven.pass_examination" label="1">是</el-radio>
2079
                                         <el-radio v-model="qualityFormSeven.pass_examination" label="2">否</el-radio>
2079
                                         <el-radio v-model="qualityFormSeven.pass_examination" label="2">否</el-radio>
2080
                                       </el-form-item>
2080
                                       </el-form-item>
2081
                                   </el-col>
2081
                                   </el-col>
2082
-                                  <el-col :span="12">
2082
+                                  <el-col :span="8">
2083
                                       <el-form-item label="修改标志:" required prop="modifications">
2083
                                       <el-form-item label="修改标志:" required prop="modifications">
2084
                                         <el-select style="width:150px"  v-model="qualityFormSeven.modifications">
2084
                                         <el-select style="width:150px"  v-model="qualityFormSeven.modifications">
2085
                                           <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
2085
                                           <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
2234
                                 <div></div>
2234
                                 <div></div>
2235
                               </el-row>
2235
                               </el-row>
2236
                                <el-row>
2236
                                <el-row>
2237
-                                  <el-col :span="12">
2237
+                                  <el-col :span="8">
2238
                                       <el-form-item label="检测合格:" required prop="pass_examination">
2238
                                       <el-form-item label="检测合格:" required prop="pass_examination">
2239
                                         <el-radio v-model="qualityFormThree.pass_examination" label="1">是</el-radio>
2239
                                         <el-radio v-model="qualityFormThree.pass_examination" label="1">是</el-radio>
2240
                                         <el-radio v-model="qualityFormThree.pass_examination" label="2">否</el-radio>
2240
                                         <el-radio v-model="qualityFormThree.pass_examination" label="2">否</el-radio>
2241
                                       </el-form-item>
2241
                                       </el-form-item>
2242
                                   </el-col>
2242
                                   </el-col>
2243
-                                  <el-col :span="12">
2243
+                                  <el-col :span="8">
2244
                                       <el-form-item label="修改标志:" required prop="modifications">
2244
                                       <el-form-item label="修改标志:" required prop="modifications">
2245
                                         <el-select style="width:150px"  v-model="qualityFormThree.modifications">
2245
                                         <el-select style="width:150px"  v-model="qualityFormThree.modifications">
2246
                                           <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
2246
                                           <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
4630
               this.qualityForm.concentrate_noa = '',
4630
               this.qualityForm.concentrate_noa = '',
4631
               this.qualityForm.concentrate_nob = '',
4631
               this.qualityForm.concentrate_nob = '',
4632
               this.qualityForm.sampling_locationa = '',
4632
               this.qualityForm.sampling_locationa = '',
4633
-              this.qualityForm.sampler = ''
4634
-              this.qualityForm.reporting_date = ''
4635
               this.qualityForm.detection_result = ''
4633
               this.qualityForm.detection_result = ''
4636
               this.$refs.mychild.getAllQulityInfo()
4634
               this.$refs.mychild.getAllQulityInfo()
4637
             }else{
4635
             }else{
4683
                 this.qualityFormTwo.concentrate_noc = ''
4681
                 this.qualityFormTwo.concentrate_noc = ''
4684
                 this.qualityFormTwo.concentrateb_nod = ''
4682
                 this.qualityFormTwo.concentrateb_nod = ''
4685
                 this.qualityFormTwo.sampling_locationb = ''
4683
                 this.qualityFormTwo.sampling_locationb = ''
4686
-                this.qualityFormTwo.samplerb = ''
4687
-                this.qualityFormTwo.reporting_dateb = ''
4688
                 this.qualityFormTwo.detection_resultb = ''
4684
                 this.qualityFormTwo.detection_resultb = ''
4689
                
4685
                
4690
               
4686
               
4716
                 var ion = response.data.data.ion
4712
                 var ion = response.data.data.ion
4717
                 this.$message.success('保存成功')
4713
                 this.$message.success('保存成功')
4718
                 this.$refs.mychild.getAllQulityInfo()
4714
                 this.$refs.mychild.getAllQulityInfo()
4719
-                this.qualityFormThree.samplerc = ''
4720
                 this.qualityFormThree.concentrate_nof = ''
4715
                 this.qualityFormThree.concentrate_nof = ''
4721
                 this.qualityFormThree.concentrate_nog = ''
4716
                 this.qualityFormThree.concentrate_nog = ''
4722
-                this.qualityFormThree.date_reportc = ''
4723
                 this.qualityFormThree.actual_na = ''
4717
                 this.qualityFormThree.actual_na = ''
4724
                 this.qualityFormThree.actual_pna = ''
4718
                 this.qualityFormThree.actual_pna = ''
4725
                 this.qualityFormThree.actual_k = ''
4719
                 this.qualityFormThree.actual_k = ''
5104
                 this.qualityFormFour.concentrate_noc = ''
5098
                 this.qualityFormFour.concentrate_noc = ''
5105
                 this.qualityFormFour.concentrateb_nod = ''
5099
                 this.qualityFormFour.concentrateb_nod = ''
5106
                 this.qualityFormFour.sampling_locationb = ''
5100
                 this.qualityFormFour.sampling_locationb = ''
5107
-                this.qualityFormFour.samplerb = ''
5108
-                this.qualityFormFour.reporting_dateb = ''
5101
+             
5109
                 this.qualityFormFour.detection_resultb = ''
5102
                 this.qualityFormFour.detection_resultb = ''
5110
                 
5103
                 
5111
               
5104
               
5149
                 this.qualityFormFive.concentrate_noc = ''
5142
                 this.qualityFormFive.concentrate_noc = ''
5150
                 this.qualityFormFive.concentrateb_nod = ''
5143
                 this.qualityFormFive.concentrateb_nod = ''
5151
                 this.qualityFormFive.sampling_locationb = ''
5144
                 this.qualityFormFive.sampling_locationb = ''
5152
-                this.qualityFormFive.samplerb = ''
5153
-                this.qualityFormFive.reporting_dateb = ''
5154
                 this.qualityFormFive.detection_resultb = ''
5145
                 this.qualityFormFive.detection_resultb = ''
5155
                
5146
                
5156
               
5147
               
5194
                 this.qualityFormSix.concentrate_noc = ''
5185
                 this.qualityFormSix.concentrate_noc = ''
5195
                 this.qualityFormSix.concentrateb_nod = ''
5186
                 this.qualityFormSix.concentrateb_nod = ''
5196
                 this.qualityFormSix.sampling_locationb = ''
5187
                 this.qualityFormSix.sampling_locationb = ''
5197
-                this.qualityFormSix.samplerb = ''
5198
-                this.qualityFormSix.reporting_dateb = ''
5199
                 this.qualityFormSix.detection_resultb = ''
5188
                 this.qualityFormSix.detection_resultb = ''
5200
              
5189
              
5201
               
5190
               
5241
                 this.qualityFormSeven.concentrate_noc = ''
5230
                 this.qualityFormSeven.concentrate_noc = ''
5242
                 this.qualityFormSeven.concentrateb_nod = ''
5231
                 this.qualityFormSeven.concentrateb_nod = ''
5243
                 this.qualityFormSeven.sampling_locationb = ''
5232
                 this.qualityFormSeven.sampling_locationb = ''
5244
-                this.qualityFormSeven.samplerb = ''
5245
-                this.qualityFormSeven.reporting_dateb = ''
5246
                 this.qualityFormSeven.detection_resultb = ''
5233
                 this.qualityFormSeven.detection_resultb = ''
5247
               
5234
               
5248
               
5235
               

+ 36 - 4
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

319
             </el-tabs>
319
             </el-tabs>
320
           </div>
320
           </div>
321
           <div style="height:100%;" v-show="showTwo">
321
           <div style="height:100%;" v-show="showTwo">
322
-            <el-tabs class="rightTabs" v-model="activeName">
322
+            <el-tabs class="rightTabs" v-model="activeName" >
323
               <el-tab-pane label="项目列表" name="1">
323
               <el-tab-pane label="项目列表" name="1">
324
                 <div style="margin-bottom:5px;">
324
                 <div style="margin-bottom:5px;">
325
                   <!--<el-input style="width:50%;" v-model="input" placeholder=""></el-input>-->
325
                   <!--<el-input style="width:50%;" v-model="input" placeholder=""></el-input>-->
433
   import selectTemplate from './selectTemplate'
433
   import selectTemplate from './selectTemplate'
434
   import saveTemplate from './saveTemplate'
434
   import saveTemplate from './saveTemplate'
435
   import additionalCharges from './additionalCharges'
435
   import additionalCharges from './additionalCharges'
436
-  import { addProjectTeam, getAllProjectTeam, getHisProject, getPojectListById } from '@/api/project/project'
436
+  import { addProjectTeam, getAllProjectTeam, getHisProject, getPojectListById,getAllProjectList } from '@/api/project/project'
437
   import { uParseTime } from '@/utils/tools'
437
   import { uParseTime } from '@/utils/tools'
438
   import NextOrLastPrescription from './nextOrLastPrescription'
438
   import NextOrLastPrescription from './nextOrLastPrescription'
439
   import CallPrescription from './callPrescription'
439
   import CallPrescription from './callPrescription'
572
               return time.getTime() <= new Date(beginDateVal).getTime()
572
               return time.getTime() <= new Date(beginDateVal).getTime()
573
             }
573
             }
574
           }
574
           }
575
-        }
575
+        },
576
+        hisList:[]
576
 
577
 
577
       }
578
       }
578
     },
579
     },
1655
             this.prescription_id = this.prescriptions[i].id
1656
             this.prescription_id = this.prescriptions[i].id
1656
             this.$emit('event1', this.prescription_id)
1657
             this.$emit('event1', this.prescription_id)
1657
             this.curPrescriptions = this.prescriptions[i]
1658
             this.curPrescriptions = this.prescriptions[i]
1659
+
1658
             this.teamList = []
1660
             this.teamList = []
1659
             this.curDrugs = []
1661
             this.curDrugs = []
1660
             this.$refs.multipleTable.clearSelection()
1662
             this.$refs.multipleTable.clearSelection()
1697
 
1699
 
1698
       },
1700
       },
1699
       setData(data, info, admin_info, doctors, department, hisPatientInfo, month_data) {
1701
       setData(data, info, admin_info, doctors, department, hisPatientInfo, month_data) {
1702
+     
1700
         this.curMonthPrescriptions = {}
1703
         this.curMonthPrescriptions = {}
1701
         this.curPrescriptions = {}
1704
         this.curPrescriptions = {}
1702
 
1705
 
2226
       selectDrugs(selection, row) {
2229
       selectDrugs(selection, row) {
2227
         this.curDrugs = selection
2230
         this.curDrugs = selection
2228
       },
2231
       },
2232
+    
2229
       comfirm() {
2233
       comfirm() {
2234
+        console.log("222222222222",this.curPrescriptions)
2235
+   
2230
         if (this.dayorMonth == 'month') {
2236
         if (this.dayorMonth == 'month') {
2231
           this.$message.error('月结状态下,无法添加药品或者项目')
2237
           this.$message.error('月结状态下,无法添加药品或者项目')
2232
           return
2238
           return
2361
               this.curStatus = 1
2367
               this.curStatus = 1
2362
             }
2368
             }
2363
 
2369
 
2370
+           if(this.activeName == 2){
2371
+             
2372
+              for(let i = 0; i<temp2.length;i++){
2373
+               for(let j=0;j<this.hisList.length;j++){
2374
+                   if(temp2[i].id == this.hisList[j].project_id){
2375
+                      temp2[i].total =  this.hisList[j].number
2376
+                   }
2377
+               }
2378
+              }
2379
+            }
2380
+          
2381
+
2364
             if (temp2.length > 0) {
2382
             if (temp2.length > 0) {
2383
+              console.log("temp2222222222",temp2)
2365
               for (let b = 0; b < temp2.length; b++) {
2384
               for (let b = 0; b < temp2.length; b++) {
2366
                 let obj = {
2385
                 let obj = {
2367
                   id: 0,
2386
                   id: 0,
2429
         getAllProjectTeam().then(response => {
2448
         getAllProjectTeam().then(response => {
2430
           if (response.data.state == 1) {
2449
           if (response.data.state == 1) {
2431
             var team = response.data.data.team
2450
             var team = response.data.data.team
2451
+            console.log("team2222",team) 
2432
             this.tabPrjectTeam = team
2452
             this.tabPrjectTeam = team
2433
           }
2453
           }
2434
         })
2454
         })
2435
       },
2455
       },
2436
       selectTeam(row) {
2456
       selectTeam(row) {
2457
+        console.log("row",row)
2437
         var arr = []
2458
         var arr = []
2438
         for (let i = 0; i < row.length; i++) {
2459
         for (let i = 0; i < row.length; i++) {
2439
           arr.push(row[i].project_id)
2460
           arr.push(row[i].project_id)
2484
 
2505
 
2485
         }
2506
         }
2486
 
2507
 
2508
+      },
2509
+      getAllProjectList(){
2510
+        getAllProjectList().then(response=>{
2511
+          if(response.data.state == 1){
2512
+            var hisprojectlist = response.data.data.hisprojectlist
2513
+             console.log("hisprojectlist",hisprojectlist)
2514
+             this.hisList = hisprojectlist
2515
+          }
2516
+        })
2487
       }
2517
       }
2488
     }, mounted() {
2518
     }, mounted() {
2489
       this.request_record_date = this.record_date
2519
       this.request_record_date = this.record_date
2492
       this.getlist()
2522
       this.getlist()
2493
       //获取所以项目组套
2523
       //获取所以项目组套
2494
       this.getAllProjectTeam()
2524
       this.getAllProjectTeam()
2525
+      
2526
+      this.getAllProjectList()
2495
       this.$nextTick(() => {
2527
       this.$nextTick(() => {
2496
         this.multipleTableHeight = parseInt(this.$refs.rightTable.offsetHeight)
2528
         this.multipleTableHeight = parseInt(this.$refs.rightTable.offsetHeight)
2497
       })
2529
       })
2498
-
2530
+      
2499
     },
2531
     },
2500
     watch: {
2532
     watch: {
2501
 
2533
 

+ 2 - 3
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue 查看文件

378
       },
378
       },
379
     },mounted(){
379
     },mounted(){
380
       this.getInitData()
380
       this.getInitData()
381
+     
381
     },
382
     },
382
-    created(){
383
-      console.log("数据元",this.prescription)
384
-    }
383
+    
385
   }
384
   }
386
 </script>
385
 </script>
387
 
386