Browse Source

Signed-off-by: zhaobao <528046418@qq.com>

zhaobao 1 year ago
parent
commit
10d47a9387

+ 0 - 28
components/AuthorizedLogin/index.js

@@ -1,28 +0,0 @@
-import loginModelVue from './index.vue';
-const loginModel = {};
-loginModel.install = function(Vue, options) {
-  const loginModelInstance = Vue.extend(loginModelVue);
-  let currentModel;
-  const initInstance = () => {
-    currentModel = new loginModelInstance();
-    let msgBoxEl = currentModel.$mount().$el;
-    document.body.appendChild(msgBoxEl);
-  };
-  Vue.prototype.$authologin = {
-    show(options) {
-      if (!currentModel) {
-        initInstance();
-      }
-      if (typeof options === 'string') {
-        currentModel.content = options;
-      } else if (typeof options === 'object') {
-        Object.assign(currentModel, options);
-      }
-      return currentModel;
-    },
-	hide(){
-		currentModel.show=false
-	}
-  };
-};
-export default loginModel;

+ 0 - 107
components/AuthorizedLogin/index.vue

@@ -1,107 +0,0 @@
-<template>
-	<view class="authorizedLogin-container" v-if="show">
-		<image src="/static/logo.png" class="logo"></image>
-		<view class="statement">
-			<label>
-				<label class="radio" @click="changecheck">
-					<radio class="check-bt" value="1" :checked="checked" style="transform:scale(0.6)" />
-					<text>我已阅读并同意</text>
-					<text class="link" @click="statement">《隐私政策》</text>
-					<text>首次使用自动注册登录</text>
-				</label>
-			</label>
-		</view>
-		<div class="btn-submit" @click="loginsubmit">一键登录</div>
-	</view>
-</template>
-
-<script>
-	import { wxLogin} from '@/api/openApi.js'
-	export default {
-		name:"AuthorizedLogin",
-		data() {
-			return {
-				show:true,
-				checked:true
-			};
-		},
-		methods:{
-			loginsubmit(){
-				let self=this;
-				uni.getProvider({
-					service:"oauth",
-					success(res){
-						let provider=res.provider
-						uni.login({
-							provider,
-							success: function (loginRes) {
-								let code=loginRes.code;
-								wxLogin(code).then((resp)=>{
-									const { code, data, msg } = resp
-									debugger
-									if(data){
-										if(data&&data.unionid){
-											uni.setStorageSync('unionid',data.unionid)
-										}
-									}
-								})
-							}						
-						})					
-					}
-				})
-			},			
-			changecheck(){
-				this.checked= !this.checked
-			},
-			statement(){
-				
-			}
-		}
-	}
-</script>
-
-<style lang="scss" scoped>
-	.authorizedLogin-container{
-		position: fixed;
-		left: 0;
-		right: 0;
-		top: 0;
-		bottom: 0;
-		background-color: rgba(255,255,255,1);
-		z-index: 999;
-		padding: 20rpx;
-		box-sizing: border-box;
-		.logo{
-			display: block;
-			width: 100rpx;
-			height: 100rpx;
-			margin: 100rpx auto;
-		}
-		.statement{
-			font-size: 24rpx;
-			color: #666;
-			.check-bt{
-				::v-deep .uni-radio-input{
-					margin-right: 0 !important;
-				}
-			}
-			.link{
-				color: #3D90F4;
-			}
-		}
-		.btn-submit{
-			width: 600rpx;
-			height: 72rpx;
-			line-height: 72rpx;	
-			text-align: center;							
-			background:#3D90F4;
-			border-radius: 42rpx;	
-			font-size: 32rpx;
-			font-family: PingFang SC;
-			font-weight: 400;
-			color: #FFFFFF;
-			z-index: 999;
-			margin: 50rpx auto;
-		}
-	}
-</style>

+ 0 - 94
components/ChecklistItem.vue

