|
@@ -1422,8 +1422,8 @@ export const useHooks = (t?: any) => {
|
|
|
if (data.formulakind == 5) {
|
|
|
//默认4个拉手
|
|
|
_qty = 4;
|
|
|
- } else if ([7, 8, 9, 202, 203].includes(data.formulakind)) {
|
|
|
- // 拉手刺绣及其他工艺,大侧压压布、拉链等自动带出数量=周长
|
|
|
+ } else if ([7, 8, 9, 30, 202, 203].includes(data.formulakind)) {
|
|
|
+ // 拉手刺绣及其他工艺,大侧压压布7、大侧压边带8、大侧压织带9、防火线30、拉链202、内布套围边边带203,自动带出数量=周长
|
|
|
let mattress_width = state.LjDetailRef._mainData.mattress_width ?? 0;
|
|
|
let mattress_length = state.LjDetailRef._mainData.mattress_length ?? 0;
|
|
|
_qty = (mattress_width / 100 + mattress_length / 100) * 2;
|
|
@@ -2913,17 +2913,17 @@ export const useHooks = (t?: any) => {
|
|
|
render: scope => {
|
|
|
return !scope.row?.child_count && !scope.row?.parentid ? (
|
|
|
scope.row?.mattressname
|
|
|
- ) : scope.row?.parentid == 0 ? (
|
|
|
+ ) : scope.row?.parentid ? (
|
|
|
<>
|
|
|
- <el-tag type="primary" effect="light" disable-transitions size="small" class="mr-4">
|
|
|
- 主
|
|
|
+ <el-tag type="warning" effect="light" disable-transitions size="small" class="mr-4">
|
|
|
+ 副
|
|
|
</el-tag>
|
|
|
{scope.row?.mattressname}
|
|
|
</>
|
|
|
) : (
|
|
|
<>
|
|
|
- <el-tag type="warning" effect="light" disable-transitions size="small" class="mr-4">
|
|
|
- 副
|
|
|
+ <el-tag type="primary" effect="light" disable-transitions size="small" class="mr-4">
|
|
|
+ 主
|
|
|
</el-tag>
|
|
|
{scope.row?.mattressname}
|
|
|
</>
|