|
|
@@ -45,6 +45,26 @@
|
|
|
button2Name="审核提现"
|
|
|
@handleButton2="handleButton2"
|
|
|
></kt-common-table>
|
|
|
+ <el-dialog
|
|
|
+ :visible.sync="dialogVisibleBatch"
|
|
|
+ width="35%"
|
|
|
+ :before-close="handleCloseBatch">
|
|
|
+ <p >凭证号 :<el-input style="width: 200px;" v-model="voucherId" placeholder="请输入凭证号"></el-input></p>
|
|
|
+ <div style="display: flex">上传图片: <el-upload
|
|
|
+ action="#"
|
|
|
+ :auto-upload="false"
|
|
|
+ accept=".png, .jpg, .jpeg"
|
|
|
+ :show-file-list="false"
|
|
|
+ :on-change="drivingupload">
|
|
|
+ <img v-if="qrCodeImage" :src="qrCodeImage" class="avatar">
|
|
|
+ <i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
+ </el-upload>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="small" @click="dialogVisibleBatch = false">取 消</el-button>
|
|
|
+ <el-button size="small" type="primary" @click="handleSumbit()">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</el-main>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -60,6 +80,11 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ dialogVisibleBatch:false,
|
|
|
+ voucherId:'',
|
|
|
+ qrCodeImage:'',
|
|
|
+ picId:'',
|
|
|
+ rowlist:{},
|
|
|
// 右侧列表查询数据Start
|
|
|
queryForm: {},
|
|
|
pageResult: {},
|
|
|
@@ -128,17 +153,50 @@ export default {
|
|
|
})
|
|
|
.then(data != null ? data.callback : "");
|
|
|
},
|
|
|
- handleButton2({ row, index }) {
|
|
|
- this.$api.task.AmountReview(row).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: res.msg
|
|
|
- });
|
|
|
- this.findPage();
|
|
|
+ drivingupload(file) {
|
|
|
+ let fileRaw = file.raw;
|
|
|
+ this.qrCodeImage = window.URL.createObjectURL(fileRaw);
|
|
|
+ const params = new FormData(); // 声明formData数据类型
|
|
|
+ params.append("multipartFile", fileRaw);
|
|
|
+ params.append("type", "image");
|
|
|
+ this.$api.letter.uploadFile(params).then(res => {
|
|
|
+ if (res.code == "200") {
|
|
|
+ this.picId=res.data.id
|
|
|
+ } else {
|
|
|
+ this.$message({ message: res.msg, type: "warning" });
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ handleSumbit(){
|
|
|
+ this.$api.task.AmountReview({ ...this.rowlist, status: '1',picId:this.picId,voucherId:this.voucherId }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.dialogVisibleBatch = false
|
|
|
+ this.findPage();
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: res.msg
|
|
|
+ });
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.$message.error(res.msg)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handleButton2({ row, index }) {
|
|
|
+ this.dialogVisibleBatch=true
|
|
|
+ this.rowlist=row
|
|
|
+ this.picId=''
|
|
|
+ this.voucherId=''
|
|
|
+ // this.$api.task.AmountReview(row).then(res => {
|
|
|
+ // if (res.code == 200) {
|
|
|
+ // this.$message({
|
|
|
+ // type: "success",
|
|
|
+ // message: res.msg
|
|
|
+ // });
|
|
|
+ // this.findPage();
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ },
|
|
|
handleButton3({ row, index }) {
|
|
|
let auditid = Cookies.get("user"); // 放置token到Cookie
|
|
|
let auditname = Cookies.get("name"); // 放置token到Cookie
|
|
|
@@ -197,5 +255,29 @@ export default {
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
+ .avatar-uploader .el-upload {
|
|
|
+ border: 1px dashed #d9d9d9;
|
|
|
+ border-radius: 6px;
|
|
|
+ cursor: pointer;
|
|
|
+ position: relative;
|
|
|
+ overflow: hidden;
|
|
|
+}
|
|
|
+.avatar-uploader-icon {
|
|
|
+ font-size: 28px;
|
|
|
+ color: #8c939d;
|
|
|
+ width: 150px;
|
|
|
+ height: 150px;
|
|
|
+ line-height: 150px;
|
|
|
+ text-align: center;
|
|
|
+ border: 1px dashed #d9d9d9;
|
|
|
+}
|
|
|
+.avatar {
|
|
|
+ border: 1px dashed #d9d9d9;
|
|
|
+ padding: 5px;
|
|
|
+ border-radius: 6px;
|
|
|
+ width: 150px;
|
|
|
+ height: 150px;
|
|
|
+ display: block;
|
|
|
+}
|
|
|
</style>
|
|
|
|