|
@@ -21,12 +21,12 @@
|
|
|
<div class="main">
|
|
|
<Form style='display:flex;margin:15px 0;flex-wrap:wrap' :label-width='100'>
|
|
|
<FormItem label='订单编号:' >
|
|
|
- <Select style="width:200px" v-model="searchData.order_no" filterable @on-change='orderNoChange'>
|
|
|
+ <Select style="width:200px" v-model="searchData.order_no" filterable @on-change='orderNoChange' clearable>
|
|
|
<Option :value="item" :label="item" v-for="(item,index) in orderList" :key="index"></Option>
|
|
|
</Select>
|
|
|
</FormItem>
|
|
|
<FormItem label='项目名称:' >
|
|
|
- <Select style="width:200px" v-model="searchData.residential_name" filterable @on-change='residentialNameChange'>
|
|
|
+ <Select style="width:200px" v-model="searchData.residential_name" filterable @on-change='residentialNameChange' clearable>
|
|
|
<Option :value="item" :label="item" v-for="(item,index) in projectList" :key="index"></Option>
|
|
|
</Select>
|
|
|
</FormItem>
|
|
@@ -301,8 +301,8 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
- async residentialNameChange(val){
|
|
|
- await this.axios.get('/api/order_produce_order_no',{params:{...this.searchData}}).then(res=>{
|
|
|
+ async residentialNameChange(val){
|
|
|
+ await this.axios.get('/api/order_produce_order_no',{params:{residential_name:val}}).then(res=>{
|
|
|
this.searchData.order_no = res.data.order_no
|
|
|
})
|
|
|
if(this.searchData.residential_name&&this.searchData.order_no){
|
|
@@ -310,11 +310,13 @@ export default {
|
|
|
this.axios.get('/api/order_produce_url_number',{params:{...this.searchData}}).then(res=>{
|
|
|
this.urlNumberList = res.data
|
|
|
})
|
|
|
+ }else{
|
|
|
+ this.show = true;
|
|
|
}
|
|
|
|
|
|
},
|
|
|
- async orderNoChange(val){
|
|
|
- await this.axios.get('/api/order_produce_order_no',{params:{...this.searchData}}).then(res=>{
|
|
|
+ async orderNoChange(val){
|
|
|
+ await this.axios.get('/api/order_produce_order_no',{params:{order_no:val}}).then(res=>{
|
|
|
this.searchData.residential_name = res.data.residential_name
|
|
|
})
|
|
|
if(this.searchData.residential_name&&this.searchData.order_no){
|
|
@@ -322,6 +324,8 @@ export default {
|
|
|
this.axios.get('/api/order_produce_url_number',{params:{...this.searchData}}).then(res=>{
|
|
|
this.urlNumberList = res.data
|
|
|
})
|
|
|
+ }else{
|
|
|
+ this.show =true;
|
|
|
}
|
|
|
},
|
|
|
change_NK(row){
|