voucher.vue 19.7 KB
Newer Older
我在何方's avatar
我在何方 committed
1 2
<template>
  <div class="app-container">
吴滔's avatar
吴滔 committed
3
    <div slot="header" class="card-title">{{ $t('收款单') }}</div>
我在何方's avatar
我在何方 committed
4
    <!-- 搜索工作栏 -->
5 6 7 8 9 10 11 12 13 14
    <el-card v-show="showSearch" class="card">
      <el-form
        :model="queryParams"
        ref="queryForm"
        size="small"
        :inline="true"
        label-width="100px"
        class="card"
      >
        <el-row :span="24">
吴滔's avatar
吴滔 committed
15
          <el-form-item :label="$t('收款单号')">
16 17 18
            <el-input
              style="max-width: 188px"
              v-model="queryParams.receiptNo"
吴滔's avatar
吴滔 committed
19
              :placeholder="$t('请输入收款单号')"
20 21 22 23
              clearable
              @keyup.enter.native="handleQuery"
            />
          </el-form-item>
吴滔's avatar
吴滔 committed
24
          <el-form-item :label="$t('客户名称')">
25 26
            <customer-selector
              v-model="queryParams.customerId"
我在何方's avatar
我在何方 committed
27 28
              @change="changeCustomerId"
              clearable
29 30
            />
          </el-form-item>
吴滔's avatar
吴滔 committed
31
          <el-form-item :label="$t('状态')">
32 33 34
            <dict-selector
              :type="DICT_TYPE.ECW_RECEIPT_STATE"
              v-model="queryParams.state"
35
              clearable
36 37
            />
          </el-form-item>
吴滔's avatar
吴滔 committed
38
          <el-form-item :label="$t('业务员')">
39 40
            <el-select
              v-model="queryParams.salesmanId"
吴滔's avatar
吴滔 committed
41
              :placeholder="$t('请选择业务员')"
42
              clearable
43 44 45 46 47 48 49 50 51 52 53 54
            >
              <el-option
                v-for="item in creatorData"
                :key="item.id"
                :label="item.nickname"
                :value="item.id"
              />
            </el-select>
          </el-form-item>
        </el-row>
        <el-row :span="24">
          <el-col style="width: 592px">
吴滔's avatar
吴滔 committed
55
            <el-form-item :label="$t('创建时间')">
56
              <el-date-picker
57
                v-model="dateFilter"
58
                type="datetimerange"
吴滔's avatar
吴滔 committed
59
                range-separator="-"
60
                value-format="yyyy-MM-dd HH:mm:ss"
吴滔's avatar
吴滔 committed
61 62
                :start-placeholder="$t('请选择日期')"
                :end-placeholder="$t('请选择日期')"
63 64 65 66
              >
              </el-date-picker>
            </el-form-item>
          </el-col>
我在何方's avatar
我在何方 committed
67 68 69
          <el-form-item :label="$t('编号')">
            <el-input
              style="max-width: 188px"
我在何方's avatar
我在何方 committed
70
              v-model="queryParams.numberNo"
我在何方's avatar
我在何方 committed
71
              :placeholder="$t('订单号和提单号,自编号')"
我在何方's avatar
我在何方 committed
72 73 74 75
              clearable
              @keyup.enter.native="handleQuery"
            />
          </el-form-item>
我在何方's avatar
我在何方 committed
76 77
          <el-form-item>
            <el-button type="primary" @click="handleQuery">{{ $t('查找') }}</el-button>
78 79 80 81 82
          </el-form-item>
        </el-row>
      </el-form>
    </el-card>
    <el-table v-loading="loadings" :data="list" border class="card">
吴滔's avatar
吴滔 committed
83
      <el-table-column :label="$t('序号')" align="center" prop="id" type="index">
84 85 86 87
        <template slot-scope="scope">
          <span>{{ scope.$index + 1 }}</span>
        </template>
      </el-table-column>
88 89 90 91 92
      <el-table-column :label="$t('收款单号')" align="center" prop="receiptNo" />
        <!-- <template slot-scope="scope"> -->
          <!-- <span style="color: #1890ff;" @click="verificationCancelClick(scope.row)">{{scope.row.receiptNo}}</span> -->
        <!-- </template> -->
      <!-- </el-table-column> -->
吴滔's avatar
吴滔 committed
93 94
      <el-table-column :label="$t('客户名称')" align="center" prop="customerName" />
      <el-table-column :label="$t('创建日期')" align="center" prop="createTime">
