推线上

dev
Aaaaaaaa 2024-09-10 09:10:04 +08:00
parent a1bc4af0d4
commit 35b1390c90
3 changed files with 37 additions and 11 deletions

View File

@ -72,8 +72,6 @@ export function getOut(){
export function updateByordersState1(data){
return request({
url:"/market/orders/updateByordersState1",
method: "POST",
data: data

View File

@ -286,7 +286,7 @@
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible1 = false"> </el-button>
<el-button type="primary" @click=" confirmSelection(row)"> </el-button>
<el-button type="primary" @click="confirmSelection"> </el-button>
</span>
</el-dialog>
@ -307,8 +307,9 @@ import {
} from "@/api/apitest/apitest";
import api from "js-cookie";
import {companyauthentication, ifcompanyauthentication} from "@/api/authentication/authentication";
import {selectproductspecification} from "@/api/market/product";
import { selectproductspecification, showByproductId } from '@/api/market/product'
import myapi from "@/views/market/myapi/index.vue";
import { addordersup, updateOrders } from '@/api/market/orders'
export default {
name: "Apitest",
@ -327,9 +328,12 @@ export default {
activeName: 'first',
dialogVisible: false,
dialogVisible1: false,
productInfo: null,
ruleForm:{},
tableData:[],
newapi:{},
products: [],
orders: [],
//
heanderData:[],
//
@ -550,15 +554,36 @@ export default {
});
}},
confirmSelection(row) {
if (this.selectedRow) {
if (this.selectedRow) {
//
// startPayment(this.selectedRow);
console.log(row)
window.open("http://localhost:9701/alipay/pay?ordersPrice=" + row.middlePrice)
this.$message.success('付款成功')
}
showByproductId(row).then(
res =>{
this.$message.success(res.msg)
}
),
showByproductId().then(
response => {
this.productInfo = response.data;
const orderData = {
ordersProduct:this.productInfo.productId,
productName: this.productInfo.productName,
ordersPrice: this.productInfo.productPrice,
ordersSpecification : this.productInfo.productSpecification
};
return addordersup(orderData);
if (response.code==200){}
this.addordersoff=false
}).then(() => {
this.$message.success('订单添加成功');
})
location.reload();
}
},
show(){

View File

@ -78,6 +78,7 @@
</el-table-column>
<el-table-column label="订单款项状态" width="110" align="center">
<template slot-scope="scope">
<span style="margin-left: 10px" v-if="scope.row.ordersState==0"></span>
<span style="margin-left: 10px" v-if="scope.row.ordersState==1"></span>
<span style="margin-left: 10px" v-if="scope.row.ordersState==2"></span>
@ -166,6 +167,7 @@ import {
import { diGui } from "@/api/market/orders";
import axios from 'axios'
import item from '@/layout/components/Sidebar/Item.vue'
import { showByproductId } from '@/api/market/product'
//jsjsjson,
@ -196,6 +198,7 @@ export default {
addtitle:'',
addordersoff:false,
ordersForm:{},
productInfo: null,
options: [{
value: ' ',
@ -314,16 +317,16 @@ export default {
pay(row){
console.log(row)
window.open("http://21.12.0.10:80/prod-api/market/alipay/pay?productName="+row.productName +"&ordersNum="+row.ordersNum+"&ordersPrice="+row.ordersPrice)
this.$message.success('付款成功')
updateByordersState1(ordersForm).then(response=>{
alert(response.msg)
if (response.code==200){}
this.addordersoff=false
})
window.open("http://21.12.0.10:80/prod-api/market/alipay/pay?productName="+row.productName +"&ordersNum="+row.ordersNum+"&ordersPrice="+row.ordersPrice)
this.$message.success('付款成功')
},
},
getOut(){
this.download('system/operlog/export', {