|
|
@@ -200,6 +200,9 @@ define(['app/app'], function (app) {
|
|
|
$scope.showNameUl = true;
|
|
|
console.log($scope.showNameUl)
|
|
|
};
|
|
|
+ $scope.onFocus = function () {
|
|
|
+ $scope.showNameUl = true;
|
|
|
+ };
|
|
|
// 选中物流
|
|
|
$scope.showText = function (name) {
|
|
|
$scope.logistics.companyName = name;
|
|
|
@@ -217,7 +220,6 @@ define(['app/app'], function (app) {
|
|
|
if (data){
|
|
|
$scope.logistics = data;
|
|
|
}
|
|
|
- console.log($scope.logistics);
|
|
|
})
|
|
|
}
|
|
|
};
|
|
|
@@ -227,10 +229,16 @@ define(['app/app'], function (app) {
|
|
|
};
|
|
|
|
|
|
$scope.ensureModifyLogistics = function (purchase) {
|
|
|
+ if (!$scope.logistics.companyName) {
|
|
|
+ toaster.pop("error", "请选择物流公司");
|
|
|
+ }
|
|
|
+ if (!$scope.logistics.number) {
|
|
|
+ toaster.pop("error", "请填写物流单号");
|
|
|
+ }
|
|
|
Logistics.updateLogistics({id : purchase.lgtId, invoiceFuid : purchase.inid}, $scope.logistics, function (data) {
|
|
|
if (data){
|
|
|
if(data.success){
|
|
|
- toaster.pop("info", "修改物流信息成功");
|
|
|
+ toaster.pop("success", "修改物流信息成功");
|
|
|
purchase.showLogistics = false;
|
|
|
}
|
|
|
}
|