Browse Source

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

intex_online20241111
wangyufei 2 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. 5
      src/pages/purchaseReceipt/job/receiptDetail.vue
  6. 14
      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>

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

@ -177,6 +177,7 @@
isCheckLocation: 'purchaseReceiptLocationCodeValidate', // isCheckLocation: 'purchaseReceiptLocationCodeValidate', //
reasonText: "", reasonText: "",
packingNumberList:[], packingNumberList:[],
source_type:'',
// printDeafult: {}, // // printDeafult: {}, //
// templateDeafult: {} // // templateDeafult: {} //
}; };
@ -188,6 +189,7 @@
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 = {
@ -874,6 +876,7 @@
// } else { // } else {
// this.showErrorMessage(res.data) // this.showErrorMessage(res.data)
// } // }
uni.showLoading({ uni.showLoading({
title: "提交成功,将跳转到打印页面", title: "提交成功,将跳转到打印页面",
mask: true mask: true

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

@ -102,6 +102,10 @@
type: String, type: String,
default: '' default: ''
}, },
source_type: {
type: String,
default: ''
},
}, },
// onShow() { // onShow() {
@ -199,6 +203,14 @@
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