@@ -1,94 +0,0 @@
-<template>
-  <ul v-if="data">
-    <li v-for="(item, itemIdx) in data" :key="item.itemCode">
-      <checklist-item :data="item.children" @change="change" />
-      <ul class="point-container">
-        <li v-for="(point, pointIdx) in item.pointList" :key="point.pointCode" class="checklist-point">
-          <uni-row>
-            <uni-col :span="2">
-              <text> {{ pointIdx + 1 }}</text>
-            </uni-col>
-            <uni-col :span="18">
-              <text > {{ point.pointContent }} </text>
-			  <view class="uni-rate-container">
-				  <text>评价</text>
-			  	<uni-rate v-model="point.score" @change="changePoint(point)" />
-			  </view>
-            </uni-col>
-          </uni-row>
-        </li>
-      </ul>
-    </li>
-  </ul>
-</template>
-
-<script>
-import ChecklistItem from '@/components/ChecklistItem.vue'
-export default {
-  name: 'ChecklistItem',
-  props: {
-	value:{
-		type:[String,Number]
-	},	  
-    data: {
-      type: Array,
-      default:()=>[]
-    }
-  },
-  data(){
-	  return{
-		  items:[]
-	  }
-  },
-  components:{
-  	ChecklistItem
-  },
-  methods: {
-	changePoint(item){
-		var items=JSON.parse(JSON.stringify(this.items))
-		var inItems=false;
-		if(items.length>0){
-			inItems=items.filter((_item)=>_item.pointId===item.pointId).length>0
-		}	
-		if(!inItems){
-			items.push({
-				...item
-			})
-		}else{	
-			for(let i=0;i<items.length;i++){
-				if(items[i].pointId===item.pointId){items[i].score=item.score}
-			}
-		}
-		this.items=items
-		this.$emit("change",items);		
-	},
-	change(items){
-		this.$emit("change",items);	
-	}
-  }
-}
-</script>
-<style lang="scss" scoped>
-ul {
-  list-style-type: none;
-  .uni-col-3{
-    min-height: 1px;
-  }
-}
- .checklist-item {
-    color: #F7F7F7;
-    padding: 20upx 0;
-    line-height: 1;
- }
-
- .checklist-point {
-   padding-top: 20upx;
-   line-height: 1;
- }
-.uni-rate-container{
-	display: flex;
-	justify-content: flex-start;
-	align-items: center;
-	padding-top: 16upx;
-}
-</style>

+ 0 - 53
components/appraise.vue

@@ -1,53 +0,0 @@
-<template>
-	<view class="appraise-Form">
-		<uni-forms :modelValue="formData" label-width="120">
-			<uni-forms-item label="卡号" name="cardNo">
-				<uni-easyinput type="text" trim="all" v-model="formData.cardNo" placeholder="请输入卡号" />
-			</uni-forms-item>
-			<uni-forms-item  name="remark" label="备注">
-				<uni-easyinput type="textarea" autoHeight v-model="formData.remark" placeholder="请输入备注" trim="all"></uni-easyinput>
-			</uni-forms-item>						
-		</uni-forms>
-		<button class="submit-BT" type="primary" @click="submitForm">提交</button>		
-	</view>
-</template>
-
-<script>
-	export default {
-		name:"appraise",
-		data() {
-			return {
-				formData:{
-					remark:"",
-					cardNo:undefined
-				}
-			};
-		},
-		methods:{
-			submitForm(){	
-				this.$emit('submit',this.formData)				
-			},
-			reset(){
-				this.formData={
-					remark:"",
-					cardNo:undefined					
-				}
-			}
-		}
-	}
-</script>
-
-<style lang="less" scoped>
-	.appraise-Form{
-		.submit-BT{
-			color: #fff;
-			background-color: #007aff !important;
-			margin-top: 60upx;
-		}	
-		.uni-rate-container{
-			height: 100%;
-			display: flex;
-			align-items: center;
-		}
-	}
-</style>

+ 0 - 85
components/checkListItemTree.vue

