|
@@ -578,6 +578,114 @@
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</template>
|
|
</template>
|
|
|
|
+ <template >
|
|
|
|
+ <div style="margin: 20px 0">
|
|
|
|
+ <!-- <el-upload
|
|
|
|
+ class="import-btn"
|
|
|
|
+ :action="baseURL + 'student/import'"
|
|
|
|
+ :http-request="handleImports"
|
|
|
|
+ :file-list="importFileList"
|
|
|
|
+ :show-file-list="false"
|
|
|
|
+ >
|
|
|
|
+ <el-button type="primary" size="mini">导入经销商</el-button>
|
|
|
|
+ </el-upload> -->
|
|
|
|
+ <!-- <el-button type="primary" size="mini" @click="hanleDownloadFilesPolicy"
|
|
|
|
+ >下载模板</el-button
|
|
|
|
+ > -->
|
|
|
|
+ </div>
|
|
|
|
+ <!-- <el-row type="flex" style="margin: 20px 0">
|
|
|
|
+ <el-col :xs="24" :sm="12" :lg="14">
|
|
|
|
+ <el-input v-model="keyword2" placeholder="查找经销商" size="mini" />
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :xs="24" :sm="1" :lg="1" style="margin-left: 10px"
|
|
|
|
+ ><el-button size="mini" @click="submitScreenForm2"
|
|
|
|
+ >确定</el-button
|
|
|
|
+ ></el-col
|
|
|
|
+ >
|
|
|
|
+ <el-col :xs="24" :sm="1" :lg="1" style="margin-left: 20px"
|
|
|
|
+ ><el-button size="mini" @click="resetScreenForm2"
|
|
|
|
+ >重置</el-button
|
|
|
|
+ ></el-col
|
|
|
|
+ >
|
|
|
|
+ </el-row> -->
|
|
|
|
+ <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>
|
|
|
|
+ </template>
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
v-if="$parent.isShow == 8 && detail.examineStatus == 'WAIT'"
|
|
v-if="$parent.isShow == 8 && detail.examineStatus == 'WAIT'"
|
|
@@ -639,7 +747,8 @@ import {
|
|
getMaterialList,
|
|
getMaterialList,
|
|
getPolicyDetail,
|
|
getPolicyDetail,
|
|
toExamine,
|
|
toExamine,
|
|
- updatePolicy
|
|
|
|
|
|
+ updatePolicy,
|
|
|
|
+ getPolicyList
|
|
} from '@/api/policy_list'
|
|
} from '@/api/policy_list'
|
|
import EditCondition from './EditCondition'
|
|
import EditCondition from './EditCondition'
|
|
import ImageUpload from '@/components/Common/image-upload.vue'
|
|
import ImageUpload from '@/components/Common/image-upload.vue'
|
|
@@ -714,6 +823,16 @@ export default {
|
|
}
|
|
}
|
|
],
|
|
],
|
|
detailFang:false,
|
|
detailFang:false,
|
|
|
|
+ policyList: {
|
|
|
|
+ pageNum: 1,
|
|
|
|
+ pageSize: 10,
|
|
|
|
+ policyId: "",
|
|
|
|
+ keyword: "",
|
|
|
|
+ currentPages: 1,
|
|
|
|
+ },
|
|
|
|
+ list: [],
|
|
|
|
+ cTotal: 1,
|
|
|
|
+ clistLoading: false,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -753,9 +872,23 @@ export default {
|
|
// 获取条件政策
|
|
// 获取条件政策
|
|
this.getConditionList()
|
|
this.getConditionList()
|
|
this.getCond()
|
|
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;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
getCrList() {
|
|
getCrList() {
|
|
const customerParams = {
|
|
const customerParams = {
|
|
pageNum: this.currentPage,
|
|
pageNum: this.currentPage,
|
|
@@ -857,6 +990,17 @@ export default {
|
|
console.error(err)
|
|
console.error(err)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 更改每页数量
|
|
|
|
+ handleSizeChanges4(val) {
|
|
|
|
+ this.policyList.pageSizes = val;
|
|
|
|
+ this.policyList.currentPages = 1;
|
|
|
|
+ this.getPolicyList();
|
|
|
|
+ },
|
|
|
|
+ // 更改当前页
|
|
|
|
+ handleCurrentChanges4(val) {
|
|
|
|
+ this.policyList.currentPages = val;
|
|
|
|
+ this.getPolicyList();
|
|
|
|
+ },
|
|
// 导入
|
|
// 导入
|
|
async handleImport(param) {
|
|
async handleImport(param) {
|
|
this.importLoading = true
|
|
this.importLoading = true
|