lijuncheng 3 days ago
parent
commit
7c904284d5
  1. 2
      .env.development
  2. 4
      src/mycomponents/qty/recommendQtyEdit.vue
  3. 4
      src/pages/issue/job/issueDetailBatch.vue
  4. 3
      src/pages/purchaseReceipt/job/receiptDetail.vue
  5. 2
      src/pages/purchaseReceipt/job/receiptJob.vue
  6. 34
      src/pages/unPlanned/job/receiptJobDetail.vue

2
.env.development

@ -1,5 +1,5 @@
VITE_BASE_URL=http://localhost:12080/admin-api VITE_BASE_URL=http://localhost:12080/admin-api
# VITE_BASE_URL=http://dev.ccwin-in.com:28051/api/admin-api #VITE_BASE_URL=http://dev.ccwin-in.com:28051/api/admin-api
# VITE_BASE_URL_IMAGE=http://172.22.32.9:81/admin-api # VITE_BASE_URL_IMAGE=http://172.22.32.9:81/admin-api
# 租户配置 # 租户配置

4
src/mycomponents/qty/recommendQtyEdit.vue

@ -187,6 +187,7 @@ import { nextTick } from 'vue';
setValue() { setValue() {
// var recommendQty = Number(this.dataContent.qty); // var recommendQty = Number(this.dataContent.qty);
// var labelQty = Number(this.dataContent.record.label.qty); // var labelQty = Number(this.dataContent.record.label.qty);
// isNumPackTips
if (this.allQty > parseFloat(this.dataContent.packQty) && this.isNumPackTips) { if (this.allQty > parseFloat(this.dataContent.packQty) && this.isNumPackTips) {
this.$refs.comMessage.showErrorMessage('数量[' + this.allQty + ']不允许大于包装数量[' + this.$refs.comMessage.showErrorMessage('数量[' + this.allQty + ']不允许大于包装数量[' +
this.dataContent.packQty + this.dataContent.packQty +
@ -196,7 +197,8 @@ import { nextTick } from 'vue';
}) })
return return
} }
if (this.allQty > this.labelQty && this.isNumTips) { //
if (this.allQty > this.labelQty && this.isNumTips && !this.isNumPackTips) {
this.$refs.comMessage.showErrorMessage('数量[' + this.allQty + ']不允许大于标签数量[' + this.$refs.comMessage.showErrorMessage('数量[' + this.allQty + ']不允许大于标签数量[' +
this.labelQty + this.labelQty +
']', ']',

4
src/pages/issue/job/issueDetailBatch.vue

@ -688,7 +688,7 @@
if (res) { if (res) {
return return
// //
// this.$throttle(this.submit, 2000, this)() this.$throttle(this.submit, 2000, this)()
} else { } else {
this.scanPopupGetFocus() this.scanPopupGetFocus()
} }
@ -696,7 +696,7 @@
}else { }else {
return return
// //
// this.$throttle(this.submit, 2000, this)() this.$throttle(this.submit, 2000, this)()
} }
}, },

3
src/pages/purchaseReceipt/job/receiptDetail.vue