95 96 97 98
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
吴滔's avatar
吴滔 committed
99
      <el-table-column :label="$t('实收日期')" align="center" prop="payedAt">
100
        <template slot-scope="scope">
我在何方's avatar
我在何方 committed
101
          <span>{{ parseTime(scope.row.payedAt, '{y}-{m}-{d}') }}</span>
102 103
        </template>
      </el-table-column>
吴滔's avatar
吴滔 committed
104 105
      <el-table-column :label="$t('业务员')" align="center" prop="salesmanName" />
      <el-table-column :label="$t('状态')" align="center">
106 107 108 109 110
        <template slot-scope="scope">
          <dict-tag
            :type="DICT_TYPE.ECW_RECEIPT_STATE"
            :value="scope.row.state"
          />
我在何方's avatar
我在何方 committed
111
          <span v-if="scope.row.remark&&(scope.row.state==1 || scope.row.state ==3 || scope.row.state==8)" :title="scope.row.remark"><i class="el-icon-question"></i></span>
112 113
        </template>
      </el-table-column>
吴滔's avatar
吴滔 committed
114
      <el-table-column :label="$t('是否开票')" align="center">
115
        <template slot-scope="scope">
吴滔's avatar
吴滔 committed
116
          {{ scope.row.openInvoice === 0 ? $t('') : $t('') }}
117 118 119
        </template>
      </el-table-column>
      <el-table-column
吴滔's avatar
吴滔 committed
120
        :label="$t('操作')"
121 122 123 124
        align="center"
        class-name="small-padding fixed-width"
      >
        <template slot-scope="scope">
125 126 127 128 129 130
          <el-button
            size="mini"
            type="text"
            v-hasPermi="['ecw:voucher:see']"
            @click="verificationCancelClick(scope.row)"
            >{{ $t('查看')}}</el-button>
131
          <el-button
我在何方's avatar
我在何方 committed
132
            v-if="scope.row.state === 0"
133 134
            size="mini"
            type="text"
135
            v-hasPermi="['ecw:voucher:edit']"
136
            @click="handleAdd(scope.row.id)"
吴滔's avatar
吴滔 committed
137
            >{{ $t('编辑') }}</el-button
138
          >
139 140
          <!-- <el-button
            v-if="scope.row.state == "
141 142 143
            size="mini"
            type="text"
            @click="verificationClick(scope.row)"
Marcus's avatar
Marcus committed
144
            >{{ $t('核销') }}</el-button
145
          > -->
146
          <el-button
147
            v-if="scope.row.state == 4 || scope.row.state == 5 || scope.row.state == 6"
148 149
            size="mini"
            type="text"
150
            v-hasPermi="['ecw:voucher:cancelWriteOff']"
我在何方's avatar
我在何方 committed
151
            @click="writeOffShow(2,scope.$index)"
吴滔's avatar
吴滔 committed
152
            >{{ $t('反核销') }}</el-button
153
          >
154
          <el-button
我在何方's avatar
我在何方 committed
155
            v-if="scope.row.state == 1"
156 157
            size="mini"
            type="text"
我在何方's avatar
我在何方 committed
158
            v-hasPermi="['ecw:voucher:deApproval']"
我在何方's avatar
我在何方 committed
159
            @click="writeOffShow(1,scope.$index)"
160 161
            >{{ $t('反审核') }}</el-button
          >
我在何方's avatar
我在何方 committed
162
         <el-button
我在何方's avatar
我在何方 committed
163
            v-if="scope.row.state == 7"
164 165
            size="mini"
            type="text"
我在何方's avatar
我在何方 committed
166
            v-hasPermi="['ecw:vocher:cancelAppoval']"
我在何方's avatar
我在何方 committed
167
            @click="cancelClick(scope.$index,1)"
168 169 170
            >{{ $t('取消审核') }}</el-button
          >
          <el-button
我在何方's avatar
我在何方 committed
171
            v-if="scope.row.state == 11"
172 173
            size="mini"
            type="text"
我在何方's avatar
我在何方 committed
174
            v-hasPermi="['ecw:vocher:cancelWriteOfflNo']"
我在何方's avatar
我在何方 committed
175
            @click="cancelClick(scope.$index,3)"
176 177
            >{{ $t('取消反核销审核') }}</el-button
          >
