|
@@ -107,7 +107,7 @@
|
|
|
type="link"
|
|
|
class="button-warning"
|
|
|
v-if="record.state == 'AUDIT_REJECT'&&$hasPermissions('B_asginEditPickUp')"
|
|
|
- @click="handleAginEdit(record)"
|
|
|
+ @click="handleAgainEdit(record)"
|
|
|
id="billOfLading-eexamine-btn">再次编辑</a-button>
|
|
|
<a-button
|
|
|
size="small"
|
|
@@ -142,7 +142,7 @@ import employee from '../../expenseManagement/expenseReimbursement/employee.js'
|
|
|
import verifyModal from './verifyModal.vue'
|
|
|
import logisticsPoint from './logisticsPoint'
|
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
|
-import { pickUpQueryPage, pickUpDelete } from '@/api/pickUp'
|
|
|
+import { pickUpQueryPage, pickUpDelete, pickUpAgainEdit } from '@/api/pickUp'
|
|
|
export default {
|
|
|
name: 'BillOfLadingList',
|
|
|
mixins: [commonMixin],
|
|
@@ -272,7 +272,25 @@ export default {
|
|
|
this.visibleAudit = true
|
|
|
},
|
|
|
// 再次编辑
|
|
|
- handleAginEdit (row) {
|
|
|
+ handleAgainEdit (row) {
|
|
|
+ const _this = this
|
|
|
+ this.$confirm({
|
|
|
+ title: '提示',
|
|
|
+ content: '系统将自动生成一个新的提货单,与原单据内容相同。确认再次编辑吗?',
|
|
|
+ centered: true,
|
|
|
+ onOk () {
|
|
|
+ _this.spinning = true
|
|
|
+ pickUpAgainEdit({ pickUpSn: row.pickUpSn }).then(res => {
|
|
|
+ if (res.status == 200) {
|
|
|
+ _this.$message.success(res.message)
|
|
|
+ _this.$refs.table.refresh()
|
|
|
+ _this.spinning = false
|
|
|
+ } else {
|
|
|
+ _this.spinning = false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
resetSearchForm () {
|
|
|
this.$refs.rangeCreateDate.resetDate()
|