diff --git a/src/views/homesteadSurvey/add.vue b/src/views/homesteadSurvey/add.vue
index 5f6ec358..9480f2b3 100644
--- a/src/views/homesteadSurvey/add.vue
+++ b/src/views/homesteadSurvey/add.vue
@@ -447,8 +447,15 @@
maxlength="200"
/>
-
-
保存
+
+
+ 待核查
+ 已核查
+ 已驳回
+ 有异常
+ 无异常
+
+
保存
@@ -475,7 +482,7 @@
查看成员
-
+
@@ -512,7 +519,7 @@
查看房屋列表
-
+
@@ -572,7 +579,7 @@
查看附属设施信息
-
+
@@ -582,8 +589,9 @@
- 异常标记
- 签名确认
+ 异常标记
+ 签名确认
+ 调查审核
@@ -2658,7 +2666,7 @@
{{yhzgxfy(item.yhzgx)}}
-
+
@@ -2701,8 +2709,8 @@
查看房屋信息
-
-
+
+
@@ -2746,10 +2754,30 @@
+
+
+
+
+
关闭
+
+
+
+
+ 通过
+ 驳回
+
+
+
+
+
+ 保存
+
+
0){
+ let li = this.form.yctp.split(",");
+ li.map(res => {
+ this.fileListyc.push({"url":this.baseUrl+res,"baseUrl":res})
+ })
+ }
}else{
this.isyc = "Y"
this.ycms = ""
}
},
+ savesh(){
+ this.showdcsh = false
+ this.form.zjdAudit = this.zjdAudit
+ this.form.zuditRemark = this.zuditRemark
+ },
saveyc(){
this.showycbj = false
this.form.isyc = this.isyc
this.form.ycms = this.ycms
},
+ // 图片上传前
+ beforeReadyc(file){
+ // 创建Canvas对象(画布)
+ let canvas = document.createElement('canvas')
+ // 获取对应的CanvasRenderingContext2D对象(画笔)
+ let context = canvas.getContext('2d')
+ // 创建新的图片对象
+ let img = new Image()
+ // 指定图片的DataURL(图片的base64编码数据)
+ img.src = file.content
+ // 监听浏览器加载图片完成,然后进行进行绘制
+ const height = 166
+ const width = 316
+ img.onload = () => {
+ const h = img.height
+ const w = img.width
+ let ch = img.height/6
+ let cw = img.width/6
+ let canvas = document.createElement('canvas')
+ let ctx = canvas.getContext('2d')
+ canvas.height = ch
+ canvas.width = cw
+ ctx.clearRect(0,0,cw,ch)
+ ctx.drawImage(img,0,0,cw,ch)
+ let base_img = canvas.toDataURL('image/jpeg')
+ const blobBin = atob(base_img.split(',')[1])
+ let d = []
+ for (let i=0;i {
+ if(this.form.yctp!=null&&this.form.yctp!=""){
+ this.form.yctp = this.form.yctp + "," + res.fileName
+ }else{
+ this.form.yctp = res.fileName
+ }
+ })
+ }
+ },
+ // 图片删除
+ deleteFileyc(file){
+ let url = ","+file.baseUrl
+ let url1 = file.baseUrl+","
+ let url2 = file.baseUrl
+ this.form.yctp = this.form.yctp.replaceAll(url,"")
+ this.form.yctp = this.form.yctp.replaceAll(url1,"")
+ this.form.yctp = this.form.yctp.replaceAll(url2,"")
+ },
shownmfwlist(item){
this.zrzh = item.zrzh
this.shownmfw = true
@@ -4269,6 +4380,7 @@
this.fileListzjd.push({"url":this.baseUrl+res,"baseUrl":res})
})
}
+
this.lyzkOptions.map(res => {
if(res.dictValue == this.form.lyzk){
this.form.lyzkName = res.dictLabel
@@ -5652,69 +5764,81 @@
},
// 生成签字图
handleGenerate() {
- this.$refs.esign
- .generate() // 使用生成器调用把签字的图片转换成为base64图片格式
- .then((res) => {
- this.resultImg = res;
- })
- .catch((err) => {
- // 画布没有签字时会执行这里提示一下
- this.$message({
- type: "warning",
- message: "请签名后再生成签字图片",
+ if(this.resultImg==null||this.resultImg==''){
+ this.$refs.esign
+ .generate() // 使用生成器调用把签字的图片转换成为base64图片格式
+ .then((res) => {
+ this.resultImg = res;
+ })
+ .catch((err) => {
+ // 画布没有签字时会执行这里提示一下
+ this.$message({
+ type: "warning",
+ message: "请签名后再生成签字图片",
+ });
});
- });
-
- // 在这里向后端发请求把转换后的base64文件传给后端,后端接收以后再转换成图片做静态图片存储
- // 当然也可以把base64转成流文件blob格式的,类似上传给后端这样,具体哪种方式看后端要求
- setTimeout(() => {
- // 这里要使用定时器稍微延后以后就能取到base64数据了,当然也可以再加一个确认按钮,如:确认使用这张base64签名图片
- // 点击确认以后,在其回调函数中,再把base64的签名图片传给后端用于存储
- const blobBin = atob(this.resultImg.split(',')[1])
- let d = []
- for (let i=0;i {
- this.form.dzqm = res.fileName
- this.form.houseDataConfirmStatus = "CONFIRMED"
- if(this.form.zjddm !="" && this.form.zjddm !=undefined && this.form.zjddm !=null && this.form.isyc =="N"){
- updateZrzZtN(this.form.zjddm).then(response => {});
- updateFsssZtN(this.form.zjddm).then(response => {});
- }else {
- updateZrzZtY(this.form.zjddm).then(response => {});
- updateFsssZtY(this.form.zjddm).then(response => {});
+ // 在这里向后端发请求把转换后的base64文件传给后端,后端接收以后再转换成图片做静态图片存储
+ // 当然也可以把base64转成流文件blob格式的,类似上传给后端这样,具体哪种方式看后端要求
+ setTimeout(() => {
+ // 这里要使用定时器稍微延后以后就能取到base64数据了,当然也可以再加一个确认按钮,如:确认使用这张base64签名图片
+ // 点击确认以后,在其回调函数中,再把base64的签名图片传给后端用于存储
+ const blobBin = atob(this.resultImg.split(',')[1])
+ let d = []
+ for (let i=0;i {
- let _this =this
- this.$toast({
- icon: 'success', // 找到自己需要的图标
- message: '修改成功',
- duration:"1000",
- onClose:function(){
- _this.goBack();
- }
+ const data2 = new FormData();
+ data2.append("file", new Blob([new Uint8Array(d)],{type:'image/jpeg'}));
+ uploadFile(data2).then(res => {
+ this.form.dzqm = res.fileName
+ this.form.houseDataConfirmStatus = "CONFIRMED"
+ if(this.form.zjddm !="" && this.form.zjddm !=undefined && this.form.zjddm !=null && this.form.isyc =="N"){
+ updateZrzZtN(this.form.zjddm).then(response => {});
+ updateFsssZtN(this.form.zjddm).then(response => {});
+ }else {
+ updateZrzZtY(this.form.zjddm).then(response => {});
+ updateFsssZtY(this.form.zjddm).then(response => {});
+ }
+ if (this.form.id != null) {
+ updateZjdzd(this.form).then(response => {
+ let _this =this
+ this.$toast({
+ icon: 'success', // 找到自己需要的图标
+ message: '修改成功',
+ duration:"1000",
+ onClose:function(){
+ _this.goBack();
+ }
+ });
});
- });
- } else {
- addZjdzd(this.form).then(response => {
- let _this =this
- this.$toast({
- icon: 'success', // 找到自己需要的图标
- message: '保存成功',
- duration:"1000",
- onClose:function(){
- _this.goBack();
- }
- })
- });
- }
- })
- }, 200);
+ } else {
+ addZjdzd(this.form).then(response => {
+ let _this =this
+ this.$toast({
+ icon: 'success', // 找到自己需要的图标
+ message: '保存成功',
+ duration:"1000",
+ onClose:function(){
+ _this.goBack();
+ }
+ })
+ });
+ }
+ })
+ }, 200);
+ }else{
+ updateZjdzd(this.form).then(response => {
+ let _this =this
+ this.$toast({
+ icon: 'success', // 找到自己需要的图标
+ message: '修改成功',
+ duration:"1000",
+ onClose:function(){
+ _this.goBack();
+ }
+ });
+ });
+ }
/*this.showesign = false;*/
},
searchCommit(){
diff --git a/src/views/homesteadSurvey/list.vue b/src/views/homesteadSurvey/list.vue
index 9a04cd4a..4599e512 100644
--- a/src/views/homesteadSurvey/list.vue
+++ b/src/views/homesteadSurvey/list.vue
@@ -69,12 +69,12 @@
{{limitWords(item.syqr)}}
查看详情
开始调查
- 删除
+ 删除
无
查看详情
开始调查
- 删除
+ 删除