@@ -1,85 +0,0 @@
-<template>
-  <ul v-if="data">
-    <li v-for="(item, itemIdx) in data" :key="item.itemCode">
-     <uni-row class="checklist-item">
-        <uni-col :span="3">
-          <template v-if="item.itemType === 1"></template>
-          <text style="padding-left: 8px;" v-else />
-        </uni-col>
-        <uni-col :span="2">
-          <text>{{ itemIdx + 1 }}</text>
-        </uni-col>
-        <uni-col :span="18">
-          <text>{{ item.itemTitle }}</text>
-        </uni-col>
-      </uni-row>
-      <checklist-item :data="item.children" @change="changePoint" />
-      <ul class="point-container">
-        <li v-for="(point, pointIdx) in item.pointList" :key="point.pointCode" class="checklist-point" @click="changePoint(point)">
-          <uni-row>
-            <uni-col :span="2">
-              <text> {{ pointIdx + 1 }}</text>
-            </uni-col>
-            <uni-col :span="18">
-              <text > {{ point.pointContent }} </text>
-			  <view class="uni-rate-container">
-				  <text>评价</text>
-			  	<uni-rate v-model="formData.score" />
-			  </view>
-            </uni-col>
-          </uni-row>
-        </li>
-      </ul>
-    </li>
-  </ul>
-</template>
-
-<script>
-import ChecklistItem from '@/components/ChecklistItem.vue'
-export default {
-  name: 'ChecklistItem',
-  props: {
-	value:{
-		type:[String,Number]
-	},	  
-    data: {
-      type: Array,
-      default:()=>[]
-    }
-  },
-  components:{
-  	ChecklistItem
-  },
-  methods: {
-	changePoint(item){
-		this.$emit("input", item.pointId);
-		this.$emit("change",item);
-	}
-  }
-}
-</script>
-<style lang="scss" scoped>
-ul {
-  padding-left: 20upx!important;
-  list-style-type: none;
-  .uni-col-3{
-    min-height: 1px;
-  }
-}
- .checklist-item {
-    color: #F7F7F7;
-    padding: 20upx 0;
-    line-height: 1;
- }
-
- .checklist-point {
-   padding-top: 20upx;
-   line-height: 1;
- }
-.uni-rate-container{
-	display: flex;
-	justify-content: flex-start;
-	align-items: center;
-	padding-top: 16upx;
-}
-</style>

+ 0 - 20
components/createChecklist.vue

@@ -1,20 +0,0 @@
-<template>
-	<view>
-		
-	</view>
-</template>
-
-<script>
-	export default {
-		name:"createChecklist",
-		data() {
-			return {
-				
-			};
-		}
-	}
-</script>
-
-<style>
-
-</style>

+ 0 - 51
components/riskPiont.vue

@@ -1,51 +0,0 @@
-<template>
-	<uni-list >
-		<uni-list-item title="名称" :rightText="target.riskPointTitle"></uni-list-item>
-		<uni-list-item title="等级" :rightText="target.riskPointLevel|level"></uni-list-item>
-		<uni-list-item title="类别" :rightText="target.riskPointCatTitle"></uni-list-item>	
-		<uni-list-item title="部门" :rightText="target.groupName"></uni-list-item>
-		<uni-list-item title="描述" :note="target.riskPointDesc"></uni-list-item>	
-	</uni-list>	
-</template>
-
-<script>
-	export default {
-		name:"targetListRisk",
-		props:{
-			target:{
-				type:Object,
-				default:()=>{
-					return{
-						riskPointTitle: "",
-						riskPointLevel: "",
-						groupName: "",
-						riskPointCatTitle: "",
-						accountName: "",
-						riskPointDesc: ""	  						
-					}
-				}
-			}
-		},
-		filters: {
-			level(val) {
-				const strs = [
-				  '默认',
-				  '重大',
-				  '较大',
-				  '一般',
-				  '较小'
-				]
-			  return strs[val]
-			}
-		},		
-		data() {
-			return {
-				items:[]
-			};
-		}
-	}
-</script>
-
-<style>
-
-</style>

