|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div style="max-height: calc(100vh - 184px); overflow-y: auto; overflow-x: hidden; margin-bottom: -40px" v-loading="loading">
|
|
|
- <div style="display: flex; flex-wrap: wrap; justify-content: space-between">
|
|
|
- <div v-for="item in codeList" :key="item.key" style="margin-bottom: 40px">
|
|
|
+ <div style="display: flex; flex-wrap: wrap; justify-content: center">
|
|
|
+ <div v-for="item in codeList" :key="item.key" style="margin: 0 40px 40px 0">
|
|
|
<div style="margin-bottom: 16px; font-size: 24px; font-weight: 700; color: black">
|
|
|
<span>{{ item.value }}</span>
|
|
|
<el-button type="primary" style="margin-left: 10px" @click="clickModal(item.key, item.table)" text v-preReClick>新增</el-button>
|
|
@@ -94,11 +94,11 @@ const codeList = ref([
|
|
|
key: "base_material_price",
|
|
|
value: "基材价格",
|
|
|
table1: [
|
|
|
- { type: "input", prop: "name", label: "级别", width: 120, itemType: "text" },
|
|
|
+ { type: "input", prop: "name", label: "级别(体系一)", width: 130, itemType: "text" },
|
|
|
{ type: "number", prop: "price", label: "价格(每m2)", width: 120, min: 0, precision: 2, controls: false },
|
|
|
],
|
|
|
table2: [
|
|
|
- { type: "input", prop: "name", label: "级别", width: 120, itemType: "text" },
|
|
|
+ { type: "input", prop: "name", label: "级别(体系二)", width: 130, itemType: "text" },
|
|
|
{ type: "number", prop: "price", label: "价格(每m2)", width: 120, min: 0, precision: 2, controls: false },
|
|
|
],
|
|
|
},
|
|
@@ -122,28 +122,20 @@ const codeList = ref([
|
|
|
key: "crop_config",
|
|
|
value: "裁切配置",
|
|
|
table: [
|
|
|
- { type: "input", prop: "name", label: "品类", width: 120, itemType: "text" },
|
|
|
+ { type: "input", prop: "name", label: "品类", width: 180, itemType: "text" },
|
|
|
{ type: "number", prop: "length", label: "加长(cm)", width: 120, min: 0, precision: 0, controls: false },
|
|
|
{ type: "number", prop: "width", label: "加宽(cm)", width: 120, min: 0, precision: 0, controls: false },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
- key: "embossing_config",
|
|
|
- value: "压纹配置",
|
|
|
- table: [
|
|
|
- { type: "input", prop: "name", label: "品类", width: 120, itemType: "text" },
|
|
|
- { type: "number", prop: "height", label: "加厚(mm)", width: 120, min: 0, precision: 2, controls: false },
|
|
|
- ],
|
|
|
- },
|
|
|
- {
|
|
|
key: "yoga_mat_depletion_config",
|
|
|
value: "瑜伽垫损耗配置",
|
|
|
table1: [
|
|
|
- { type: "input", prop: "name", label: "品类", width: 100, itemType: "text" },
|
|
|
+ { type: "input", prop: "name", label: "品类", width: 160, itemType: "text" },
|
|
|
{ type: "number", prop: "depletion", label: "损耗", width: 100, min: 0, precision: 0, controls: false },
|
|
|
],
|
|
|
table2: [
|
|
|
- { type: "input", prop: "name", label: "成品宽度", width: 100, itemType: "text" },
|
|
|
+ { type: "input", prop: "name", label: "成品宽度", width: 160, itemType: "text" },
|
|
|
{ type: "number", prop: "depletion", label: "特定损耗", width: 100, min: 0, precision: 0, controls: false },
|
|
|
],
|
|
|
},
|
|
@@ -151,14 +143,22 @@ const codeList = ref([
|
|
|
key: "skip_mat_depletion_config",
|
|
|
value: "跳绳垫损耗配置",
|
|
|
table1: [
|
|
|
- { type: "input", prop: "name", label: "品类", width: 100, itemType: "text" },
|
|
|
+ { type: "input", prop: "name", label: "品类", width: 160, itemType: "text" },
|
|
|
{ type: "number", prop: "depletion", label: "损耗", width: 100, min: 0, precision: 0, controls: false },
|
|
|
],
|
|
|
table2: [
|
|
|
- { type: "input", prop: "name", label: "级别", width: 100, itemType: "text" },
|
|
|
+ { type: "input", prop: "name", label: "级别", width: 160, itemType: "text" },
|
|
|
{ type: "number", prop: "depletion", label: "特定损耗", width: 100, min: 0, precision: 0, controls: false },
|
|
|
],
|
|
|
},
|
|
|
+ {
|
|
|
+ key: "embossing_config",
|
|
|
+ value: "压纹配置",
|
|
|
+ table: [
|
|
|
+ { type: "input", prop: "name", label: "品类", width: 180, itemType: "text" },
|
|
|
+ { type: "number", prop: "height", label: "加厚(mm)", width: 120, min: 0, precision: 2, controls: false },
|
|
|
+ ],
|
|
|
+ },
|
|
|
]);
|
|
|
const getList = () => {
|
|
|
loading.value = true;
|