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://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
# 租户配置

4
src/mycomponents/qty/recommendQtyEdit.vue

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

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

@ -688,7 +688,7 @@
if (res) {
return
//
// this.$throttle(this.submit, 2000, this)()
this.$throttle(this.submit, 2000, this)()
} else {
this.scanPopupGetFocus()
}
@ -696,7 +696,7 @@
}else {
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.switchCode = "purchasereceiptPrintPDA" //PDA
this.switchCode1 = "EnableQms" //QMSTRUEFALSE
uni.setNavigationBarTitle({
title:option.title + '详情'
})
if (this.id != undefined) {
//
if (this.status == "1") {

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

@ -310,7 +310,7 @@
openJobDetail(item, scanMessage = '') {
uni.navigateTo({
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 = ""
},

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

@ -42,6 +42,7 @@
<win-scan-button @goScan='openScanPopup'></win-scan-button>
<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>
</view>
</template>
@ -80,6 +81,7 @@
import comReceiptDetailCard from '@/pages/unPlanned/coms/comReceiptDetailCard.vue'
import jobTop from '@/mycomponents/job/jobTop.vue'
import comRecommendDetailCard from "@/mycomponents/detail/comRecommendDetailCard.vue"
import detailInfoPopup from '@/pages/unPlanned/coms/detailInfoPopup.vue'
export default {
name: 'receipt_detail',
@ -89,7 +91,8 @@
comReceiptDetailCard,
locationCompare,
jobTop,
comRecommendDetailCard
comRecommendDetailCard,
detailInfoPopup
},
data() {
return {
@ -229,6 +232,16 @@
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);
this.$forceUpdate()
},
@ -279,13 +292,13 @@
toLocationCode:locationCode,
// inventoryStatus:inventoryStatus,
// toInventoryStatus:inventoryStatus,
// balance:result.balance,
balance:{},
isRecommend:false,
isNewAdd:"newAdd"
}
// newAdd.balance.balanceQty = Number(result.balance.qty);
// newAdd.balance.packQty = Number(result.package.packQty)
// newAdd.balance.packUnit = result.package.packUnit
newAdd.balance.packQty = Number(result.package.packQty)
newAdd.balance.packUnit = result.package.packUnit
newAdd.scaned = true;
detail.subList.push(newAdd)
} else {
@ -302,11 +315,11 @@
this.continueScan()
}
}
let array = this.detailSource.map((item=>{
return {
...item,
subList: item.subList.filter(cur=>cur.isRecommend == true)
}
let array = []
this.detailSource.forEach((item=>{
let obj = {...item}
obj.subList=item.subList.filter(cur=>cur.isRecommend == true)
array.push(obj)
}))
calcHandleQty(array);
}
@ -523,6 +536,9 @@
return this.jobContent;
},
openDetail(item) {
this.$refs.detailInfoPopup.openPopup(item)
},

Loading…
Cancel
Save