| | |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">单价<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <input class="form-control" label="客户名称" name="Price" id="Price" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.Price" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | <input class="form-control" label="客户名称" name="Price" id="Price" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.Price" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | |
| | | </div> |
| | | |
| | |
| | | |
| | | $("#OrderType").change(function () { |
| | | var sheng = $("#OrderType").val(); |
| | | if (sheng == '08' || sheng == '11' || sheng == '10') { |
| | | $('#Price').removeAttr("readonly");//去除input元素的readonly属性 |
| | | } else { |
| | | $('#Price').attr("readonly", "readonly")//将input元素设置为readonly |
| | | } |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: "/CooperOrder/getOrderType?OrderType=" + sheng, |
| | |
| | | $("#tousu").hide(); |
| | | } |
| | | |
| | | |
| | | var sheng = $("#OrderType").val(); |
| | | if (sheng == '08' || sheng == '11' || sheng == '10') { |
| | | $('#Price').removeAttr("readonly");//去除input元素的readonly属性 |
| | | } else { |
| | | $('#Price').attr("readonly", "readonly")//将input元素设置为readonly |
| | | } |
| | | |
| | | |
| | | |