|
@@ -6,7 +6,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="采购状态" prop="purchaseStatus">
|
|
|
<el-select v-model="queryParams.purchaseStatus" placeholder="请选择采购状态" size="small" @change="handleQuery">
|
|
|
- <el-option v-for="item in purchaseStatus" :key="item.text" :value="item.key" :label="item.text" />
|
|
|
+ <el-option v-for="item in purchaseStatus" :key="item.dictValue" :value="item.dictKey" :label="item.dictValue" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="供应商" prop="supplyName">
|
|
@@ -183,9 +183,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- let purchaseStatus = this.constantData.filter((item) => item.type === 'purchaseStatus')
|
|
|
+ let purchaseStatus = this.dictData.filter((item) => item.code === 'purchaseStatus')
|
|
|
if (purchaseStatus && purchaseStatus.length > 0) {
|
|
|
- this.purchaseStatus = purchaseStatus[0].rows
|
|
|
+ this.purchaseStatus = purchaseStatus[0].children
|
|
|
}
|
|
|
let payType = this.dictData.filter((item) => item.code === 'purchase_payment_pay_type')
|
|
|
if (payType && payType.length > 0) {
|
|
@@ -206,7 +206,7 @@ export default {
|
|
|
this.getList()
|
|
|
})
|
|
|
},
|
|
|
- computed: mapGetters(['constantData', 'dictData']),
|
|
|
+ computed: mapGetters(['dictData']),
|
|
|
methods: {
|
|
|
getList() {
|
|
|
this.loading = true
|
|
@@ -233,10 +233,10 @@ export default {
|
|
|
this.handleQuery()
|
|
|
},
|
|
|
purchaseStatusFormat(row) {
|
|
|
- return this.selectConstantLabel(this.purchaseStatus, row.purchaseStatus)
|
|
|
+ return this.selectConstantsLabel(this.purchaseStatus, row.purchaseStatus)
|
|
|
},
|
|
|
currencyFormat(row) {
|
|
|
- return this.selectConstantLabel(this.sdCurrencyType, row.currency)
|
|
|
+ return this.selectConstantsLabel(this.sdCurrencyType, row.currency)
|
|
|
},
|
|
|
payTypeFormat(row) {
|
|
|
return this.selectConstantsLabel(this.payType, row.payType)
|