Prechádzať zdrojové kódy

前端 小程序 sdy

zhongtianhaoyuan 3 rokov pred
rodič
commit
125a7de8c6

+ 8 - 109
pages/task/audit/Issueandreceipt_task_details.vue

@@ -319,115 +319,14 @@
 					}
 				})
 			},
-			pjPicker(e) {
-				this.OutList.grade = this.pjList[e[0]].type
-				this.OutList.gradeKey = e[0] + 1
-			},
-			pjPicker1(e) {
-				this.EnterList.grade = this.pjList[e[0]].type
-				this.EnterList.gradeKey = e[0] + 1
-			},
-			passSubmit() {
-				this.OutList.inOutFlag = 1
-				this.EnterList.inOutFlag = 2
-				if (this.OutList.taskTypeKey == 1) {
-					this.requestadd(this.OutList)
-				} else if (this.EnterList.taskTypeKey == 2) {
-					this.requestadd(this.EnterList)
-				} else if (
-					this.OutList.taskTypeKey == 3 ||
-					this.OutList.taskTypeKey == 4
-				) {
-					this.requestadd(this.OutList, 'repetition')
-					if (!this.deletetask) {
-						this.requestadd(this.EnterList, 'repetition')
-					}
-				}
-				if(this.retreatList.taskTypeKey == 1 || this.retreatList.taskTypeKey == 2){
-					this.requestadd(this.retreatList)
-				}else if(this.retreatList.taskTypeKey == 3 || this.retreatList.taskTypeKey == 4){
-					this.requestadd(this.retreatList, 'repetition')
-				}
-			},
-			rejectSubmit() {
-				// (1出库2入库3移库4退库并出库)taskTypeKey
-				if (!this.rejectInfo) {
-					this.$api.msg('驳回原因不能为空!')
-				} else {
-					this.show1 = false
-					if (this.OutList.taskTypeKey == 1 ) {
-						this.requestaudit(this.OutList)
-					} else if (this.OutList.taskTypeKey == 2) {
-						this.requestaudit(this.OutList)
-					} else if (
-						this.OutList.taskTypeKey == 3 ||
-						this.OutList.taskTypeKey == 4
-					) {
-						this.requestaudit(this.OutList, 'repetition')
-						if (!this.deletetask) {
-							this.requestaudit(this.OutList, 'repetition')
-						}
-					}
-					if(this.EnterList){
-						if(this.EnterList.taskTypeKey == 1 || this.EnterList.taskTypeKey == 2){
-						this.requestaudit(this.EnterList)
-					}else if(this.EnterList.taskTypeKey == 3 || this.EnterList.taskTypeKey == 4){
-						this.requestaudit(this.EnterList, 'repetition')
-					}
-					}
-					
-					if(this.retreatList){
-						if(this.retreatList.taskTypeKey == 1 || this.retreatList.taskTypeKey == 2){
-							this.requestaudit(this.retreatList)
-						}else if(this.retreatList.taskTypeKey == 3 || this.retreatList.taskTypeKey == 4){
-							this.requestaudit(this.retreatList, 'repetition')
-						}
-					}
-				}
-			},
-			requestadd(list, status) {
-				
-				list.compId = sessionStorage.getItem('ws-pf_compId')
-				// list.publisher = this.userInfo.userName
-				this.$api.doRequest('post', '/inOutWarehouseTask/api/checkOrUpdateInOutTask', list).then(res => {
-					if (res.data.code == 200) {
-						this.$api.doRequest('post', '/workflow/api/handle', {
-							taskId: list.taskId,
-							approved: true,
-							auditMind: '34',
-							needReapply: false
-						}).then(res => {
-							if (res.data.code == 200) {
-								this.$api.msg('审核成功!')
-								setTimeout(function() {
-										uni.navigateBack()
-								}, 1000);
-							}
-						})
-					}
-				})
-			},
-			requestaudit(list, status) {
-				list.compId = '2710b21efc1e4393930c5dc800010dc4'
-				// list.publisher = this.userInfo.userName
-				this.$api.doRequest('post', '/inOutWarehouseTask/api/checkOrUpdateInOutTask', list).then(res => {
-					if (res.data.code == 200) {
-						this.$api.doRequest('post', '/workflow/api/handle', {
-							taskId: list.taskId,
-							approved: false,
-							auditMind: this.rejectInfo,
-							needReapply: true
-						}).then(res => {
-							if (res.data.code == 200) {
-								this.$api.msg('驳回成功!')
-								setTimeout(function() {
-										uni.navigateBack()
-								}, 1000);
-							}
-						})
-					}
-				})
-			},
+			// pjPicker(e) {
+			// 	this.OutList.grade = this.pjList[e[0]].type
+			// 	this.OutList.gradeKey = e[0] + 1
+			// },
+			// pjPicker1(e) {
+			// 	this.EnterList.grade = this.pjList[e[0]].type
+			// 	this.EnterList.gradeKey = e[0] + 1
+			// },
 			fanHui(){
 				uni.navigateBack()
 			}

