Browse Source

合同审核

shibei_master
ZhaoTongYao 3 years ago
parent
commit
2e36fbb871
  1. 30
      src/views/modules/plugins/rent/rentcontractinfo-add-or-update.vue

30
src/views/modules/plugins/rent/rentcontractinfo-add-or-update.vue

@ -32,7 +32,7 @@
<el-table-column prop="idCard" label="身份证号" header-align="center" align="center"></el-table-column>
<el-table-column prop="imgList" label="照片" header-align="center" align="center">
<template slot-scope="scope">
<div v-for="(item,index) in scope.row.imgList">
<div v-for="(item,index) in scope.row.imgList" :key="index">
<img :src="item.fileUrl" @click="imgShow(item.fileUrl)" width="40" height="40" />
</div>
</template>
@ -83,7 +83,7 @@
<el-form-item label="合同附件" prop="fileList">
<template slot-scope="scope">
<label v-for="(item,index) in dataForm.fileList">
<label v-for="(item,index) in dataForm.fileList" :key="index">
<img :src="item.fileUrl" @click="imgShow(item.fileUrl)" width="100" height="100" />
</label>
</template>
@ -92,8 +92,8 @@
</el-form>
<template slot="footer">
<el-button @click="visible = false">{{ $t('cancel') }}</el-button>
<el-button type="primary" @click="checkHandle(1)">{{ $t('checkTGBtn') }}</el-button>
<el-button type="primary" @click="checkHandle(2)">{{ $t('checkBTGBtn') }}</el-button>
<el-button type="primary" @click="checkHandle('1')">{{ $t('checkTGBtn') }}</el-button>
<el-button type="primary" @click="checkHandle('2')">{{ $t('checkBTGBtn') }}</el-button>
</template>
<el-dialog :visible.sync="dialogVisible" :modal="false">
<img width="100%" :src="dialogImageUrl" alt="">
@ -227,14 +227,24 @@ export default {
},
//
checkHandle: function (type) {
const params = {
id: this.dataForm.id,
state: type
}
this.$http.post('/pli/power/rentContractInfo/review', params).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.$message({
message: type,
type: 'success',
duration: 500,
onClose: () => {
}
message: this.$t('prompt.success'),
type: 'success',
duration: 500,
onClose: () => {
this.visible = false
this.$emit('refreshDataList')
}
})
}).catch(() => {})
},
//
dataFormSubmitHandle: debounce(function () {

Loading…
Cancel
Save