@ -194,6 +194,9 @@
this.source_type = option.source_type; this.source_type = option.source_type;
this.switchCode = "purchasereceiptPrintPDA" //PDA this.switchCode = "purchasereceiptPrintPDA" //PDA
this.switchCode1 = "EnableQms" //QMSTRUEFALSE this.switchCode1 = "EnableQms" //QMSTRUEFALSE
uni.setNavigationBarTitle({
title:option.title + '详情'
})
if (this.id != undefined) { if (this.id != undefined) {
// //
if (this.status == "1") { if (this.status == "1") {

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

@ -310,7 +310,7 @@
openJobDetail(item, scanMessage = '') { openJobDetail(item, scanMessage = '') {
uni.navigateTo({ uni.navigateTo({
url: './receiptDetail?id=' + item.masterId + '&status=' + item.status + '&operation=' + this url: './receiptDetail?id=' + item.masterId + '&status=' + item.status + '&operation=' + this
.operation + '&scanMessage=' + scanMessage + '&source_type=' + this.source_type .operation + '&scanMessage=' + scanMessage + '&source_type=' + this.source_type + '&title=' + this.title
}); });
this.scanMessage = "" this.scanMessage = ""
}, },

34
src/pages/unPlanned/job/receiptJobDetail.vue

@ -42,6 +42,7 @@
<win-scan-button @goScan='openScanPopup'></win-scan-button> <win-scan-button @goScan='openScanPopup'></win-scan-button>
<win-scan-pack ref="scanPopup" @getResult='getScanResult' headerType="HPQ,HMQ"></win-scan-pack> <win-scan-pack ref="scanPopup" @getResult='getScanResult' headerType="HPQ,HMQ"></win-scan-pack>
<detail-info-popup ref="detailInfoPopup"></detail-info-popup>
<comMessage ref="comMessage"></comMessage> <comMessage ref="comMessage"></comMessage>
</view> </view>
</template> </template>
@ -80,6 +81,7 @@
import comReceiptDetailCard from '@/pages/unPlanned/coms/comReceiptDetailCard.vue' import comReceiptDetailCard from '@/pages/unPlanned/coms/comReceiptDetailCard.vue'
import jobTop from '@/mycomponents/job/jobTop.vue' import jobTop from '@/mycomponents/job/jobTop.vue'
import comRecommendDetailCard from "@/mycomponents/detail/comRecommendDetailCard.vue" import comRecommendDetailCard from "@/mycomponents/detail/comRecommendDetailCard.vue"
import detailInfoPopup from '@/pages/unPlanned/coms/detailInfoPopup.vue'
export default { export default {
name: 'receipt_detail', name: 'receipt_detail',
@ -89,7 +91,8 @@
comReceiptDetailCard, comReceiptDetailCard,
locationCompare, locationCompare,
jobTop, jobTop,
comRecommendDetailCard comRecommendDetailCard,
detailInfoPopup
}, },
data() { data() {
return { return {
@ -229,6 +232,16 @@
updateData() { updateData() {
//
for (var i = 0; i < this.detailSource.length; i++) {
var item =this.detailSource[i]
for (var j = 0; j < item.subList.length; j++) {
var sub =item.subList[j]
if(!sub.isRecommend&&!sub.scaned){
item.subList.splice(j,1)
}
}
}
calcHandleQty(this.detailSource); calcHandleQty(this.detailSource);
this.$forceUpdate() this.$forceUpdate()
}, },
@ -279,13 +292,13 @@
toLocationCode:locationCode, toLocationCode:locationCode,
// inventoryStatus:inventoryStatus, // inventoryStatus:inventoryStatus,
// toInventoryStatus:inventoryStatus, // toInventoryStatus:inventoryStatus,
// balance:result.balance, balance:{},
isRecommend:false, isRecommend:false,
isNewAdd:"newAdd" isNewAdd:"newAdd"
} }
// newAdd.balance.balanceQty = Number(result.balance.qty); // newAdd.balance.balanceQty = Number(result.balance.qty);
// newAdd.balance.packQty = Number(result.package.packQty) newAdd.balance.packQty = Number(result.package.packQty)
// newAdd.balance.packUnit = result.package.packUnit newAdd.balance.packUnit = result.package.packUnit
newAdd.scaned = true; newAdd.scaned = true;
detail.subList.push(newAdd) detail.subList.push(newAdd)
} else { } else {
@ -302,11 +315,11 @@
this.continueScan() this.continueScan()
} }
} }
let array = this.detailSource.map((item=>{ let array = []
return { this.detailSource.forEach((item=>{
...item, let obj = {...item}
subList: item.subList.filter(cur=>cur.isRecommend == true) obj.subList=item.subList.filter(cur=>cur.isRecommend == true)
} array.push(obj)
})) }))
calcHandleQty(array); calcHandleQty(array);
} }
@ -523,6 +536,9 @@
return this.jobContent; return this.jobContent;
}, },
openDetail(item) {
this.$refs.detailInfoPopup.openPopup(item)
},

Loading…
Cancel
Save