diff --git a/src/api/yh/price.js b/src/api/yh/price.js index 23a5aab..1475b2e 100644 --- a/src/api/yh/price.js +++ b/src/api/yh/price.js @@ -81,12 +81,12 @@ export function cancelPrice(priceId) { } // 审核单价 -export function verifyPrice(priceIds, pass) { +export function verifyPrice(priceList, pass) { return request({ url: `/yh/price/verify`, method: 'put', data: { - priceIds, + priceList, pass } }) diff --git a/src/components/Business/Price/PriceSelect.vue b/src/components/Business/Price/PriceSelect.vue index a7720cb..2ec766b 100644 --- a/src/components/Business/Price/PriceSelect.vue +++ b/src/components/Business/Price/PriceSelect.vue @@ -16,7 +16,10 @@ :label="label(item)" :value="item.priceId" > - {{ item.name | dv}} + + {{ item.name | dv}} + + {{ item.code | dv}} @@ -30,6 +33,7 @@ import { listPrice } from '@/api/yh/price' export default { name: 'PriceSelect', + dicts: ['price_status'], props: { value: { type: String, @@ -43,6 +47,10 @@ export default { type: String, default: null, }, + status: { + type: String, + default: null, + }, query: { type: Object, default: () => ({}), @@ -81,13 +89,15 @@ export default { value(nv, ov ) { let obj = this.options.find(item => item.priceId == nv); if (obj == null) { - this.options.push({priceId: nv, name: this.name, code: this.code}); + this.options.push({priceId: nv, name: this.name, code: this.code, status: this.status}); + this.total ++; } } }, created() { if (this.value != null) { - this.options = [{priceId: this.value, name: this.name, code: this.code}] + this.options = [{priceId: this.value, name: this.name, code: this.code, status: this.status}] + this.total = 1; } }, methods: { diff --git a/src/components/DictTag/index.vue b/src/components/DictTag/index.vue index 15ea8bc..c4599a4 100644 --- a/src/components/DictTag/index.vue +++ b/src/components/DictTag/index.vue @@ -1,5 +1,5 @@