From 43341f9feb13783a8bf34be218e2ed77bddb4b75 Mon Sep 17 00:00:00 2001
From: wangyufei <2267742828@qq.com>
Date: Fri, 8 Nov 2024 15:57:28 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8D=8F=E5=AE=9A=E6=94=B6=E8=B4=A7=E4=BB=BB?=
=?UTF-8?q?=E5=8A=A1+=E5=8F=B7=E8=AF=95=E6=94=B6=E8=B4=A7=E4=BB=BB?=
=?UTF-8?q?=E5=8A=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages.json | 56 +++++++++++++++++++
.../purchaseReceipt/job/purchaseReceipt.vue | 2 +-
.../job/purchaseReceiptDevelop.vue | 52 +++++++++++++++++
.../job/purchaseReceiptTool.vue | 52 +++++++++++++++++
.../purchaseReceipt/job/receiptDetail.vue | 15 +++--
src/pages/purchaseReceipt/job/receiptJob.vue | 16 +++++-
6 files changed, 184 insertions(+), 9 deletions(-)
create mode 100644 src/pages/purchaseReceipt/job/purchaseReceiptDevelop.vue
create mode 100644 src/pages/purchaseReceipt/job/purchaseReceiptTool.vue
diff --git a/src/pages.json b/src/pages.json
index 9e882972..8d0db267 100644
--- a/src/pages.json
+++ b/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",
"style": {
diff --git a/src/pages/purchaseReceipt/job/purchaseReceipt.vue b/src/pages/purchaseReceipt/job/purchaseReceipt.vue
index 9d8042b8..60eda37e 100644
--- a/src/pages/purchaseReceipt/job/purchaseReceipt.vue
+++ b/src/pages/purchaseReceipt/job/purchaseReceipt.vue
@@ -1,6 +1,6 @@
-
+
diff --git a/src/pages/purchaseReceipt/job/purchaseReceiptDevelop.vue b/src/pages/purchaseReceipt/job/purchaseReceiptDevelop.vue
new file mode 100644
index 00000000..eecfd51e
--- /dev/null
+++ b/src/pages/purchaseReceipt/job/purchaseReceiptDevelop.vue
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/purchaseReceipt/job/purchaseReceiptTool.vue b/src/pages/purchaseReceipt/job/purchaseReceiptTool.vue
new file mode 100644
index 00000000..58f46eca
--- /dev/null
+++ b/src/pages/purchaseReceipt/job/purchaseReceiptTool.vue
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/purchaseReceipt/job/receiptDetail.vue b/src/pages/purchaseReceipt/job/receiptDetail.vue
index a96f9c75..952e5021 100644
--- a/src/pages/purchaseReceipt/job/receiptDetail.vue
+++ b/src/pages/purchaseReceipt/job/receiptDetail.vue
@@ -176,7 +176,8 @@
switchCode1: "",
isCheckLocation: 'purchaseReceiptLocationCodeValidate', //校验收货库位
reasonText: "",
- packingNumberList:[],
+ packingNumberList:[],
+ source_type:'',
// printDeafult: {}, //默认打印机
// templateDeafult: {} //默认的模板
};
@@ -187,7 +188,8 @@
this.id = option.id;
this.scanMessage = option.scanMessage;
this.operation = option.operation;
- this.status = option.status;
+ this.status = option.status;
+ this.source_type = option.source_type;
this.switchCode = "purchasereceiptPrintPDA" //采购收货PDA打印开关
this.switchCode1 = "EnableQms" //根据开关中是否启用QMS去判断,如果为TRUE显示检验指引单,如果为FALSE不显示检验指引单
},
@@ -863,7 +865,7 @@
})
}else if(!isCheckPrint1 && !isCheckPrint){
this.showCommitSuccessMessage("提交成功\n生成采购收货记录\n" + res.data.number)
- }else {
+ }else if(this.source_type!='TOOL'&&this.source_type!='Develop'){
// if (res.data == '打印任务已发送,等待打印机处理!') {
// this.showCommitSuccessMessage(res.data)
// const purchaseReceiptDetailPointParams = {
@@ -873,12 +875,13 @@
// uni.setStorageSync('purchaseReceiptDetailPointParams', purchaseReceiptDetailPointParams)
// } else {
// this.showErrorMessage(res.data)
- // }
+ // }
+
uni.showLoading({
title: "提交成功,将跳转到打印页面",
mask: true
- });
-
+ });
+
// 获取上架任务
let timerCount = 0
const timer1 = setInterval(async () => {
diff --git a/src/pages/purchaseReceipt/job/receiptJob.vue b/src/pages/purchaseReceipt/job/receiptJob.vue
index cd90837b..c2769bb2 100644
--- a/src/pages/purchaseReceipt/job/receiptJob.vue
+++ b/src/pages/purchaseReceipt/job/receiptJob.vue
@@ -101,6 +101,10 @@
title: {
type: String,
default: ''
+ },
+ source_type: {
+ type: String,
+ default: ''
},
},
@@ -198,7 +202,15 @@
column: "accept_user_id",
action: "==",
value: this.$store.state.user.id
- })
+ })
+ if(this.source_type){
+ filters.push({
+ column: "source_type",
+ action: "==",
+ value: this.source_type
+ })
+ }
+
var params = {
filters: filters,
@@ -298,7 +310,7 @@
openJobDetail(item, scanMessage = '') {
uni.navigateTo({
url: './receiptDetail?id=' + item.masterId + '&status=' + item.status + '&operation=' + this
- .operation + '&scanMessage=' + scanMessage
+ .operation + '&scanMessage=' + scanMessage + '&source_type=' + this.source_type
});
this.scanMessage = ""
},