ll
liukangdong
2024-09-24 e1c24d5ac92e89b214efe5a313b31459ddab537f
admin/src/views/platform/LogisticsRecord/leaveAuth.vue
@@ -47,7 +47,7 @@
      <el-table-column label="操作" align="center" fixed="right" min-width="100" show-overflow-tooltip>
        <template v-slot="scope">
          <el-button type="text" v-permissions="['business:platformbooks:detail']"
            @click="handleAuth(scope.row)">离远授权</el-button>
            @click="handleAuth(scope.row)">离园授权</el-button>
        </template>
      </el-table-column>
    </el-table>
@@ -171,12 +171,11 @@
      })
    },
    handleAuth(row) {
      this.$confirm('是否对当前运单的车辆进行离园授权,是则进行离园授权?', '提示', {
      this.$prompt('备注', '离园授权', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        platformPowerLevel({ jobId: row.id }).then(res => {
      }).then(({ remark }) => {
        platformPowerLevel({ jobId: row.id,remark }).then(res => {
          Message.success('离园授权成功')
          this.getList()
        })