diff --git a/common/balance.js b/common/balance.js index 827b4067..8733e89a 100644 --- a/common/balance.js +++ b/common/balance.js @@ -1,4 +1,3 @@ - import { getManagementPrecision, getBalanceByFilter @@ -38,7 +37,7 @@ export function getManagementPrecisions(itemCodes, locationCode, callback) { }) } -export function getBalanceByManagementPrecision(label, locationCode,fromInventoryStatuses, callback) { +export function getBalanceByManagementPrecision(label, locationCode, fromInventoryStatuses, callback) { let result = { list: [], success: true, @@ -53,25 +52,25 @@ export function getBalanceByManagementPrecision(label, locationCode,fromInventor let managementPrecision = res.data[0].ManagementPrecision; switch (managementPrecision) { case 'BY_PACKAGING': - byPacking(label, locationCode,fromInventoryStatuses, res => { + byPacking(label, locationCode, fromInventoryStatuses, res => { res.managementPrecision = managementPrecision; callback(res); }); break; case 'BY_BATCH': - byBatch(label, locationCode,fromInventoryStatuses, res => { + byBatch(label, locationCode, fromInventoryStatuses, res => { res.managementPrecision = managementPrecision; callback(res); }); break; case 'BY_QUANTITY': - byQuantity(label, locationCode,fromInventoryStatuses, res => { + byQuantity(label, locationCode, fromInventoryStatuses, res => { res.managementPrecision = managementPrecision; callback(res); }); break; case 'BY_UNIQUEID': - byUniqueId(label,fromInventoryStatuses, res => { + byUniqueId(label, fromInventoryStatuses, res => { res.managementPrecision = managementPrecision; callback(res); }); @@ -90,7 +89,7 @@ export function getBalanceByManagementPrecision(label, locationCode,fromInventor * @param {Object} locationCode * @param {Object} callback */ -export function byPacking(label, locationCode,fromInventoryStatuses, callback) { +export function byPacking(label, locationCode, fromInventoryStatuses, callback) { let result = { success: true, message: '', @@ -117,14 +116,14 @@ export function byPacking(label, locationCode,fromInventoryStatuses, callback) { action: "==", value: locationCode }) - if(fromInventoryStatuses!=null&&fromInventoryStatuses!=""){ + if (fromInventoryStatuses != null && fromInventoryStatuses != "") { filters.push({ column: "inventoryStatus", action: "in", value: fromInventoryStatuses }) } - + var params = { filters: filters, @@ -157,7 +156,7 @@ export function byPacking(label, locationCode,fromInventoryStatuses, callback) { * @param {Object} locationCode * @param {Object} callback */ -export function byBatch(label, locationCode,fromInventoryStatuses, callback) { +export function byBatch(label, locationCode, fromInventoryStatuses, callback) { var filters = [] filters.push({ column: "itemCode", @@ -174,8 +173,8 @@ export function byBatch(label, locationCode,fromInventoryStatuses, callback) { action: "==", value: locationCode }) - - if(fromInventoryStatuses!=null&&fromInventoryStatuses!=""){ + + if (fromInventoryStatuses != null && fromInventoryStatuses != "") { filters.push({ column: "inventoryStatus", action: "in", @@ -218,7 +217,7 @@ export function byBatch(label, locationCode,fromInventoryStatuses, callback) { * @param {Object} locationCode * @param {Object} callback */ -export function byQuantity(label, locationCode,fromInventoryStatuses, callback) { +export function byQuantity(label, locationCode, fromInventoryStatuses, callback) { let result = { success: true, message: '', @@ -236,8 +235,8 @@ export function byQuantity(label, locationCode,fromInventoryStatuses, callback) action: "==", value: locationCode }) - - if(fromInventoryStatuses!=null&&fromInventoryStatuses!=""){ + + if (fromInventoryStatuses != null && fromInventoryStatuses != "") { filters.push({ column: "inventoryStatus", action: "in", @@ -274,7 +273,7 @@ export function byQuantity(label, locationCode,fromInventoryStatuses, callback) * @param {Object} locationCode * @param {Object} callback */ -export function byUniqueId(label, locationCode,fromInventoryStatuses, callback) { +export function byUniqueId(label, locationCode, fromInventoryStatuses, callback) { let param = { packingNumber: label.packingNumber }; @@ -290,8 +289,8 @@ export function byUniqueId(label, locationCode,fromInventoryStatuses, callback) action: "==", value: label.packingNumber }) - - if(fromInventoryStatuses!=null&&fromInventoryStatuses!=""){ + + if (fromInventoryStatuses != null && fromInventoryStatuses != "") { filters.push({ column: "inventoryStatus", action: "in", diff --git a/common/basic.js b/common/basic.js index fc1e7a5e..2d38eede 100644 --- a/common/basic.js +++ b/common/basic.js @@ -656,7 +656,6 @@ export function getPackingNumberAndBatch(managementList, itemCode, packingNumber itemInfo.batch = batch } return itemInfo; - } // //提示是否消息 diff --git a/common/style/new_style.css b/common/style/new_style.css index ab98196a..8c45d000 100644 --- a/common/style/new_style.css +++ b/common/style/new_style.css @@ -233,13 +233,13 @@ uni-page-head .uni-page-head__title { } .cell_box .cell_info view { - font-size: 0.825rem; + font-size: 0.9375rem; margin-bottom: 10rpx; color: #7B8195; } .cell_box .cell_info .text_black { - font-size: .875rem; + font-size: 0.875rem; color: #101010; } @@ -305,7 +305,7 @@ uni-page-head .uni-page-head__title { } .cen_card .cell_box .cell_info .text_lightblue { - font-size: 0.725rem; + font-size: 0.925rem; } .bot_card { @@ -2034,13 +2034,13 @@ button::after { .card_itemName { color: #909399; font-size: 30rpx; - padding: 5rpx 20rpx; + padding: 5rpx 20rpx; } .card_ProdLine { color: #909399; font-size: 30rpx; - padding: 5rpx 30rpx; + padding: 5rpx 30rpx; } @@ -2120,11 +2120,11 @@ button::after { background: linear-gradient(to right, #7ED7BD, #DCEFEE); } -.card_view -{ +.card_view { font-size: 32rpx; padding: 5rpx; } + /* .pack_view { font-size: 32rpx; @@ -2421,6 +2421,12 @@ button[disabled] { align-items: center; } +.space_between { + display: flex; + flex-direction: row; + justify-content: space-between; +} + .text_recommend { color: #0A84FF; font-size: 38rpx; @@ -2635,6 +2641,7 @@ button[disabled] { padding: 10rpx 20rpx 10rpx 20rpx; border-radius: 10rpx; } + /** * 申请状态 审批中 */ @@ -2645,6 +2652,7 @@ button[disabled] { padding: 10rpx 20rpx 10rpx 20rpx; border-radius: 10rpx; } + /** * 申请状态 审批通过 */ @@ -2655,6 +2663,7 @@ button[disabled] { padding: 10rpx 20rpx 10rpx 20rpx; border-radius: 10rpx; } + /** * 申请状态 审批驳回 */ @@ -2665,6 +2674,7 @@ button[disabled] { padding: 10rpx 20rpx 10rpx 20rpx; border-radius: 10rpx; } + /** * 申请状态 处理中 */ @@ -2675,6 +2685,7 @@ button[disabled] { padding: 10rpx 20rpx 10rpx 20rpx; border-radius: 10rpx; } + /** * 申请状态 部分完成 */ @@ -2685,6 +2696,7 @@ button[disabled] { padding: 10rpx 20rpx 10rpx 20rpx; border-radius: 10rpx; } + /** * 申请状态 已完成 */ @@ -2695,6 +2707,7 @@ button[disabled] { padding: 10rpx 20rpx 10rpx 20rpx; border-radius: 10rpx; } + /** * 申请状态 中止 */ @@ -2705,6 +2718,7 @@ button[disabled] { padding: 10rpx 20rpx 10rpx 20rpx; border-radius: 10rpx; } + /** * 申请状态 已关闭 */ diff --git a/common/style/pdabasic.css b/common/style/pdabasic.css index f1083f3f..8fc37203 100644 --- a/common/style/pdabasic.css +++ b/common/style/pdabasic.css @@ -720,6 +720,7 @@ page { .page-main { flex: 1; position: relative; + background: #fff; } .page-main-scroll { diff --git a/mycomponents/balance/handleBalance.vue b/mycomponents/balance/handleBalance.vue index 73c4e49b..a35de49c 100644 --- a/mycomponents/balance/handleBalance.vue +++ b/mycomponents/balance/handleBalance.vue @@ -1,17 +1,12 @@