|
|
@ -20,26 +20,26 @@ |
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-sm-3 control-label">供应商ID:</label> |
|
|
|
<div class="col-sm-8"> |
|
|
|
<input name="supplierQuoteCode" th:field="*{supplierQuoteCode}" class="form-control" /> |
|
|
|
<input name="supplierQuoteCode" th:field="*{supplierQuoteCode}" class="form-control" readonly> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-sm-3 control-label">供应商名称:</label> |
|
|
|
<div class="col-sm-8"> |
|
|
|
<input name="supplierName" th:field="*{supplierName}" class="form-control"> |
|
|
|
<input name="supplierName" th:field="*{supplierName}" class="form-control" readonly> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-sm-3 control-label">定价日期:</label> |
|
|
|
<div class="input-group date"> |
|
|
|
<input name="pricingDate" th:field="*{pricingDate}" class="form-control" type="text"> |
|
|
|
<input name="pricingDate" th:field="*{pricingDate}" class="form-control" type="text" readonly> |
|
|
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-sm-3 control-label">备注说明:</label> |
|
|
|
<div class="col-sm-8"> |
|
|
|
<textarea name="remark" class="form-control" th:field="*{remark}"></textarea> |
|
|
|
<textarea name="remark" class="form-control" th:field="*{remark}" readonly></textarea> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
@ -68,18 +68,13 @@ |
|
|
|
<label class="col-sm-3 control-label">税率:</label> |
|
|
|
<div class="col-sm-8"> |
|
|
|
<div class="input-group"> |
|
|
|
<input name="taxRate" id="taxRate" th:field="*{taxRate}" class="form-control" placeholder="13" /> |
|
|
|
<input name="taxRate" id="taxRate" th:field="*{taxRate}" class="form-control" placeholder="13" readonly> |
|
|
|
<span class="input-group-addon">%</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</form> |
|
|
|
<div class="container"> |
|
|
|
<div class="form-row"> |
|
|
|
<div class="btn-group-sm" id="toolbar" role="group"> |
|
|
|
<span>选择报价信息</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-sm-12 select-table table-striped"> |
|
|
|
<table id="bootstrap-sub-table-purchaseQuoteChild"></table> |
|
|
@ -208,9 +203,17 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
{title:'最新报价',field: 'materialSole',align: 'center',}, |
|
|
|
{ title: '最新报价历史',align: 'center', |
|
|
|
|
|
|
|
formatter: function (value, row, index) { |
|
|
|
var actions = []; |
|
|
|
actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="recentQuotationHistory(\'' + row.materialCode + '\')"><i class="fa fa-edit"></i>最新报价历史</a> '); |
|
|
|
return actions.join(''); |
|
|
|
} |
|
|
|
}, |
|
|
|
{title: '物料的数量', field: 'materialNum',align: 'center',editable: true,visible: false}, |
|
|
|
{title: '物料的不含税单价(RMB)',field: 'materialNoRmb',align: 'center',editable: true,}, |
|
|
|
{title: '物料的含税单价(RMB)',field: 'materialRmb',align: 'center',editable: true,}, |
|
|
|
{title: '物料的不含税单价(RMB)',field: 'materialNoRmb',align: 'center',}, |
|
|
|
{title: '物料的含税单价(RMB)',field: 'materialRmb',align: 'center',}, |
|
|
|
{title: '录入人',field: 'createBy',align: 'center',visible: false}, |
|
|
|
{title: '录入时间',field: 'createTime',align: 'center',visible: false }, |
|
|
|
{title: '更新人',field: 'updateBy',align: 'center',visible: false}, |
|
|
@ -269,6 +272,18 @@ |
|
|
|
minView: "month", |
|
|
|
autoclose: true |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
//最新报价历史 |
|
|
|
function recentQuotationHistory(materialCode){ |
|
|
|
var supplierQuoteCode = $("#supplierQuoteCode").val(); |
|
|
|
var queryParams = new URLSearchParams(); |
|
|
|
queryParams.append("materialCode", materialCode); |
|
|
|
queryParams.append("supplierQuoteCode", encodeURIComponent(supplierQuoteCode)); |
|
|
|
var url = ctx +'purchase/purchaseQuote/recentQuotationHistory?'+queryParams.toString(); |
|
|
|
|
|
|
|
$.modal.open("最新报价历史", url); |
|
|
|
} |
|
|
|
</script> |
|
|
|
</body> |
|
|
|
</html> |