pull/7/head^2
Aaaaaaaa 2024-09-05 21:03:28 +08:00
parent 5540e3e214
commit 53ea1aa2e0
2 changed files with 52 additions and 118 deletions

View File

@ -69,6 +69,13 @@ export function getOut(){
method: "GET" method: "GET"
})} })}
export function listreclaim(data){
return request({
url:"/market/orders/listreclaim",
method: "POST",
data: data
})}

View File

@ -9,8 +9,7 @@
<div class="text item"> <div class="text item">
<el-form ref="form" :model="orders" label-width="100px"> <el-form ref="form" :model="orders" label-width="100px">
<el-form-item> <el-form-item>
订单编号<el-input v-model="orders.ordersNum" placeholder="编号" style="width: 130px;margin-right: 50px"></el-input>
订单编号<el-input v-model="orders.ordersNum" placeholder="编号" style="width: 180px;margin-right: 50px"></el-input>
订单款项状态 订单款项状态
<el-select v-model="orders.ordersState" placeholder="请选择状态" style="margin-right: 30px" clearable> <el-select v-model="orders.ordersState" placeholder="请选择状态" style="margin-right: 30px" clearable>
<el-option v-for="item in options" <el-option v-for="item in options"
@ -19,24 +18,21 @@
:value="item.value"> :value="item.value">
</el-option> </el-option>
</el-select> </el-select>
<br/> <br/>
选择时间: 选择时间:
<el-date-picker v-model="orders.startDate" type="date" placeholder="开始时间" /> <el-date-picker v-model="orders.startDate" type="date" placeholder="开始时间" style="width: 130px;"/>
----- -----
<el-date-picker v-model="orders.endDate" type="date" placeholder="结束时间"/> <el-date-picker v-model="orders.endDate" type="date" placeholder="结束时间" style="width: 130px;"/>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
</el-card> </el-card>
<br>
<br> <button style="float: right; padding: 3px 10px" type="text" @click="orderslist"></button>
<br>
<el-card class="box-card" style="width: 94%;transform: translateX(3%);margin-top: 10px"> <el-card class="box-card" style="width: 94%;transform: translateX(3%);margin-top: 10px">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>回收站列表</span> <span>回收站列表</span>
<button @click="add(1)" style="float: right; padding: 3px 10px" type="text">添加</button>
</div> </div>
<el-table :data="arr" style="width: 100%" @selection-change="handleSelectionChange"> <el-table :data="arr" style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55"></el-table-column> <el-table-column type="selection" width="55"></el-table-column>
<el-table-column label="日期" width="150" align="center"> <el-table-column label="日期" width="150" align="center">
@ -91,11 +87,6 @@
size="mini" size="mini"
type="danger" type="danger"
@click="ordersDelete(scope.row)">彻底删除</el-button> @click="ordersDelete(scope.row)">彻底删除</el-button>
<el-button
type="primary"
size="small"
@click="pay(scope.row)" >支付</el-button>
<!-- v-if="scope.row.status === '待支付'"-->
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
@ -117,14 +108,13 @@
<script> <script>
import { selectList, update, addordersup, ordersDelete ,pay} from '@/api/market/orders' import { ordersDelete, listreclaim } from '@/api/market/orders'
import { diGui } from "@/api/market/orders"; import { diGui } from "@/api/market/orders";
//jsjsjson, //jsjsjson,
//import from ', //import from ',
export default { export default {
dicts:['product_name','orders_num','orders_state','orders_launchdate'],
//import使" //import使"
components: {}, components: {},
props: {}, props: {},
@ -139,15 +129,9 @@ export default {
}, },
arr:[], arr:[],
type:[], type:[],
Cascader:{ expandTrigger:'hover',value:'id',label:'typeName',children:'parentPOS' },
typeId:[],
startDate: null, startDate: null,
endDate: null, endDate: null,
index:'', index:'',
addtitle:'',
addordersoff:false,
ordersForm:{}, ordersForm:{},
options: [{ options: [{
@ -177,112 +161,55 @@ export default {
watch: {}, watch: {},
//", //",
methods: { methods: {
//
ordersDelete(row){
ordersDelete(row.ordersId).then(
res => {
this.$message.success(res.msg)
this.selectList()
}
)
},
//
chong(){
this.orders={}
this.selectList()
},
//
handleSizeChange(val) {
this.orders.pageSize=val
this.selectList()
},
handleCurrentChange(val) {
this.orders.pageNum=val
this.selectList()
},
handleClose(done) {
this.$confirm('确认关闭?')
.then(_ => {
done();
})
.catch(_ => {});
},
pay(row){
this.$confirm(row.ordersNum,row.productName,row.ordersrice)
window.open("http://localhost:9701/alipay/pay?traceNo="+ row.ordersNum +"&subject="+row.productName +"&totalAmount="+row.ordersrice)
this.$message.success('付款成功')
this.load();
}
,
//
updateShop(orders){
update(orders).then(
res => {
this.$message.success(res.msg)
this.selectList()
}
)
},
//
handleEdit(orders){
if (this.orders.serviceIds && typeof this.orders.serviceIds === 'string') {
orders.serviceid = this.orders.serviceIds.split(',');
// ...
}
console.log(JSON.stringify(orders))
orders.serviceid=orders.serviceIds.split(',').map(id => parseInt(id, 10));
console.log(JSON.stringify(orders))
this.$router.push({path:'/product/info/update',query:{orders:orders}})
},
addorders(ordersForm){
addordersup(ordersForm).then(response=>{
alert(response.msg)
if (response.code==200){}
this.addordersoff=false
})
location.reload();
},
//
findShop(){
this.selectList()
},
//
add(index){
this.index=index
if (this.index === 1) {
this.addtitle= '添加订单';
}
// else if (this.index === 2) {
// this.dialogtitle= '';
// }
this.addordersoff=true
},
//
handleSelectionChange(val) {
this.multipleSelection = val;
},
// //
selectList() { listreclaim() {
selectList(this.orders).then( listreclaim(this.orders).then(
res => { res => {
console.log(res) console.log(res)
this.arr = res.data.list this.arr = res.data.list
this.orders.total = res.data.total this.orders.total = res.data.total
} }
) )
},
//
ordersDelete(row){
ordersDelete(row.ordersId).then(
res => {
this.$message.success(res.msg)
this.listreclaim()
} }
)
},
//
chong(){
this.orders={}
this.listreclaim()
},
//
handleSelectionChange(val) {
this.multipleSelection = val;
},
//
handleSizeChange(val) {
this.orders.pageSize=val
this.listreclaim()
},
handleCurrentChange(val) {
this.orders.pageNum=val
this.listreclaim()
},
orderslist(){
this.$router.push({path:"/market/orders"})
},
//
findShop(){
this.listreclaim()
}
}, },
// - 访this", // - 访this",
created() { created() {
// this.diGui() this.listreclaim()
this.selectList()
}, },
// - 访DOM", // - 访DOM",
mounted() { mounted() {