|
@@ -116,8 +116,12 @@ $('button[invoiceDetalfn]').click(function() {
|
|
|
invoiceType='增值税普通发票(电子发票)';
|
|
|
}
|
|
|
|
|
|
+ var invoiceElement="<br/>";
|
|
|
+ $.each($('input[name=items]:checkbox:checked'),function(){
|
|
|
+ invoiceElement+=$(this).attr("itemName")+"<br/>";
|
|
|
+ });
|
|
|
|
|
|
- var invoiceElement=$('#invoiceElement option:selected').html();
|
|
|
+ //var invoiceElement=$('#invoiceElement option:selected').html();
|
|
|
var invoiceQuantity=$("#invoiceQuantity").val();
|
|
|
var invoiceUnitPrice=$("#invoiceUnitPrice").val();
|
|
|
var invoicePrice=invoiceQuantity*invoiceUnitPrice;
|
|
@@ -261,6 +265,40 @@ $('input[type=radio][name=invoiceForm]').change(function() {
|
|
|
});
|
|
|
|
|
|
|
|
|
+$('input[rate=13]').click(function() {
|
|
|
+ var flag=false;
|
|
|
+ $.each($('input[rate=13]:checkbox:checked'),function(){
|
|
|
+ flag=true;
|
|
|
+ });
|
|
|
+ if(flag){
|
|
|
+ $('input[rate=6]').removeAttr("checked");
|
|
|
+ }
|
|
|
+ /* if(flag){
|
|
|
+ $('input[rate=6]').attr("disabled","false");
|
|
|
+ }else{
|
|
|
+ $('input[rate=6]').removeAttr("disabled");
|
|
|
+ } */
|
|
|
+});
|
|
|
+$('input[rate=6]').click(function() {
|
|
|
+ var flag=false;
|
|
|
+ $.each($('input[rate=6]:checkbox:checked'),function(){
|
|
|
+ flag=true;
|
|
|
+ });
|
|
|
+ if(flag){
|
|
|
+ $('input[rate=13]').removeAttr("checked");
|
|
|
+ }else{
|
|
|
+ //$('input[rate=13]').attr("checked","true");
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ //if(flag){
|
|
|
+ // $('input[rate=13]').attr("disabled","false");
|
|
|
+ //}else{
|
|
|
+ // $('input[rate=13]').removeAttr("disabled");
|
|
|
+ //}
|
|
|
+});
|
|
|
+
|
|
|
+
|
|
|
})
|
|
|
|
|
|
</script>
|
|
@@ -295,7 +333,7 @@ $('input[type=radio][name=invoiceForm]').change(function() {
|
|
|
|
|
|
<tr>
|
|
|
<th class="taC" width="150">所在办事处</th>
|
|
|
- <td>
|
|
|
+ <td width="300">
|
|
|
<select name="cid" id="cid">
|
|
|
<!-- loop category -->
|
|
|
<option <!-- if {{category' value.cid}} == {{staff.0.cid}} --> selected <!-- endif --> value="{{category' value.cid}}" >{{category' value.title}}</option>
|
|
@@ -304,14 +342,15 @@ $('input[type=radio][name=invoiceForm]').change(function() {
|
|
|
</td>
|
|
|
<th class="taC"><span class="colRed">*</span>开票内容</th>
|
|
|
<td>
|
|
|
+ <!-- loop invoiceItemList -->
|
|
|
+ <!-- if {{invoiceItemList' value.rate}}==6 -->
|
|
|
+ <br/>
|
|
|
+ <!-- endif -->
|
|
|
+ <label><input type="checkbox" name="items" rate="{{invoiceItemList' value.rate}}" value="{{invoiceItemList' value.id}}"
|
|
|
+ itemName='{{invoiceItemList' value.name}}' data-rule="checked" >{{invoiceItemList' value.name}}</label>
|
|
|
+
|
|
|
+ <!-- endloop -->
|
|
|
|
|
|
-
|
|
|
- <select name="invoiceElement" id="invoiceElement">
|
|
|
- <!-- loop invoiceItemList -->
|
|
|
-
|
|
|
- <!-- endloop -->
|
|
|
-
|
|
|
- </select>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
@@ -560,7 +599,7 @@ $('input[type=radio][name=invoiceForm]').change(function() {
|
|
|
<div class="modal-footer">
|
|
|
<input type="submit" class="button" value="无误,提交申请">
|
|
|
|
|
|
- <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">我要检查一下</a>
|
|
|
+ <a href="javascript:void(0)" class="button btn-gray" data-dismiss="modal" aria-hidden="true">我要检查一下</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|