大宝管理后台代码
jhzh
2024-09-28 bcbd848449b293b70a4376b0b180d872ef2bc543
src/views/capital/withdrawallist.vue
@@ -113,7 +113,7 @@
        </span>
        <template slot="action" slot-scope="text, record" v-if="record.withStatus == 0">
          <a slot="action" href="javascript:;" @click="getEditorder(record.id)">审核</a>
          <a slot="action" href="javascript:;" @click="getEditorder(record)">审核</a>
        </template>
      </a-table>
    </a-card>
@@ -302,7 +302,7 @@
      editOrderdialog: false,
      editOrderDialogloading: false,
      fields: ['withId', 'state'],
      withId:'',
      agentqueryParam: {
        pageNum: 1,
        pageSize: 100,
@@ -320,9 +320,10 @@
    },
    // 点击修改提现状态
    getEditorder(val) {
      this.withId = val.id
      this.editOrderdialog = true
      this.fields.forEach((v) => this.editOrderform.getFieldDecorator(v))
      this.editOrderform.setFieldsValue(pick({ withId: val }, this.fields))
      this.editOrderform.setFieldsValue(pick({ withId: val.withAmt }, this.fields))
    },
    // 开始更改提现状态
    OkeditOrderdialog(e) {
@@ -331,14 +332,15 @@
        if (!errors) {
          this.editOrderDialogloading = true
          values.state = e
          values.withId = this.withId
          withdrawupdateState(values)
            .then((res) => {
              if (res.status == 0) {
                this.$message.success({ content: res.msg, duration: 2 })
                this.$message.success(res.msg)
                form.resetFields()
                this.getlist()
              } else {
                this.$message.error({ content: res.msg })
                this.$message.error(res.msg)
              }
              this.editOrderdialog = false
              this.editOrderDialogloading = false