Commit e08e8e15 authored by dragondean@qq.com's avatar dragondean@qq.com

修复报价单赢单订单号搜索

parent 19a7197e
......@@ -15,7 +15,23 @@
<dict-selector :type="DICT_TYPE.ECW_WAREHOUSING_TYPE" v-model="form.warehousingType" />
</el-form-item>
<el-form-item label="关联订单" prop="orderIds">
<el-input v-model="form.orderIds" style="width: 206px;"></el-input>
<!-- <el-input v-model="form.orderIds" style="width: 206px;"></el-input> -->
<el-select
v-model="form.orderNo"
filterable
remote
reserve-keyword
placeholder="订单号"
@focus="checkOptions"
:remote-method="remoteMethod"
:loading="selectLoading">
<el-option
v-for="item in orderNoList"
:key="item.value"
:label="item.value"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
</template>
<template v-else>
......@@ -39,6 +55,7 @@ import RoutersSelector from '@/components/RoutersSelector'
import ProductsSelector from '@/components/ProductsSelector'
import Editor from '@/components/Editor'
import Selector from '@/components/Selector/index'
import {getOrderNoSearch} from '@/api/ecw/order'
export default {
name: "OfferResult",
components: { CustomersSelector, RoutersSelector, ProductsSelector, Editor, Selector },
......@@ -59,7 +76,9 @@ export default {
// 表单校验
rules: {
warehousingType: {required: true, message: '请选择入仓类型'}
}
},
selectLoading: false,
orderNoList: []
};
},
computed: {
......@@ -97,6 +116,19 @@ export default {
});
});
},
remoteMethod(query){
this.selectLoading = true
getOrderNoSearch({key: query, pageSize: 200}).then(res => {
this.orderNoList = res.data.list
}).finally(res => {
this.selectLoading = false
})
},
checkOptions(){
if(!this.orderNoList.length){
this.remoteMethod("")
}
}
},
};
</script>
\ No newline at end of file
......@@ -207,13 +207,13 @@ export default {
};
</script>
<style rel="stylesheet/scss" lang="scss">
<style lang="scss" scoped>
.login {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
background-image: url("https://musician-release-1305250541.file.myqcloud.com/static/bg-login.png");
background-image: url(../assets/images/bg-login.png);
background-size: cover;
}
.title {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment