gjy пре 3 година
родитељ
комит
3c47c86530
3 измењених фајлова са 22 додато и 6 уклоњено
  1. 1 1
      config/index.js
  2. 20 4
      pageA/product/business_buy.vue
  3. 1 1
      pageA/product/lookup.vue

+ 1 - 1
config/index.js

@@ -1,7 +1,7 @@
 const dev = {
 	// baseUrl: 'http://192.168.1.120:8090/',
 	baseUrl: 'https://www.zthymaoyi.com',
-	baseUrlNew: 'http://192.168.1.120:8090/',
+	baseUrlNew: 'http://192.168.1.110:8090/',
 	h5Appid: 'wxb66b599f7f61b46f',
 	debug: false
 }

+ 20 - 4
pageA/product/business_buy.vue

@@ -314,10 +314,26 @@
 							if (res.confirm) {
 								that.$api.doRequest('post','/purchaseOrder/api/insertPurchaseOrder', that.purchaseOrder).then(res => {
 									if(res.data.code==200){
-										uni.showToast({
-											title: '提交成功,等待买方回复',
-											icon: 'none',
-											duration: 2000
+										that.$api.doRequest('post','/purchaseOrder/api/submitPurchaseOrder', {id:res.data.data}).then(res1 => {
+											if(res1.data.code==200){
+												uni.showToast({
+													title: '提交成功,等待买方回复',
+													icon: 'none',
+													duration: 2000
+												})
+											}else{
+												uni.showToast({
+													title: res.data.message,
+													icon: 'none',
+													duration: 2000
+												})
+											}
+										}).catch(res => {
+											uni.showToast({
+												title: res.data.message,
+												icon: 'none',
+												duration: 2000
+											})
 										})
 										// uni.navigateBack();
 									}else{

+ 1 - 1
pageA/product/lookup.vue

@@ -283,13 +283,13 @@
 					success: (res) => {
 						if (res.confirm) {
 							this.$api.doRequest('post', '/searchRecordsInfo/api/deleteSearchRecordsInfo',{commonId:this.userInfo.id}).then(res => {
-								that.oldKeywordList=[]
 								if(res.data.code==200){
 									uni.showToast({
 										title: '清除历史搜索成功',
 										icon:'none',
 										duration: 2000
 									})
+									that.oldKeywordList.records=[]
 								}
 							})
 							.catch(res => {