shish 4 лет назад
Родитель
Сommit
08d4c3787d

+ 0 - 5
ghsApp/src/api/product/index.js

@@ -43,11 +43,6 @@ export const batchChangePrice = data => {
 	return https.post("/product/batch-change-price", data);
 };
 
-//批量改价
-export const batchUpdatePrice = data => {
-	return https.post("/product/batch-update", data);
-};
-
 //添加花材
 export const addProduct = data => {
 	return https.post("/product/add", data);

+ 2 - 3
ghsApp/src/pagesPurchase/components/pageSuccess.vue

@@ -31,8 +31,7 @@
 	</view>
 </template>
 <script>
-import { getAllProductDataApi } from "@/api/product/index";
-import { batchUpdatePrice } from '@/api/product/index'
+import { getAllProductDataApi,batchChangePrice } from "@/api/product/index";
 export default {
     name: "pageSuccess",
 	data() {
@@ -98,7 +97,7 @@ export default {
 		},
 		commitChange(){
 			let that = this
-			batchUpdatePrice({data:JSON.stringify(this.productList),type:'price',costChangeIds:JSON.stringify(this.costChangeIds)}).then(res => {
+			batchChangePrice({data:JSON.stringify(this.productList)}).then(res => {
 				uni.showToast({title:res.msg})
 				if(res.code == 1){
 					that.$msg('修改成功')

+ 2 - 0
ghsApp/src/pagesPurchase/details.vue

@@ -337,7 +337,9 @@ export default {
 			if (!this.getMerchantInfo) {
 				await this.initMerchantInfo()
 			}
+			uni.showLoading({mask:true})
 			const res = await createPurchaseOrderApi({...formData,modifyPrice:this.modifyPrice,cgModel:this.myShopInfo.cgModel})
+			uni.hideLoading()
 			uni.setStorageSync('flowersItemInfo', itemInfo)
 			this.removeFromSaveDirect()
 			this.$util.pageTo({url: "/pagesPurchase/components/pageSuccess",type:2,query: {orderSn: res.data.orderSn}})