Browse Source

修改查询库存状态

hella_online_20240829
lijuncheng 5 months ago
parent
commit
571c86f95c
  1. 37
      src/common/balance.js
  2. 4
      src/mycomponents/scan/winScanPackAndLocation.vue
  3. 2
      src/pages/productPutaway/job/productPutawayJob.vue
  4. 2
      src/pages/purchaseReceipt/job/receiptJob.vue
  5. 2
      src/pages/putaway/job/putawayJob.vue

37
src/common/balance.js

@ -211,15 +211,21 @@ export function byPacking(label, locationCode, fromInventoryStatuses, callback)
action: "==", action: "==",
value: locationCode value: locationCode
}) })
if (fromInventoryStatuses != null && fromInventoryStatuses != "") { if (fromInventoryStatuses) {
var status = ""
fromInventoryStatuses.forEach(res => {
status = res + ","
})
filters.push({ filters.push({
column: "inventoryStatus", column: "inventoryStatus",
action: "in", action: "in",
value: fromInventoryStatuses value: status
}) })
} }
var params = { var params = {
filters: filters, filters: filters,
pageNo: 1, pageNo: 1,
@ -274,11 +280,16 @@ export function byBatch(label, locationCode, fromInventoryStatuses, callback) {
value: locationCode value: locationCode
}) })
if (fromInventoryStatuses != null && fromInventoryStatuses != "") { if (fromInventoryStatuses) {
var status = ""
fromInventoryStatuses.forEach(res => {
status = res + ","
})
filters.push({ filters.push({
column: "inventoryStatus", column: "inventoryStatus",
action: "in", action: "in",
value: fromInventoryStatuses value: status
}) })
} }
@ -346,11 +357,16 @@ export function byQuantity(label, locationCode, fromInventoryStatuses, callback)
value: locationCode value: locationCode
}) })
if (fromInventoryStatuses != null && fromInventoryStatuses != "") { if (fromInventoryStatuses) {
var status = ""
fromInventoryStatuses.forEach(res => {
status = res + ","
})
filters.push({ filters.push({
column: "inventoryStatus", column: "inventoryStatus",
action: "in", action: "in",
value: fromInventoryStatuses value: status
}) })
} }
@ -400,11 +416,16 @@ export function byUniqueId(label, locationCode, fromInventoryStatuses, callback)
value: label.packingNumber value: label.packingNumber
}) })
if (fromInventoryStatuses != null && fromInventoryStatuses != "") { if (fromInventoryStatuses) {
var status = ""
fromInventoryStatuses.forEach(res => {
status = res + ","
})
filters.push({ filters.push({
column: "inventoryStatus", column: "inventoryStatus",
action: "in", action: "in",
value: fromInventoryStatuses value: status
}) })
} }

4
src/mycomponents/scan/winScanPackAndLocation.vue

@ -140,7 +140,7 @@
} else { } else {
this.locationGetFocus(); this.locationGetFocus();
} }
this.fromInventoryStatuses = this.businessType.outInventoryStatuses this.fromInventoryStatuses = getDirectoryItemArray(this.businessType.outInventoryStatuses)
this.inventoryStatus = getDirectoryItemArray(this.businessType.outInventoryStatuses); // this.inventoryStatus = getDirectoryItemArray(this.businessType.outInventoryStatuses); //
this.fromLocationAreaTypeList = getDirectoryItemArray(this.businessType.fromLocationAreaTypeList); // this.fromLocationAreaTypeList = getDirectoryItemArray(this.businessType.fromLocationAreaTypeList); //
setTimeout(res => { setTimeout(res => {
@ -164,7 +164,7 @@
setTimeout(res => { setTimeout(res => {
this.$refs.popup.open('bottom') this.$refs.popup.open('bottom')
}, 500) }, 500)
this.fromInventoryStatuses = jobContent.outInventoryStatuses this.fromInventoryStatuses = getDirectoryItemArray(jobContent.outInventoryStatuses)
this.inventoryStatus = getDirectoryItemArray(jobContent.outInventoryStatuses); //; // this.inventoryStatus = getDirectoryItemArray(jobContent.outInventoryStatuses); //; //
this.fromLocationAreaTypeList = getDirectoryItemArray(jobContent.fromAreaTypes); // this.fromLocationAreaTypeList = getDirectoryItemArray(jobContent.fromAreaTypes); //
}, },

2
src/pages/productPutaway/job/productPutawayJob.vue

@ -22,7 +22,7 @@
<uni-load-more :status="loadingType" v-if="jobList.length>0" /> <uni-load-more :status="loadingType" v-if="jobList.length>0" />
</view> </view>
<win-scan-button @goScan='openScanPopup' v-if="jobList.length>0"></win-scan-button> <win-scan-button @goScan='openScanPopup' v-if="jobList.length>0"></win-scan-button>
<winScanPackJob ref="scanPopup" @getResult='getScanResult' :allowNullBalance="true"> <winScanPackJob ref="scanPopup" @getResult='getScanResult' >
</winScanPackJob> </winScanPackJob>
<jobList ref="jobList" @selectItem="selectItem"></jobList> <jobList ref="jobList" @selectItem="selectItem"></jobList>
<comMessage ref="comMessage"></comMessage> <comMessage ref="comMessage"></comMessage>

2
src/pages/purchaseReceipt/job/receiptJob.vue

@ -20,7 +20,7 @@
<receipt-job-list-popup ref="jobListPopup" @selectedItem="selectedItem"></receipt-job-list-popup> <receipt-job-list-popup ref="jobListPopup" @selectedItem="selectedItem"></receipt-job-list-popup>
</view> </view>
<win-scan-button @goScan='openScanPopup' v-if="jobList.length>0"></win-scan-button> <win-scan-button @goScan='openScanPopup' v-if="jobList.length>0"></win-scan-button>
<winScanPackJob :title="scanTitle" ref="scanPopup" @getResult='getScanResult' :allowNullBalance="true"> <winScanPackJob :title="scanTitle" ref="scanPopup" @getResult='getScanResult' >
</winScanPackJob> </winScanPackJob>
<jobList ref="jobList" @selectItem="selectItem"></jobList> <jobList ref="jobList" @selectItem="selectItem"></jobList>
<comMessage ref="comMessage"></comMessage> <comMessage ref="comMessage"></comMessage>

2
src/pages/putaway/job/putawayJob.vue

@ -23,7 +23,7 @@
</view> </view>
<win-scan-button @goScan='openScanPopup' v-if="jobList.length>0"></win-scan-button> <win-scan-button @goScan='openScanPopup' v-if="jobList.length>0"></win-scan-button>
<winScanPackJob ref="scanPopup" @getResult='getScanResult' :allowNullBalance="true"> <winScanPackJob ref="scanPopup" @getResult='getScanResult'>
</winScanPackJob> </winScanPackJob>
<jobList ref="jobList" @selectItem="selectItem"></jobList> <jobList ref="jobList" @selectItem="selectItem"></jobList>

Loading…
Cancel
Save