Commit 2e7c6223 authored by 顾俭's avatar 顾俭

aship/aship#4 防伪码功能-送货审核:防伪码启用供应商不创建箱标签

parent ae929959
......@@ -158,12 +158,12 @@
</button>
<button class="btn btn-default mrs" ng-click="createLabel()" ng-disabled="!currentDeliveryOrder || currentDeliveryOrder.released == '1' || currentDeliveryOrderDetails.size == 0"
acl-check func=" 'DELIVERY_ORDER_FUNCTION' " resource=" 'CREATE_LABEL' "
ng-if="queryCondition.poMst.supplier && queryCondition.poMst.supplier.useBarcode == 'Y'">创建箱标签
ng-if="queryCondition.poMst.supplier && queryCondition.poMst.supplier.useBarcode != 'Y'">创建箱标签
</button>
<button class="btn btn-default mrs" ng-click="openSteelCoilOrNotDlg()"
ng-disabled="!currentDeliveryOrder || currentDeliveryOrder.released == '1' || currentDeliveryOrderDetails.size == 0"
acl-check func=" 'DELIVERY_ORDER_FUNCTION' " resource=" 'UPDATE_LABEL' "
ng-if="queryCondition.poMst.supplier && queryCondition.poMst.supplier.useBarcode == 'Y'">修改箱标签
ng-if="queryCondition.poMst.supplier && queryCondition.poMst.supplier.useBarcode != 'Y'">修改箱标签
</button>
<button class="btn btn-default mrs" ng-click="release()" ng-disabled="!currentDeliveryOrder || currentDeliveryOrder.released == '1' || uiOption.releasing"
acl-check func=" 'DELIVERY_ORDER_FUNCTION' " resource=" 'RELEASE' ">发布
......
......@@ -49,9 +49,15 @@
<!--ng-if="uiOption.currentStatus == uiStatus.CREATE_LABEL && op == 'MODIFY' && isSteelCoil()"-->
<!--ng-disabled="!updateDeliveryOrderForm.$valid">保存</button>-->
<button class="btn btn-default mrs" ng-click="saveDeliveryOrderProductList(true)"
ng-if="uiOption.currentStatus == uiStatus.CREATE_LABEL"
ng-if="uiOption.currentStatus == uiStatus.CREATE_LABEL && (currentDeliveryOrder.supplier.useBarcode !='Y')"
ng-disabled="!updateDeliveryOrderForm.$valid">保存并创建箱标签
</button>
<!--启用防伪码供应商useBarcode不创建箱标签-->
<button class="btn btn-default mrs" ng-click="saveDeliveryOrderProductList(false)"
ng-if="(uiOption.currentStatus == uiStatus.CREATE_LABEL) && (currentDeliveryOrder.supplier.useBarcode =='Y')"
ng-disabled="!updateDeliveryOrderForm.$valid">保存
</button>
</div>
</div>
......
......@@ -689,7 +689,8 @@ angular.module('IOne').controller('DeliveryOrderUpdateController', function ($ro
}
//check if the steel coil amount has been changed
if (!generateLabel) {
// barcode不产生箱标签修改 && $scope.deliveryOrderAggregationGridOptions.data[0].steelCoil == '1'
if (!generateLabel && $scope.deliveryOrderAggregationGridOptions.data[0].steelCoil == '1') {
DoDtlProductLabelFileService.getAllByExample({
doMst: {id: $scope.currentDeliveryOrderId}
}).then(function (response) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment