| | |
| | | trim: true |
| | | }) |
| | | } |
| | | // æ¥è¯¢ |
| | | export function doneApply(data) { |
| | | return request.post('/business/taxes/doneApply', data, { |
| | | trim: true |
| | | }) |
| | | } |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import UploadAvatarImage from '@/components/common/UploadAvatarImage' |
| | | import { all } from '@/api/business/solutions' |
| | | import { sendSms } from '@/api/business/smsEmail' |
| | | export default { |
| | | name: 'OperaCompanyWindow', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow, UploadAvatarImage }, |
| | | data () { |
| | | return { |
| | | // è¡¨åæ°æ® |
| | | form: { |
| | | id: null, |
| | | name: '', |
| | | code: '', |
| | | legalName: '', |
| | | taxCode: '', |
| | | taxAccount: '', |
| | | username: '', |
| | | taxBank: '', |
| | | taxAddr: '', |
| | | invoiceEmail: '', |
| | | invoiceAddr: '', |
| | | phone: '', |
| | | email: '', |
| | | captche: '', |
| | | businessImg: { |
| | | fileurl: '', |
| | | name: '' |
| | | }, |
| | | idcardImgList: [], |
| | | signImg: { |
| | | fileurl: '', |
| | | name: '' |
| | | }, |
| | | solutionList: [ |
| | | { |
| | | solutionBaseId: '', |
| | | canAdd: 0, |
| | | canReduce: 0 |
| | | } |
| | | ], |
| | | type: '', |
| | | file: { |
| | | imgurl: '', |
| | | imgurlfull: '' |
| | | }, |
| | | file1: { |
| | | imgurl: '', |
| | | imgurlfull: '' |
| | | }, |
| | | file2: { |
| | | imgurl: '', |
| | | imgurlfull: '' |
| | | }, |
| | | file3: { |
| | | imgurl: '', |
| | | imgurlfull: '' |
| | | }, |
| | | }, |
| | | timer: null, |
| | | num: 0, |
| | | // éªè¯è§å |
| | | rules: { |
| | | name: [ |
| | | { required: true, message: '请è¾å
¥å
¬å¸åç§°' } |
| | | ], |
| | | code: [ |
| | | { required: true, message: '请è¾å
¥ç»ä¸ä¿¡ç¨ä»£ç ' } |
| | | ], |
| | | captche: [ |
| | | { required: true, message: '请è¾å
¥éªè¯ç ' } |
| | | ], |
| | | legalName: [ |
| | | { required: true, message: '请è¾å
¥æ³äººå§å' } |
| | | ], |
| | | phone: [ |
| | | { required: true, message: '请è¾å
¥ææºå·' } |
| | | ], |
| | | taxAccount: [ |
| | | { required: true, message: '请è¾å
¥ææºå·' } |
| | | ], |
| | | email: [ |
| | | { required: true, message: '请è¾å
¥è®¤è¯é®ç®±' } |
| | | ], |
| | | businessImg: [ |
| | | { required: true, message: '请ä¸ä¼ è¥ä¸æ§ç
§' } |
| | | ], |
| | | idcardImgList: [ |
| | | { required: true, message: '请ä¸ä¼ æ³äººèº«ä»½è¯' } |
| | | ], |
| | | signImg: [ |
| | | { required: true, message: '请ä¸ä¼ çµåç¾ç« ' } |
| | | ], |
| | | username: [ |
| | | { required: true, message: '请è¾å
¥å
¬å¸è´¦å·' } |
| | | ] |
| | | }, |
| | | |
| | | programme: [] |
| | | } |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import UploadAvatarImage from '@/components/common/UploadAvatarImage' |
| | | import { all } from '@/api/business/solutions' |
| | | import { sendSms } from '@/api/business/smsEmail' |
| | | export default { |
| | | name: 'OperaCompanyWindow', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow, UploadAvatarImage }, |
| | | data () { |
| | | return { |
| | | // è¡¨åæ°æ® |
| | | form: { |
| | | id: null, |
| | | name: '', |
| | | code: '', |
| | | legalName: '', |
| | | taxCode: '', |
| | | taxAccount: '', |
| | | username: '', |
| | | taxBank: '', |
| | | taxAddr: '', |
| | | invoiceEmail: '', |
| | | invoiceAddr: '', |
| | | phone: '', |
| | | email: '', |
| | | captche: '', |
| | | businessImg: { |
| | | fileurl: '', |
| | | name: '' |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | api: '/business/company', |
| | | 'field.id': 'id' |
| | | }) |
| | | idcardImgList: [], |
| | | signImg: { |
| | | fileurl: '', |
| | | name: '' |
| | | }, |
| | | watch: { |
| | | visible: { |
| | | handler(news) { |
| | | if (news) { |
| | | clearInterval(this.timer) |
| | | this.num = 0 |
| | | } |
| | | } |
| | | } |
| | | solutionList: [ |
| | | { |
| | | solutionBaseId: '', |
| | | canAdd: 0, |
| | | canReduce: 0 |
| | | } |
| | | ], |
| | | type: '', |
| | | file: { |
| | | imgurl: '', |
| | | imgurlfull: '' |
| | | }, |
| | | methods: { |
| | | send() { |
| | | if (!this.form.phone) { |
| | | this.$message.warning('请è¾å
¥ææºå·') |
| | | return |
| | | } |
| | | sendSms({ phone: this.form.phone }) |
| | | .then(res => { |
| | | this.num = 60 |
| | | this.setTime() |
| | | }) |
| | | }, |
| | | setTime() { |
| | | this.timer = setInterval(() => { |
| | | this.num -= 1 |
| | | if (this.num === 0) { |
| | | clearInterval(this.timer) |
| | | this.num = 0 |
| | | } |
| | | }, 1000) |
| | | }, |
| | | open (title, target) { |
| | | this.title = title |
| | | this.visible = true |
| | | this.getAll() |
| | | // æ°å»º |
| | | if (target == null) { |
| | | this.$nextTick(() => { |
| | | this.$refs.form.resetFields() |
| | | this.form[this.configData['field.id']] = null |
| | | }) |
| | | return |
| | | } |
| | | // ç¼è¾ |
| | | this.$nextTick(() => { |
| | | for (const key in this.form) { |
| | | this.form[key] = target[key] |
| | | } |
| | | }) |
| | | }, |
| | | // è·åå
¨é¨æ¹æ¡ |
| | | getAll() { |
| | | all({}) |
| | | .then(res => { |
| | | this.programme = res |
| | | }) |
| | | }, |
| | | dele(index) { |
| | | if (this.form.solutionList.length === 1) { |
| | | this.$message.warning('è³å°ä¿çä¸é¡¹') |
| | | return |
| | | } |
| | | this.form.solutionList.splice(index, 1) |
| | | }, |
| | | add() { |
| | | this.form.solutionList.push({ |
| | | solutionName: '', |
| | | canAdd: '', |
| | | canReduce: '' |
| | | }) |
| | | }, |
| | | handleRemove(file, fileList) { |
| | | console.log(file, fileList); |
| | | }, |
| | | // æ¥æ¶è¥ä¸æ§ç
§æ°æ® |
| | | result(data) { |
| | | this.form.businessImg = { |
| | | fileurl: '', |
| | | name: '' |
| | | } |
| | | this.form.businessImg.fileurl = data.imgurl |
| | | this.form.businessImg.name = data.name |
| | | }, |
| | | // 身份è¯ç
§ç1 |
| | | result1(data) { |
| | | this.form.idcardImgList[0] = { |
| | | fileurl: '', |
| | | name: '' |
| | | } |
| | | this.form.idcardImgList[0] = { fileurl: data.imgurl, name: data.name } |
| | | }, |
| | | // 身份è¯ç
§ç2 |
| | | result2(data) { |
| | | this.form.idcardImgList[1] = { |
| | | fileurl: '', |
| | | name: '' |
| | | } |
| | | this.form.idcardImgList[1] = { fileurl: data.imgurl, name: data.name } |
| | | }, |
| | | // çµåç¾ç« |
| | | result3(data) { |
| | | this.form.signImg = { |
| | | fileurl: '', |
| | | name: '' |
| | | } |
| | | this.form.signImg.fileurl = data.imgurl |
| | | this.form.signImg.name = data.name |
| | | } |
| | | file1: { |
| | | imgurl: '', |
| | | imgurlfull: '' |
| | | }, |
| | | file2: { |
| | | imgurl: '', |
| | | imgurlfull: '' |
| | | }, |
| | | file3: { |
| | | imgurl: '', |
| | | imgurlfull: '' |
| | | } |
| | | }, |
| | | timer: null, |
| | | num: 0, |
| | | // éªè¯è§å |
| | | rules: { |
| | | name: [ |
| | | { required: true, message: '请è¾å
¥å
¬å¸åç§°' } |
| | | ], |
| | | code: [ |
| | | { required: true, message: '请è¾å
¥ç»ä¸ä¿¡ç¨ä»£ç ' } |
| | | ], |
| | | captche: [ |
| | | { required: true, message: '请è¾å
¥éªè¯ç ' } |
| | | ], |
| | | legalName: [ |
| | | { required: true, message: '请è¾å
¥æ³äººå§å' } |
| | | ], |
| | | phone: [ |
| | | { required: true, message: '请è¾å
¥ææºå·' } |
| | | ], |
| | | taxAccount: [ |
| | | { required: true, message: '请è¾å
¥ææºå·' } |
| | | ], |
| | | email: [ |
| | | { required: true, message: '请è¾å
¥è®¤è¯é®ç®±' } |
| | | ], |
| | | businessImg: [ |
| | | { required: true, message: '请ä¸ä¼ è¥ä¸æ§ç
§' } |
| | | ], |
| | | idcardImgList: [ |
| | | { required: true, message: '请ä¸ä¼ æ³äººèº«ä»½è¯' } |
| | | ], |
| | | signImg: [ |
| | | { required: true, message: '请ä¸ä¼ çµåç¾ç« ' } |
| | | ], |
| | | username: [ |
| | | { required: true, message: '请è¾å
¥å
¬å¸è´¦å·' } |
| | | ] |
| | | }, |
| | | |
| | | programme: [] |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | api: '/business/company', |
| | | 'field.id': 'id' |
| | | }) |
| | | }, |
| | | watch: { |
| | | visible: { |
| | | handler (news) { |
| | | if (news) { |
| | | clearInterval(this.timer) |
| | | this.num = 0 |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | send () { |
| | | if (!this.form.phone) { |
| | | this.$message.warning('请è¾å
¥ææºå·') |
| | | return |
| | | } |
| | | sendSms({ phone: this.form.phone }) |
| | | .then(res => { |
| | | this.num = 60 |
| | | this.setTime() |
| | | }) |
| | | }, |
| | | setTime () { |
| | | this.timer = setInterval(() => { |
| | | this.num -= 1 |
| | | if (this.num === 0) { |
| | | clearInterval(this.timer) |
| | | this.num = 0 |
| | | } |
| | | }, 1000) |
| | | }, |
| | | open (title, target) { |
| | | this.title = title |
| | | this.visible = true |
| | | this.getAll() |
| | | // æ°å»º |
| | | if (target == null) { |
| | | this.$nextTick(() => { |
| | | this.$refs.form.resetFields() |
| | | this.form[this.configData['field.id']] = null |
| | | }) |
| | | return |
| | | } |
| | | // ç¼è¾ |
| | | this.$nextTick(() => { |
| | | for (const key in this.form) { |
| | | this.form[key] = target[key] |
| | | } |
| | | }) |
| | | }, |
| | | // è·åå
¨é¨æ¹æ¡ |
| | | getAll () { |
| | | all({}) |
| | | .then(res => { |
| | | this.programme = res |
| | | }) |
| | | }, |
| | | dele (index) { |
| | | if (this.form.solutionList.length === 1) { |
| | | this.$message.warning('è³å°ä¿çä¸é¡¹') |
| | | return |
| | | } |
| | | this.form.solutionList.splice(index, 1) |
| | | }, |
| | | add () { |
| | | this.form.solutionList.push({ |
| | | solutionName: '', |
| | | canAdd: '', |
| | | canReduce: '' |
| | | }) |
| | | }, |
| | | handleRemove (file, fileList) { |
| | | console.log(file, fileList) |
| | | }, |
| | | // æ¥æ¶è¥ä¸æ§ç
§æ°æ® |
| | | result (data) { |
| | | this.form.businessImg = { |
| | | fileurl: '', |
| | | name: '' |
| | | } |
| | | this.form.businessImg.fileurl = data.imgurl |
| | | this.form.businessImg.name = data.name |
| | | }, |
| | | // 身份è¯ç
§ç1 |
| | | result1 (data) { |
| | | this.form.idcardImgList[0] = { |
| | | fileurl: '', |
| | | name: '' |
| | | } |
| | | this.form.idcardImgList[0] = { fileurl: data.imgurl, name: data.name } |
| | | }, |
| | | // 身份è¯ç
§ç2 |
| | | result2 (data) { |
| | | this.form.idcardImgList[1] = { |
| | | fileurl: '', |
| | | name: '' |
| | | } |
| | | this.form.idcardImgList[1] = { fileurl: data.imgurl, name: data.name } |
| | | }, |
| | | // çµåç¾ç« |
| | | result3 (data) { |
| | | this.form.signImg = { |
| | | fileurl: '', |
| | | name: '' |
| | | } |
| | | this.form.signImg.fileurl = data.imgurl |
| | | this.form.signImg.name = data.name |
| | | } |
| | | } |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="50%" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | | > |
| | | <el-form :model="form" ref="form" :rules="rules" style="width: 50%;"> |
| | | <el-form-item label="å票å·" prop="doneCode"> |
| | | <el-input v-model="form.doneCode" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="çµåå票" prop="imgurl"> |
| | | <UploadAvatarImage :uploadData="{ folder: 'taxes' }" :file="form.file" @uploadSuccess="result3" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <template v-slot:footer> |
| | | <el-button type="primary" @click="doSubmit">ç¡® å®</el-button> |
| | | <el-button @click="visible=false">åæ¶</el-button> |
| | | </template> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import { doneApply } from '@/api/business/taxes' |
| | | import UploadAvatarImage from '@/components/common/UploadAvatarImage' |
| | | export default { |
| | | name: 'OperaTaxesUploadWindow', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow, UploadAvatarImage }, |
| | | data () { |
| | | return { |
| | | // è¡¨åæ°æ® |
| | | // æç´¢ |
| | | form: { |
| | | id: null, |
| | | doneCode: null, |
| | | imgurl: null, |
| | | file: { } |
| | | }, |
| | | // éªè¯è§å |
| | | rules: { |
| | | doneCode: [ |
| | | { required: true, message: '请è¾å
¥å票å·' } |
| | | ], |
| | | imgurl: [ |
| | | { required: true, message: '请ä¸ä¼ å票çµåç' } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | api: '/business/taxes', |
| | | 'field.id': 'id' |
| | | }) |
| | | }, |
| | | methods: { |
| | | open (title, target) { |
| | | this.title = title |
| | | this.visible = true |
| | | this.form = { |
| | | id: null, |
| | | doneCode: null, |
| | | imgurl: null, |
| | | file: { } |
| | | }, |
| | | this.form.id = target.id |
| | | this.form.doneCode = target.doneCode |
| | | this.form.file = { imgurl: target.imgurl, imgurlfull: target.imgurlFull } |
| | | }, |
| | | result3 (data) { |
| | | this.form.imgurl = null |
| | | this.form.imgurl = data.imgurl |
| | | }, |
| | | doSubmit () { |
| | | this.$refs.form.validate((valid) => { |
| | | // debugger |
| | | if (!valid) { |
| | | return |
| | | } |
| | | doneApply(this.form) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | console.log(err) |
| | | this.$tip.apiFailed(err) |
| | | }).finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .info { |
| | | width: 100%; |
| | | .info_label { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | margin-bottom: 20px; |
| | | span { |
| | | font-size: 18px; |
| | | font-weight: 500; |
| | | color: #000000; |
| | | } |
| | | } |
| | | .info_list { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | flex-wrap: wrap; |
| | | .info_list_item { |
| | | width: 50%; |
| | | display: flex; |
| | | align-items: start; |
| | | margin-bottom: 20px; |
| | | .info_list_item_label { |
| | | width: 150px; |
| | | flex-shrink: 0; |
| | | } |
| | | .info_list_item_val { |
| | | flex: 1; |
| | | display: flex; |
| | | align-items: center; |
| | | .image { |
| | | width: 100px; |
| | | height: 100px; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | overflow: hidden; |
| | | img { |
| | | width: 100%; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | id: null |
| | | }, |
| | | // éªè¯è§å |
| | | rules: {} |
| | | rules: {}, |
| | | tableData:[] |
| | | } |
| | | }, |
| | | created () { |
| | |
| | | }, |
| | | methods: { |
| | | open(title,target){ |
| | | this.form.id = null |
| | | this.form = { |
| | | id: null, |
| | | checkInfo: '' |
| | | }, |
| | | this.title=title |
| | | this.visible=true |
| | | this.form.id=target.id |
| | |
| | | :on-success="handleAvatarSuccess" |
| | | :on-error="uploadError" |
| | | :before-upload="beforeAvatarUpload"> |
| | | <img v-if="file.imgurlfull" :src="file.imgurlfull" :style="customStyle" class="avatar"> |
| | | <img v-if=" file.imgurlfull" :src="file.imgurlfull" :style="customStyle" class="avatar"> |
| | | <div v-else :style="customStyle"> |
| | | <i class="el-icon-plus avatar-uploader-icon"></i> |
| | | <div class="tips-style">{{ tipsLabel }}</div> |
| | |
| | | <span v-if="row.type === 1">纸质å票</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="type" label="å票çµåç" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <img v-if="row.imgurlfull!=null" :src="row.imgurlfull" style="width: 90px;height: 90px"> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="æä½" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text">ä¸ä¼ å票</el-button> |
| | | <el-button v-if="row.status==0" type="text" @click="$refs.OperaTaxesUploadWindow.open('ä¸ä¼ å票',row)">ä¸ä¼ å票</el-button> |
| | | <el-button v-if="row.status ==1 " type="text" @click="$refs.OperaTaxesUploadWindow.open('ä¿®æ¹å票',row)">ä¿®æ¹å票</el-button> |
| | | <el-button type="text">ç³è¯·è¯¦æ
</el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <div class="form_item"> |
| | | <div class="form_item_label">å票å·ï¼</div> |
| | | <div class="form_item_val"> |
| | | <input type="text" placeholder="请è¾å
¥" /> |
| | | <input v-model="form.doneCode" type="text" placeholder="请è¾å
¥" /> |
| | | </div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label">ä¸ä¼ å票ï¼</div> |
| | | <div class="form_item_val"> |
| | | <el-upload |
| | | action="https://jsonplaceholder.typicode.com/posts/" |
| | | list-type="picture-card" |
| | | :on-remove="handleRemove"> |
| | | <i class="el-icon-plus"></i> |
| | | </el-upload> |
| | | <UploadAvatarImage :uploadData="{ folder: 'taxes' }" :file="form.file" @uploadSuccess="result3" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="visible = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="visible = false">æ 交</el-button> |
| | | <el-button type="primary" @click="doneApplyDo">æ 交</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <OperaTaxesWindow ref="OperaTaxesWindow" @success="handlePageChange"/> |
| | | <OperaTaxesUploadWindow ref="OperaTaxesUploadWindow" @success="handlePageChange"/> |
| | | </TableLayout> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseTable from '@/components/base/BaseTable' |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaTaxesWindow from '@/components/business/OperaTaxesWindow' |
| | | import {all as solutionAll} from "@/api/business/solutions"; |
| | | import {pageAll as companyAll} from "@/api/business/company"; |
| | | export default { |
| | | name: 'Taxes', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaTaxesWindow }, |
| | | data () { |
| | | return { |
| | | // æç´¢ |
| | | companyList:[], |
| | | searchForm: { |
| | | status: '', |
| | | companyId: '' |
| | | }, |
| | | visible: false |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | module: 'å票信æ¯è¡¨', |
| | | api: '/business/taxes', |
| | | 'field.id': 'id', |
| | | 'field.main': 'id' |
| | | }) |
| | | this.search() |
| | | this.loadSelectList() |
| | | }, |
| | | methods: { |
| | | handleRemove(file, fileList) { |
| | | console.log(file, fileList); |
| | | }, |
| | | loadSelectList() { |
| | | solutionAll({dataType:0}).then(res => { |
| | | this.solutionList = res |
| | | }).catch(err => { |
| | | }) |
| | | companyAll({}).then(res => { |
| | | this.companyList = res |
| | | }).catch(err => { |
| | | }) |
| | | } |
| | | } |
| | | import BaseTable from '@/components/base/BaseTable' |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaTaxesWindow from '@/components/business/OperaTaxesWindow' |
| | | import OperaTaxesUploadWindow from '@/components/business/OperaTaxesUploadWindow' |
| | | import { all as solutionAll } from '@/api/business/solutions' |
| | | import { pageAll as companyAll } from '@/api/business/company' |
| | | import { doneApply } from '@/api/business/taxes' |
| | | import UploadAvatarImage from '@/components/common/UploadAvatarImage' |
| | | export default { |
| | | name: 'Taxes', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaTaxesWindow, OperaTaxesUploadWindow, UploadAvatarImage }, |
| | | data () { |
| | | return { |
| | | // æç´¢ |
| | | form: { |
| | | id: null, |
| | | doneCode: null, |
| | | imgurl: null, |
| | | file:{ }, |
| | | }, |
| | | companyList: [], |
| | | searchForm: { |
| | | status: '', |
| | | companyId: '' |
| | | }, |
| | | visible: false |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | module: 'å票信æ¯è¡¨', |
| | | api: '/business/taxes', |
| | | 'field.id': 'id', |
| | | 'field.main': 'id' |
| | | }) |
| | | this.search() |
| | | this.loadSelectList() |
| | | }, |
| | | methods: { |
| | | handleRemove (file, fileList) { |
| | | console.log(file, fileList) |
| | | }, |
| | | uploadImg (row) { |
| | | this.form = { |
| | | id: row.id, |
| | | doneCode: row.doneCode, |
| | | imgurl:null |
| | | }, |
| | | this.form.file= {imgurl: row.imgurl, imgurlfull: row.imgurlFull } |
| | | this.visible = true |
| | | }, |
| | | result3 (data) { |
| | | this.form.imgurl = null |
| | | this.form.imgurl = data.imgurl |
| | | }, |
| | | doneApplyDo () { |
| | | doneApply(this.form) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.search() |
| | | }).catch(err => { |
| | | console.log(err) |
| | | this.$tip.apiFailed(err) |
| | | }).finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | }, |
| | | loadSelectList () { |
| | | solutionAll({ dataType: 0 }).then(res => { |
| | | this.solutionList = res |
| | | }).catch(err => { |
| | | }) |
| | | companyAll({}).then(res => { |
| | | this.companyList = res |
| | | }).catch(err => { |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |