|
@@ -30,7 +30,7 @@
|
|
|
:showSearch="true"
|
|
|
option-filter-prop="children"
|
|
|
:filter-option="filterOption">
|
|
|
- <a-select-option v-for="item in supplierList" :key="item.supplierSn" :value="item.supplierSn">{{ item.supplierName }}</a-select-option>
|
|
|
+ <a-select-option v-for="item in supplierList" :key="item.dealerSn" :value="item.dealerSn">{{ item.dealerName }}</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
@@ -139,8 +139,8 @@
|
|
|
<script>
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
import basicInfoModal from './basicInfoModal.vue'
|
|
|
-import { purchaseList, purchaseDel, purchaseCount } from '@/api/purchase'
|
|
|
-import { supplierAllList } from '@/api/supplier'
|
|
|
+import { purchaseList, purchaseDel, purchaseCount, getParentDealer } from '@/api/purchase'
|
|
|
+// import { supplierAllList } from '@/api/supplier'
|
|
|
import moment from 'moment'
|
|
|
export default {
|
|
|
components: { STable, VSelect, basicInfoModal },
|
|
@@ -271,14 +271,20 @@ export default {
|
|
|
this.$refs.table.refresh(true)
|
|
|
},
|
|
|
filterOption (input, option) {
|
|
|
- return (
|
|
|
- option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
- )
|
|
|
+ return (
|
|
|
+ option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
+ )
|
|
|
},
|
|
|
// 获取供应商数据
|
|
|
getSupperList () {
|
|
|
- supplierAllList().then(res => {
|
|
|
- this.supplierList = res.data || []
|
|
|
+ this.supplierList = [{ dealerSn: '1', dealerName: '箭冠营销中心' }]
|
|
|
+ getParentDealer({}).then(res => {
|
|
|
+ if (res.status == 200) {
|
|
|
+ this.purchaseTragetType = res.data
|
|
|
+ if (res.data) {
|
|
|
+ this.supplierList.push({ dealerSn: res.data.dealerSn, dealerName: res.data.dealerName })
|
|
|
+ }
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
},
|