我在何方's avatar
我在何方 committed
178 179 180 181 182 183 184 185
          <el-button
            v-if="scope.row.state == 10"
            size="mini"
            type="text"
            v-hasPermi="['ecw:vocher:cancelWriteOffAll']"
            @click="cancelClick(scope.$index,4)"
            >{{ $t('取消全部核销审核') }}</el-button
          >
186
          <el-button
我在何方's avatar
我在何方 committed
187
            v-if="scope.row.state == 9"
188 189
            size="mini"
            type="text"
我在何方's avatar
我在何方 committed
190
            v-hasPermi="['ecw:vocher:cancelAppovalNo']"
我在何方's avatar
我在何方 committed
191 192
            @click="cancelClick(scope.$index,2)"
            >{{ $t('取消反审核') }}</el-button
193 194 195 196
          >
          <el-button
            size="mini"
            type="text"
我在何方's avatar
我在何方 committed
197
            v-if="scope.row.state == 9 || scope.row.state == 7 || scope.row.state == 11|| scope.row.state == 10"
198
            v-hasPermi="['ecw:voucher:cancelWriteOff']"
我在何方's avatar
我在何方 committed
199
            @click="$router.push(`/bpm/process-instance/detail?id=`+scope.row.bmpId)"
200
            >{{ $t('审核详情') }}</el-button
我在何方's avatar
我在何方 committed
201
          >
202
          <el-button
203
            v-if="scope.row.state == 5"
204 205
            size="mini"
            type="text"
206
            v-hasPermi="['ecw:voucher:ballot']"
207
            @click="openInvoice(scope.row.id)"
吴滔's avatar
吴滔 committed
208
            >{{ $t('开票') }}</el-button
209
          >
210
          <el-button v-if="scope.row.state == 1 || scope.row.state == 2 || scope.row.state == 3"  v-hasPermi="['ecw:voucher:payment']" size="mini" type="text" @click="verificationCancelClick(scope.row)">{{ $t('收款') }}</el-button>
我在何方's avatar
我在何方 committed
211
          <el-button v-if="scope.row.state == 0" size="mini" type="text"  v-hasPermi="['ecw:voucher:delete']" @click="deleteClick(scope.row)">{{ $t('删除') }}</el-button>
212
          <el-button
我在何方's avatar
我在何方 committed
213
            v-if="scope.row.state != 0 && scope.row.state != 7 && scope.row.state != 11 && scope.row.state != 8 && scope.row.state != 9"
214 215 216
            size="mini"
            type="text"
            @click="toprint(scope.row.id)"
217
            v-hasPermi="['ecw:voucher:print']"
吴滔's avatar
吴滔 committed
218
            >{{ $t('打印') }}</el-button
219
          >
220
          <el-button
我在何方's avatar
我在何方 committed
221
            v-if="scope.row.state != 0 && scope.row.state != 7 && scope.row.state != 11 && scope.row.state != 8 && scope.row.state != 9"
222 223
            size="mini"
            type="text"
224
            v-hasPermi="['ecw:voucher:derive']"
225
            @click="exportReceipt(scope.row.id)"
吴滔's avatar
吴滔 committed
226
            >{{ $t('导出账单') }}</el-button
227 228 229 230 231 232 233 234 235 236 237 238 239 240
          >
        </template>
      </el-table-column>
    </el-table>
    <!-- 分页组件 -->
    <pagination
      v-show="total > 0"
      :total="total"
      :page.sync="queryParams.page"
      :limit.sync="queryParams.rows"
      @pagination="getList"
    />
    <!-- 对话框(添加 / 修改) -->
    <el-dialog
吴滔's avatar
吴滔 committed
241
      :title="$t('导出账单')"
242 243 244 245 246 247
      :visible.sync="open"
      width="500px"
      style="margin-top: 20vh !important"
      append-to-body
    >
      <!-- <div slot="title" class="card-title" style='border-bottom: 2px solid #f8f8f8;'>
Marcus's avatar
Marcus committed
248
            <span>{{ $t('导出账单') }}</span>
我在何方's avatar
我在何方 committed
249
            <i class="el-icon-close" @click="cancel"></i>
250 251
          </div> -->
      <div class="dialog-footer">
252
        <el-button type="primary" style="width: 130px" @click="submitForm(1)" v-loading="downloading">{{ $t('国内账单') }}</el-button
253 254 255
        >
        <el-button
          plain
256
          v-loading="downloading"
257 258 259 260 261 262 263
          type="primary"
          style="width: 130px; margin: 0"
          @click="submitForm(2)"
          >Debite note</el-button
        >
      </div>
    </el-dialog>