+ 0 - 124
components/riskPiontForm.vue

@@ -1,124 +0,0 @@
-<template>
-	<view class="risk-Form">
-		<uni-forms :modelValue="formData" label-width="120">
-			<uni-forms-item label="检查结果" name="cardNo">
-				<div class="check-result">
-					<div class="tag-item" @click="inspectResultChange(1)" :class="form.checkResult===1?'active':''">通过</div>
-					<div class="tag-item" @click="inspectResultChange(-1)" :class="form.checkResult===-1?'active':''">不通过</div>
-					<div class="tag-item" @click="inspectResultChange(0)" :class="form.checkResult===0?'active':''">不涉及</div>
-				</div>
-			</uni-forms-item>
-			<uni-forms-item  name="remark" label="说明">
-				<uni-easyinput type="textarea" autoHeight v-model="form.checkDesc" placeholder="请输入说明信息" trim="all"></uni-easyinput>
-			</uni-forms-item>						
-		</uni-forms>
-		<button class="submit-BT" type="primary" @click="submit">提交</button>		
-	</view>
-</template>
-
-<script>
-	 import { updateCheckTaskDoingItem } from '@/api/system/checkTaskDoingApi.js'
-	export default {
-		name:"riskPiontForm",
-		data(){
-		  return{
-			fileList:[],
-			form:{
-				taskId: undefined,
-				checkRecordId: undefined,
-				checkResult: 1,
-				checkDesc: '',
-				dangerId: undefined,
-				attachList: []
-			}
-		  }
-		},
-		methods:{
-			inspectResultChange(result){
-				this.form.checkResult=result
-			},
-			submit(){	
-				const taskId=this.taskId
-				const checkRecordId=this.checkRecordId
-				let form={
-					taskId: taskId,
-					checkRecordId: checkRecordId,
-					checkResult:this.form.checkResult,
-					checkDesc:this.form.checkDesc,
-					dangerId:this.form.dangerId,
-					attachList:this.form.attachList       
-				}
-				if(this.form.checkResult===-1){
-					if(this.isEmpty(this.form.checkDesc)){
-						uni.showToast({
-							icon:'none',
-							title: '请填写不通过理由'
-						});
-						return
-					}
-				}
-				updateCheckTaskDoingItem(form).then(()=>{
-					uni.showToast({
-						icon:'none',
-						title: '提交成功!'
-					});
-				})
-			},
-			validate(callback){
-				var rulesKeys=Object.keys(this.rules)
-				for(let i=0;i<rulesKeys.length;i++){
-					if(this.isEmpty(this.form[rulesKeys[i]])){
-						uni.showToast({
-							icon:'none',
-							title: this.rules[rulesKeys[i]][0].message||'请检查表单'
-						});
-						return false
-					} 
-				}
-				callback()
-			},
-			isEmpty(val){
-				if(val!==undefined&&val!=="undefined"&&val!==null&&val!==""){
-					return false
-				}
-				return true
-			}        
-		}
-	}
-</script>
-
-<style lang="scss">
-	.risk-Form{
-		padding: 20rpx;
-		.check-result{
-			&{
-				display: flex;
-				justify-content: flex-start;
-				flex-wrap: wrap;
-			}
-			.tag-item{
-				width: 180rpx;
-				height: 64rpx;
-				background: #E5E5E5;
-				border-radius: 4px;
-				font-size: 32rpx;
-				font-family: PingFang SC;
-				font-weight: 500;
-				color: #555555;   
-				text-align: center; 
-				line-height: 64rpx; 
-				margin-right: 20rpx;  
-				margin-bottom: 33rpx; 
-			    &.active{
-					background: #11C786;
-					color: #fff;					   
-			    }
-			}			
-		}	
-		.submit-BT{
-			color: #fff;
-			background-color: #007aff !important;
-			margin-top: 60upx;
-		}	
-	}
-</style>

+ 0 - 32
components/targetListChecklist.vue

