123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333 |
- <template>
- <div>
- <div class="sty">
- <el-page-header @back="goBack"> </el-page-header>
- </div>
- <br />
- <span>基本信息</span>
- <el-divider></el-divider>
- <!-- 表头 -->
- <div>
- <el-form
- ref="searchForm"
- :model="searchForm"
- label-width="100px"
- size="small"
- label-position="left"
- >
- <el-row :gutter="20">
- <el-col :xs="24" :sm="12" :lg="6">
- <el-form-item label="单据类型" prop="">
- <el-input
- disabled
- v-model="searchForm.billType"
- placeholder="请输入"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6">
- <el-form-item label="单据编号" prop="">
- <el-input
- disabled
- v-model="searchForm.code"
- placeholder="请输入"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6">
- <el-form-item label="单据来源" prop="">
- <el-input
- disabled
- v-model="searchForm.source"
- placeholder="请输入"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6">
- <el-form-item label="业务日期" prop="">
- <el-input
- disabled
- v-model="searchForm.theTime"
- placeholder="请输入"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6">
- <el-form-item label="到期日" prop="">
- <el-input
- disabled
- v-model="searchForm.endTime"
- placeholder="请输入"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6">
- <el-form-item label="总金额" prop="">
- <el-input
- disabled
- v-model="searchForm.totalAmount"
- placeholder="请输入"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6">
- <el-form-item label="制单人" prop="">
- <el-input
- disabled
- v-model="searchForm.createBy"
- placeholder="请输入"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6">
- <el-form-item label="制单日期" prop="">
- <el-input
- disabled
- v-model="searchForm.createTime"
- placeholder="请输入"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6">
- <el-form-item label="单据状态" prop="">
- <el-input
- disabled
- v-model="searchForm.examineStatus"
- placeholder="请输入"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6">
- <el-form-item label="备注" prop="">
- <el-input
- disabled
- v-model="searchForm.remark"
- placeholder="请输入"
- ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- </el-form>
- </div>
- <span>明细</span>
- <el-divider></el-divider>
- <!-- 列表 -->
- <div class="mymain-container">
- <div class="table">
- <el-table
- v-loading="listLoading"
- :data="dataList"
- element-loading-text="Loading"
- border
- fit
- highlight-current-row
- stripe
- >
- <el-table-column
- label="序号"
- align="center"
- type="index"
- width="100"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="center"
- label="经销商编号"
- prop="customerNumber"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="center"
- label="经销商名称"
- prop="customerName"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="center"
- label="*费用项目编码"
- prop="projectCode"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="center"
- label="项目费用名称"
- prop="projectName"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="center"
- label="*费用承担部门"
- prop="departmentId"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="center"
- label="现金钱包"
- prop="customerWalletName"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="center"
- label="*发票类型"
- prop="invoiceType"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="center"
- label="不含税金额"
- prop="afterTaxAmount"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="center"
- label="税额"
- prop="tax"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="center"
- label="总金额"
- prop="totalAmount"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="center"
- label="备注"
- prop="remark"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- </el-table>
- </div>
- </div>
- <span>审批信息</span>
- <el-divider></el-divider>
- <div class="diy-table-1">
- <el-row :gutter="0">
- <el-col :span="12" class="item">
- <div class="label">审批人</div>
- <div class="value">{{ this.name }}</div>
- </el-col>
- <el-col :span="12" class="item">
- <div class="label">审批结果</div>
- <div class="value">
- <div class="value">
- <el-radio v-model="examineStatus" label="OK">通过</el-radio>
- <el-radio v-model="examineStatus" label="FAIL">驳回</el-radio>
- </div>
- </div>
- </el-col>
- <el-col :span="24" class="item">
- <div class="label">审批说明</div>
- <div class="value">
- <el-input
- v-model="examineRemark"
- placeholder="请输入内容"
- ></el-input>
- </div>
- </el-col>
- </el-row>
- </div>
- <br />
- <!-- 按钮 -->
- <div class="btn-group clearfix">
- <div class="fl">
- <el-button type="primary" size="small" @click="btnOK"
- >提交审批</el-button
- >
- <el-button type="primary" size="small" @click="resetFn">重置</el-button>
- </div>
- </div>
- </div>
- </template>
- <script>
- import {
- getFinanceOtherReceDetail,
- getFinanceOtherReceExamine,
- } from "@/api/finance/receivable_list";
- import { mapGetters } from "vuex";
- export default {
- props: {
- approvalId: {
- type: String,
- required: true,
- },
- },
- data() {
- return {
- examineRemark: "",
- examineStatus: "OK",
- dataList: [],
- listLoading: false, // 列表加载loading
- searchForm: {
- billType: "",
- code: "",
- source: "",
- theTime: "",
- endTime: "",
- totalAmount: "",
- create: "",
- createTime: "",
- examineStatus: "",
- remark: "",
- },
- };
- },
- computed: { ...mapGetters(["name"]) },
- created() {
- this.getDataList();
- },
- methods: {
- //重置
- resetFn() {
- this.examineRemark = "";
- this.examineStatus = "";
- },
- //审核
- async btnOK() {
- await getFinanceOtherReceExamine({
- id: this.approvalId,
- examineRemark: this.examineRemark,
- examineStatus: this.examineStatus,
- });
- this.$emit("updateList");
- this.$parent.showPage = 1;
- this.$message.success("审核成功");
- },
- async getDataList() {
- const res = await getFinanceOtherReceDetail({ id: this.approvalId });
- console.log(res);
- this.searchForm = {
- billType: res.data.billType,
- code: res.data.code,
- source: res.data.source,
- theTime: res.data.theTime,
- endTime: res.data.endTime,
- totalAmount: res.data.totalAmount,
- create: res.data.create,
- createTime: res.data.createTime,
- examineStatus: res.data.examineStatus == "WAIT" ? "待审核" : "",
- remark: res.data.remark,
- };
- this.dataList = res.data.items;
- },
- goBack() {
- this.$parent.showPage = 1;
- },
- },
- };
- </script>
- <style></style>
|