264
    <el-dialog
我在何方's avatar
我在何方 committed
265
     :title="writeOffType==1?$t('收款单反审核'):$t('收款单反核销')"
266 267 268 269
      :visible.sync="dialogVisible"
      width="30%">
       <div class="cancel_content">
         <span>{{$t('申请理由')}}</span>
我在何方's avatar
我在何方 committed
270
         <el-input type="textarea" :rows ="6" v-model="reason" :placeholder="$t('请输入理由')"></el-input>
271
       </div>
我在何方's avatar
我在何方 committed
272 273 274
      <span slot="footer" class="dialog-footers">
        <el-button v-if="writeOffType==1" type="primary" @click="writeOffClick()">{{$t('提交反审核')}}</el-button>
        <el-button v-else type="primary" @click="writeOffClick()">{{$t('提交反核销')}}</el-button>
275 276 277
        <el-button @click="dialogVisible = false">{{$t('取消')}}</el-button>
      </span>
    </el-dialog>
我在何方's avatar
我在何方 committed
278 279 280 281 282 283 284 285 286 287 288 289 290
    <el-dialog
     :title="cancelTitle"
      :visible.sync="cancelShow"
      width="30%">
       <div class="cancel_content">
         <span>{{$t('申请理由')}}</span>
         <el-input type="textarea" :rows ="6" v-model="cancelReason" :placeholder="$t('请输入取消理由')"></el-input>
       </div>
      <span slot="footer" class="dialog-footers">
        <el-button type="primary" @click="cancelWriteOffClick()">{{$t('提交')}}</el-button>
        <el-button @click="cancelShow = false">{{$t('取消')}}</el-button>
      </span>
    </el-dialog>
我在何方's avatar
我在何方 committed
291 292 293 294
  </div>
</template>

<script>
295 296 297 298 299
import { listSimpleUsers } from "@/api/system/user";
import { DICT_TYPE } from "@/utils/dict";
import CustomerSelector from "@/components/CustomerSelector";
import {
  getReceiptList,
300 301
  // receiptVerification,
  // receiptVerificationCancel,
302
  receiptExportExcel,
我在何方's avatar
我在何方 committed
303 304 305 306 307
  deleteReceipt,
  financeReceiptWriteOffNo,
  financeApproveNo,
  cancelFinanceReceiptApproval,
  cancelFinanceReceiptApprovalNo,
我在何方's avatar
我在何方 committed
308 309
  cancelFinanceReceiptWriteOffNo,
  cancelFinanceReceiptWriteOff
310
} from "@/api/ecw/financial";
我在何方's avatar
我在何方 committed
311

