erpBomDetail.html 6.2 KB
Newer Older
doc_wei's avatar
doc_wei 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
    <link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
    <link href="../../assets/lib/layui/lay/modules/ztree/css/zTreeStyle/zTreeStyle.css" rel="stylesheet" />
	<link href="../../assets/lib/layui/css/tree-table.css" rel="stylesheet" />
    <link href="../../assets/lib/layui/lay/modules/contextMenu/jquery.contextMenu.min.css" rel="stylesheet" />
	<style type="text/css">
		.remove{
			position: absolute;
		    left: 3px;
		    margin-top: 10px !important;
		}
		.layui-badge{
			line-height: 15px !important;
		}
		.curSelectedNode{
			background-color: #e6e6e6 !important;
		}
		.procedureBox{
			word-break: keep-all;
			white-space: nowrap;
			overflow: hidden;
			text-overflow: ellipsis;
		}
		.procedureSel{
		    float: left;
		    height: 20px;
		    width: 20px;
		    margin-top: 5px;
		    cursor: pointer;
		}
	</style>
</head>
<body>
	<div style="padding:20px; margin:0 auto;">
	    <form class="layui-form" action="" id="showForm">
	    	
	    </form>
	</div>
	
	<script type="text/html" id="mainHtml">
		{{#bean}}
			<div class="layui-form-item layui-col-xs12">
    			<span class="hr-title">父件资料</span><hr>
	    	</div>
	    	<div class="layui-form-item layui-col-xs12">
	            <label class="layui-form-label">BOM方案名称</label>
	            <div class="layui-input-block ver-center">
	                {{title}}
	            </div>
	        </div>
	        <div class="layui-form-item layui-col-xs12">
	            <label class="layui-form-label">商品名称</label>
	            <div class="layui-input-block ver-center">
W
weizhiqiang 已提交
59
	                {{normMation.materialName}}
doc_wei's avatar
doc_wei 已提交
60 61 62 63 64
	            </div>
	        </div>
	        <div class="layui-form-item layui-col-xs6">
	            <label class="layui-form-label">商品型号</label>
	            <div class="layui-input-block ver-center">
W
weizhiqiang 已提交
65
	                {{normMation.materialModel}}
doc_wei's avatar
doc_wei 已提交
66 67 68 69 70
	            </div>
	        </div>
	        <div class="layui-form-item layui-col-xs6">
	            <label class="layui-form-label">计量单位</label>
	            <div class="layui-input-block ver-center">
W
weizhiqiang 已提交
71
	                {{normMation.unitName}}
doc_wei's avatar
doc_wei 已提交
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
	            </div>
	        </div>
			<div class="layui-form-item layui-col-xs6">
	            <label class="layui-form-label">耗材总费用</label>
	            <div class="layui-input-block ver-center">
	                {{consumablesPrice}}
	            </div>
	        </div>
			<div class="layui-form-item layui-col-xs6">
	            <label class="layui-form-label">工序总费用</label>
	            <div class="layui-input-block ver-center">
	                {{procedurePrice}}
	            </div>
	        </div>
			<div class="layui-form-item layui-col-xs6">
	            <label class="layui-form-label">耗损总费用</label>
	            <div class="layui-input-block ver-center">
	                {{wastagePrice}}
	            </div>
	        </div>
			<div class="layui-form-item layui-col-xs6">
	            <label class="layui-form-label">制造数量</label>
	            <div class="layui-input-block ver-center">
	                {{makeNum}}
	            </div>
	        </div>
	        <div class="layui-form-item layui-col-xs12">
	            <label class="layui-form-label">备注说明</label>
	            <div class="layui-input-block ver-center">
	                {{remark}}
	            </div>
	        </div>
	        <div class="layui-form-item layui-col-xs12">
    			<span class="hr-title">子件清单</span><hr>
	    	</div>
	    	<div class="layui-form-item layui-col-xs12">
	            <label class="layui-form-label">列表项</label>
	            <div class="layui-input-block">
	            	<ul id="treeDemo" class="ztree fsTree"></ul>
	            </div>
	        </div>
	    {{/bean}}
	</script>
	
	<!-- 表格标题 -->
	<script type="text/html" id="tableHeader">
		<li class="head">
			<a>
				<div class="diy" style="width: 20%">商品名称</div>
				<div class="diy" style="width: 13%">商品型号</div>
				<div class="diy" style="width: 6%">计量单位</div>
				<div class="diy" style="width: 15%">工序</div>
				<div class="diy" style="width: 6%">数量</div>
				<div class="diy" style="width: 6%">单价</div>
				<div class="diy" style="width: 6%">金额</div>
				<div class="diy" style="width: 6%">耗损</div>
				<div class="diy" style="width: 6%">商品来源</div>
				<div class="diy" style="width: 15%">备注</div>
			</a>
		</li>
	</script>
	
	<!-- 表格行 -->
	<script type="text/html" id="tableBody">
W
weizhiqiang 已提交
136
		<div class="diy" style="width: 13%">{{productName}}</div>
doc_wei's avatar
doc_wei 已提交
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164
		<div class="diy" style="width: 13%">{{productModel}}</div>
		<div class="diy" style="width: 6%">{{unitName}}</div>
		<div class="diy procedureBox" style="width: 15%" id="procedureBox{{productId}}" 
			title="
			{{#each procedureMationList}}{{number}}、{{procedureName}}&#10;{{/each}}">
			{{#each procedureMationList}}
				<span class="layui-badge layui-bg-gray">{{number}}</span>{{procedureName}}
			{{/each}}
		</div>
		<div class="diy" style="width: 6%">{{needNum}}</div>
		<div class="diy" style="width: 6%">{{unitPrice}}</div>
		<div class="diy" style="width: 6%; min-height: 30px;" id="allPrice{{productId}}"></div>
		<div class="diy" style="width: 6%">{{wastagePrice}}</div>
		<div class="diy" style="width: 6%; overflow: visible !important;">{{typeName}}</div>
		<div class="diy" style="width: 15%">{{remark}}</div>
	</script>
	
	<script src="../../assets/lib/layui/layui.js"></script>
	<script src="../../assets/lib/layui/custom.js"></script>
	<script type="text/javascript" src="../../assets/lib/layui/lay/modules/jquery-min.js"></script>
    <script type="text/javascript" src="../../assets/lib/layui/lay/modules/contextMenu/jquery.contextMenu.min.js"></script>
    <script type="text/javascript" src="../../assets/lib/layui/lay/modules/ztree/js/jquery.ztree.all.min.js"></script>
    <script type="text/javascript" src="../../assets/lib/layui/lay/modules/ztree/js/jquery.ztree.exhide.min.js"></script>
	<script type="text/javascript">
	    layui.config({base: '../../js/erpBom/'}).use('erpBomDetail');
	</script>
</body>
</html>