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. 24
      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"> <view class="uni-flex uni-row space-between padding title u-col-center">
<text>标包量 : </text> <text>标包量 : </text>
<view class="uni-flex u-col-center uni-row"> <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> <uom :uom="dataContent.uom"></uom>
</view> </view>
</view> </view>

10
src/pages/pointPutawayJob/index.vue

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

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

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

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

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

Loading…
Cancel
Save