312
export default {
313
  name: "EcwFinancialVoucher",
314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329
  components: {
    CustomerSelector,
  },
  data() {
    return {
      exportId: "",
      open: false,
      showSearch: true,
      loadings: false,
      form: {},
      creatorData: [],
      list: [],
      total: 0,
      dateType: [],
      loading: "",
      params: {
330

331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350
      },
      // 查询参数
      queryParams: {
        page: 1,
        rows: 20,
        dateType: null,
        date: null,
        originId: null,
        destinationId: null,
        transportId: null,
        isCargoControl: null,
        orderExceptionStatus: null,
        orderExceptionType: null,
        orderNo: null,
        consignorId: null,
        marks: null,
        prodId: null,
        productRecord: null,
        followUpSalesmanId: null,
      },
351
      dateFilter:[],
352
      downloading: false, // 导出状态
353
      dialogVisible:false,
我在何方's avatar
我在何方 committed
354 355 356 357 358 359 360 361
      reason:'',
      writeOffType:1,
      writeOffIndex:0,
      cancelShow:false,
      cancelTitle:'',
      cancelReason:'',
      cancelIndex:0,
      selectIndex:0
362 363
    };
  },
364
  activated(){
365
    this.getList();
366
  },
367 368 369 370 371 372 373 374 375
  created() {
    let that = this;
    listSimpleUsers().then((res) => (that.creatorData = res.data));
    this.getList();
  },
  methods: {
    /** 查询列表 */
    getList() {
      this.loading = true;
376 377 378 379 380 381 382
      this.params = {}
      for(var key in this.queryParams){
          if(this.queryParams[key]){
            this.params[key] = this.queryParams[key]
          }
         }
      console.log(this.params)
383
      // 处理查询参数
384
      let params = { ...this.params };
385 386 387 388 389 390 391 392
      this.addBeginAndEndTime(params, this.dateRangeCreateTime, "createTime");
      // 执行查询
      getReceiptList(params).then((response) => {
        this.list = response.data.list;
        this.total = response.data.total;
        this.loading = false;
      });
    },
我在何方's avatar
我在何方 committed
393 394 395
    changeCustomerId(e){
      this.$set(this.queryParams,'customerId',e.id)
    },
396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423
    verificationClick(row) {
      const id = row.id;
      return this.$router.push("receiptDetail?id=" + id);
    //   this.$modal
    //     .confirm("您确认要核销吗?")
    //     .then(function () {
    //       return receiptVerification(id);
    //     })
    //     .then(() => {
    //       this.getList();
    //       this.$modal.msgSuccess("核销成功");
    //     })
    //     .catch(() => {});
    },
    verificationCancelClick(row) {
      const id = row.id;
      return this.$router.push("receiptDetail?id=" + id);
      // this.$modal
      //   .confirm("您确认要反核销吗?")
      //   .then(function () {
      //     return receiptVerificationCancel(id);
      //   })
      //   .then(() => {
      //     this.getList();
      //     this.$modal.msgSuccess("反核销成功");
      //   })
      //   .catch(() => {});
    },
我在何方's avatar
我在何方 committed
424 425 426 427 428 429 430 431 432
    //显示取消审核弹窗
    cancelClick(index,type){
      this.selectIndex = index
      this.cancelIndex = type
      this.cancelReason = ''
      if(this.cancelIndex==1){
        this.cancelTitle = this.$t('取消审核')
      }else if(this.cancelIndex == 2){
         this.cancelTitle = this.$t('取消反审核')
我在何方's avatar
我在何方 committed
433
      }else if(this.cancelIndex == 3){
我在何方's avatar
我在何方 committed
434
         this.cancelTitle = this.$t('取消反核销审核')
我在何方's avatar
我在何方 committed
435 436
      }else{
        this.cancelTitle = this.$t('取消全部核销审核')
我在何方's avatar
我在何方 committed
437 438 439 440 441 442 443 444 445 446 447 448 449
      }
      this.cancelShow = true
    },
    //取消审核
    cancelWriteOffClick(){
      if(!this.cancelReason){
         this.$modal.msgError(this.$t('请输入申请理由'));
        return
      }
      var receiptId = this.list[this.selectIndex].id
      if(this.cancelIndex==1){
            cancelFinanceReceiptApproval({receiptId:receiptId,remark:this.cancelReason}).then(res=>{
              this.cancelShow = false
我在何方's avatar
我在何方 committed
450
              this.getList();
我在何方's avatar
我在何方 committed
451 452
              this.$message.success(this.$t("提交成功"));

我在何方's avatar
我在何方 committed
453 454 455 456
            });
      }else if(this.cancelIndex ==2){
          cancelFinanceReceiptApprovalNo({receiptId:receiptId,remark:this.cancelReason}).then(res=>{
            this.cancelShow = false
我在何方's avatar
我在何方 committed
457
            this.getList();
我在何方's avatar
我在何方 committed
458 459
            this.$message.success(this.$t("提交成功"));

我在何方's avatar
我在何方 committed
460
          });
我在何方's avatar
我在何方 committed
461
      }else if(this.cancelIndex ==3){
我在何方's avatar
我在何方 committed
462 463
          cancelFinanceReceiptWriteOffNo({receiptId:receiptId,remark:this.cancelReason}).then(res=>{
            this.cancelShow = false
我在何方's avatar
我在何方 committed
464
            this.getList();
我在何方's avatar
我在何方 committed
465 466
            this.$message.success(this.$t("提交成功"));

我在何方's avatar
我在何方 committed
467 468 469 470 471 472
          });
      }else{
          cancelFinanceReceiptWriteOff({receiptId:receiptId,remark:this.cancelReason}).then(res=>{
            this.cancelShow = false
            this.getList();
            this.$message.success(this.$t("提交成功"));
473

我在何方's avatar
我在何方 committed
474 475 476 477 478 479 480 481 482 483 484
          });
      }

    },
    writeOffClick(){
      if(!this.reason){
         this.$modal.msgError(this.$t('请输入申请理由'));
        return
      }
      const receiptIdData = this.list[this.writeOffIndex]
      if(this.writeOffType==1){
485 486 487
        // this.$alert()
        //   .confirm(this.$t('您确认要反审核吗')+'?')
        //   .then(()=>{
我在何方's avatar
我在何方 committed
488
            financeApproveNo({receiptId:receiptIdData.id,receiptNo:receiptIdData.receiptNo,remark:this.reason}).then(res=>{
我在何方's avatar
我在何方 committed
489
              this.getList();
我在何方's avatar
我在何方 committed
490 491 492 493
              this.$message.success(this.$t("提交成功"));
              this.dialogVisible = false
              // this.$store.dispatch('tagsView/delCurrentView')
            });
494 495
          // })
          // .catch(() => {this.dialogVisible = false});
我在何方's avatar
我在何方 committed
496
      }else{
497 498 499
        // this.$modal
        //   .confirm(this.$t('您确认要反核销吗')+'?')
        //   .then(()=>{
我在何方's avatar
我在何方 committed
500
            financeReceiptWriteOffNo({receiptId:receiptIdData.id,receiptNo:receiptIdData.receiptNo,remark:this.reason}).then(res=>{
我在何方's avatar
我在何方 committed
501
              this.getList();
我在何方's avatar
我在何方 committed
502 503 504 505
              this.$message.success(this.$t("提交成功"));
              this.dialogVisible = false
              // this.$store.dispatch('tagsView/delCurrentView')
            });
506 507
          // })
          // .catch(() => {this.dialogVisible = false});
我在何方's avatar
我在何方 committed
508 509 510
      }

    },
511 512
    deleteClick(row) {
      const id = row.id;
我在何方's avatar
我在何方 committed
513
      this.$modal.confirm(this.$t('是否确认删除该收款单')+'?').then(function() {
514 515 516
        return deleteReceipt(id);
      }).then(() => {
        this.getList();
吴滔's avatar
吴滔 committed
517
        this.$modal.msgSuccess(this.$t('删除成功'));
518 519 520 521
      }).catch(() => {});
    },
    /** 搜索按钮操作 */
    handleQuery() {
522 523 524 525 526 527 528 529
      if(this.dateFilter&&this.dateFilter.length>0){
        this.queryParams.beginCreateTime = this.dateFilter[0]
        this.queryParams.endCreateTime = this.dateFilter[1]
      }else{
        this.queryParams.beginCreateTime = ''
        this.queryParams.endCreateTime = ''
      }

530
      this.queryParams.page = 1;
我在何方's avatar
我在何方 committed
531
      this.getList();
532 533 534 535 536 537 538 539 540 541 542 543 544 545 546
    },
    /** 新增按钮操作 */
    handleAdd(id) {
      return this.$router.push("creatCollection?id=" + id);
    },
    toprint(id) {
      return this.$router.push("printVoucher?id=" + id);
    },
    openInvoice(id) {
      return this.$router.push("openInvoice?id=" + id);
    },
    exportReceipt(id) {
      this.open = true;
      this.exportId = id;
    },
我在何方's avatar
我在何方 committed
547 548 549 550 551 552 553
    //显示反审核反核销弹窗
    writeOffShow(type,index){
      this.writeOffType = type
      this.writeOffIndex = index
      this.reason = ''
      this.dialogVisible = true
    },
554
    submitForm(type) {
555
      this.downloading = true
556
      receiptExportExcel({ id: this.exportId, billType: type }).then((response) => {
吴滔's avatar
吴滔 committed
557
          this.$download.excel(response, `${type === 1 ? this.$t('国内账单') : "Debite_note"}.xls`);
我在何方's avatar
我在何方 committed
558
          this.open = false;
559
        }
560
      ).finally(() => this.downloading = false)
561 562 563 564 565 566 567 568
    },
    /** 取消按钮 */
    //  cancel() {
    //    this.open = false;
    //  },
  },
};
</script>
我在何方's avatar
我在何方 committed
569

我在何方's avatar
我在何方 committed
570
 <style scoped>
571 572 573 574 575 576 577 578 579 580 581
.card {
  margin-top: 20px;
}
.dialog-footer {
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 160px;
}
我在何方's avatar
我在何方 committed
582 583 584 585 586
.dialog-footers{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
587 588 589 590
.card-title {
  font-size: 18px;
  font-weight: bold;
}
591 592 593 594 595 596 597 598 599
  .cancel_content{
    display: flex;
    flex-direction: column;
  }
  .cancel_content span{
    font-size: 16px;
    font-weight:600;
    margin-bottom:10px
  }
600
</style>