Browse Source

协定收货任务+号试收货任务

intex_online20241111
wangyufei 3 weeks ago
parent
commit
43341f9feb
  1. 56
      src/pages.json
  2. 2
      src/pages/purchaseReceipt/job/purchaseReceipt.vue
  3. 52
      src/pages/purchaseReceipt/job/purchaseReceiptDevelop.vue
  4. 52
      src/pages/purchaseReceipt/job/purchaseReceiptTool.vue
  5. 15
      src/pages/purchaseReceipt/job/receiptDetail.vue
  6. 16
      src/pages/purchaseReceipt/job/receiptJob.vue

56
src/pages.json

@ -254,6 +254,62 @@
} }
} }
}, },
{
"path": "pages/purchaseReceipt/job/purchaseReceiptTool",
"style": {
"navigationBarTitleText": "协定品收货",
"enablePullDownRefresh": true,
"titleNView": {
// "autoBackButton": "true",
"buttons": [
//
{
"float": "right",
"fontSize": "58rpx", //
"text": "\ue696",
"fontSrc": "/static/ali_icon/iconfont.ttf"
},
{
"float": "right",
"fontSize": "52rpx", //
"text": "\ue6e2",
"fontSrc": "/static/ali_icon/iconfont.ttf"
}
]
}
}
},
{
"path": "pages/purchaseReceipt/job/purchaseReceiptDevelop",
"style": {
"navigationBarTitleText": "号试品收货",
"enablePullDownRefresh": true,
"titleNView": {
// "autoBackButton": "true",
"buttons": [
//
{
"float": "right",
"fontSize": "58rpx", //
"text": "\ue696",
"fontSrc": "/static/ali_icon/iconfont.ttf"
},
{
"float": "right",
"fontSize": "52rpx", //
"text": "\ue6e2",
"fontSrc": "/static/ali_icon/iconfont.ttf"
}
]
}
}
},
{ {
"path": "pages/purchaseReceipt/job/purchaseReject", "path": "pages/purchaseReceipt/job/purchaseReject",
"style": { "style": {

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

@ -1,6 +1,6 @@
<template> <template>
<view class=""> <view class="">
<receipt-job :title="title" scanTitle="箱标签/ASN单号" :isShowAsn="false" :isShowJob="false" ref="receiptjob" operation='receipt'></receipt-job> <receipt-job source_type="ASN" :title="title" scanTitle="箱标签/ASN单号" :isShowAsn="false" :isShowJob="false" ref="receiptjob" operation='receipt'></receipt-job>
</view> </view>
</template> </template>

52
src/pages/purchaseReceipt/job/purchaseReceiptDevelop.vue

@ -0,0 +1,52 @@
<template>
<view class="">
<receipt-job :title="title" source_type="Develop" scanTitle="箱标签/ASN单号" :isShowAsn="false" :isShowJob="false" ref="receiptjob" operation='receipt'></receipt-job>
</view>
</template>
<script>
import receiptJob from '@/pages/purchaseReceipt/job/receiptJob.vue'
export default {
name: 'purchaseReceiptTool',
components: {
receiptJob
},
data() {
return {
title:''
};
},
onShow() {
if(this.$refs.receiptjob!=undefined){
this.$refs.receiptjob.refresh();
}
},
onLoad(option) {
this.title = option.title
},
onPullDownRefresh() {
this.$refs.receiptjob.refresh();
},
onReachBottom() {
this.$refs.receiptjob.onReach();
},
onNavigationBarButtonTap(e) {
if (e.index === 0) {
this.$refs.receiptjob.goHome();
// this.$refs.receiptjob.refresh();
} else if (e.index == 1) {
this.$refs.receiptjob.openFilter();
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
</style>

52
src/pages/purchaseReceipt/job/purchaseReceiptTool.vue

@ -0,0 +1,52 @@
<template>
<view class="">
<receipt-job :title="title" source_type="TOOL" scanTitle="箱标签/ASN单号" :isShowAsn="false" :isShowJob="false" ref="receiptjob" operation='receipt'></receipt-job>
</view>
</template>
<script>
import receiptJob from '@/pages/purchaseReceipt/job/receiptJob.vue'
export default {
name: 'purchaseReceiptTool',
components: {
receiptJob
},
data() {
return {
title:''
};
},
onShow() {
if(this.$refs.receiptjob!=undefined){
this.$refs.receiptjob.refresh();
}
},
onLoad(option) {
this.title = option.title
},
onPullDownRefresh() {
this.$refs.receiptjob.refresh();
},
onReachBottom() {
this.$refs.receiptjob.onReach();
},
onNavigationBarButtonTap(e) {
if (e.index === 0) {
this.$refs.receiptjob.goHome();
// this.$refs.receiptjob.refresh();
} else if (e.index == 1) {
this.$refs.receiptjob.openFilter();
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
</style>

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

@ -176,7 +176,8 @@
switchCode1: "", switchCode1: "",
isCheckLocation: 'purchaseReceiptLocationCodeValidate', // isCheckLocation: 'purchaseReceiptLocationCodeValidate', //
reasonText: "", reasonText: "",
packingNumberList:[], packingNumberList:[],
source_type:'',
// printDeafult: {}, // // printDeafult: {}, //
// templateDeafult: {} // // templateDeafult: {} //
}; };
@ -187,7 +188,8 @@
this.id = option.id; this.id = option.id;
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.source_type = option.source_type;
this.switchCode = "purchasereceiptPrintPDA" //PDA this.switchCode = "purchasereceiptPrintPDA" //PDA
this.switchCode1 = "EnableQms" //QMSTRUEFALSE this.switchCode1 = "EnableQms" //QMSTRUEFALSE
}, },
@ -863,7 +865,7 @@
}) })
}else if(!isCheckPrint1 && !isCheckPrint){ }else if(!isCheckPrint1 && !isCheckPrint){
this.showCommitSuccessMessage("提交成功\n生成采购收货记录\n" + res.data.number) this.showCommitSuccessMessage("提交成功\n生成采购收货记录\n" + res.data.number)
}else { }else if(this.source_type!='TOOL'&&this.source_type!='Develop'){
// if (res.data == '') { // if (res.data == '') {
// this.showCommitSuccessMessage(res.data) // this.showCommitSuccessMessage(res.data)
// const purchaseReceiptDetailPointParams = { // const purchaseReceiptDetailPointParams = {
@ -873,12 +875,13 @@
// uni.setStorageSync('purchaseReceiptDetailPointParams', purchaseReceiptDetailPointParams) // uni.setStorageSync('purchaseReceiptDetailPointParams', purchaseReceiptDetailPointParams)
// } else { // } else {
// this.showErrorMessage(res.data) // this.showErrorMessage(res.data)
// } // }
uni.showLoading({ uni.showLoading({
title: "提交成功,将跳转到打印页面", title: "提交成功,将跳转到打印页面",
mask: true mask: true
}); });
// //
let timerCount = 0 let timerCount = 0
const timer1 = setInterval(async () => { const timer1 = setInterval(async () => {

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

@ -101,6 +101,10 @@
title: { title: {
type: String, type: String,
default: '' default: ''
},
source_type: {
type: String,
default: ''
}, },
}, },
@ -198,7 +202,15 @@
column: "accept_user_id", column: "accept_user_id",
action: "==", action: "==",
value: this.$store.state.user.id value: this.$store.state.user.id
}) })
if(this.source_type){
filters.push({
column: "source_type",
action: "==",
value: this.source_type
})
}
var params = { var params = {
filters: filters, filters: filters,
@ -298,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 .operation + '&scanMessage=' + scanMessage + '&source_type=' + this.source_type
}); });
this.scanMessage = "" this.scanMessage = ""
}, },

Loading…
Cancel
Save