lilei hai 1 ano
pai
achega
903e372a52
Modificáronse 1 ficheiros con 7 adicións e 4 borrados
  1. 7 4
      pages/approveStore/authPass.vue

+ 7 - 4
pages/approveStore/authPass.vue

@@ -69,6 +69,7 @@
 <script>
 <script>
 	import Address from '@/components/address.vue'
 	import Address from '@/components/address.vue'
 	import { xprhStoreApplyDetail, xprhStoreApplyAudit } from '@/api/approveStore'
 	import { xprhStoreApplyDetail, xprhStoreApplyAudit } from '@/api/approveStore'
+	import {updateShelfPriceShow} from '@/api/shelf'
 	import { clzConfirm, numberToFixed } from '@/libs/tools';
 	import { clzConfirm, numberToFixed } from '@/libs/tools';
 	const baseUrl = getApp().globalData.baseUrl
 	const baseUrl = getApp().globalData.baseUrl
 	export default{
 	export default{
@@ -258,7 +259,7 @@
 				xprhStoreApplyAudit(obj).then(res => {
 				xprhStoreApplyAudit(obj).then(res => {
 					console.log(res)
 					console.log(res)
 					if(res.status == 200){
 					if(res.status == 200){
-						 savePriceSet(res.data)
+						 this.savePriceSet(res.data)
 					}else{
 					}else{
 						uni.showToast({icon: 'none',title: res.message})
 						uni.showToast({icon: 'none',title: res.message})
 						this.loading = false
 						this.loading = false
@@ -273,11 +274,13 @@
 			},
 			},
 			// 价格显示保存
 			// 价格显示保存
 			savePriceSet(data) {
 			savePriceSet(data) {
-				// 更新价格显示
-				updateShelfPriceShow({
+				const params = {
 					shelfSn: data.shelfSn,
 					shelfSn: data.shelfSn,
 					paramValue: this.showPrice
 					paramValue: this.showPrice
-				}).then(res => {
+				}
+				console.log(params)
+				// 更新价格显示
+				updateShelfPriceShow(params).then(res => {
 					if (res.status == 200) {
 					if (res.status == 200) {
 						uni.navigateBack()
 						uni.navigateBack()
 						uni.$emit("updateAuthState")
 						uni.$emit("updateAuthState")