[bug] bug修改;合同打印;角色删除限制
This commit is contained in:
@@ -69,7 +69,7 @@
|
||||
</template>
|
||||
|
||||
<span slot="print" slot-scope="text, record" class="action-span-cell">
|
||||
<a-button type="primary" :disabled="record.sendMethod === '1' ? false : true">打印</a-button>
|
||||
<a-button type="primary" :disabled="record.sendMethod === '1' ? false : true" @click="goPrint(record)">打印</a-button>
|
||||
</span>
|
||||
<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>
|
||||
@@ -207,6 +207,20 @@ export default {
|
||||
const com = Number(record.sendMethod) === 1 && 'ems' || 'shunfeng'
|
||||
window.open(`https://www.kuaidi100.com/chaxun?com=${ com }&nu=${ record.postNo }`)
|
||||
},
|
||||
/**
|
||||
* 打印,新标签打开页面,打印页面
|
||||
* @param record
|
||||
*/
|
||||
goPrint(record) {
|
||||
let routerUrl = this.$router.resolve({
|
||||
path: '/mailManagement/PrintPage',
|
||||
query: {
|
||||
record: JSON.stringify(record),
|
||||
type: 'contract'
|
||||
}
|
||||
})
|
||||
window.open(routerUrl.href, '_blank')
|
||||
},
|
||||
handleAdd (id) {
|
||||
let param = {
|
||||
id: id
|
||||
|
||||
Reference in New Issue
Block a user