|
@@ -159,7 +159,7 @@
|
|
id="salesReturn-edit-btn">{{ record.salesReturnBillSource == 'SALES' ? '编辑' : '改单' }}</a-button>
|
|
id="salesReturn-edit-btn">{{ record.salesReturnBillSource == 'SALES' ? '编辑' : '改单' }}</a-button>
|
|
<a-button
|
|
<a-button
|
|
size="small"
|
|
size="small"
|
|
- v-if="record.billStatus == 'WAIT_SUBMIT' && $hasPermissions('B_salesReturnDel')"
|
|
|
|
|
|
+ v-if="(record.billStatus == 'WAIT_SUBMIT'|| record.billStatus == 'AUDIT_REJECT') && $hasPermissions('B_salesReturnDel')"
|
|
type="link"
|
|
type="link"
|
|
class="button-error"
|
|
class="button-error"
|
|
@click="handleDel(record)"
|
|
@click="handleDel(record)"
|
|
@@ -168,9 +168,9 @@
|
|
size="small"
|
|
size="small"
|
|
type="link"
|
|
type="link"
|
|
class="button-info"
|
|
class="button-info"
|
|
- v-if="record.salesReturnBillSource == 'SALES'&&record.billStatus == 'AUDIT_REJECT'&& $hasPermissions('B_salesReturnAgainEdit')"
|
|
|
|
- @click="handleAgainEdit(record)"
|
|
|
|
- id="salesReturn-edit-btn">再次编辑</a-button>
|
|
|
|
|
|
+ v-if="record.billStatus == 'AUDIT_REJECT'&& $hasPermissions('B_salesReturnAgainSubmit')"
|
|
|
|
+ @click="handleEdit(record)"
|
|
|
|
+ id="salesReturn-edit-btn">再次提交</a-button>
|
|
<a-button
|
|
<a-button
|
|
size="small"
|
|
size="small"
|
|
type="link"
|
|
type="link"
|
|
@@ -336,27 +336,6 @@ export default {
|
|
handleEdit (row) {
|
|
handleEdit (row) {
|
|
this.$router.push({ name: 'salesReturnEdit', params: { sn: row.salesReturnBillSn, buyerSn: row.buyerSn } })
|
|
this.$router.push({ name: 'salesReturnEdit', params: { sn: row.salesReturnBillSn, buyerSn: row.buyerSn } })
|
|
},
|
|
},
|
|
- // 再次编辑
|
|
|
|
- handleAgainEdit (row) {
|
|
|
|
- const _this = this
|
|
|
|
- this.$confirm({
|
|
|
|
- title: '提示',
|
|
|
|
- content: '系统将自动生成一个新的销售退货单,与原单据内容相同。确认再次编辑吗?',
|
|
|
|
- centered: true,
|
|
|
|
- onOk () {
|
|
|
|
- _this.spinning = true
|
|
|
|
- updateAgain({ salesReturnBillSn: row.salesReturnBillSn }).then(res => {
|
|
|
|
- if (res.status == 200) {
|
|
|
|
- _this.$message.success(res.message)
|
|
|
|
- _this.$refs.table.refresh()
|
|
|
|
- _this.spinning = false
|
|
|
|
- } else {
|
|
|
|
- _this.spinning = false
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
// 详情
|
|
// 详情
|
|
handleDetail (row) {
|
|
handleDetail (row) {
|
|
this.$router.push({ name: 'salesReturnDetail', params: { sn: row.salesReturnBillSn } })
|
|
this.$router.push({ name: 'salesReturnDetail', params: { sn: row.salesReturnBillSn } })
|