ソースを参照

确权调查移动端

wulanhaote
yujk 3年前
コミット
3f3689f96c
2個のファイルの変更28行の追加2行の削除
  1. +8
    -0
      src/api/authenticRight/index.js
  2. +20
    -2
      src/views/authenticRight/index.vue

+ 8
- 0
src/api/authenticRight/index.js ファイルの表示

@@ -62,3 +62,11 @@ export function listSamplingDept(data){
params:data
})
}
// 修改农户抽样
export function uploadFile(data) {
return request({
url: '/transaction/website/ocr/idcard',
method: 'post',
data: data
})
}

+ 20
- 2
src/views/authenticRight/index.vue ファイルの表示

@@ -111,7 +111,13 @@
label-width="120px"
placeholder="被核查人姓名"
:rules="[{ required: true, message: '请填写被核查人姓名' }]"
/>
>
<template #button>
<van-uploader :after-read="afterRead" v-model="fileList" :preview-image="false" :max-count="1">
<van-button icon="photograph" type="primary" size="mini">扫描身份证</van-button>
</van-uploader>
</template>
</van-field>
<van-field
v-model="xcdcform.idcardCheckedBy"
name="idcardCheckedBy"
@@ -474,7 +480,7 @@
getInvestigate,
listSampling, listSamplingDept,
updateInvestigate,
updateSampling
updateSampling, uploadFile
} from "../../api/authenticRight";
import {getDeptList} from "../../api/biddingHall";
import {Dialog} from "vant";
@@ -613,6 +619,7 @@
userId :null,
nickName:null,
currentValue:null,
fileList:[]
}
},
created(){
@@ -631,6 +638,17 @@

},
methods:{
afterRead(file) {
const data = new FormData();
data.append("file", this.fileList[0].file);
uploadFile(data).then(res => {
if(res.code == 200){
this.xcdcform.idcardCheckedBy = res.idcardCheckedBy
this.xcdcform.nameCheckedBy = res.nameCheckedBy
this.fileList=[]
}
})
},
changeFn(val) {
},
confirmFn(){


読み込み中…
キャンセル
保存