+ 0 - 63
pages/task/audit/acquisition_settlement_details.vue

@@ -94,69 +94,6 @@
 				})
 
 			},
-			//驳回
-			rejectSubmit() {
-				var that = this
-				if (this.List.length > 0) {
-					uni.showModal({
-						content: "确定驳回付款申请?",
-						showCancel: true,
-						confirmText: '确定',
-						success: function(res) {
-							if (res.confirm) {
-								that.audit(that.List[0], 0, false, '', '')
-							}
-						}
-					})
-				}
-			},
-			//通過
-			passSubmit() {
-				var that = this
-				uni.showModal({
-					content: "确定通过付款申请?",
-					showCancel: true,
-					confirmText: '确定',
-					success: function(res) {
-						if (res.confirm) {
-							that.audit(that.List[0], 0, true)
-						}
-					}
-				})
-			},
-			audit(item, index, status, status2, reason) {
-				if (this.List.length > 0) {
-					if (status == true && item.status == "已驳回") {
-						this.$api.doRequest('get', '/paymentManagement/api/openAuditFlow', {
-							compId: "2710b21efc1e4393930c5dc800010dc4",
-							id: item.id
-						}).then(res => {
-							if (res.data.code == 200) {
-								this.audit(this.List[index + 1], index + 1, status, status2, reason)
-							}
-						})
-					} else {
-						this.$api.doRequest('get', '/workflow/api/handle', {
-							taskId: item.taskId,
-							approved: status,
-							auditMind: reason ? '已驳回' : '34',
-							needReapply: status2 ? true : false
-						}).then(res => {
-							if (res.data.code == 200) {
-								this.audit(this.List[index + 1], index + 1, status, status2, reason)
-							}
-						})
-					}
-				} else {
-					if (status == true) {
-						that.$api.msg('通过成功')
-						this.getList()
-					} else if (status == false) {
-						that.$api.msg('驳回成功')
-						this.getList()
-					}
-				}
-			},
 			fanHui(){
 				uni.navigateBack()
 			}

+ 0 - 17
pages/task/audit/freight_setting_details.vue

@@ -70,23 +70,6 @@
 					this.list = res.data.data
 				})
 			},
-			passSubmit() {
-				var that = this
-				var tranProcessInfo = {}
-				tranProcessInfo.id = this.list.id
-				tranProcessInfo.flag = "1"
-				tranProcessInfo.tranPriceIng = this.list.tranPriceIng
-				tranProcessInfo.reviewer = this.userInfo.userName
-				this.$api.doRequest('post', '/tranProcessInfo/api/setUpTranPrice', tranProcessInfo).then(res => {
-					if (res.data.code == 200) {
-						this.$api.msg('审核通过成功!')
-						setTimeout(function() {
-							uni.navigateBack()
-						}, 1000);
-					}
-
-				})
-			},
 			fanHui(){
 				uni.navigateBack()
 			}

+ 6 - 2
pages/task/audit/purchase_settlement_approval.vue

@@ -18,8 +18,8 @@
 		</view>
 		<view class="content">
 			<view class="top content-item">
-				<view>{{contractNo}}</view>
-				<view>元/吨</view>
+				<view>{{contractNo}} ({{goodsName}})</view>
+				<view>{{unitPrice}}元/吨</view>
 			</view>
 			<view class="content-item">
 				<view class="car-container" v-for="(item,index) in list">
@@ -94,6 +94,8 @@
 				height: 200,
 				autoHeight: true,
 				border: false,
