|
|
@ -229,6 +229,9 @@ |
|
|
|
<div class="flex"> |
|
|
|
<el-button v-if="scope.row.status == 1" @click="showConfirmDelReport(scope.row)" |
|
|
|
type="text">删报告</el-button> |
|
|
|
|
|
|
|
<el-button v-if="scope.row.status == 5" @click="showConfirmRecoverReport(scope.row)" |
|
|
|
type="text">恢复报告</el-button> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
@ -245,6 +248,12 @@ |
|
|
|
<!-- 自定义内容 --> |
|
|
|
<p class="mx-24 mt12 flex">是否删除 ID:{{ delReportId }} 报告?删除后无法恢复</p> |
|
|
|
</GuipDialog> |
|
|
|
<GuipDialog :dialogVisible="dialogVisibleRecoverReport" title="恢复报告" confirmText="恢复" cancelText="取消" |
|
|
|
:show-close-button="false" :show-cancel-button="true" @confirm="confirmRecoverReport" @cancel="handleCancel" |
|
|
|
@close="handleClose" @dialogVisibleChange="dialogVisibleChange"> |
|
|
|
<!-- 自定义内容 --> |
|
|
|
<p class="mx-24 mt12 flex">是否恢复 ID:{{ recoverReportId }} 报告?</p> |
|
|
|
</GuipDialog> |
|
|
|
<audio id="notice-sound" ref="audioPlayer" :src="audioSrc" hidden v-if="!isIE"></audio> |
|
|
|
<!-- IE浏览器使用的embed元素 --> |
|
|
|
<embed v-if="isIE" name="embedPlay" :src="audioSrc" autostart="true" hidden="true" loop="false" /> |
|
|
@ -311,6 +320,9 @@ export default { |
|
|
|
dialogVisibleDelReport: false, |
|
|
|
delReportId: '', |
|
|
|
|
|
|
|
dialogVisibleRecoverReport: false, |
|
|
|
recoverReportId: '', |
|
|
|
|
|
|
|
dialogVisiblePddSetting: false, |
|
|
|
pddSettingActiveName: '1', |
|
|
|
pddSettingConfirmText: '导出拼多多发货订单', |
|
|
@ -589,6 +601,10 @@ export default { |
|
|
|
this.dialogVisibleDelReport = true; |
|
|
|
this.delReportId = row.sale_id; |
|
|
|
}, |
|
|
|
showConfirmRecoverReport(row) { |
|
|
|
this.dialogVisibleRecoverReport = true; |
|
|
|
this.recoverReportId = row.sale_id; |
|
|
|
}, |
|
|
|
// 确认按钮事件 |
|
|
|
confirmDelReport() { |
|
|
|
this.$http('POST', '/agentnew/ajax_del_report', { |
|
|
@ -606,13 +622,31 @@ export default { |
|
|
|
console.error(error, 'error') |
|
|
|
}) |
|
|
|
}, |
|
|
|
confirmRecoverReport() { |
|
|
|
this.$http('POST', '/agentnew/ajax_recover_report', { |
|
|
|
saleid: this.recoverReportId, |
|
|
|
}).then(response => { |
|
|
|
this.$nextTick(() => { |
|
|
|
if (response.status) { |
|
|
|
this.$Message.success(response.info); |
|
|
|
this.dialogVisibleRecoverReport = false; |
|
|
|
} else { |
|
|
|
this.$Message.error(response.info); |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(error => { |
|
|
|
console.error(error, 'error') |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 取消按钮事件 |
|
|
|
handleCancel() { |
|
|
|
this.dialogVisibleDelReport = false; |
|
|
|
this.dialogVisibleRecoverReport = false; |
|
|
|
}, |
|
|
|
// 关闭弹框事件 |
|
|
|
handleClose() { |
|
|
|
this.dialogVisibleDelReport = false; |
|
|
|
this.dialogVisibleRecoverReport = false; |
|
|
|
}, |
|
|
|
dialogVisibleChange(data) { |
|
|
|
console.log(data, 'data098908090'); |
|
|
|