|
@@ -18,6 +18,11 @@
|
|
|
<el-option v-for="(item, index) in sourceList" :key="index" :label="item.dictValue" :value="item.dictKey"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="供应商" prop="supplyId">
|
|
|
+ <el-select clearable placeholder="请选择" v-model="queryParams.supplyId" style="width: 100%" @change="handleQuery" size="small">
|
|
|
+ <el-option v-for="(item, index) in supplierList" :key="item.id" :label="item.supplyName" :value="item.id"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button size="mini" @click="handleQuery" class="searchBtn">搜索</el-button>
|
|
|
<el-button size="mini" @click="resetQuery">重置</el-button>
|
|
@@ -150,6 +155,7 @@ import ContractPreview from '@/components/purchaseDetails/index.vue'
|
|
|
import PurchaseAll from '@/components/purchaseDetails/purchaseAll.vue'
|
|
|
|
|
|
import * as API from '@/api/procurement/contractManagement.js'
|
|
|
+import { list } from '@/api/externalAddressBook/supply.js'
|
|
|
|
|
|
import { mapGetters } from 'vuex'
|
|
|
import { dateFormat } from '@/util/date.js'
|
|
@@ -183,6 +189,7 @@ export default {
|
|
|
purchaseStatus: null,
|
|
|
contractCode: '',
|
|
|
dataType: '',
|
|
|
+ supplyId: '',
|
|
|
},
|
|
|
constantAllData: [],
|
|
|
purchaseStatusData: [],
|
|
@@ -204,6 +211,7 @@ export default {
|
|
|
{ dictValue: '其他申购', dictKey: '2' },
|
|
|
],
|
|
|
openChange: false,
|
|
|
+ supplierList: [],
|
|
|
}
|
|
|
},
|
|
|
computed: mapGetters(['constantData', 'userInfo']),
|
|
@@ -249,6 +257,9 @@ export default {
|
|
|
//获取所有常量方法
|
|
|
constantAll() {
|
|
|
this.purchaseStatusData = this.constantData.filter((item) => item.type === 'purchaseStatus')[0].rows
|
|
|
+ list({}).then((response) => {
|
|
|
+ this.supplierList = response.data.data.list
|
|
|
+ })
|
|
|
},
|
|
|
// 获取下拉框数据
|
|
|
getSelectData(allSelect, type) {
|