wangmengwei 2 vuotta sitten
vanhempi
commit
e59ca4d1cc
3 muutettua tiedostoa jossa 94 lisäystä ja 5 poistoa
  1. 9 0
      src/api/system/residentss.js
  2. 2 2
      src/settings.js
  3. 83 3
      src/views/system/residentss/index.vue

+ 9 - 0
src/api/system/residentss.js

@@ -172,6 +172,15 @@ export function updateInfo(data) {
   })
 }
 
+// 全员核酸
+export function updateInfohsxx(query) {
+  return request({
+    url: '/boman-web-core/core/jzdz/isFive',
+    method: 'get',
+    params: query
+  })
+}
+
 // boman-web-core/core/czrk/deleteCzrk
 // 删除疫苗信息
 export function delInfo(query) {

+ 2 - 2
src/settings.js

@@ -2,8 +2,8 @@ module.exports = {
   title: '潜山市人口信息平台',
   // urls: `http://192.168.101.110:8090`,
   // urls: `http://192.168.101.11:8090`,
-  // urls: `http://192.168.101.168:8090`,
-   urls: `https://qsfy.qs163.cn`,
+  urls: `http://192.168.101.168:8090`,
+   // urls: `https://qsfy.qs163.cn`,
 
   /**
    * 侧边栏主题 深色主题theme-dark,浅色主题theme-light

+ 83 - 3
src/views/system/residentss/index.vue

@@ -159,6 +159,9 @@
 
       <el-col :span="1.5">
       	<el-button type="primary" :plain="nhyki" icon="el-icon-view" size="mini"  @click="chajnds" >查看户籍人口信息</el-button>
+      </el-col>\
+      <el-col :span="1.5">
+      	<el-button type="primary" :disabled="multiple" :plain="nhyki" icon="el-icon-view" size="mini"  @click="hsxx" >批量修改全员核酸信息</el-button>
       </el-col>
 
 
@@ -686,6 +689,45 @@
       <el-button type="primary" @click="submitFileForm">确 定</el-button>
       <el-button @click="nske">取 消</el-button>
     </div>
+  </el-dialog>
+
+  <!-- 全员核酸 -->
+  <el-dialog
+    title="修改是否5天一次是否全员核酸"
+    :visible.sync="qyhss"
+    width="40%"
+    style="padding-bottom: 20px;"
+    >
+    <el-form ref="formhs" :model="formhs" :rules="ruleshs" label-width="100px">
+    				<el-row>
+              <el-col :span="24">
+                <!-- <el-col :span="12">
+                    <el-form-item label="来宜号码" prop="hi_phone">
+                    	<el-input :disabled="true" v-model="form.hi_phone" type="input" placeholder="来宜号码" />
+                    </el-form-item>
+                </el-col> -->
+                <el-col :span="24">
+                  <el-form-item label="全员核酸" prop="isNucleicAcidFive">
+                  	<el-select :disabled="isNucleicflag" v-model="formhs.isNucleicAcidFive" placeholder="是否参加5天一次全员核酸" clearable style="width: 100%;">
+                  		<el-option v-for="dict in qyhs" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
+                  	</el-select>
+                  </el-form-item>
+                </el-col>
+
+              </el-col>
+    				</el-row>
+
+    			</el-form>
+    			<div slot="footer" class="dialog-footer">
+    				<el-button type="primary" @click="submitFormhs">确 定</el-button>
+    				<el-button @click="cancelhs">取 消</el-button>
+    			</div>
+
+   <!-- </el-col>
+   <el-col :span="1.5"> -->
+     <!-- :disabled="queryParams.queryType == 'cz'" -->
+
+
   </el-dialog>
 
 
@@ -693,7 +735,7 @@
 </template>
 
 <script>
-import { listInfo, listInfos, listInfosls, getInfo, delInfo, addInfo, updateInfo, exportInfo, listRoleer, idces, delInfort,yiaoe,exportConfig,exportConfigtyr,importLog,listInfotj,listRoleergth,listInfotjxz,listInfotjjs,listInfotjjsfaml,listRoleergthwg,listInfotjjssbule,listInfotjjssquer,treeselectdeptst,listInfotjjsfamlwrl } from '@/api/system/residentss';
+import { listInfo, listInfos, listInfosls, getInfo, delInfo, addInfo, updateInfo, exportInfo, listRoleer, idces, delInfort,yiaoe,exportConfig,exportConfigtyr,importLog,listInfotj,listRoleergth,listInfotjxz,listInfotjjs,listInfotjjsfaml,listRoleergthwg,listInfotjjssbule,listInfotjjssquer,treeselectdeptst,listInfotjjsfamlwrl,updateInfohsxx } from '@/api/system/residentss';
 // import { treeselect } from '@/api/system/dept';
 import { treeselect } from "@/api/system/dept";
 import Treeselect from '@riophae/vue-treeselect';
@@ -731,7 +773,8 @@ export default {
       totalfr:0,
 			// 是否显示弹出层
 			opens: false,
-			process: process.env.VUE_APP_BASE_API,
+			process: process.env.VUE_APP_BASE_API,
+      qyhss:false,//全员核酸
 			// 查询参数
 			queryParams: {
 				pageNum: 1,
@@ -764,7 +807,10 @@ export default {
 			configther:[],
 			configfor:[],
       optionsListwg:[],
-      nhduesw:0,
+      nhduesw:0,
+      formhs:{
+        isNucleicAcidFive:null
+      },
 			// 表单参数
 			form: {
 				nowIn: '',
@@ -837,6 +883,9 @@ export default {
         yhzgx:[{ required: true, message: '请选择与户主关系', trigger: 'blur' }],
         isNucleicAcidFive:[{ required: true, message: '不能为空', trigger: 'blur' }]
       },
+      ruleshs:{
+        isNucleicAcidFive:[{ required: true, message: '不能为空', trigger: 'blur' }]
+      },
       // yhzgx:[{ required: true, message: '请选择与户主关系', trigger: 'blur' }],
 			selected: [],
 			selectedtwo: [],
@@ -3343,6 +3392,37 @@ let reg = /^([1-6][1-9]|50)\d{4}(18|19|20)\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|
         console.log(345)
              this.upload.open = false;
       },
+      // 全员核酸
+      hsxx(){
+         this.qyhss= true
+         this.formhs.isNucleicAcidFive
+      },
+      submitFormhs(){
+        this.$refs['formhs'].validate(valid => {
+          let nhuesf = {}
+          nhuesf.isNucleicAcidFive = this.formhs.isNucleicAcidFive
+          nhuesf.idCardList = this.ids.join(',')
+          updateInfohsxx(nhuesf).then(response => {
+            console.log(response)
+            if(response.code == 200){
+               this.msgSuccess('操作成功');
+               this.qyhss = false;
+               if(this.queryParams.queryType == 'hj'){
+                 this.getList();
+               }else if(this.queryParams.queryType == 'cz'){
+                 this.getListjuzhu();
+               }
+               // this.getTreeselectjuetj()
+               return false
+            }else{
+              this.qyhss = false
+            }
+          });
+        })
+      },
+      cancelhs(){
+        this.qyhss = false
+      }
   // }
 	}
 };