This commit is contained in:
qsh
2024-11-01 18:13:44 +08:00
parent 7e771a89e4
commit 91a509d49d
10 changed files with 280 additions and 53 deletions

View File

@@ -37,9 +37,9 @@
<el-select v-model="queryParams.supplier" placeholder="供应商" clearable filterable>
<el-option
v-for="item in opts.supplier"
:key="item.value"
:label="item.label"
:value="item.value"
:key="item.id"
:label="item.supplierName"
:value="item.id"
/>
</el-select>
</el-form-item>
@@ -135,7 +135,7 @@ import { allSchemas } from './index.data.js'
import DialogAdd from './Comp/DialogAdd.vue'
import DialogAudit from './Comp/DialogAudit.vue'
import * as PurchaseApi from '@/api/mall/purchase'
import { getDictOptions } from '@/utils/dict'
import { getSupplierSimpleList } from '@/api/school/setting/supplier'
const creatPurchase = ref()
const auditPurchase = ref()
@@ -164,7 +164,9 @@ function getOptions() {
ProductApi.getSimpleProductList().then((data) => {
opts.value.product = data
})
opts.value.supplier = getDictOptions('erp_supplier')
getSupplierSimpleList().then((data) => {
opts.value.supplier = data
})
}
function changeProd(val) {