@@ -1,32 +0,0 @@
-<template>
-	<uni-list >
-		<uni-list-item v-for="(item,index) in data" :key="index" :title="item.checklistTitle" 
-		:rightText="data.length>1?'请选择':''" :clickable="data.length>1" :showArrow="data.length>1"
-		@click="getChecklist(item)"></uni-list-item>
-	</uni-list>
-</template>
-
-<script>
-	export default {
-		name:"targetListChecklist",
-		props:{
-			value:{
-				type:[String,Number]
-			},
-			data:{
-				type:[Array,Object],
-				default:()=>[]				
-			}
-		},
-		methods:{
-			getChecklist(item){
-				this.$emit("input", item.checklistId);
-				this.$emit("change", item);
-			}			
-		}
-	}
-</script>
-
-<style>
-
-</style>

+ 0 - 52
components/targetListDoctor/targetListDoctor.vue

@@ -1,52 +0,0 @@
-<template>
-	<uni-list >
-		<uni-list-item title="姓名" :rightText="target.doctorName"></uni-list-item>
-		<uni-list-item title="所属部门" :rightText="target.groupName"></uni-list-item>
-		<uni-list-item title="岗位" :rightText="target.positionName"></uni-list-item>	
-		<uni-list-item title="职称" :rightText="target.doctorProfessionalId|doctorProfessionalIdFilter"></uni-list-item>
-		<uni-list-item title="个人履历" :note="target.doctorResume"></uni-list-item>	
-		<uni-list-item title="描述" :note="target.doctorDesc"></uni-list-item>	
-	</uni-list>	
-</template>
-
-<script>
-	export default {
-		name:"targetListDoctor",
-		props:{
-			target:{
-				type:Object,
-				default:()=>{
-					return{
-						checklistNum:"",
-						doctorCode: "",
-						doctorDesc: "",
-						doctorId: "",
-						doctorName: "",
-						doctorProfessionalId:"",
-						doctorResume: "",
-						groupId: "",
-						groupName: "",
-						ocId: "",
-						positionId: "",
-						positionName: ""							
-					}
-				}
-			}
-		},
-		filters: {
-			doctorProfessionalIdFilter(val) {
-			  const professionalMap = ['主任医师', '副主任医师', '主治医师', '医师', '医士']
-			  return professionalMap[val]
-			}
-		},		
-		data() {
-			return {
-				items:[]
-			};
-		}
-	}
-</script>
-
-<style>
-
-</style>

+ 0 - 47
components/targetListGrid.vue

@@ -1,47 +0,0 @@
-<template>
-	<uni-list >
-		<uni-list-item title="网格名称" :rightText="target.gridTitle"></uni-list-item>
-		<uni-list-item v-if="target.gridLevel" title="等级" :rightText="target.gridLevel | gridLevelFilter"></uni-list-item>
-		<uni-list-item title="责任部门" :rightText="target.groupName"></uni-list-item>	
-		<uni-list-item title="责任岗位" :rightText="target.positionName"></uni-list-item>
-		<uni-list-item title="责任人" :rightText="target.accountName"></uni-list-item>	
-		<uni-list-item title="说明" :note="target.gridDesc"></uni-list-item>	
-	</uni-list>	
-</template>
-
-<script>
-	export default {
-		name:"targetListGrid",
-		props:{
-			target:{
-				type:Object,
-				default:()=>{
-					return{
-						gridTitle: "",
-						gridLevel: "",
-						groupName: "",
-						positionName: "",
-						accountName: "",
-						gridDesc: ""					
-					}
-				}
-			}
-		},	
-		filters: {
-			gridLevelFilter(gridLevel) {
-			if(!gridLevel) return '未设定';
-			  const gridLevelMap = ['未设定', '重大', '较大', '一般', '较小']
-			  return gridLevelMap[gridLevel]
-			}
-		},			
-		data() {
-			return {
-				
-			};
-		},
-	}
-</script>
-
-<style>
-
-</style>