|
@@ -21,7 +21,12 @@ import import_mixin from '@/components/template/import_mixin.js'
|
|
import add_callback_mixin from '@/components/template/add_callback_mixin.js'
|
|
import add_callback_mixin from '@/components/template/add_callback_mixin.js'
|
|
import Popu from '@/components/template/popu.vue'
|
|
import Popu from '@/components/template/popu.vue'
|
|
import TransferOrderForm from './transferOrderForm.vue'
|
|
import TransferOrderForm from './transferOrderForm.vue'
|
|
-import { getListTransferV2, exportListTransferV2, invoiceCustomerTransfer, dletransferDelete } from '@/api/transferOrder'
|
|
|
|
|
|
+import {
|
|
|
|
+ getListTransferV2,
|
|
|
|
+ exportListTransferV2,
|
|
|
|
+ invoiceCustomerTransfer,
|
|
|
|
+ dletransferDelete
|
|
|
|
+} from '@/api/transferOrder'
|
|
import { mapGetters } from 'vuex'
|
|
import { mapGetters } from 'vuex'
|
|
export default {
|
|
export default {
|
|
components: { TemplatePage, Popu, TransferOrderForm },
|
|
components: { TemplatePage, Popu, TransferOrderForm },
|
|
@@ -55,19 +60,21 @@ export default {
|
|
optionsEvensGroup() {
|
|
optionsEvensGroup() {
|
|
return [
|
|
return [
|
|
...[
|
|
...[
|
|
- this.isCustomer ? [
|
|
|
|
- [
|
|
|
|
- {
|
|
|
|
- name: '新增',
|
|
|
|
- click: this.addOn(() => {
|
|
|
|
- this.visible = true
|
|
|
|
- this.moduleType = 1
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ this.isCustomer
|
|
|
|
+ ? [
|
|
|
|
+ [
|
|
|
|
+ {
|
|
|
|
+ name: '新增',
|
|
|
|
+ click: this.addOn(() => {
|
|
|
|
+ this.visible = true
|
|
|
|
+ this.moduleType = 1
|
|
|
|
+ }),
|
|
|
|
+ isRole: this.$checkBtnRole('add', this.$route.meta.roles)
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
]
|
|
]
|
|
- ] : []
|
|
|
|
|
|
+ : []
|
|
]
|
|
]
|
|
-
|
|
|
|
]
|
|
]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -102,7 +109,7 @@ export default {
|
|
>
|
|
>
|
|
查看
|
|
查看
|
|
</el-button>
|
|
</el-button>
|
|
- {row.status === 'WAIT' ? (
|
|
|
|
|
|
+ {row.status === 'WAIT' && this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
<el-button
|
|
<el-button
|
|
size='mini'
|
|
size='mini'
|
|
type='text'
|
|
type='text'
|
|
@@ -115,7 +122,7 @@ export default {
|
|
审核
|
|
审核
|
|
</el-button>
|
|
</el-button>
|
|
) : null}
|
|
) : null}
|
|
- {row.status === 'SAVE' || row.status === 'WAIT' ? (
|
|
|
|
|
|
+ {(row.status === 'SAVE' || row.status === 'WAIT') && this.$checkBtnRole('edit', this.$route.meta.roles) ? (
|
|
<el-button
|
|
<el-button
|
|
size='mini'
|
|
size='mini'
|
|
type='text'
|
|
type='text'
|
|
@@ -128,9 +135,9 @@ export default {
|
|
编辑
|
|
编辑
|
|
</el-button>
|
|
</el-button>
|
|
) : null}
|
|
) : null}
|
|
- {row.status === 'SAVE' ? (
|
|
|
|
|
|
+ {row.status === 'SAVE' && this.$checkBtnRole('apply', this.$route.meta.roles) ? (
|
|
<el-popconfirm
|
|
<el-popconfirm
|
|
- onOnConfirm={ () => {
|
|
|
|
|
|
+ onOnConfirm={() => {
|
|
invoiceCustomerTransfer({
|
|
invoiceCustomerTransfer({
|
|
id: row.id,
|
|
id: row.id,
|
|
status: 'WAIT'
|
|
status: 'WAIT'
|
|
@@ -146,23 +153,25 @@ export default {
|
|
</el-button>
|
|
</el-button>
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
) : null}
|
|
) : null}
|
|
- {row.status === 'SAVE' || row.status === 'WAIT' ? <el-popconfirm
|
|
|
|
- onOnConfirm={ () => {
|
|
|
|
- dletransferDelete({
|
|
|
|
- id: row.id
|
|
|
|
- }).then(res => {
|
|
|
|
- this.$successMsg('删除成功')
|
|
|
|
- this.$refs.pageRef.refreshList()
|
|
|
|
- })
|
|
|
|
- }}
|
|
|
|
- title='是否确定需要删除该项内容?'
|
|
|
|
- >
|
|
|
|
- <el-button slot='reference' size='mini' type='text'>
|
|
|
|
- 删除
|
|
|
|
- </el-button>
|
|
|
|
- </el-popconfirm> : null
|
|
|
|
- }
|
|
|
|
- </div>)
|
|
|
|
|
|
+ {(row.status === 'SAVE' || row.status === 'WAIT') && this.$checkBtnRole('del', this.$route.meta.roles) ? (
|
|
|
|
+ <el-popconfirm
|
|
|
|
+ onOnConfirm={() => {
|
|
|
|
+ dletransferDelete({
|
|
|
|
+ id: row.id
|
|
|
|
+ }).then(res => {
|
|
|
|
+ this.$successMsg('删除成功')
|
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
|
+ })
|
|
|
|
+ }}
|
|
|
|
+ title='是否确定需要删除该项内容?'
|
|
|
|
+ >
|
|
|
|
+ <el-button slot='reference' size='mini' type='text'>
|
|
|
|
+ 删除
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-popconfirm>
|
|
|
|
+ ) : null}
|
|
|
|
+ </div>
|
|
|
|
+ )
|
|
}
|
|
}
|
|
},
|
|
},
|
|
handleClose() {
|
|
handleClose() {
|