|
@@ -380,7 +380,15 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-divider />
|
|
|
+
|
|
|
</el-row>
|
|
|
+ <div style="margin-bottom: 20px;">
|
|
|
+ <el-radio-group v-model="detail.flag+''" >
|
|
|
+ <el-radio label="0" :disabled="detail.flag !=0">指定经销商</el-radio>
|
|
|
+ <el-radio label="1" :disabled="detail.flag !=1">广州经销商</el-radio>
|
|
|
+ <el-radio label="2" :disabled="detail.flag !=2">佛山经销商</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </div>
|
|
|
<template v-if="$parent.isShow != 5">
|
|
|
<el-table
|
|
|
v-loading="listLoading"
|
|
@@ -573,6 +581,89 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</template>
|
|
|
+ <div>
|
|
|
+ <h4 style="display: inline-block; margin-right: 20px">
|
|
|
+ 经销商上限
|
|
|
+ </h4>
|
|
|
+ <el-divider />
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <div class="table">
|
|
|
+ <el-table
|
|
|
+ v-loading="clistLoading"
|
|
|
+ :data="list"
|
|
|
+ element-loading-text="Loading"
|
|
|
+ border
|
|
|
+ fit
|
|
|
+ highlight-current-row
|
|
|
+ stripe
|
|
|
+ @select-all="handleSelectionAllChange2"
|
|
|
+ @selection-change="handleSelectionChange2"
|
|
|
+ >
|
|
|
+ <!-- <el-table-column type="selection" width="55" align="left" /> -->
|
|
|
+ <el-table-column
|
|
|
+ prop="customerNumber"
|
|
|
+ label="经销商编号
|
|
|
+"
|
|
|
+ align="left"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <CopyButton :copy-text="scope.row.customerNumber" />
|
|
|
+ <span>{{ scope.row.customerNumber }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="customerName" label="经销商名称" align="left">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <CopyButton :copy-text="scope.row.customerName" />
|
|
|
+ <span>{{ scope.row.customerName }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="materialName"
|
|
|
+ label="物料名称
|
|
|
+
|
|
|
+"
|
|
|
+ align="left"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <CopyButton :copy-text="scope.row.materialName" />
|
|
|
+ <span>{{ scope.row.materialName }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="materialNumber"
|
|
|
+ label="物料编号
|
|
|
+"
|
|
|
+ align="left"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <CopyButton :copy-text="scope.row.materialNumber" />
|
|
|
+ <span>{{ scope.row.materialNumber }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="limitQty"
|
|
|
+ label="购买量上限
|
|
|
+
|
|
|
+"
|
|
|
+ align="left"
|
|
|
+ >
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ <!-- 分页 -->
|
|
|
+ <div style="margin: 20px 0">
|
|
|
+ <el-pagination
|
|
|
+ :current-page="policyList.currentPages"
|
|
|
+ :page-sizes="[10, 20, 30, 50]"
|
|
|
+ :page-size="10"
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="cTotal"
|
|
|
+ @size-change="handleSizeChanges4"
|
|
|
+ @current-change="handleCurrentChanges4"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div
|
|
|
v-if="$parent.isShow == 8 && detail.examineStatus == 'WAIT'"
|
|
|
class="descriptions diy-table-1"
|
|
@@ -633,7 +724,8 @@ import {
|
|
|
getMaterialList,
|
|
|
getPolicyDetail,
|
|
|
toExamine,
|
|
|
- updatePolicy
|
|
|
+ updatePolicy,
|
|
|
+ getPolicyList
|
|
|
} from '@/api/policy_list'
|
|
|
import EditCondition from './EditCondition'
|
|
|
import ImageUpload from '@/components/Common/image-upload.vue'
|
|
@@ -708,6 +800,17 @@ export default {
|
|
|
}
|
|
|
],
|
|
|
detailFang:false,
|
|
|
+
|
|
|
+ policyList: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ policyId: "",
|
|
|
+ keyword: "",
|
|
|
+ currentPages: 1,
|
|
|
+ },
|
|
|
+ list: [],
|
|
|
+ cTotal: 1,
|
|
|
+ clistLoading: false,
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -755,9 +858,34 @@ export default {
|
|
|
// 获取条件政策
|
|
|
this.getConditionList()
|
|
|
this.getCond()
|
|
|
+ this.getPolicyList()
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+getPolicyList() {
|
|
|
+ this.clistLoading = true;
|
|
|
+ getPolicyList({
|
|
|
+ pageNum: this.policyList.pageNum,
|
|
|
+ pageSize: this.policyList.pageSize,
|
|
|
+ policyId: this.$parent.id,
|
|
|
+ keyword: this.policyList.keyword,
|
|
|
+ }).then((res) => {
|
|
|
+ this.list = res.data.records;
|
|
|
+ console.log(this.list, "785787");
|
|
|
+ this.cTotal = res.data.total;
|
|
|
+ this.clistLoading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 更改每页数量
|
|
|
+ handleSizeChanges4(val) {
|
|
|
+ this.policyList.pageSizes = val;
|
|
|
+ this.policyList.currentPages = 1;
|
|
|
+ this.getPolicyList();
|
|
|
+ },
|
|
|
+ // 更改当前页
|
|
|
+ handleCurrentChanges4(val) {
|
|
|
+ this.policyList.currentPages = val;
|
|
|
+ this.getPolicyList();
|
|
|
+ },
|
|
|
getCrList() {
|
|
|
const customerParams = {
|
|
|
pageNum: this.currentPage,
|