|
@@ -18,16 +18,7 @@
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<a-form-item label="客户名称">
|
|
<a-form-item label="客户名称">
|
|
- <a-select
|
|
|
|
- id="outboundOrderList-demanderName"
|
|
|
|
- placeholder="请选择"
|
|
|
|
- allowClear
|
|
|
|
- v-model="queryParam.demanderName"
|
|
|
|
- :showSearch="true"
|
|
|
|
- option-filter-prop="children"
|
|
|
|
- :filter-option="filterOption">
|
|
|
|
- <a-select-option v-for="item in custAllList" :key="item.customerSn" :value="item.customerName">{{ item.customerName }}</a-select-option>
|
|
|
|
- </a-select>
|
|
|
|
|
|
+ <custList id="outboundOrderList-demanderName" v-model="queryParam.demanderName"></custList>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
@@ -116,10 +107,10 @@
|
|
<script>
|
|
<script>
|
|
import moment from 'moment'
|
|
import moment from 'moment'
|
|
import { STable, VSelect } from '@/components'
|
|
import { STable, VSelect } from '@/components'
|
|
-import { custAllList } from '@/api/customer'
|
|
|
|
|
|
+import custList from '@/views/common/custList.js'
|
|
import { stockOutList, stockOutOut } from '@/api/stockOut'
|
|
import { stockOutList, stockOutOut } from '@/api/stockOut'
|
|
export default {
|
|
export default {
|
|
- components: { STable, VSelect },
|
|
|
|
|
|
+ components: { STable, VSelect, custList },
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
advanced: false, // 高级搜索 展开/关闭
|
|
advanced: false, // 高级搜索 展开/关闭
|
|
@@ -132,7 +123,6 @@ export default {
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
dateFormat: 'YYYY-MM-DD',
|
|
dateFormat: 'YYYY-MM-DD',
|
|
time: [], // 审核时间
|
|
time: [], // 审核时间
|
|
- custAllList: [], // 客户下拉数据
|
|
|
|
columns: [
|
|
columns: [
|
|
{ title: '序号', dataIndex: 'no', width: 80, align: 'center' },
|
|
{ title: '序号', dataIndex: 'no', width: 80, align: 'center' },
|
|
{ title: '创建时间', dataIndex: 'createDate', width: 160, align: 'center' },
|
|
{ title: '创建时间', dataIndex: 'createDate', width: 160, align: 'center' },
|
|
@@ -270,22 +260,10 @@ export default {
|
|
onSelectChange (selectedRowKeys) {
|
|
onSelectChange (selectedRowKeys) {
|
|
console.log('selectedRowKeys changed: ', selectedRowKeys)
|
|
console.log('selectedRowKeys changed: ', selectedRowKeys)
|
|
this.selectedRowKeys = selectedRowKeys
|
|
this.selectedRowKeys = selectedRowKeys
|
|
- },
|
|
|
|
- // 客户无分页列表数据
|
|
|
|
- getCustAllList () {
|
|
|
|
- const _this = this
|
|
|
|
- custAllList().then(res => {
|
|
|
|
- if (res.status == 200) {
|
|
|
|
- _this.custAllList = res.data || []
|
|
|
|
- } else {
|
|
|
|
- _this.custAllList = []
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
beforeRouteEnter (to, from, next) {
|
|
beforeRouteEnter (to, from, next) {
|
|
next(vm => {
|
|
next(vm => {
|
|
- vm.getCustAllList()
|
|
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|