update 合同邮寄添加字段,支出合同跳过校验
This commit is contained in:
@@ -75,7 +75,7 @@
|
|||||||
<a-button type="primary" :disabled="record.sendMethod === '1' ? false : true" @click="goPrint(record)">打印</a-button>
|
<a-button type="primary" :disabled="record.sendMethod === '1' ? false : true" @click="goPrint(record)">打印</a-button>
|
||||||
</span>
|
</span>
|
||||||
<span slot="action" slot-scope="text, record" class="action-span-cell">
|
<span slot="action" slot-scope="text, record" class="action-span-cell">
|
||||||
<a @click="handleAdd(record.id)" v-if="record.postStatus === '0'" v-has="'contractMail:mail'">邮寄</a>
|
<a @click="handleAdd(record)" v-if="record.postStatus === '0'" v-has="'contractMail:mail'">邮寄</a>
|
||||||
<a @click="handleEdit(record)" v-if="record.postStatus === '1'" v-has="'contractMail:edit'">修改</a>
|
<a @click="handleEdit(record)" v-if="record.postStatus === '1'" v-has="'contractMail:edit'">修改</a>
|
||||||
<a @click="goLogistics(record)" v-if="record.postStatus === '1'"
|
<a @click="goLogistics(record)" v-if="record.postStatus === '1'"
|
||||||
v-has="'contractMail:checkLogistics'">查看物流</a>
|
v-has="'contractMail:checkLogistics'">查看物流</a>
|
||||||
@@ -162,6 +162,13 @@ export default {
|
|||||||
<j-ellipsis value={ record.contractAmount ? record.contractAmount + '元' : '0.00元' } length={ 15 }></j-ellipsis>
|
<j-ellipsis value={ record.contractAmount ? record.contractAmount + '元' : '0.00元' } length={ 15 }></j-ellipsis>
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '合同类型',
|
||||||
|
align: 'center',
|
||||||
|
width: 100,
|
||||||
|
dataIndex: 'contractType_dictText',
|
||||||
|
scopedSlots: { customRender: 'text' }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '邮寄联系人',
|
title: '邮寄联系人',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
@@ -224,15 +231,21 @@ export default {
|
|||||||
})
|
})
|
||||||
window.open(routerUrl.href, '_blank')
|
window.open(routerUrl.href, '_blank')
|
||||||
},
|
},
|
||||||
handleAdd(id) {
|
handleAdd(record) {
|
||||||
|
if (record.contractType + '' === '1') {
|
||||||
|
this.$refs.modalForm.add(record.id)
|
||||||
|
this.$refs.modalForm.title = '邮寄'
|
||||||
|
this.$refs.modalForm.disableSubmit = false
|
||||||
|
return
|
||||||
|
}
|
||||||
let param = {
|
let param = {
|
||||||
id: id
|
id: record.id
|
||||||
}
|
}
|
||||||
checkCompanyAduit(param).then(res => {
|
checkCompanyAduit(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
// 企业审核未成功不可进行邮寄操作
|
// 企业审核未成功不可进行邮寄操作
|
||||||
if (res.result.indexOf('审核未成功') === -1) {
|
if (res.result.indexOf('审核未成功') === -1) {
|
||||||
this.$refs.modalForm.add(id)
|
this.$refs.modalForm.add(record.id)
|
||||||
this.$refs.modalForm.title = '邮寄'
|
this.$refs.modalForm.title = '邮寄'
|
||||||
this.$refs.modalForm.disableSubmit = false
|
this.$refs.modalForm.disableSubmit = false
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user