中台订单--70%

dev
e 3 years ago
parent 9dde30cceb
commit b26d59d32b
  1. 640
      src/views/order/AddOrder.vue
  2. 2
      src/views/order/Order.vue
  3. 19
      src/views/order/selectClient.vue

File diff suppressed because it is too large Load Diff

@ -83,7 +83,7 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center"> <el-table-column label="操作" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="handle('edit',scope.row)">编辑</el-button> <el-button type="text" @click="handle('edit',scope.row)">修改</el-button>
<el-button type="text" @click="handle('watch',scope.row)">查看</el-button> <el-button type="text" @click="handle('watch',scope.row)">查看</el-button>
<el-button type="text" @click="handleDelete(scope.row)">删除</el-button> <el-button type="text" @click="handleDelete(scope.row)">删除</el-button>
<!-- <el-button type="text" @click="handleRenew(scope.row)">续费</el-button> --> <!-- <el-button type="text" @click="handleRenew(scope.row)">续费</el-button> -->

@ -108,7 +108,10 @@
<script> <script>
export default { export default {
props:{ props:{
refresh:{
type:Boolean,
default:false
}
}, },
data(){ data(){
return{ return{
@ -136,6 +139,15 @@ export default {
this.getData() this.getData()
this.getProvince() this.getProvince()
}, },
watch:{
refresh:function(val,val2){
if(val){
this.getData()
this.getProvince()
}
}
},
methods:{ methods:{
// //
getData(){ getData(){
@ -183,13 +195,16 @@ export default {
this.cityList = res.list this.cityList = res.list
}).catch(res => {}) }).catch(res => {})
}, },
goback(val){ async goback(val){
if(val){ if(val){
this.$emit('back',{show:true}) this.$emit('back',{show:true})
}else{ }else{
if(!this.checkedName){ if(!this.checkedName){
return this.$message('请选择客户后再确定!') return this.$message('请选择客户后再确定!')
} }
await this.$get(this.api.queryCustomerDetails,{customerId:this.checkedID}).then(res=>{
console.log(res,'当前的res');
})
this.$emit('back',{show:true,id:this.checkedID,name:this.checkedName}) this.$emit('back',{show:true,id:this.checkedID,name:this.checkedName})
} }
}, },

Loading…
Cancel
Save