|
|
@@ -91,8 +91,9 @@ define(['app/app'], function(app) {
|
|
|
//上传发票许可证
|
|
|
$scope.onUploadPermission = function () {
|
|
|
$scope.isDoUpload = true;
|
|
|
- if (event.target.files[0].size < 3*1024*1024) {
|
|
|
- $scope.bill.attachUrl = event.target.files[0].name;
|
|
|
+ // console.log($scope.bill.billInfo);
|
|
|
+ if ($scope.bill.billInfo[0].size < 3*1024*1024) {
|
|
|
+ $scope.bill.attachUrl = $scope.bill.billInfo[0].name;
|
|
|
} else {
|
|
|
$scope.bill.attachUrl = '';
|
|
|
}
|