|
@@ -1,254 +1,316 @@
|
|
<template>
|
|
<template>
|
|
- <div class="app-container">
|
|
|
|
- <div class="descriptions">
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="4">销售政策编号</el-col>
|
|
|
|
- <el-col :span="4">{{ detail.code }}</el-col>
|
|
|
|
- <el-col :span="4">销售政策说明</el-col>
|
|
|
|
- <el-col :span="4">{{ detail.title }}</el-col>
|
|
|
|
- <el-col :span="4">状态</el-col>
|
|
|
|
- <el-col :span="4">{{
|
|
|
|
- detail.status == 1 ? "已生效" : "未生效"
|
|
|
|
- }}</el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="4">销售政策类型</el-col>
|
|
|
|
- <el-col :span="4">{{
|
|
|
|
- detail.type == "PROVISION" ? "配提" : "限量"
|
|
|
|
- }}</el-col>
|
|
|
|
- <el-col :span="4">现金钱包</el-col>
|
|
|
|
- <el-col :span="4"></el-col>
|
|
|
|
- <el-col :span="4"></el-col>
|
|
|
|
- <el-col :span="4"></el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="4">备注</el-col>
|
|
|
|
- <el-col :span="20">{{ detail.remark }}</el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="3">制单人</el-col>
|
|
|
|
- <el-col :span="3">{{ detail.createBy }}</el-col>
|
|
|
|
- <el-col :span="3">制单日期</el-col>
|
|
|
|
- <el-col :span="3">{{ detail.createTime }}</el-col>
|
|
|
|
- <el-col :span="3">生效日期</el-col>
|
|
|
|
- <el-col :span="3">{{ detail.startTime }}</el-col>
|
|
|
|
- <el-col :span="3">失败日期</el-col>
|
|
|
|
- <el-col :span="3">{{ detail.endTime }}</el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row v-if="this.$parent.isShow == 4">
|
|
|
|
- <el-col :span="3">审核人</el-col>
|
|
|
|
- <el-col :span="3">{{ detail.examineBy }}</el-col>
|
|
|
|
- <el-col :span="3">审核日期</el-col>
|
|
|
|
- <el-col :span="3">{{ detail.examineTime }}</el-col>
|
|
|
|
- <el-col :span="3">关闭人</el-col>
|
|
|
|
- <el-col :span="3"></el-col>
|
|
|
|
- <el-col :span="3">关闭日期</el-col>
|
|
|
|
- <el-col :span="3"></el-col>
|
|
|
|
- </el-row>
|
|
|
|
- </div>
|
|
|
|
- <div class="mymain-container">
|
|
|
|
- <el-row>
|
|
|
|
- <el-divider></el-divider>
|
|
|
|
- <el-row type="flex">
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <h4 style="display: inline-block; margin-right: 20px">货品信息</h4>
|
|
|
|
- <!-- <el-button size="small">查看</el-button> -->
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="12" class="tr">
|
|
|
|
- <el-button size="small" @click="$parent.isShow=6">查看条件</el-button>
|
|
|
|
- </el-col>
|
|
|
|
|
|
+
|
|
|
|
+ <div>
|
|
|
|
+ <el-header height="50px" class="header">
|
|
|
|
+ <el-page-header @back="$parent.isShow = 1,$parent.id=''" content="详情页面">
|
|
|
|
+ </el-page-header>
|
|
|
|
+ </el-header>
|
|
|
|
+ <div class="app-container">
|
|
|
|
+ <div class="descriptions">
|
|
|
|
+
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="4">销售政策编号</el-col>
|
|
|
|
+ <el-col :span="4">{{ detail.code }}</el-col>
|
|
|
|
+ <el-col :span="4">销售政策说明</el-col>
|
|
|
|
+ <el-col :span="4">{{ detail.title }}</el-col>
|
|
|
|
+ <el-col :span="4">状态</el-col>
|
|
|
|
+ <el-col :span="4">{{
|
|
|
|
+ detail.status == 1 ? "已生效" : "未生效"
|
|
|
|
+ }}</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
- <el-divider></el-divider>
|
|
|
|
- </el-row>
|
|
|
|
- <el-table :data="dataList" border style="width: 100%">
|
|
|
|
- <el-table-column label="状态" width="120" align="center">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <el-tag v-if="scope.row.examineStatus == 'WAIT'">待审核</el-tag>
|
|
|
|
- <el-tag v-else-if="scope.row.examineStatus == 'OK'">通过 </el-tag>
|
|
|
|
- <el-tag v-else>失败</el-tag>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="code"
|
|
|
|
- label="销售政策编号"
|
|
|
|
- width="120"
|
|
|
|
- align="center"
|
|
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="title"
|
|
|
|
- label="销售政策说明"
|
|
|
|
- width="120"
|
|
|
|
- align="center"
|
|
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column prop="address" label="部门" width="300" align="center">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="remark"
|
|
|
|
- label="表头备注"
|
|
|
|
- width="120"
|
|
|
|
- align="center"
|
|
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="startTime"
|
|
|
|
- label="生效日期"
|
|
|
|
- width="120"
|
|
|
|
- align="center"
|
|
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="endTime"
|
|
|
|
- label="结束日期"
|
|
|
|
- width="120"
|
|
|
|
- align="center"
|
|
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="examineBy"
|
|
|
|
- label="制表人"
|
|
|
|
- width="120"
|
|
|
|
- align="center"
|
|
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="examineBy"
|
|
|
|
- label="制表日期"
|
|
|
|
- width="120"
|
|
|
|
- align="center"
|
|
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="examineBy"
|
|
|
|
- label="审核人"
|
|
|
|
- width="120"
|
|
|
|
- align="center"
|
|
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
- </el-table>
|
|
|
|
- <el-row>
|
|
|
|
- <el-divider></el-divider>
|
|
|
|
- <el-row type="flex">
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <h4 style="display: inline-block; margin-right: 20px">条件信息</h4>
|
|
|
|
- </el-col>
|
|
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="4">销售政策类型</el-col>
|
|
|
|
+ <el-col :span="4">{{
|
|
|
|
+ detail.type == "PROVISION" ? "配提" : "限量"
|
|
|
|
+ }}</el-col>
|
|
|
|
+ <el-col :span="4">现金钱包</el-col>
|
|
|
|
+ <el-col :span="4"></el-col>
|
|
|
|
+ <el-col :span="4"></el-col>
|
|
|
|
+ <el-col :span="4"></el-col>
|
|
</el-row>
|
|
</el-row>
|
|
- <el-divider></el-divider>
|
|
|
|
- </el-row>
|
|
|
|
- <el-table
|
|
|
|
- :data="conditionList"
|
|
|
|
- element-loading-text="Loading"
|
|
|
|
- border
|
|
|
|
- fit
|
|
|
|
- highlight-current-row
|
|
|
|
- stripe
|
|
|
|
- >
|
|
|
|
- <el-table-column
|
|
|
|
- fixed
|
|
|
|
- type="index"
|
|
|
|
- label="序号"
|
|
|
|
- width="50"
|
|
|
|
- align="center"
|
|
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column prop="name" label="限定条件" align="center">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column fixed="right" width="150" label="操作" align="center">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <el-button type="text" size="small">删除</el-button>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- </el-table>
|
|
|
|
- <el-row>
|
|
|
|
- <el-divider></el-divider>
|
|
|
|
- <el-row type="flex">
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <h4 style="display: inline-block; margin-right: 20px">
|
|
|
|
- 经销商使用范围
|
|
|
|
- </h4>
|
|
|
|
- </el-col>
|
|
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="4">备注</el-col>
|
|
|
|
+ <el-col :span="20">{{ detail.remark }}</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
- <el-divider></el-divider>
|
|
|
|
- </el-row>
|
|
|
|
- <el-table
|
|
|
|
- v-loading="listLoading"
|
|
|
|
- :data="custoList"
|
|
|
|
- element-loading-text="Loading"
|
|
|
|
- border
|
|
|
|
- fit
|
|
|
|
- highlight-current-row
|
|
|
|
- stripe
|
|
|
|
- >
|
|
|
|
- <el-table-column
|
|
|
|
- fixed
|
|
|
|
- type="index"
|
|
|
|
- label="序号"
|
|
|
|
- width="50"
|
|
|
|
- align="center"
|
|
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="customerNumber"
|
|
|
|
- label="经销商编码"
|
|
|
|
- align="center"
|
|
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column prop="customerName" label="经销商名称" align="center">
|
|
|
|
- </el-table-column>
|
|
|
|
- </el-table>
|
|
|
|
- <!-- <div class="descriptions">
|
|
|
|
<el-row>
|
|
<el-row>
|
|
- <el-col :span="8">审核人</el-col>
|
|
|
|
- <el-col :span="8">{{ detail.code }}</el-col>
|
|
|
|
- <el-col :span="8">审核结果</el-col>
|
|
|
|
- <el-col :span="8">
|
|
|
|
- <template>
|
|
|
|
- <el-radio-group v-model="radio">
|
|
|
|
- <el-radio :label="3">通过</el-radio>
|
|
|
|
- <el-radio :label="6">驳回</el-radio>
|
|
|
|
- </el-radio-group>
|
|
|
|
|
|
+ <el-col :span="3">制单人</el-col>
|
|
|
|
+ <el-col :span="3">{{ detail.createBy }}</el-col>
|
|
|
|
+ <el-col :span="3">制单日期</el-col>
|
|
|
|
+ <el-col :span="3">{{ detail.createTime }}</el-col>
|
|
|
|
+ <el-col :span="3">生效日期</el-col>
|
|
|
|
+ <el-col :span="3">{{ detail.startTime }}</el-col>
|
|
|
|
+ <el-col :span="3">失败日期</el-col>
|
|
|
|
+ <el-col :span="3">{{ detail.endTime }}</el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row v-if="this.$parent.isShow == 4">
|
|
|
|
+ <el-col :span="3">审核人</el-col>
|
|
|
|
+ <el-col :span="3">{{ detail.examineBy }}</el-col>
|
|
|
|
+ <el-col :span="3">审核日期</el-col>
|
|
|
|
+ <el-col :span="3">{{ detail.examineTime }}</el-col>
|
|
|
|
+ <el-col :span="3">关闭人</el-col>
|
|
|
|
+ <el-col :span="3"></el-col>
|
|
|
|
+ <el-col :span="3">关闭日期</el-col>
|
|
|
|
+ <el-col :span="3"></el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mymain-container">
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-divider></el-divider>
|
|
|
|
+ <el-row type="flex">
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <h4 style="display: inline-block; margin-right: 20px">
|
|
|
|
+ 货品信息
|
|
|
|
+ </h4>
|
|
|
|
+ <!-- <el-button size="small">查看</el-button> -->
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="12" class="tr">
|
|
|
|
+ <el-button size="small" @click="$parent.isShow = 10"
|
|
|
|
+ >查看条件</el-button
|
|
|
|
+ >
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-divider></el-divider>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-table
|
|
|
|
+ v-loading="listLoading"
|
|
|
|
+ :data="dataList"
|
|
|
|
+ element-loading-text="Loading"
|
|
|
|
+ border
|
|
|
|
+ fit
|
|
|
|
+ highlight-current-row
|
|
|
|
+ stripe
|
|
|
|
+ >
|
|
|
|
+ <el-table-column
|
|
|
|
+ fixed
|
|
|
|
+ prop="num"
|
|
|
|
+ label="序号"
|
|
|
|
+ width="50"
|
|
|
|
+ align="center"
|
|
|
|
+ >
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="materialNumber"
|
|
|
|
+ label="货品编码"
|
|
|
|
+ align="center"
|
|
|
|
+ >
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="materialName" label="货品名称" align="center">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="specification" label="规格型号" align="center">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="saleTypeCode"
|
|
|
|
+ label="销售类型编码"
|
|
|
|
+ width="500"
|
|
|
|
+ align="center"
|
|
|
|
+ >
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="saleTypeName" label="销售类型" align="center">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="price" label="单价" align="center">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="支付钱包" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-tag
|
|
|
|
+ type="danger"
|
|
|
|
+ size="small"
|
|
|
|
+ v-if="scope.row.walletCommonly == 1"
|
|
|
|
+ >
|
|
|
|
+ 允许普通钱包
|
|
|
|
+ </el-tag>
|
|
|
|
+ <el-tag type="danger" size="small" v-else
|
|
|
|
+ >不允许使用普通钱包</el-tag
|
|
|
|
+ >
|
|
|
|
+ <el-tag
|
|
|
|
+ type="danger"
|
|
|
|
+ size="small"
|
|
|
|
+ v-if="scope.row.walletDeduct == 1"
|
|
|
|
+ >
|
|
|
|
+ 允许抵扣钱包</el-tag
|
|
|
|
+ >
|
|
|
|
+ <el-tag type="danger" size="small" v-else>不允许抵扣钱包</el-tag>
|
|
|
|
+ <el-tag
|
|
|
|
+ type="danger"
|
|
|
|
+ size="small"
|
|
|
|
+ v-if="scope.row.walletRebate == 1"
|
|
|
|
+ >
|
|
|
|
+ 允许返利钱包
|
|
|
|
+ </el-tag>
|
|
|
|
+ <el-tag type="danger" size="small" v-else>不允许返利钱包</el-tag>
|
|
|
|
+ <el-tag
|
|
|
|
+ type="danger"
|
|
|
|
+ size="small"
|
|
|
|
+ v-if="scope.row.walletSpecial == 1"
|
|
|
|
+ >允许特殊钱包</el-tag
|
|
|
|
+ >
|
|
|
|
+ <el-tag type="danger" size="small" v-else>
|
|
|
|
+ 不允许特殊钱包
|
|
|
|
+ </el-tag>
|
|
</template>
|
|
</template>
|
|
- </el-col>
|
|
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ <!-- 分页 -->
|
|
|
|
+ <div style="margin: 20px 0">
|
|
|
|
+ <el-pagination
|
|
|
|
+ @size-change="handleSizeChange"
|
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
|
+ :current-page="currentPage"
|
|
|
|
+ :page-sizes="[10, 20, 30, 50]"
|
|
|
|
+ :page-size="10"
|
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
+ :total="listTotal"
|
|
|
|
+ >
|
|
|
|
+ </el-pagination>
|
|
|
|
+ </div>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-divider></el-divider>
|
|
|
|
+ <el-row type="flex">
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <h4 style="display: inline-block; margin-right: 20px">
|
|
|
|
+ 条件信息
|
|
|
|
+ </h4>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-divider></el-divider>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
+ <el-table
|
|
|
|
+ :data="conditionList"
|
|
|
|
+ element-loading-text="Loading"
|
|
|
|
+ border
|
|
|
|
+ fit
|
|
|
|
+ highlight-current-row
|
|
|
|
+ stripe
|
|
|
|
+ >
|
|
|
|
+ <el-table-column
|
|
|
|
+ fixed
|
|
|
|
+ type="index"
|
|
|
|
+ label="序号"
|
|
|
|
+ width="50"
|
|
|
|
+ align="center"
|
|
|
|
+ >
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="name" label="限定条件" align="center">
|
|
|
|
+ </el-table-column>
|
|
|
|
+
|
|
|
|
+ </el-table>
|
|
<el-row>
|
|
<el-row>
|
|
- <el-col :span="4">审批说明</el-col>
|
|
|
|
- <el-col :span="4">
|
|
|
|
- <el-input
|
|
|
|
- type="textarea"
|
|
|
|
- autosize
|
|
|
|
- placeholder="审批说明"
|
|
|
|
- v-model="textarea1"
|
|
|
|
- >
|
|
|
|
- </el-input>
|
|
|
|
- </el-col>
|
|
|
|
|
|
+ <el-divider></el-divider>
|
|
|
|
+ <el-row type="flex">
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <h4 style="display: inline-block; margin-right: 20px">
|
|
|
|
+ 经销商使用范围
|
|
|
|
+ </h4>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-divider></el-divider>
|
|
</el-row>
|
|
</el-row>
|
|
- </div> -->
|
|
|
|
|
|
+ <el-table
|
|
|
|
+ v-loading="listLoading"
|
|
|
|
+ :data="custoList"
|
|
|
|
+ element-loading-text="Loading"
|
|
|
|
+ border
|
|
|
|
+ fit
|
|
|
|
+ highlight-current-row
|
|
|
|
+ stripe
|
|
|
|
+ >
|
|
|
|
+ <el-table-column
|
|
|
|
+ fixed
|
|
|
|
+ type="index"
|
|
|
|
+ label="序号"
|
|
|
|
+ width="50"
|
|
|
|
+ align="center"
|
|
|
|
+ >
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="customerNumber"
|
|
|
|
+ label="经销商编码"
|
|
|
|
+ align="center"
|
|
|
|
+ >
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="customerName"
|
|
|
|
+ label="经销商名称"
|
|
|
|
+ align="center"
|
|
|
|
+ >
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ <!-- 分页 -->
|
|
|
|
+ <div style="margin: 20px 0">
|
|
|
|
+ <el-pagination
|
|
|
|
+ @size-change="handleSizeChanges"
|
|
|
|
+ @current-change="handleCurrentChanges"
|
|
|
|
+ :current-page="currentPages"
|
|
|
|
+ :page-sizes="[10, 20, 30, 50]"
|
|
|
|
+ :page-size="10"
|
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
+ :total="clistTotal"
|
|
|
|
+ >
|
|
|
|
+ </el-pagination>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="descriptions" v-if="$parent.isShow == 8 ">
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="6">审核人</el-col>
|
|
|
|
+ <el-col :span="6">{{ detail.code }}</el-col>
|
|
|
|
+ <el-col :span="6">审核结果</el-col>
|
|
|
|
+ <el-col :span="6">
|
|
|
|
+ <template>
|
|
|
|
+ <el-radio-group v-model="examineStatus">
|
|
|
|
+ <el-radio :label="'OK'">通过</el-radio>
|
|
|
|
+ <el-radio :label="'FAIL'">驳回</el-radio>
|
|
|
|
+ </el-radio-group>
|
|
|
|
+ </template>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="4">审批说明</el-col>
|
|
|
|
+ <el-col :span="20" class="col" style="padding: 0">
|
|
|
|
+ <el-input
|
|
|
|
+ type="textarea"
|
|
|
|
+ style="height: 100%"
|
|
|
|
+ autosize
|
|
|
|
+ placeholder="请输入内容"
|
|
|
|
+ v-model="remark"
|
|
|
|
+ >
|
|
|
|
+ </el-input>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-button type="primary" size="small" @click="handleSubmit"
|
|
|
|
+ >审核</el-button
|
|
|
|
+ >
|
|
|
|
+ </el-row>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import {
|
|
import {
|
|
- getList,
|
|
|
|
- updatePolicy,
|
|
|
|
getPolicyDetail,
|
|
getPolicyDetail,
|
|
|
|
+ getMaterialList,
|
|
getCustomerList,
|
|
getCustomerList,
|
|
getConditionList,
|
|
getConditionList,
|
|
|
|
+ toExamine,
|
|
} from "@/api/supply/sales";
|
|
} from "@/api/supply/sales";
|
|
import Minxin from "@/mixin";
|
|
import Minxin from "@/mixin";
|
|
|
|
+import { ok } from "assert";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
mixins: [Minxin],
|
|
mixins: [Minxin],
|
|
name: "examine",
|
|
name: "examine",
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ currentPages: 1, // 当前页码
|
|
|
|
+ pageSizes: 10, // 每页数量
|
|
|
|
+ clistTotal: 0,
|
|
input: "",
|
|
input: "",
|
|
|
|
+ remark: "",
|
|
fileList: [],
|
|
fileList: [],
|
|
listLoading: false,
|
|
listLoading: false,
|
|
imageUrl: "",
|
|
imageUrl: "",
|
|
dataList: [],
|
|
dataList: [],
|
|
- radio: "",
|
|
|
|
|
|
+ examineStatus: "OK",
|
|
options: {},
|
|
options: {},
|
|
value: "",
|
|
value: "",
|
|
detail: {},
|
|
detail: {},
|
|
@@ -271,47 +333,66 @@ export default {
|
|
custoList: [],
|
|
custoList: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ created() {},
|
|
methods: {
|
|
methods: {
|
|
getList() {
|
|
getList() {
|
|
|
|
+ this.listLoading = true;
|
|
getPolicyDetail({ policyId: this.$parent.id }).then((res) => {
|
|
getPolicyDetail({ policyId: this.$parent.id }).then((res) => {
|
|
this.detail = res.data;
|
|
this.detail = res.data;
|
|
- console.log(this.dataList);
|
|
|
|
- });
|
|
|
|
- const params = {
|
|
|
|
- pageNum: this.currentPage,
|
|
|
|
- pageSize: this.pageSize,
|
|
|
|
- code: this.screenForm.code,
|
|
|
|
- createBy: this.screenForm.createBy,
|
|
|
|
- endCreateTime: this.screenForm.endCreateTime,
|
|
|
|
- endTime1: this.screenForm.endTime1,
|
|
|
|
- endTime2: this.screenForm.endTime2,
|
|
|
|
- examineBy: this.screenForm.examineBy,
|
|
|
|
- remark: this.screenForm.remark,
|
|
|
|
- startCreateTime: this.screenForm.startCreateTime,
|
|
|
|
- startTime1: this.screenForm.startTime1,
|
|
|
|
- startTime2: this.screenForm.startTime2,
|
|
|
|
- status: this.screenForm.status,
|
|
|
|
- title: this.screenForm.title,
|
|
|
|
- type: this.screenForm.type,
|
|
|
|
- };
|
|
|
|
- getList(params).then((res) => {
|
|
|
|
- this.dataList = res.data.records;
|
|
|
|
- });
|
|
|
|
- const condParams = {
|
|
|
|
- policyId: this.$parent.id,
|
|
|
|
- };
|
|
|
|
- // 获取条件政策
|
|
|
|
- getConditionList(condParams).then((res) => {
|
|
|
|
- this.conditionList = res.data;
|
|
|
|
- console.log(res, 46);
|
|
|
|
|
|
+ const condParams = {
|
|
|
|
+ policyId: this.detail.code,
|
|
|
|
+ };
|
|
|
|
+ // 获取条件政策
|
|
|
|
+ getConditionList(condParams).then((res) => {
|
|
|
|
+ this.conditionList = res.data;
|
|
|
|
+ });
|
|
|
|
+ const paramss = {
|
|
|
|
+ pageNum: this.currentPage,
|
|
|
|
+ pageSize: this.pageSize,
|
|
|
|
+ policyId: this.detail.code,
|
|
|
|
+ saleTypeCode: "",
|
|
|
|
+ };
|
|
|
|
+ getMaterialList(paramss).then((res) => {
|
|
|
|
+ this.dataList = res.data.records;
|
|
|
|
+ this.listTotal = res.data.total;
|
|
|
|
+ this.listLoading = false;
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ this.getCond();
|
|
});
|
|
});
|
|
|
|
+ },
|
|
|
|
+ // 更改每页数量
|
|
|
|
+ handleSizeChanges(val) {
|
|
|
|
+ this.pageSizes = val;
|
|
|
|
+ this.currentPages = 1;
|
|
|
|
+ this.getCond();
|
|
|
|
+ },
|
|
|
|
+ // 更改当前页
|
|
|
|
+ handleCurrentChanges(val) {
|
|
|
|
+ this.currentPages = val;
|
|
|
|
+ this.getCond();
|
|
|
|
+ },
|
|
|
|
+ getCond() {
|
|
|
|
+ this.listLoading = true;
|
|
const custoParams = {
|
|
const custoParams = {
|
|
- pageNum: this.currentPage,
|
|
|
|
- pageSize: this.pageSize,
|
|
|
|
- policyId: this.$parent.id,
|
|
|
|
|
|
+ pageNum: this.currentPages,
|
|
|
|
+ pageSize: this.pageSizes,
|
|
|
|
+ policyId: this.detail.code,
|
|
};
|
|
};
|
|
getCustomerList(custoParams).then((res) => {
|
|
getCustomerList(custoParams).then((res) => {
|
|
this.custoList = res.data.records;
|
|
this.custoList = res.data.records;
|
|
|
|
+ this.clistTotal = res.data.total;
|
|
|
|
+ this.listLoading = false;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ handleSubmit() {
|
|
|
|
+ toExamine({
|
|
|
|
+ examineStatus: this.examineStatus,
|
|
|
|
+ policyId: this.$parent.id ,
|
|
|
|
+ examineRemark: this.remark,
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ this.$successMsg("已提交审核");
|
|
|
|
+ this.isShow = 1;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
},
|
|
},
|
|
@@ -319,6 +400,9 @@ export default {
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
|
+.el-col {
|
|
|
|
+ overflow: hidden;
|
|
|
|
+}
|
|
.descriptions {
|
|
.descriptions {
|
|
// border: #EBEEF5;
|
|
// border: #EBEEF5;
|
|
border: 1px solid #ebeef5;
|
|
border: 1px solid #ebeef5;
|
|
@@ -339,4 +423,7 @@ export default {
|
|
.el-divider--horizontal {
|
|
.el-divider--horizontal {
|
|
margin: 20px 0;
|
|
margin: 20px 0;
|
|
}
|
|
}
|
|
|
|
+.col {
|
|
|
|
+ height: 100px;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|