股份端新增上传承诺书功能
parent
54d830c6f6
commit
cb466d63fb
|
@ -44,6 +44,17 @@
|
||||||
<el-date-picker v-model="form.LIMIT_END_TIME" value-format="yyyy-MM-dd" type="date" placeholder="选择日期" style="width:300px "/>
|
<el-date-picker v-model="form.LIMIT_END_TIME" value-format="yyyy-MM-dd" type="date" placeholder="选择日期" style="width:300px "/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col v-if="form.STATUS === '1' && form.TYPE === '2'" :span="12">
|
||||||
|
<el-form-item label="承诺书:" prop="APPOINT_ANNEX">
|
||||||
|
<upload-file
|
||||||
|
:file-list.sync="form.APPOINT_ANNEX"
|
||||||
|
:multiple="false"
|
||||||
|
:accept="'.pdf,.jpg,.png,doc,docx'"
|
||||||
|
:limit="20"
|
||||||
|
:size="1024"
|
||||||
|
:upload-type="1"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
@ -59,9 +70,11 @@
|
||||||
import vueQr from 'vue-qr'
|
import vueQr from 'vue-qr'
|
||||||
import Treeselect from '@riophae/vue-treeselect'
|
import Treeselect from '@riophae/vue-treeselect'
|
||||||
import { requestFN } from '@/utils/request'
|
import { requestFN } from '@/utils/request'
|
||||||
|
import uploadFile from '../../../util/uploadFile/index.vue'
|
||||||
|
import { upload } from '@/utils/upload'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { Treeselect, vueQr },
|
components: { uploadFile, Treeselect, vueQr },
|
||||||
props: {
|
props: {
|
||||||
appendToBody: {
|
appendToBody: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
@ -80,6 +93,7 @@ export default {
|
||||||
APPOINT_DEPARTMENT_NAME: '',
|
APPOINT_DEPARTMENT_NAME: '',
|
||||||
APPOINT_USER_ID: null,
|
APPOINT_USER_ID: null,
|
||||||
APPOINT_USER_NAME: '',
|
APPOINT_USER_NAME: '',
|
||||||
|
APPOINT_ANNEX: null,
|
||||||
OPINION: '',
|
OPINION: '',
|
||||||
STEP: false,
|
STEP: false,
|
||||||
LIMIT_END_TIME: '',
|
LIMIT_END_TIME: '',
|
||||||
|
@ -87,7 +101,8 @@ export default {
|
||||||
tm: new Date().getTime(),
|
tm: new Date().getTime(),
|
||||||
list: [],
|
list: [],
|
||||||
isShow: true,
|
isShow: true,
|
||||||
info: {}
|
info: {},
|
||||||
|
TYPE: null
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
STATUS: [
|
STATUS: [
|
||||||
|
@ -127,6 +142,7 @@ export default {
|
||||||
this.heirloom = JSON.stringify(e)
|
this.heirloom = JSON.stringify(e)
|
||||||
this.form.list = JSON.stringify(e)
|
this.form.list = JSON.stringify(e)
|
||||||
this.form.STEP = (e[0].FLOWS_STEP === 2)
|
this.form.STEP = (e[0].FLOWS_STEP === 2)
|
||||||
|
this.form.TYEP = e[0].FLOWS_TYPE
|
||||||
this.getDepartmentTree()
|
this.getDepartmentTree()
|
||||||
this.loading = false
|
this.loading = false
|
||||||
},
|
},
|
||||||
|
@ -135,16 +151,39 @@ export default {
|
||||||
if (!valid) {
|
if (!valid) {
|
||||||
this.$message.error('请填写完整信息')
|
this.$message.error('请填写完整信息')
|
||||||
} else {
|
} else {
|
||||||
requestFN('/xgf/user/approveMax', this.form)
|
if (this.form.TYPE !== '2') {
|
||||||
.then((data) => {
|
requestFN('/xgf/user/approveMax', this.form)
|
||||||
this.$message.success('推送成功')
|
.then((data) => {
|
||||||
this.visible = false
|
this.$message.success('推送成功')
|
||||||
this.$emit('refresh', '')
|
this.visible = false
|
||||||
this.handleClose()
|
this.$emit('refresh', '')
|
||||||
})
|
this.handleClose()
|
||||||
.catch((e) => {
|
})
|
||||||
console.log(e)
|
.catch((e) => {
|
||||||
|
console.log(e)
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
const formData = new FormData()
|
||||||
|
this.form.chengNuoFlag = '1'
|
||||||
|
Object.keys(this.form).map(key => {
|
||||||
|
formData.append(key, this.form[key])
|
||||||
})
|
})
|
||||||
|
if (this.form.APPOINT_ANNEX) {
|
||||||
|
for (let i = 0; i < this.form.APPOINT_ANNEX.length; i++) {
|
||||||
|
formData.append('weiTuoShu', this.form.APPOINT_ANNEX[i].raw)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
upload('/xgf/user/approveMax', formData)
|
||||||
|
.then((data) => {
|
||||||
|
this.$message.success('推送成功')
|
||||||
|
this.visible = false
|
||||||
|
this.$emit('refresh', '')
|
||||||
|
this.handleClose()
|
||||||
|
})
|
||||||
|
.catch((e) => {
|
||||||
|
console.log(e)
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue