Browse Source

YT-348采购收货记录和PDA提交任务后的打印检验指引单功能去掉YT-356pda盘点任务,没有包装量的,应显示0,现显示NaN

syhx
张立 4 months ago
parent
commit
ce7caba6dd
  1. 2
      src/mycomponents/qty/countQtyEdit.vue
  2. 10
      src/pages/pointPutawayJob/index.vue
  3. 36
      src/pages/purchaseReceipt/job/receiptDetail.vue
  4. 4
      src/pages/putaway/job/putawayJob.vue

2
src/mycomponents/qty/countQtyEdit.vue

@ -28,7 +28,7 @@
<view class="uni-flex uni-row space-between padding title u-col-center">
<text>标包量 : </text>
<view class="uni-flex u-col-center uni-row">
<text>{{Number(dataContent.packQty)}}</text>
<text>{{Number(dataContent.packQty) || 0}}</text>
<uom :uom="dataContent.uom"></uom>
</view>
</view>

10
src/pages/pointPutawayJob/index.vue

@ -274,7 +274,6 @@
})
this.newHtmlContent1 = this.newHtmlContent1.replace(
"mainBody", str); //
console.log(333, this.newHtmlContent1)
});
// #endif
})
@ -292,7 +291,6 @@
} else {
this.showTableSubList = this.data.sublist
}
// console.log(233,this.showTableSubList)
},
getTableInspectDTOList() {
if (this.data1.inspectDTOList.length > this.pageSize1) {
@ -307,7 +305,6 @@
} else {
this.showTableInspectDTOList = this.data1.inspectDTOList
}
console.log(233, this.showTableInspectDTOList)
},
showMessage(message) {
this.$refs.comMessage.showMessage(message, res => {
@ -348,7 +345,11 @@
this.getTableSubList()
})
}
//
if (this.data.ids && !this.number) {
this.tabIndex = 2
}
//
if (this.number) {
await queryInspectionFreeFlag({
number: this.number
@ -359,7 +360,6 @@
if (this.data1 && this.data1.inspectDTOList && this.data1.inspectDTOList.length == 0&&this.data.ids) {
this.tabIndex = 2
}
console.log(88,this.data1.inspectDTOList)
this.getTableInspectDTOList()
})
.catch(error => {

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

@ -166,6 +166,7 @@
scanMessage: '',
status: '',
switchCode: "",
switchCode1: "",
isCheckLocation: 'purchaseReceiptLocationCodeValidate', //
reasonText: "",
@ -181,9 +182,8 @@
this.scanMessage = option.scanMessage;
this.operation = option.operation;
this.status = option.status;
this.switchCode = "purchasereceiptPrintPDA" //pda
this.switchCode = "purchasereceiptPrintPDA" //PDA
this.switchCode1 = "EnableQms" //QMSTRUEFALSE
},
onShow() {
@ -458,7 +458,6 @@
},
commit() {
this.scanCount = getScanCount(this.subList);
if (this.scanCount == 0) {
this.showErrorMessage("扫描数为0,请先扫描")
return;
@ -531,6 +530,7 @@
itemCodes.push(item.itemCode)
})
//
getManagementPrecisions(itemCodes, this.toLocationCode, res => {
if (res.success) {
@ -539,15 +539,17 @@
let that = this
purchaseReceiptJobSubmit(params).then(res => {
if (res.data) {
let isCheckPrint = getSwitchInfoByCode(this.switchCode)
if (!isCheckPrint) {
let isCheckPrint = getSwitchInfoByCode(this.switchCode)//
let isCheckPrint1 = getSwitchInfoByCode(this.switchCode1)//
if (isCheckPrint1 && !isCheckPrint) {
uni.hideLoading()
// this.showCommitSuccessMessage("\n\n" + res.data.number)
uni.redirectTo({
url: '/pages/pointPutawayJob/index?number=' + that.jobContent.number
})
} else {
}else if(!isCheckPrint1 && !isCheckPrint){
this.showCommitSuccessMessage("提交成功\n生成采购收货记录\n" + res.data.number)
}else {
// if (res.data == '') {
// this.showCommitSuccessMessage(res.data)
// const purchaseReceiptDetailPointParams = {
@ -603,11 +605,19 @@
',')
}
uni.hideLoading()
uni.redirectTo({
url: '/pages/pointPutawayJob/index?number=' + that.jobContent.number +
'&data=' +
encodeURIComponent(JSON.stringify(dataParams))
})
if(!isCheckPrint1 && isCheckPrint){
uni.redirectTo({
url: '/pages/pointPutawayJob/index?data=' +
encodeURIComponent(JSON.stringify(dataParams))
})
}else if(isCheckPrint1 && isCheckPrint){
uni.redirectTo({
url: '/pages/pointPutawayJob/index?number=' + that.jobContent.number +
'&data=' +
encodeURIComponent(JSON.stringify(dataParams))
})
}
}
})
}, 2000)

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

@ -56,9 +56,7 @@
import putawayJobListPopup from '@/pages/putaway/coms/putawayJobListPopup.vue'
import putawayInfoPopup from '@/pages/putaway/coms/putawayInfoPopup.vue'
import winScanPackJob from "@/mycomponents/scan/winScanPackJob.vue"
import {
Exception
} from 'sass';
export default {
name: 'Putaway',

Loading…
Cancel
Save