|
@@ -86,9 +86,9 @@
|
|
|
<el-table-column prop="OwningWarehouse" label="扫描仓库" :width="90" :show-overflow-tooltip="true" />
|
|
|
<el-table-column prop="LastOperName" label="扫描人" :width="85" />
|
|
|
<el-table-column prop="LastNoticeTime" label="最后通知时间" :width="152" />
|
|
|
- <el-table-column label="操作" :width="85">
|
|
|
+ <el-table-column label="操作" :width="90">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button @click="notice(scope.row)" size="mini">
|
|
|
+ <el-button @click="notice(scope.row)" :loading="scope.row.noticeLoading" size="mini">
|
|
|
通知
|
|
|
</el-button>
|
|
|
</template>
|
|
@@ -270,20 +270,29 @@ export default {
|
|
|
this.PageIndex = 1;
|
|
|
},
|
|
|
notice(data){
|
|
|
- var that=this;
|
|
|
+ const that=this;
|
|
|
+ this.$set(data, 'noticeLoading', true)
|
|
|
_sendArrearsFile({
|
|
|
CreateTime:that.param.CreateTime,
|
|
|
customerId:data.CustomerId
|
|
|
- }).then(r=>{
|
|
|
- this.$message({
|
|
|
- message: '通知成功',
|
|
|
- type: 'success'
|
|
|
- })}
|
|
|
- ).catch(r=>{
|
|
|
+ }).then(res=>{
|
|
|
+ if (res && res.code === 200) {
|
|
|
this.$message({
|
|
|
- message: r,
|
|
|
- type: 'error'
|
|
|
- })
|
|
|
+ message: '通知成功',
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ const message = res.message || res.Message || res.Error
|
|
|
+ this.$alert(message, '异常提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }).catch(r=>{
|
|
|
+ this.$alert(r, '异常提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ });
|
|
|
+ }).finally(() => {
|
|
|
+ this.$set(data, 'noticeLoading', false)
|
|
|
});
|
|
|
},
|
|
|
search() {
|