+				unitPrice:"",
+				goodsName:"",
 			}
 		},
 		onLoad(options) {
@@ -106,6 +108,8 @@
 					id: this.id
 				}).then(res => {
 					this.contractNo = res.data.data.contractNo
+					this.unitPrice = res.data.data.price
+					this.goodsName = res.data.data.goodsName
 					if (res.data.code == 200) {
 						this.$api.doRequest('get', '/stockPurchaseReceiptReport/selectPurchaseOrder', {
 							compId: "2710b21efc1e4393930c5dc800010dc4",

+ 8 - 75
pages/task/audit/purchase_settlement_details.vue

@@ -18,8 +18,8 @@
 		</view>
 		<view class="content">
 			<view class="top content-item">
-				<view>{{contractNo}}</view>
-				<view>元/吨</view>
+				<view>{{contractNo}}({{goodsName}})</view>
+				<view>{{unitPrice}}元/吨</view>
 			</view>
 			<view class="content-item">
 				<view class="car-container" v-for="(item,index) in list">
@@ -61,6 +61,8 @@
 					{status:"",}
 				],
 				contractNo: "",
+				unitPrice: "",
+				goodsName:"",
 			}
 		},
 		onLoad(options) {
@@ -72,7 +74,11 @@
 				this.$api.doRequest('get', '/stockPurchaseReceiptReport/getInfo', {
 					id: this.id
 				}).then(res => {
+					debugger
 					this.contractNo = res.data.data.contractNo
+					this.unitPrice = res.data.data.price
+					this.goodsName = res.data.data.goodsName
+					console.log(this.goodsName)
 					if (res.data.code == 200) {
 						this.$api.doRequest('get', '/stockPurchaseReceiptReport/selectPurchaseOrder', {
 							compId: "2710b21efc1e4393930c5dc800010dc4",
@@ -87,79 +93,6 @@
 					}
 				})
 			},
-			//驳回
-			rejectSubmit() {
-				var that = this
-				if (this.list.length == 0) {
-					that.$api.msg('没有要审核的条目!')
-				} else {
-					// uni.showModal({
-					// 	content: "是否确定驳回?",
-					// 	success(res) {
-					// 		if(res)
-					// 		this.audit(this.list[0], 0, false, true, '已驳回')
-					// 	}
-					// })
-
-
-					uni.showModal({
-						content: "是否确定驳回?",
-						showCancel: true,
-						confirmText: '确定',
-						success: function(res) {
-							if (res.confirm) {
-								that.audit(that.list[0], 0, false, true, '已驳回')
-							}
-						}
-					})
-				}
-			},
-			//通过
-			passSubmit() {
-				var that = this
-				if (this.list.length == 0) {
-					that.$api.msg('没有要审核的条目!')
-				} else {
-					// uni.showModal({
-					// 	content: "是否确定通过?",
-					// 	success(res) {
-					// 		if(res)
-					// 		this.audit(this.list[0], 0, true, 2)
-					// 	}
-					// })
-					uni.showModal({
-						content: "是否确定通过?",
-						showCancel: true,
-						confirmText: '确定',
-						success: function(res) {
-							if (res.confirm) {
-								that.audit(that.list[0], 0, true, 2)
-							}
-						}
-					})
-				}
-			},
-			//审核方法
-			audit(item, index, status, status2, reason) {
-				if (index < this.list.length) {
-					this.$api.doRequest('post', '/workflow/api/handle', {
-						taskId: item.taskId,
-						approved: status,
-						auditMind: reason != undefined ? '已驳回' : '34',
-						needReapply: status2 != undefined ? true : false,
-					}).then(res => {
-						this.audit(this.list[index + 1], index + 1, status)
-					})
-				} else {
-					if (status == true) {
-						that.$api.msg('通过成功')
-						this.getList()
-					} else if (status == false) {
-						that.$api.msg('驳回成功')
-						this.getList()
-					}
-				}
-			},
 			fanHui(){
 				uni.navigateBack()
 			}

+ 0 - 60
pages/task/audit/warehouse_details.vue

@@ -124,66 +124,6 @@
 			confirm(item) {
 				this.list.contractNo = item[0].value
 			},
-			audit() {
-				var that = this
-				uni.showModal({
-					content: "是否确定通过审核?",
-					showCancel: true,
-					confirmText: '确定',
-					success: function(res) {
-						if (res.confirm) {
-							that.$api.doRequest('post', '/purchasePrice/purchasePriceEdit',that.list ).then(res => {
-								if (res.data.code == 200) {
-									that.$api.doRequest('post', '/workflow/api/handle', {
-										approved: true,
-										auditMind: "",
-										needReapply: true,
-										taskId:  that.list.taskId,
-									}).then(res1 => {
-										if (res1.data.code == 200) {
-											that.$api.msg('审核成功');
-											setTimeout(function() {
-													uni.navigateBack()
-											}, 1000);
-										} else {
-											that.$api.msg(res1.data.message);
-										}
-									})
-								} else {
-									that.$api.msg('系统异常,请联系管理员');
-								}
-							})
-						}
-					}
-				})
-			},
-			reject() {
-				var that = this
-				uni.showModal({
-					content: "是否确定驳回?",
-					showCancel: true,
-					confirmText: '确定',
-					success: function(res) {
-						if (res.confirm) {
-							that.$api.doRequest('post', '/workflow/api/handle', {
-								taskId: that.list.taskId,
-								approved: false,
-								auditMind: '已驳回',
-								needReapply: true,
-							}).then(res1 => {
-								if (res1.data.code == 200) {
-									that.$api.msg('驳回成功');
-									setTimeout(function() {
-											uni.navigateBack()
-									}, 1000);
-								} else {
-									that.$api.msg(res1.data.message);
-								}
-							})
-						}
-					}
-				})
-			},
 			fanHui(){
 				uni.navigateBack()
 			}