소스 검색

提交修改

pengyh 1 년 전
부모
커밋
19bce69822
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      src/views/auxiliaryFittings/salesManagement/components/attachmentOldReturnDetail.vue

+ 4 - 4
src/views/auxiliaryFittings/salesManagement/components/attachmentOldReturnDetail.vue

@@ -602,11 +602,9 @@
 						item.goods = {...ress.data,oldPrice:ress.data.price}
 						item.goodsList = ress.data ? [{...ress.data,oldPrice:ress.data.price}] : []
 					}
+					var ress = await that.getAttachmentList(res.data.websitId)
 					for(var item of res.data.websitPartsRetOldRecordList){
-						var ress = await that.getAttachmentList(res.data.websitId)
-						console.log(ress,'3y123euwia')
-						debugger
-						item.goods = item
+						item.goods = {goodsId: item.goodsId}
 						item.goodsList = ress.data ? ress.data : []
 					}
 					this.dataList = res.data.websitPartsRetItemList
@@ -792,6 +790,7 @@
 				});
 			},
 			async submit(){
+				console.log(this.oldList)
 				let is_save = await this.checkForm()
 				if(!is_save){return false}
 				this.$confirm(`请确定是否提交, 是否继续?`, '提示', {
@@ -799,6 +798,7 @@
 					cancelButtonText: '取消',
 					type: 'warning'
 				}).then(() => {
+					console.log(2)
 					edit({
 						flag: 'SUBMIT',
 						salesId: this.formData.salesId,