doum
5 天以前 275b6c4986343c3e4230e1ad28ce9548b017d584
admin/src/views/business/orders.vue
@@ -84,23 +84,21 @@
            <span v-if="row.type==1">延期款</span>
          </template>
        </el-table-column>
        <el-table-column prop="remark" label="订单备注"  width="100px"  ></el-table-column>
        <el-table-column prop="remark" label="订单备注"  width="200px"  ></el-table-column>
        <el-table-column prop="userRealname" label="收款人姓名"  width="100px"  ></el-table-column>
        <el-table-column prop="username" label="负责人账号"  width="120px"  ></el-table-column>
        <el-table-column prop="createTime" label="创建时间" min-width="150px"></el-table-column>
        <el-table-column prop="payDate" label="付款时间" min-width="150px"></el-table-column>
        <el-table-column prop="cancelDate" label="取消时间" min-width="150px"></el-table-column>
<!--        <el-table-column
  <el-table-column
          label="操作"
          align="center"
          min-width="150"
          fixed="right"
          min-width="100"
        >
          <template slot-scope="{row}">
            <el-button type="text" class="redstate" @click="cancelDo(row)" v-if="row.status!=5 && row.status!=4&& row.status!=99" icon="el-icon-delete" v-permissions="['business:orders:update']">取消</el-button>
            <el-button type="text" @click="openDetail( row)" icon="el-icon-info"  >详情</el-button>
            <el-button type="text"   @click="payStatus(row)" icon="el-icon-refresh" v-permissions="['business:orders:update']">同步状态</el-button>
          </template>
        </el-table-column>-->
        </el-table-column>
      </el-table>
      <pagination
        @size-change="handleSizeChange"
@@ -132,7 +130,7 @@
        status: null,
        type: null,
        starttime: null,
        endTime: null,
        endtime: null,
        username: null,
        userRealName: null,
        name: null,
@@ -169,6 +167,23 @@
              this.dealing = false
            })
        })
    },
    payStatus (row) {
      this.$dialog.actionConfirm('您确认【同步】该订单最新状态吗?', '操作确认')
        .then(() => {
          this.dealing = true
          this.api.updateByPayStatus({id:row.id})
            .then(res => {
              this.$tip.apiSuccess('操作成功')
              this.search()
            })
            .catch(e => {
              this.$tip.apiFailed(e)
            })
            .finally(() => {
              this.dealing = false
            })
        })
    }
  }
}