@php $cjfs = ''; @endphp {{-- 工艺优先填下单,都为空则隐藏--}}
@if(isset($d['goodsorder_gx']['cjfs']) && $d['goodsorder_gx']['cjfs'] != '')
@php $cjfs = $d['goodsorder_gx']['cjfs']; @endphp
裁剪方式:{{$d['goodsorder_gx']['cjfs']}}
@elseif(isset($d['goodsorder_gx']['cjbz']) && $d['goodsorder_gx']['cjbz'] != '')
@php $cjfs = $d['goodsorder_gx']['cjbz']; @endphp
裁剪标准:{{$d['goodsorder_gx']['cjbz']}}
@elseif(isset($d['enter_tech']['裁剪方式']) && $d['enter_tech']['裁剪方式'] != '')
@php $cjfs = $d['enter_tech']['裁剪方式']; @endphp
裁剪方式:{{$d['enter_tech']['裁剪方式']}}
@elseif(isset($d['enter_tech']['裁剪标准']) && $d['enter_tech']['裁剪标准'] != '')
@php $cjfs = $d['enter_tech']['裁剪标准']; @endphp
裁剪标准:{{$d['enter_tech']['裁剪标准']}}
@endif
@php $cnt = -1; @endphp
{{-- 用于裁剪计划--}}
{{-- @php if(isset($d['cutting'])){--}}
{{-- $data=$d['cutting'];--}}
{{-- }@endphp--}}
{{-- @php--}}
{{-- $f = [];--}}
{{-- @endphp--}}
{{-- @if(isset($data) && $data)--}}
{{-- @foreach($data as $k => $v)--}}
{{-- @if(strpos($k, '主1幅数') === 0)--}}
{{-- @php--}}
{{-- // 将主1幅数的键值对放入$f数组--}}
{{-- $f[$k] = $v;--}}
{{-- @endphp--}}
{{-- @elseif($k === '配布幅数')--}}
{{-- @php--}}
{{-- // 将配布幅数的键值对放入$f数组--}}
{{-- $f[$k] = $v;--}}
{{-- @endphp--}}
{{-- @endif--}}
{{-- @endforeach--}}
{{-- @endif--}}
{{-- --}}{{-- 裁剪计划--}}
{{--
--}}
{{-- @if(isset($d['goodsorder_wl']['zb']) && ($d['goodsorder_wl']['zb'] == '无' || $d['goodsorder_wl']['zb'] == '无需'))--}}
{{-- @else--}}
{{-- @if(isset($d['goodsorder_wl']['zb']))--}}
{{-- 主布{{++$cnt}}:{{explode(':',$d['goodsorder_wl']['zb'])[0]}}--}}
{{-- @if(isset($d['wlzb_ck']) && !empty($d['wlzb_ck']))--}}
{{-- // {{$d['wlzb_ck']}} @endif @if(isset($d['wlzb_jc']) && !empty($d['wlzb_jc']))--}}
{{-- // {{$d['wlzb_jc']}} @endif--}}
{{--
用料:--}}
{{-- @if(isset($d['goodsorder_wl']['zbisedit']) && $d['goodsorder_wl']['zbisedit'] == 2)--}}
{{-- {{ isset($d['主布用料']) && $d['主布用料'] > 0 ? $d['主布用料'] : '' }}--}}
{{-- @else--}}
{{-- {{explode(':',$d['goodsorder_wl']['zb'])[1]}}--}}
{{-- @endif--}}
{{-- @if($d['dpmfs'])--}}
{{-- /门幅{{$d['dpmfs']}}--}}
{{-- @endif--}}
{{--
--}}
{{-- @else--}}
{{-- 主布{{++$cnt}}--}}
{{-- :{{$d['xhs']['主布型号'] or ''}}@if(isset($d['xhs']['主布仓库']) && !empty($d['xhs']['主布仓库']))--}}
{{-- // @else @endif @if(isset($d['xhs'])){{$d['xhs']['主布仓库']}}@else @endif @if(isset($d['xhs']['主布机参']) && !empty($d['xhs']['主布机参']))--}}
{{-- // @else @endif @if(isset($d['xhs'])){{$d['xhs']['主布机参']}}@else @endif--}}
{{--
--}}
{{-- --}}{{--2024-06-11主布宽度用料--}}
{{-- 用料:{{ isset($d['主布用料']) && $d['主布用料'] > 0 ? $d['主布用料'] : '' }}--}}
{{--
--}}
{{-- @if($d['dpmfs'])--}}
{{-- /门幅{{$d['dpmfs']}}--}}
{{-- @endif--}}
{{--
--}}
{{--
--}}
{{-- @endif--}}
{{-- @endif--}}
{{-- @if($cjfs == '定宽裁高')--}}
{{--
高度用料:--}}
{{-- @if(isset($d['goodsorder_wl']['zb']) || isset($d['xhs']['主布型号']))--}}
{{-- {{$d['lg']}}+{{$d['zbsh']}}={{$d['lg'] + $d['zbsh']}}--}}
{{-- @endif--}}
{{--
--}}
{{-- @endif--}}
{{--
--}}
{{-- 裁剪计划--}}
{{-- 裁剪计划--}}
@if(isset($d['goodsorder_wl']['zb']) && ($d['goodsorder_wl']['zb'] == '无' || $d['goodsorder_wl']['zb'] == '无需'))
@else
@if(isset($d['goodsorder_wl']['zb']))
主布{{++$cnt}}:{{explode(':',$d['goodsorder_wl']['zb'])[0]}}
@if(isset($d['wlzb_ck']) && !empty($d['wlzb_ck']))
// {{$d['wlzb_ck']}} @endif @if(isset($d['wlzb_jc']) && !empty($d['wlzb_jc']))
// {{$d['wlzb_jc']}} @endif
宽度用料:{{($d['zm']+0.08)}}
高度用料:{{($d['lg']+0.11)}}
@else
主布{{++$cnt}}
:{{$d['xhs']['主布型号'] or ''}}@if(isset($d['xhs']['主布仓库']) && !empty($d['xhs']['主布仓库']))
// @else @endif @if(isset($d['xhs'])){{$d['xhs']['主布仓库']}}@else @endif @if(isset($d['xhs']['主布机参']) && !empty($d['xhs']['主布机参']))
// @else @endif @if(isset($d['xhs'])){{$d['xhs']['主布机参']}}@else @endif
{{--2024-06-11主布宽度用料--}}
宽度用料:{{($d['zm']+0.08)}}
高度用料:{{($d['lg']+0.11)}}
@if($d['dpmfs'])
/门幅{{$d['dpmfs']}}
@endif
@endif
@endif
{{-- @if(isset($data) && $data)--}}
{{-- @php $zkuan = '' @endphp--}}
{{-- @php $counter = 0 @endphp--}}
{{-- @foreach($data as $k => $v)--}}
{{-- @if(strpos($k, '主布') === 0 && strpos($k, '主布数') === false && strpos($k, '配布宽') === false && strpos($k, '主1高') === false && strpos($k, '配布高') === false)--}}
{{-- @php--}}
{{-- $zkuan .= '
'.$v.'x'.$d['count'].str_repeat(' ', 2).'';--}}
{{-- $counter++;--}}
{{-- if ($counter == 3) {--}}
{{-- $zkuan .= '
'; // 每三个内容包裹一个div容器--}}
{{-- $counter = 0;--}}
{{-- }--}}
{{-- @endphp--}}
{{-- @endif--}}
{{-- @endforeach--}}
{{-- @php $zgao = '' @endphp--}}
{{-- @foreach($data as $k => $v)--}}
{{-- @if($k === '主1高')--}}
{{-- @php $zgao .= '
'.$v.' X'.$f['主1幅数'].''.str_repeat(' ', 3).'
' @endphp--}}
{{-- @endif--}}
{{-- @endforeach--}}
{{-- @if($zkuan != '')--}}
{{--
--}}
{{-- 主布宽: {!! $zkuan !!}--}}
{{--
--}}
{{-- @endif--}}
{{-- @if($zgao != '')--}}
{{--
--}}
{{-- 主布高: {!! $zgao !!}--}}
{{--
--}}
{{-- @endif--}}
{{-- @endif--}}
{{-- @if(isset($d['裁剪用料']))--}}
{{-- @if($d['裁剪用料']['主宽详细'] != '')--}}
{{--
--}}
{{-- 主布宽: {!! str_replace(',', ' ', $d['裁剪用料']['主宽详细']) !!}--}}
{{--
--}}
{{-- @endif--}}
{{-- @if($d['裁剪用料']['主高详细'] != '')--}}
{{--
--}}
{{-- 主布高: {!! $d['裁剪用料']['主高详细'] !!}--}}
{{--
--}}
{{-- @endif--}}
{{-- @endif--}}
{{-- 裁剪计划--}}
@if(isset($d['xhs']['配一型号']) && ($d['xhs']['配一型号'] == '无' || $d['xhs']['配一型号'] == '无需'))
@else
@if(isset($d['xhs']['配一型号']))
@foreach ($d['xhs']['配一型号'] as $key => $vo )
@php $py = ""; @endphp
@if(isset($d['goodsorder_wl']['py']) )
@php $py = explode(':',$d['goodsorder_wl']['py'])[0] @endphp
配一{{++$cnt}}:{{$py}}
@if(isset($d['wlpy_ck']) && !empty($d['wlpy_ck']))
// {{$d['wlpy_ck']}} @endif @if(isset($d['wlpy_jc']) && !empty($d['wlpy_jc']))
// {{$d['wlpy_jc']}} @endif
宽度用料:
@if($py != '')
@if(isset($d['goodsorder_wl']['py'.'isedit']) && $d['goodsorder_wl']['py'.'isedit'] == 2)
{{ isset($d['配布1用料']) && $d['配布1用料'] > 0 ? $d['配布1用料'] : '' }}
@else
{{explode(':',$d['goodsorder_wl']['py'])[1]}}
@endif
@endif
@else
@php $py = isset($d['xhs']['配一型号'][$key]) ? $d['xhs']['配一型号'][$key] : '' @endphp
配一{{++$cnt}}
:{{$py}}@if(isset($d['xhs']['配一仓库']) && !empty($d['xhs']['配一型号'][$key]) && !empty($d['xhs']['配一仓库']))
// @else @endif @if(isset($d['xhs']) && !empty($d['xhs']['配一型号'][$key])){{$d['xhs']['配一仓库']}}@else @endif
@if(isset($d['xhs']['配一机参']) && !empty($d['xhs']['配一型号'][$key]) && !empty($d['xhs']['配一机参']))
// @else @endif @if(isset($d['xhs']) && !empty($d['xhs']['配一型号'][$key])){{$d['xhs']['配一机参']}}@else @endif
用料:{{ isset($d['配布1用料']) && $d['配布1用料'] > 0 ? $d['配布1用料'] : '' }}
@endif
@if($cjfs == '定宽裁高' && $py != '')
高度用料:
{{$d['lg']}}+{{$d['zbsh']}}={{$d['lg'] + $d['zbsh']}}
@endif
@endforeach
@endif
@endif
{{-- 裁剪计划--}}
{{-- @if(isset($data) && $data)--}}
{{-- @php $zkuan = '' @endphp--}}
{{-- @php $zgao = '' @endphp--}}
{{-- @php $pkuan = '' @endphp--}}
{{-- @php $pgao = '' @endphp--}}
{{-- @foreach($data as $k => $v)--}}
{{-- @if(strpos($k, '主布') === 0 && strpos($k, '主布数') === false && strpos($k, '配布宽') === false && strpos($k, '主1高') === false && strpos($k, '配布高') === false)--}}
{{-- @php $zkuan .= $v.' x'.$d['count'].str_repeat(' ', 3.5) @endphp--}}
{{-- @elseif($k === '主1高')--}}
{{-- @php $zgao .= $v.' x'.$f['主1幅数'].str_repeat(' ', 3.5).'
' @endphp--}}
{{-- @elseif($k === '配布宽')--}}
{{-- @php $pkuan .= $v.' x'.$d['count'].str_repeat(' ', 3.5) @endphp--}}
{{-- @elseif($k === '配布高')--}}
{{-- @php $pgao .= $v.' X'.$f['配布幅数'].str_repeat(' ', 3).'
' @endphp--}}
{{-- @endif--}}
{{-- @endforeach--}}
{{-- @if($pkuan != '')--}}
{{--
--}}
{{-- 配布宽:{!! $pkuan !!}
--}}
{{--
--}}
{{-- @endif--}}
{{-- @if($pgao != '')--}}
{{--
--}}
{{-- 配布高:{!! $pgao !!}--}}
{{--
--}}
{{-- @endif--}}
{{-- @endif--}}
{{-- @if(isset($d['裁剪用料']))--}}
{{-- @if($d['裁剪用料']['配宽详细'])--}}
{{--
--}}
{{-- 配布宽:{!! $d['裁剪用料']['配宽详细'] !!}
--}}
{{--
--}}
{{-- @endif--}}
{{-- @if($d['裁剪用料']['配高详细'])--}}
{{--
--}}
{{-- 配布高:{!! $d['裁剪用料']['配高详细'] !!}--}}
{{--
--}}
{{-- @endif--}}
{{-- @endif--}}
{{-- 裁剪计划--}}
@if(isset($d['xhs']['配二型号']) && ($d['xhs']['配二型号'] == '无' || $d['xhs']['配二型号'] == '无需'))
@else
@if(isset($d['xhs']['配二型号']))
@foreach ($d['xhs']['配二型号'] as $key => $vo )
@php $pe = ""; @endphp
@if(isset($d['goodsorder_wl']['pe']) )
@php $pe = explode(':',$d['goodsorder_wl']['pe'])[0] @endphp
配二{{++$cnt}}:{{$pe}}
@if(isset($d['wlpe_ck']) && !empty($d['wlpe_ck']))
// {{$d['wlpe_ck']}} @endif
@if(isset($d['wlpe_jc']) && !empty($d['wlpe_jc']))
// {{$d['wlpe_jc']}} @endif
宽度用料:
@if($pe != '')
@if(isset($d['goodsorder_wl']['pe'.'isedit']) && $d['goodsorder_wl']['pe'.'isedit'] == 2)
{{ isset($d['xhs']['配二用料']) && $d['xhs']['配二用料'] > 0 ? $d['xhs']['配二用料'] : '' }}
@else
{{explode(':',$d['goodsorder_wl']['pe'])[1]}}
@endif
@endif
@else
@php $pe = isset($d['xhs']['配二型号'][$key]) ? $d['xhs']['配二型号'][$key] : '' @endphp
配二{{++$cnt}}
:{{$pe}}@if(isset($d['xhs']['配二仓库']) && !empty($d['xhs']['配二型号'][$key]) && !empty($d['xhs']['配二仓库']))
// @else @endif @if(isset($d['xhs']) && !empty($d['xhs']['配二型号'][$key])){{$d['xhs']['配二仓库']}}@else @endif
@if(isset($d['xhs']['配二机参']) && !empty($d['xhs']['配二型号'][$key]) && !empty($d['xhs']['配二机参']))
// @else @endif @if(isset($d['xhs']) && !empty($d['xhs']['配二型号'][$key])){{$d['xhs']['配二机参']}}@else @endif
宽度用料:{{ !empty($pe) && isset($d['xhs']['配二用料']) && $d['xhs']['配二用料'] > 0 ? $d['xhs']['配二用料'] : '' }}
@endif
@if($cjfs == '定宽裁高' && $pe != '')
高度用料:
{{$d['lg']}}+{{$d['zbsh']}}={{$d['lg'] + $d['zbsh']}}
@endif
@endforeach
@endif
@endif
@if(isset($d['xhs']['衬布型号']) && ($d['xhs']['衬布型号'] == '无' || $d['xhs']['衬布型号'] == '无需'))
@else
@if(isset($d['xhs']['衬布型号']))
@foreach ($d['xhs']['衬布型号'] as $key => $vo )
@if($key == 0 && isset($d['goodsorder_wl']['cb']))
@if(isset($d['goodsorder_wl']['cb']))
衬布{{++$cnt}}
:{{explode(':',$d['goodsorder_wl']['cb'])[0]}}
@if(isset($d['wlcb_ck'][$key]) && !empty($d['wlcb_ck'][$key]))
// {{$d['wlcb_ck'][$key]}} @endif
@if(isset($d['wlcb_jc'][$key]) && !empty($d['wlcb_jc'][$key]))
// {{$d['wlcb_jc'][$key]}} @endif
宽度用料:
@if(isset($d['goodsorder_wl']['cbisedit']) && $d['goodsorder_wl']['cbisedit'] == 2)
{{ isset($d['xhs']['衬布用料'][$key]) && $d['xhs']['衬布用料'][$key] > 0 ? $d['xhs']['衬布用料'][$key] : '' }}
@else
{{explode(':',$d['goodsorder_wl']['cb'])[1]}}
@endif
@else
衬布{{++$cnt}}
:{{$d['xhs']['衬布型号'][$key] or ''}} @if(isset($d['xhs']['衬布仓库']) && !empty($d['xhs']['衬布仓库']))
// @else @endif @if(isset($d['xhs'])){{$d['xhs']['衬布仓库']}}@else @endif
@if(isset($d['xhs']['衬布机参']) && !empty($d['xhs']['衬布机参']))
// @else @endif @if(isset($d['xhs'])){{$d['xhs']['衬布机参']}}@else @endif
宽度用料:{{ isset($d['xhs']['衬布用料'][$key]) && $d['xhs']['衬布用料'][$key] > 0 ? $d['xhs']['衬布用料'][$key] : '' }}
@endif
@if($cjfs == '定宽裁高')
高度用料:
@if(isset($d['goodsorder_wl']['cb']) || isset($d['xhs']['衬布型号'][$key]))
{{$d['lg']}}+{{$d['zbsh']}}={{$d['lg'] + $d['zbsh']}}
@endif
@endif
@else
@if(isset($d['goodsorder_wl']['cb'.($key+1)]))
衬布{{++$cnt}}
:{{explode(':',$d['goodsorder_wl']['cb'.($key+1)])[0]}}
宽度用料:
@if(isset($d['goodsorder_wl']['cb'.($key+1).'isedit']) && $d['goodsorder_wl']['cb'.($key+1).'isedit'] == 2)
{{ isset($d['xhs']['衬布用料'][$key]) && $d['xhs']['衬布用料'][$key] > 0 ? $d['xhs']['衬布用料'][$key] : '' }}
@else
{{explode(':',$d['goodsorder_wl']['cb'.($key+1)])[1]}}
@endif
@else
衬布{{++$cnt}}:{{$d['xhs']['衬布型号'][$key] or ''}}
宽度用料:
{{ isset($d['xhs']['衬布用料'][$key]) && $d['xhs']['衬布用料'][$key] > 0 ? $d['xhs']['衬布用料'][$key] : '' }}
@endif
@if($cjfs == '定宽裁高')
高度用料:
@if(isset($d['goodsorder_wl']['cb'.($key+1)]) || isset($d['xhs']['衬布型号'][$key]))
{{$d['lg']}}+{{$d['zbsh']}}={{$d['lg'] + $d['zbsh']}}
@endif
@endif
@endif
@endforeach
@endif
@endif
@if(isset($d['xhs']['花边型号']) && ($d['xhs']['花边型号'] == '无' || $d['xhs']['花边型号'] == '无需'))
@else
@if(isset($d['xhs']['花边型号']))
@foreach ($d['xhs']['花边型号'] as $key => $vo )
@if($key == 0 && isset($d['goodsorder_wl']['hb']))
@if(isset($d['goodsorder_wl']['hb']))
@php $hbxh = isset(explode(':',$d['goodsorder_wl']['hb'])[0]) ? explode(':',$d['goodsorder_wl']['hb'])[0] : ''; @endphp
花边型号:{{$hbxh}}
@if(isset($d['wlhb_ck'][$key]) && !empty($d['wlhb_ck'][$key]))
// {{$d['wlhb_ck'][$key]}} @endif
@if(isset($d['wlhb_jc'][$key]) && !empty($d['wlhb_jc'][$key]))
// {{$d['wlhb_jc'][$key]}} @endif
{{--花边 横拼 成品宽度+0.1;竖拼 成品高度+0.1--}}
花边用料:
@if(isset($d['goodsorder_wl']['hbisedit']) && $d['goodsorder_wl']['hbisedit'] == 2)
@if(isset($d['xhs']['花边型号'][$key]) && $d['xhs']['花边型号'][$key] != '')
@if(isset($d['enter_tech']['拼接']) && str_contains($d['enter_tech']['拼接'],'横拼'))
{{$d['zm']}}+0.1={{$d['zm'] + 0.1}}
@elseif(isset($d['enter_tech']['拼接']) && str_contains($d['enter_tech']['拼接'],'竖拼'))
{{$d['lg']}}+0.1={{$d['lg']+0.1}}
@elseif(isset($d['goodsorder_gx']['pj']) && str_contains($d['goodsorder_gx']['pj'],'横拼'))
{{$d['zm']}}+0.1={{$d['zm'] + 0.1}}
@elseif(isset($d['goodsorder_gx']['pj']) && str_contains($d['goodsorder_gx']['pj'],'竖拼'))
{{$d['lg']}}+0.1={{$d['lg']+0.1}}
@endif
@endif
@else
{{explode(':',$d['goodsorder_wl']['hb'])[1]}}
{{--@if($hbxh != '')
@if(isset($d['enter_tech']['拼接']) && str_contains($d['enter_tech']['拼接'],'横拼'))
{{$d['zm']}}+0.1={{$d['zm'] + 0.1}}
@elseif(isset($d['enter_tech']['拼接']) && str_contains($d['enter_tech']['拼接'],'竖拼'))
{{$d['lg']}}+0.1={{$d['lg']+0.1}}
@elseif(isset($d['goodsorder_gx']['pj']) && str_contains($d['goodsorder_gx']['pj'],'横拼'))
{{$d['zm']}}+0.1={{$d['zm'] + 0.1}}
@elseif(isset($d['goodsorder_gx']['pj']) && str_contains($d['goodsorder_gx']['pj'],'竖拼'))
{{$d['lg']}}+0.1={{$d['lg']+0.1}}
@endif
@endif--}}
@endif
@else
花边型号:{{$d['xhs']['花边型号'][$key] or ''}}
@if(isset($d['xhs']['花边仓库']) && !empty($d['xhs']['花边仓库']))
// @else @endif @if(isset($d['xhs'])){{$d['xhs']['花边仓库']}}@else @endif
@if(isset($d['xhs']['花边机参']) && !empty($d['xhs']['花边机参']))
// @else @endif @if(isset($d['xhs'])){{$d['xhs']['花边机参']}}@else @endif
花边用料:
@if(isset($d['xhs']['花边型号'][$key]) && $d['xhs']['花边型号'][$key] != '')
@if(isset($d['enter_tech']['拼接']) && str_contains($d['enter_tech']['拼接'],'横拼'))
{{$d['zm']}}+0.1={{$d['zm'] + 0.1}}
@elseif(isset($d['enter_tech']['拼接']) && str_contains($d['enter_tech']['拼接'],'竖拼'))
{{$d['lg']}}+0.1={{$d['lg']+0.1}}
@elseif(isset($d['goodsorder_gx']['pj']) && str_contains($d['goodsorder_gx']['pj'],'横拼'))
{{$d['zm']}}+0.1={{$d['zm'] + 0.1}}
@elseif(isset($d['goodsorder_gx']['pj']) && str_contains($d['goodsorder_gx']['pj'],'竖拼'))
{{$d['lg']}}+0.1={{$d['lg']+0.1}}
@endif
@endif
@endif
@else
@if(isset($d['goodsorder_wl']['hb'.($key+1)]))
@php $hbxh = isset(explode(':',$d['goodsorder_wl']['hb'.($key+1)])[0]) ? explode(':',$d['goodsorder_wl']['hb'.($key+1)])[0] : ''; @endphp
花边型号:{{$hbxh}}
{{--花边 横拼 成品宽度+0.1;竖拼 成品高度+0.1--}}
花边用料:
@if($hbxh != '')
@if(isset($d['enter_tech']['拼接']) && str_contains($d['enter_tech']['拼接'],'横拼'))
{{$d['zm']}}+0.1={{$d['zm'] + 0.1}}
@elseif(isset($d['enter_tech']['拼接']) && str_contains($d['enter_tech']['拼接'],'竖拼'))
{{$d['lg']}}+0.1={{$d['lg']+0.1}}
@elseif(isset($d['goodsorder_gx']['pj']) && str_contains($d['goodsorder_gx']['pj'],'横拼'))
{{$d['zm']}}+0.1={{$d['zm'] + 0.1}}
@elseif(isset($d['goodsorder_gx']['pj']) && str_contains($d['goodsorder_gx']['pj'],'竖拼'))
{{$d['lg']}}+0.1={{$d['lg']+0.1}}
@endif
@endif
@else
花边型号:{{$d['xhs']['花边型号'][$key] or ''}}
花边用料:
@if(isset($d['xhs']['花边型号'][$key]) && $d['xhs']['花边型号'][$key] != '')
@if(isset($d['enter_tech']['拼接']) && str_contains($d['enter_tech']['拼接'],'横拼'))
{{$d['zm']}}+0.1={{$d['zm'] + 0.1}}
@elseif(isset($d['enter_tech']['拼接']) && str_contains($d['enter_tech']['拼接'],'竖拼'))
{{$d['lg']}}+0.1={{$d['lg']+0.1}}
@elseif(isset($d['goodsorder_gx']['pj']) && str_contains($d['goodsorder_gx']['pj'],'横拼'))
{{$d['zm']}}+0.1={{$d['zm'] + 0.1}}
@elseif(isset($d['goodsorder_gx']['pj']) && str_contains($d['goodsorder_gx']['pj'],'竖拼'))
{{$d['lg']}}+0.1={{$d['lg']+0.1}}
@endif
@endif
@endif
@endif
@endforeach
@endif
@endif
@if(isset($d['xhs']['花边一型号']))
@foreach ($d['xhs']['花边一型号'] as $key => $vo )
@php $hbyxh = isset($d['goodsorder_wl']['hby']) ? explode(':',$d['goodsorder_wl']['hby'])[0] : $vo[0]; @endphp
花边一型号:{{$hbyxh}}
@php $hbyyl = isset($d['goodsorder_wl']['hby']) ? explode(':',$d['goodsorder_wl']['hby'])[1] : $d['xhs']['花边一用料'][0]; @endphp
花边一用料:{{$hbyyl}}
@endforeach
@endif
@if(isset($d['xhs']['花边二型号']))
@foreach ($d['xhs']['花边二型号'] as $key => $vo )
@php $hbexh = isset($d['goodsorder_wl']['hbe']) ? explode(':',$d['goodsorder_wl']['hbe'])[0] : $vo[0]; @endphp
花边二型号:{{$hbexh}}
@php $hbeyl = isset($d['goodsorder_wl']['hbe']) ? explode(':',$d['goodsorder_wl']['hbe'])[1] : $d['xhs']['花边二用料'][0]; @endphp
花边二用料:{{$hbeyl}}
@endforeach
@endif
@if(isset($d['xhs']['花边三型号']))
@foreach ($d['xhs']['花边三型号'] as $key => $vo )
@php $hbsxh = isset($d['goodsorder_wl']['hbs']) ? explode(':',$d['goodsorder_wl']['hbs'])[0] : $vo[0]; @endphp
花边三型号:{{$hbsxh}}
@php $hbsyl = isset($d['goodsorder_wl']['hbs']) ? explode(':',$d['goodsorder_wl']['hbs'])[1] : $d['xhs']['花边三用料'][0]; @endphp
花边三用料:{{$hbsyl}}
@endforeach
@endif
@if(isset($d['xhs']['辅料一型号']))
@foreach ($d['xhs']['辅料一型号'] as $key => $vo )
@php $flyxh = isset($d['goodsorder_wl']['fly']) ? (explode(':',$d['goodsorder_wl']['fly'])[0]) : $vo; @endphp
辅料一型号:{{$flyxh}}
@php $flyyl = isset($d['goodsorder_wl']['fly']) ? explode(':',$d['goodsorder_wl']['fly'])[1] : $d['xhs']['辅料一用料'][0]; @endphp
辅料一用料:{{$flyyl}}
@endforeach
@endif
@if(isset($d['xhs']['辅料二型号']))
@foreach ($d['xhs']['辅料二型号'] as $key => $vo )
@php $flexh = isset($d['goodsorder_wl']['fle']) ? explode(':',$d['goodsorder_wl']['fle'])[0] : $vo; @endphp
辅料二型号:{{$flexh}}
@php $fleyl = isset($d['goodsorder_wl']['fle']) ? explode(':',$d['goodsorder_wl']['fle'])[1] : $d['xhs']['辅料二用料'][0]; @endphp
辅料二用料:{{$fleyl}}
@endforeach
@endif
@if(isset($d['xhs']['辅料三型号']))
@foreach ($d['xhs']['辅料三型号'] as $key => $vo )
@php $flsxh = isset($d['goodsorder_wl']['fls']) ? explode(':',$d['goodsorder_wl']['fls'])[0] : $vo; @endphp
辅料三型号:{{$flsxh}}
@php $flsyl = isset($d['goodsorder_wl']['fls']) ? explode(':',$d['goodsorder_wl']['fls'])[1] : $d['xhs']['辅料三用料'][0]; @endphp
辅料三用料:{{$flsyl}}
@endforeach
@endif
@if(isset($d['xhs']['骨线一型号']))
@foreach ($d['xhs']['骨线一型号'] as $key => $vo )
@php $gxyxh = isset($d['goodsorder_wl']['gxy']) ? explode(':',$d['goodsorder_wl']['gxy'])[0] : $vo; @endphp
骨线一型号:{{$gxyxh}}
@php $gxyyl = isset($d['goodsorder_wl']['gxy']) ? explode(':',$d['goodsorder_wl']['gxy'])[1] : $d['xhs']['骨线一用料'][0]; @endphp
骨线一用料:{{$gxyyl}}
@endforeach
@endif
@if(isset($d['xhs']['骨线二型号']))
@foreach ($d['xhs']['骨线二型号'] as $key => $vo )
@php $gxexh = isset($d['goodsorder_wl']['gxe']) ? explode(':',$d['goodsorder_wl']['gxe'])[0] : $vo; @endphp
骨线二型号:{{$gxexh}}
@php $gxeyl = isset($d['goodsorder_wl']['gxe']) ? explode(':',$d['goodsorder_wl']['gxe'])[1] : $d['xhs']['骨线二用料'][0]; @endphp
骨线二用料:{{$gxeyl}}
@endforeach
@endif
@if(isset($d['xhs']['底布型号']))
@foreach ($d['xhs']['底布型号'] as $key => $vo )
@php $dbxh = isset($d['goodsorder_wl']['db']) ? explode(':',$d['goodsorder_wl']['db'])[0] : $vo; @endphp
底布型号:{{$dbxh}}
@php $dbyl = isset($d['goodsorder_wl']['db']) ? explode(':',$d['goodsorder_wl']['db'])[1] : $d['xhs']['底布用料'][0]; @endphp
底布用料:{{$dbyl}}
@endforeach
@endif
@if(isset($d['ks']) && $d['ks'] != '' && $d['ks'] != '无' && $d['ks'] != '无需')
款式:{{$d['ks']}}
{{--折数计算。使用裁剪计划的方法,根据动态折距和损耗 得到的总折数。王凯鑫裁剪计划 2024-04-02 --}}
@if(isset($d['裁剪用料']))
@if(isset($d['裁剪用料']['总个数'])&&$d['裁剪用料']['总个数'] != '')
共{{round($d['裁剪用料']['总个数'])}}个
@else
共0个
@endif
@else
共0个
@endif
{{--裁剪计划--}}
{{-- 原帘创折数计算代码,按照系统设置的折距来计算折数--}}
{{--
共{{round($d['dx_zs'],2)}}折
--}}
@if($d['ks'] == '韩折')

@elseif($d['ks'] == '打孔')

@elseif($d['ks'] == '酒杯折')

@endif
@endif
{{-- @if(isset($d['goodsorder_gx']['kfyq']))--}}
{{-- @if($d['goodsorder_gx']['kfyq'] != '无' && $d['goodsorder_gx']['kfyq'] != '无需')--}}
{{--
--}}
{{-- 客服要求:{{$d['goodsorder_gx']['kfyq']}}--}}
{{--
--}}
{{-- @endif--}}
{{-- @elseif(isset($d['enter_tech']['客服要求']) && $d['enter_tech']['客服要求'] != '' && $d['enter_tech']['客服要求'] != '无需' && $d['enter_tech']['客服要求'] != '无')--}}
{{--
--}}
{{-- 客服要求:{{$d['enter_tech']['客服要求']}}--}}
{{--
--}}
{{-- @endif--}}
{{-- @if(isset($d['goods_normtype']) && $d['goods_normtype'] != '无' && $d['goods_normtype'] != '无需')--}}
{{-- --}}{{--@if((isset($d['goodsorder_wl']['zb']) && explode(':',$d['goodsorder_wl']['zb'])[0] == ''))--}}
{{--
--}}
{{-- 规格:{{$d['goods_normtype']}}--}}
{{--
--}}
{{-- @elseif(!isset($d['goodsorder_wl']['zb'] ) && isset($d['xhs']['主布型号']) && $d['xhs']['主布型号'] == "" )--}}
{{--
--}}
{{-- 规格:{{$d['goods_normtype']}}--}}
{{--
--}}
{{-- @elseif(!isset($d['goodsorder_wl']['zb'] ) && !isset($d['xhs']['主布型号']) )--}}
{{--
--}}
{{-- 规格:{{$d['goods_normtype']}}--}}
{{--
--}}
{{-- @endif--}}
{{-- @if(mb_substr($d['technique'],-3) != '@窗帘')--}}
{{--
--}}
{{-- 规格:{{$d['goods_normtype']}} 型号:{{$d['xh']}}--}}
{{--
--}}
{{-- @endif--}}
{{-- @endif--}}
订单总数:{{$d['ddzs']}} 对;总箱数:{{$d["zxs"]}} 箱; 每箱入数:{{$d["mxrs"]}} 对
@if(isset($type) && $type == '订单')
@else