|
|
@@ -11,6 +11,7 @@
|
|
|
}
|
|
|
.u_c_invoice .ticket_record_list {
|
|
|
background: #fff;
|
|
|
+ min-height: 323px;
|
|
|
}
|
|
|
.u_c_invoice #add-invoice {
|
|
|
width: 100%;
|
|
|
@@ -376,7 +377,7 @@
|
|
|
width: 75px;
|
|
|
}
|
|
|
.ticket_record_list dl dd:last-child {
|
|
|
- border-bottom: none;
|
|
|
+ background: #f1f5ff;
|
|
|
}
|
|
|
#bill-info .select-file-box input {
|
|
|
display: none;
|
|
|
@@ -395,6 +396,14 @@
|
|
|
left: -20px;
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
+ .cursor-not-allowed {
|
|
|
+ cursor: not-allowed!important;
|
|
|
+ }
|
|
|
+ .ticket_record_list .ticket_data dd {
|
|
|
+ border-left: #dae5fd 1px solid;
|
|
|
+ border-bottom: #dae5fd 1px solid!important;
|
|
|
+ border-right: #dae5fd 1px solid;
|
|
|
+ }
|
|
|
</style>
|
|
|
<!--右侧主体部分-->
|
|
|
<div class="user_right fr u_c_invoice">
|
|
|
@@ -444,7 +453,7 @@
|
|
|
<span ng-cloak>{{invoice.telephone}}</span>
|
|
|
<span>
|
|
|
<!--<a class="look" ng-click="viewInvoice(invoice)">查看/</a>-->
|
|
|
- <a ng-click="modifyInvoice(invoice)">修改/</a>
|
|
|
+ <a ng-click="modifyInvoice(invoice)">修改</a> |
|
|
|
<a ng-click="deleteInvoice(invoice)">删除</a>
|
|
|
</span>
|
|
|
</dd>
|
|
|
@@ -472,14 +481,14 @@
|
|
|
<label class="padding-top-5"><input type="radio" ng-click="setBillType(1205)" ng-model="billType" value="1205" ng-disabled="!isSpecial"></label>
|
|
|
<label ng-class="{'disable':!isSpecial, '':isSpecial}" class="padding-left-0">增值税专用发票(可抵扣) </label>
|
|
|
</label>-->
|
|
|
- <label for="1206" class="radio-inline radioLabel">
|
|
|
+ <label for="1206" class="radio-inline radioLabel" ng-class="{'cursor-not-allowed':!isNormal}">
|
|
|
<input type="radio" name="bill" value="1206" ng-disabled="!isNormal" ng-click="setBillType(1206)" ng-model="billType" id="1206">
|
|
|
- <label for="1206" class="txtContact"></label>
|
|
|
+ <label ng-class="{'cursor-not-allowed':!isNormal}" for="1206" class="txtContact"></label>
|
|
|
<span ng-class="{'disable':!isNormal, '':isNormal}">增值税普票(不可抵扣)</span>
|
|
|
</label>
|
|
|
- <label for="1205" class="radio-inline radioLabel">
|
|
|
+ <label for="1205" class="radio-inline radioLabel" ng-class="{'cursor-not-allowed':!isSpecial}">
|
|
|
<input type="radio" name="bill" value="1205" ng-disabled="!isSpecial" ng-click="setBillType(1205)" ng-model="billType" id="1205">
|
|
|
- <label for="1205" class="txtContact"></label>
|
|
|
+ <label ng-class="{'cursor-not-allowed':!isSpecial}" for="1205" class="txtContact"></label>
|
|
|
<span ng-class="{'disable':!isSpecial, '':isSpecial}">增值税专票(可抵扣)</span>
|
|
|
</label>
|
|
|
</div>
|
|
|
@@ -495,16 +504,16 @@
|
|
|
<div class="form-group" ng-if="billType == 1205">
|
|
|
<label class="col-md-2 control-label"><b class="text-inverse">*</b>单位地址:</label>
|
|
|
<div class="col-md-5">
|
|
|
- <input type="text" class="form-control" ng-model="bill.companyAddress" ng-focus="form.companyAddr.$touched = false" ng-blur="form.companyAddr.$touched = true" name="companyAddr" ng-maxlength="100" required="required" placeholder="请输入单位地址">
|
|
|
+ <input type="text" class="form-control" ng-model="bill.companyAddress" ng-focus="form.companyAddr.$touched = false" ng-blur="form.companyAddr.$touched = true; checkCompanyAddress()" name="companyAddr" required="required" placeholder="请输入单位地址">
|
|
|
</div>
|
|
|
- <div class="text-inverse error col-md-3" ng-show="form.companyAddr.$touched&&form.companyAddr.$invalid" ng-bind="form.companyAddr.$error.required?'请填写单位地址':'请勿超过50个字'"></div>
|
|
|
+ <div class="text-inverse error col-md-3" ng-show="form.companyAddr.$touched&&(form.companyAddr.$invalid || !validForm.validCompanyAddress)" ng-bind="form.companyAddr.$error.required?'请填写单位地址':'请勿超过50个字'"></div>
|
|
|
</div>
|
|
|
<div class="form-group" ng-if="billType == 1205">
|
|
|
<label class="col-md-2 control-label"><b class="text-inverse">*</b>单位电话:</label>
|
|
|
<div class="col-md-5">
|
|
|
- <input type="text" class="form-control" ng-focus="form.companyPhone.$touched = false" ng-blur="form.companyPhone.$touched = true" placeholder="区号和号码使用 '-' 隔开,或者不填区号" name="companyPhone" ng-model="bill.companyPhone" ng-maxlength="20" ng-pattern="/^0\d{2,3}-[1-9]\d{6,7}$/" required="required">
|
|
|
+ <input type="text" class="form-control" ng-focus="form.companyPhone.$touched = false" ng-blur="form.companyPhone.$touched = true" placeholder="区号和号码使用 '-' 隔开" name="companyPhone" ng-model="bill.companyPhone" ng-pattern="/^0\d{2,3}-[1-9]\d{6,7}$/" ng-maxlength="20" required="required">
|
|
|
</div>
|
|
|
- <div class="text-inverse error col-md-3" ng-show="form.companyPhone.$touched&&form.companyPhone.$invalid" ng-bind="form.companyPhone.$error.required?'请填写单位电话':'请勿超过20个字符'"></div>
|
|
|
+ <div class="text-inverse error col-md-3" ng-show="form.companyPhone.$touched&&form.companyPhone.$invalid" ng-bind="form.companyPhone.$error.required?'请填写单位电话':form.companyPhone.$error.maxlength?'请勿超过20个字符':'请填写正确的电话号码,用-隔开'"></div>
|
|
|
</div>
|
|
|
<div class="form-group" ng-if="billType == 1205">
|
|
|
<label class="col-md-2 control-label"><b class="text-inverse">*</b>税务登记号:</label>
|