|
@@ -68,7 +68,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
- <el-col :span="4" style="width: 333px;">
|
|
|
+ <el-col :span="4" style="width: 333px">
|
|
|
<el-input
|
|
|
:size="searchSize"
|
|
|
v-model="parmValue.name"
|
|
@@ -103,23 +103,30 @@
|
|
|
</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- </div></template>
|
|
|
+ </div></template
|
|
|
+ >
|
|
|
|
|
|
<template #status="{ scope }">
|
|
|
<el-tag
|
|
|
:size="tablebtnSize"
|
|
|
:type="scope.row.status == '0' ? 'warning' : ''"
|
|
|
v-text="
|
|
|
- (statusList.find((item) => Number(item.code) == Number(scope.row.status)) || {}).name ||
|
|
|
- '--'
|
|
|
+ (
|
|
|
+ statusList.find((item) => Number(item.code) == Number(scope.row.status)) ||
|
|
|
+ {}
|
|
|
+ ).name || '--'
|
|
|
"
|
|
|
></el-tag>
|
|
|
</template>
|
|
|
|
|
|
<template #supplier_type="{ scope }">
|
|
|
- <el-tag size="mini">{{ natureOfSupplierList.find(item => item.value === String(scope.row.supplier_type)).label }}</el-tag>
|
|
|
+ <el-tag size="mini">{{
|
|
|
+ natureOfSupplierList.find(
|
|
|
+ (item) => item.value === String(scope.row.supplier_type)
|
|
|
+ ).label
|
|
|
+ }}</el-tag>
|
|
|
</template>
|
|
|
-
|
|
|
+
|
|
|
<template #ocr_status="{ scope }">
|
|
|
<el-tag
|
|
|
:size="tablebtnSize"
|
|
@@ -152,11 +159,7 @@
|
|
|
</template>
|
|
|
|
|
|
<template #operation="{ scope }">
|
|
|
- <el-tooltip
|
|
|
- effect="dark"
|
|
|
- content="详情"
|
|
|
- placement="top"
|
|
|
- >
|
|
|
+ <el-tooltip effect="dark" content="详情" placement="top">
|
|
|
<i
|
|
|
class="el-icon-view tb-icon"
|
|
|
@click="getRouter('supplierDetail', scope.row.id)"
|
|
@@ -186,48 +189,30 @@
|
|
|
></i>
|
|
|
</el-tooltip> -->
|
|
|
<el-tooltip
|
|
|
- v-if="powers.some((i) => i == '005')"
|
|
|
+ v-if="powers.some((i) => i == '005')"
|
|
|
effect="dark"
|
|
|
content="修改"
|
|
|
placement="top"
|
|
|
>
|
|
|
- <i
|
|
|
- class="el-icon-edit tb-icon"
|
|
|
- @click="gotoEdit(scope.row, '005')"
|
|
|
- ></i>
|
|
|
+ <i class="el-icon-edit tb-icon" @click="gotoEdit(scope.row, '005')"></i>
|
|
|
</el-tooltip>
|
|
|
|
|
|
- <el-tooltip
|
|
|
- effect="dark"
|
|
|
- content="设置行业信息"
|
|
|
- placement="top"
|
|
|
- >
|
|
|
+ <!-- <el-tooltip effect="dark" content="设置行业信息" placement="top">
|
|
|
<i
|
|
|
class="el-icon-office-building tb-icon"
|
|
|
- @click="onOpenModal('industry',scope.row)"
|
|
|
+ @click="onOpenModal('industry', scope.row)"
|
|
|
></i>
|
|
|
- </el-tooltip>
|
|
|
+ </el-tooltip> -->
|
|
|
|
|
|
- <el-tooltip
|
|
|
- effect="dark"
|
|
|
- content="对公收款设置"
|
|
|
- placement="top"
|
|
|
- >
|
|
|
+ <el-tooltip effect="dark" content="对公收款设置" placement="top">
|
|
|
<i
|
|
|
class="el-icon-school tb-icon"
|
|
|
- @click="onOpenModal('toPublic',scope.row)"
|
|
|
+ @click="onOpenModal('toPublic', scope.row)"
|
|
|
></i>
|
|
|
</el-tooltip>
|
|
|
|
|
|
- <el-tooltip
|
|
|
- effect="dark"
|
|
|
- content="设置服务毛利"
|
|
|
- placement="top"
|
|
|
- >
|
|
|
- <i
|
|
|
- class="el-icon-coin tb-icon"
|
|
|
- @click="onOpenModal('service',scope.row)"
|
|
|
- ></i>
|
|
|
+ <el-tooltip effect="dark" content="设置服务毛利" placement="top">
|
|
|
+ <i class="el-icon-coin tb-icon" @click="onOpenModal('service', scope.row)"></i>
|
|
|
</el-tooltip>
|
|
|
<!-- <el-tooltip
|
|
|
v-if="powers.some((i) => i == '006')"
|
|
@@ -241,8 +226,20 @@
|
|
|
</ex-table>
|
|
|
|
|
|
<industry-modal :visible.sync="modalVisible.industry" />
|
|
|
- <service-charge-modal :visible.sync="modalVisible.service" />
|
|
|
- <to-public-modal :visible.sync="modalVisible.toPublic" />
|
|
|
+ <service-charge-modal
|
|
|
+ :visible.sync="modalVisible.service"
|
|
|
+ :row="currentRow"
|
|
|
+ @refresh="
|
|
|
+ pageInfo.curr = 1;
|
|
|
+ parmValue.page = 1;
|
|
|
+ searchList();
|
|
|
+ "
|
|
|
+ />
|
|
|
+ <to-public-modal :visible.sync="modalVisible.toPublic" :row="currentRow" @refresh="
|
|
|
+ pageInfo.curr = 1;
|
|
|
+ parmValue.page = 1;
|
|
|
+ searchList();
|
|
|
+ "/>
|
|
|
<supplier-level-modal :visible.sync="modalVisible.level" />
|
|
|
</div>
|
|
|
</template>
|
|
@@ -254,12 +251,12 @@ import mixinPage from "@/mixins/elPaginationHandle";
|
|
|
import { mapGetters } from "vuex";
|
|
|
import resToken from "@/mixins/resToken";
|
|
|
|
|
|
-import IndustryModal from "./components/industryModal.vue"
|
|
|
-import ServiceChargeModal from "./components/serviceChargeModal.vue"
|
|
|
-import ToPublicModal from "./components/toPublicModal.vue"
|
|
|
-import SupplierLevelModal from "./components/supplierLevelModal.vue"
|
|
|
+import IndustryModal from "./components/industryModal.vue";
|
|
|
+import ServiceChargeModal from "./components/serviceChargeModal.vue";
|
|
|
+import ToPublicModal from "./components/toPublicModal.vue";
|
|
|
+import SupplierLevelModal from "./components/supplierLevelModal.vue";
|
|
|
|
|
|
-import { supplierLevelList } from "./columns"
|
|
|
+import { supplierLevelList } from "./columns";
|
|
|
|
|
|
/**
|
|
|
* @props
|
|
@@ -269,12 +266,12 @@ import { supplierLevelList } from "./columns"
|
|
|
* name // 供应商名称
|
|
|
* creator // 创建人
|
|
|
* level // 供应商等级
|
|
|
-*/
|
|
|
+ */
|
|
|
|
|
|
export default {
|
|
|
name: "supplier",
|
|
|
mixins: [mixinPage, resToken],
|
|
|
- components:{IndustryModal, ServiceChargeModal, ToPublicModal, SupplierLevelModal},
|
|
|
+ components: { IndustryModal, ServiceChargeModal, ToPublicModal, SupplierLevelModal },
|
|
|
computed: {
|
|
|
//组件SIZE设置
|
|
|
...mapGetters(["tablebtnSize", "searchSize", "size"]),
|
|
@@ -288,7 +285,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
supplierLevelList,
|
|
|
- currentRow:{},
|
|
|
+ currentRow: {},
|
|
|
statusList,
|
|
|
roleLevel: roleLevel,
|
|
|
loading: true,
|
|
@@ -300,26 +297,26 @@ export default {
|
|
|
{ id: "1", label: "已升级" },
|
|
|
{ id: "0", label: "未升级" },
|
|
|
],
|
|
|
- selected:[],
|
|
|
- modalVisible:{
|
|
|
- industry:false,
|
|
|
- toPublic:false,
|
|
|
- service:false,
|
|
|
- level:false
|
|
|
+ selected: [],
|
|
|
+ modalVisible: {
|
|
|
+ industry: false,
|
|
|
+ toPublic: false,
|
|
|
+ service: false,
|
|
|
+ level: false,
|
|
|
},
|
|
|
- natureOfSupplierList:[
|
|
|
- {value:'1',label:'公务公司'},
|
|
|
- {value:'2',label:'服务商'},
|
|
|
+ natureOfSupplierList: [
|
|
|
+ { value: "1", label: "公务公司" },
|
|
|
+ { value: "2", label: "服务商" },
|
|
|
],
|
|
|
parmValue: {
|
|
|
page: 1, // 页码
|
|
|
size: 15, // 每页显示条数
|
|
|
- start:"", // 创建开始时间
|
|
|
- end:"", // 创建结束时间
|
|
|
- status:"", // 状态
|
|
|
- name:"", // 供应商名称
|
|
|
- creator:"", // 创建人
|
|
|
- level: "" // 供应商等级
|
|
|
+ start: "", // 创建开始时间
|
|
|
+ end: "", // 创建结束时间
|
|
|
+ status: "", // 状态
|
|
|
+ name: "", // 供应商名称
|
|
|
+ creator: "", // 创建人
|
|
|
+ level: "", // 供应商等级
|
|
|
},
|
|
|
ocr_status: [
|
|
|
{ id: "0", label: "未上传" },
|
|
@@ -343,8 +340,8 @@ export default {
|
|
|
// 表格 - 列参数
|
|
|
columns: [
|
|
|
{
|
|
|
- type:'selection',
|
|
|
- width:'40px'
|
|
|
+ type: "selection",
|
|
|
+ width: "40px",
|
|
|
},
|
|
|
{
|
|
|
prop: "code",
|
|
@@ -360,12 +357,12 @@ export default {
|
|
|
prop: "supplier_type",
|
|
|
label: "供应商类型",
|
|
|
minWidth: "200",
|
|
|
- _slot_:'supplier_type'
|
|
|
+ _slot_: "supplier_type",
|
|
|
},
|
|
|
{
|
|
|
prop: "ocr_status",
|
|
|
label: "营业执照识别状态",
|
|
|
- _slot_:"ocr_status",
|
|
|
+ _slot_: "ocr_status",
|
|
|
minWidth: "200",
|
|
|
},
|
|
|
{
|
|
@@ -410,9 +407,9 @@ export default {
|
|
|
this.searchList();
|
|
|
},
|
|
|
methods: {
|
|
|
- onOpenModal(modalName,rowData){
|
|
|
- this.modalVisible[modalName] = true
|
|
|
- this.currentRow = rowData
|
|
|
+ onOpenModal(modalName, rowData) {
|
|
|
+ this.modalVisible[modalName] = true;
|
|
|
+ this.currentRow = rowData;
|
|
|
},
|
|
|
getRouter(toRouter, queryId) {
|
|
|
if (toRouter && queryId) {
|
|
@@ -443,12 +440,12 @@ export default {
|
|
|
this.parmValue = {
|
|
|
page: 1, // 页码
|
|
|
size: 15, // 每页显示条数
|
|
|
- start:"", // 创建开始时间
|
|
|
- end:"", // 创建结束时间
|
|
|
- status:"", // 状态
|
|
|
- name:"", // 供应商名称
|
|
|
- creator:"", // 创建人
|
|
|
- level: "" // 供应商等级
|
|
|
+ start: "", // 创建开始时间
|
|
|
+ end: "", // 创建结束时间
|
|
|
+ status: "", // 状态
|
|
|
+ name: "", // 供应商名称
|
|
|
+ creator: "", // 创建人
|
|
|
+ level: "", // 供应商等级
|
|
|
};
|
|
|
this.searchList();
|
|
|
},
|
|
@@ -471,8 +468,8 @@ export default {
|
|
|
await this.searchList();
|
|
|
}
|
|
|
},
|
|
|
- handleSelection({list}){
|
|
|
- this.selected = list
|
|
|
+ handleSelection({ list }) {
|
|
|
+ this.selected = list;
|
|
|
},
|
|
|
gotoEdit(row, type) {
|
|
|
// const { status } = row;
|
|
@@ -505,13 +502,12 @@ export default {
|
|
|
const res = await asyncRequest.status(model);
|
|
|
this.loading = false;
|
|
|
if (res && res.code === 1) {
|
|
|
-
|
|
|
this.$notify.success({
|
|
|
title: "状态修改成功!",
|
|
|
message: "",
|
|
|
});
|
|
|
await this.searchList();
|
|
|
- }
|
|
|
+ }
|
|
|
})
|
|
|
.catch(() => {
|
|
|
console.log("取消");
|
|
@@ -534,19 +530,19 @@ export default {
|
|
|
message: "",
|
|
|
});
|
|
|
this.searchList();
|
|
|
- }
|
|
|
+ }
|
|
|
})
|
|
|
.catch(() => {
|
|
|
console.log("取消");
|
|
|
});
|
|
|
},
|
|
|
- handleSetSupplierLevel(){
|
|
|
- if(this.selected.length === 0){
|
|
|
- this.$message.warning('至少选择一个供应商')
|
|
|
- return
|
|
|
+ handleSetSupplierLevel() {
|
|
|
+ if (this.selected.length === 0) {
|
|
|
+ this.$message.warning("至少选择一个供应商");
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
- this.modalVisible.level = true
|
|
|
+ this.modalVisible.level = true;
|
|
|
},
|
|
|
// 刷新表格
|
|
|
async searchList() {
|