|
@@ -41,6 +41,7 @@
|
|
|
import byTable from "@/components/byTable/index";
|
|
|
import byForm from "@/components/byForm/index";
|
|
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
+import { ref } from "vue";
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
const sourceList = ref({
|
|
@@ -55,6 +56,7 @@ const sourceList = ref({
|
|
|
},
|
|
|
});
|
|
|
const loading = ref(false);
|
|
|
+const priceSystemList = ref([]);
|
|
|
const searchConfig = computed(() => {
|
|
|
return [
|
|
|
{
|
|
@@ -66,7 +68,7 @@ const searchConfig = computed(() => {
|
|
|
type: "select",
|
|
|
prop: "priceSystemId",
|
|
|
label: "售价体系",
|
|
|
- data: [],
|
|
|
+ data: priceSystemList.value,
|
|
|
},
|
|
|
{
|
|
|
type: "input",
|
|
@@ -79,52 +81,99 @@ const config = computed(() => {
|
|
|
return [
|
|
|
{
|
|
|
attrs: {
|
|
|
- label: "群组品号",
|
|
|
+ label: "事业部",
|
|
|
prop: "name",
|
|
|
+ width: 140,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
+ label: "售价体系",
|
|
|
+ prop: "priceSystemId",
|
|
|
+ width: 140,
|
|
|
+ },
|
|
|
+ render(val) {
|
|
|
+ return proxy.dictKeyValue(val, priceSystemList.value);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
+ label: "下单模式",
|
|
|
+ prop: "orderMode",
|
|
|
+ width: 210,
|
|
|
+ },
|
|
|
+ render(val) {
|
|
|
+ return proxy.dictKeyValue(val, proxy.useUserStore().allDict["department_orderMode"]);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
+ label: "佣金规则",
|
|
|
+ prop: "commissionRule",
|
|
|
+ width: 120,
|
|
|
+ },
|
|
|
+ render(val) {
|
|
|
+ return proxy.dictKeyValue(val, proxy.useUserStore().allDict["department_commissionRule"]);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
+ label: "信用额度",
|
|
|
+ prop: "lineCredit",
|
|
|
+ width: 100,
|
|
|
+ align: "right",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
+ label: "已用额度",
|
|
|
+ prop: "usedCredit",
|
|
|
+ width: 100,
|
|
|
+ align: "right",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
+ label: "事业部电话",
|
|
|
+ prop: "telephone",
|
|
|
+ width: 120,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
+ label: "联系人",
|
|
|
+ prop: "contactPerson",
|
|
|
+ width: 120,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
+ label: "联系人电话",
|
|
|
+ prop: "contactNumber",
|
|
|
+ width: 120,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
+ label: "万里牛仓库",
|
|
|
+ prop: "wlnWarehouseCode",
|
|
|
+ width: 120,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
+ label: "万里牛品牌",
|
|
|
+ prop: "wlnBrand",
|
|
|
width: 180,
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
attrs: {
|
|
|
- label: "群组品名",
|
|
|
- prop: "name",
|
|
|
- "min-width": 240,
|
|
|
+ label: "地址",
|
|
|
+ prop: "address",
|
|
|
+ "min-width": 220,
|
|
|
},
|
|
|
},
|
|
|
- // {
|
|
|
- // attrs: {
|
|
|
- // label: "产品来源",
|
|
|
- // prop: "source",
|
|
|
- // width: 120,
|
|
|
- // },
|
|
|
- // render(val) {
|
|
|
- // return val == 1 ? "MES" : "万里牛";
|
|
|
- // },
|
|
|
- // },
|
|
|
- // {
|
|
|
- // attrs: {
|
|
|
- // label: "品牌",
|
|
|
- // prop: "brand",
|
|
|
- // width: 120,
|
|
|
- // },
|
|
|
- // render(val) {
|
|
|
- // return proxy.dictKeyValue(val, proxy.useUserStore().allDict["wlnBrand"]);
|
|
|
- // },
|
|
|
- // },
|
|
|
- // {
|
|
|
- // attrs: {
|
|
|
- // label: "型号",
|
|
|
- // prop: "modelNumber",
|
|
|
- // width: 200,
|
|
|
- // },
|
|
|
- // },
|
|
|
- // {
|
|
|
- // attrs: {
|
|
|
- // label: "材质",
|
|
|
- // prop: "material",
|
|
|
- // width: 200,
|
|
|
- // },
|
|
|
- // },
|
|
|
{
|
|
|
attrs: {
|
|
|
label: "操作",
|
|
@@ -183,6 +232,19 @@ getList();
|
|
|
const clickReset = () => {
|
|
|
getList("", true);
|
|
|
};
|
|
|
+const getPriceSystem = () => {
|
|
|
+ proxy.post("/priceSystem/page", { pageNum: 1, pageSize: 999 }).then((res) => {
|
|
|
+ if (res.rows && res.rows.length > 0) {
|
|
|
+ priceSystemList.value = res.rows.map((item) => {
|
|
|
+ return {
|
|
|
+ dictKey: item.id,
|
|
|
+ dictValue: item.name,
|
|
|
+ };
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+};
|
|
|
+getPriceSystem();
|
|
|
const modalType = ref("add");
|
|
|
const openDialog = ref(false);
|
|
|
const submit = ref(null);
|
|
@@ -275,7 +337,7 @@ const formConfig = computed(() => {
|
|
|
prop: "priceSystemId",
|
|
|
label: "售价体系",
|
|
|
itemWidth: 50,
|
|
|
- data: [],
|
|
|
+ data: priceSystemList.value,
|
|
|
},
|
|
|
{
|
|
|
type: "select",
|