|
@@ -19,7 +19,7 @@
|
|
import TemplatePage from '@/components/template/template-page-1.vue'
|
|
import TemplatePage from '@/components/template/template-page-1.vue'
|
|
import Popu from '@/components/template/popu.vue'
|
|
import Popu from '@/components/template/popu.vue'
|
|
|
|
|
|
-import { getPickupList, cancelData, getPickupManList, pickListV2, pickListV2Export } from '@/api/supply/pickup'
|
|
|
|
|
|
+import { getPickupList, cancelData,cancelDeleteDa, getPickupManList, pickListV2, pickListV2Export } from '@/api/supply/pickup'
|
|
import { getWarehouseList } from '@/api/supply/engin'
|
|
import { getWarehouseList } from '@/api/supply/engin'
|
|
import PickupForm from '@/views/supply/pickup/components/pickup_form'
|
|
import PickupForm from '@/views/supply/pickup/components/pickup_form'
|
|
|
|
|
|
@@ -162,12 +162,27 @@ export default {
|
|
((this.isDealer && !row.printNum) || !this.isDealer) ? (
|
|
((this.isDealer && !row.printNum) || !this.isDealer) ? (
|
|
<el-popconfirm
|
|
<el-popconfirm
|
|
onOnConfirm={async() => {
|
|
onOnConfirm={async() => {
|
|
- this.handleCancel(row.id)
|
|
|
|
|
|
+ this.handleCancel(row.id, cancelDeleteDa)
|
|
}}
|
|
}}
|
|
- title={`是否确定需要${row.printNum ? '作废' : '取消'}该项内容?`}
|
|
|
|
|
|
+ title={`是否确定需要作废该项内容?`}
|
|
>
|
|
>
|
|
<el-button slot='reference' size='mini' type='text'>
|
|
<el-button slot='reference' size='mini' type='text'>
|
|
- {row.printNum ? '作废' : '取消'}
|
|
|
|
|
|
+ 作废
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-popconfirm>
|
|
|
|
+ ) : (
|
|
|
|
+ ''
|
|
|
|
+ )}
|
|
|
|
+ {this.$checkBtnRole('cancelDelete', this.$route.meta.roles) &&
|
|
|
|
+ ((this.isDealer && !row.printNum) || !this.isDealer) ? (
|
|
|
|
+ <el-popconfirm
|
|
|
|
+ onOnConfirm={async() => {
|
|
|
|
+ this.handleCancel(row.id, cancelData)
|
|
|
|
+ }}
|
|
|
|
+ title={`是否确定需要取消该项内容?`}
|
|
|
|
+ >
|
|
|
|
+ <el-button slot='reference' size='mini' type='text'>
|
|
|
|
+ 取消
|
|
</el-button>
|
|
</el-button>
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
) : (
|
|
) : (
|
|
@@ -274,8 +289,8 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
// 取消/作废
|
|
// 取消/作废
|
|
- handleCancel(id) {
|
|
|
|
- cancelData({ id }).then(res => {
|
|
|
|
|
|
+ handleCancel(id, fn) {
|
|
|
|
+ fn({ id }).then(res => {
|
|
this.$successMsg()
|
|
this.$successMsg()
|
|
// this.getList()
|
|
// this.getList()
|
|
this.$refs.pageRef.refreshList()
|
|
this.$refs.pageRef.refreshList()
|