From b6a04be0a4cbf5d5a44006a09b83f52a71dfce27 Mon Sep 17 00:00:00 2001 From: haoyahui <2032914783@qq.com> Date: 星期五, 17 十一月 2023 10:19:48 +0800 Subject: [PATCH] 部门管理,仓库管理库管员,库存管理 --- admin-web/src/views/stock/procure/receiptDetails/index.vue | 53 +++++++++++++++++++++++++++++++++-------------------- 1 files changed, 33 insertions(+), 20 deletions(-) diff --git a/admin-web/src/views/stock/procure/receiptDetails/index.vue b/admin-web/src/views/stock/procure/receiptDetails/index.vue index 64d606b..7f80beb 100644 --- a/admin-web/src/views/stock/procure/receiptDetails/index.vue +++ b/admin-web/src/views/stock/procure/receiptDetails/index.vue @@ -33,7 +33,7 @@ import SettingIplatform from '@/utils/settingIplatform'; import detail from '../purchaseOrder/detail'; import * as finsystenant from '@/api/baseSetting/finsystenant'; -import {goodsModel} from '@/api/stock/procure/purchaseOrder'; +import { goodsModel } from '@/api/stock/procure/purchaseOrder'; import myImport from '@/views/components/myImport'; import { getBaseUrl } from '@/utils/base'; @@ -64,7 +64,7 @@ label: '瑙勬牸鍨嬪彿', placeholder: '璇烽�夋嫨', defaultValue: '', - options:[] + options: [], }, { type: 'cascader', @@ -77,7 +77,7 @@ }, { type: 'text', - dataIndex: 'buyerName', + dataIndex: 'createName', label: '鍒涘缓浜�', placeholder: '璇疯緭鍏�', defaultValue: '', @@ -100,7 +100,7 @@ // 鎼滅储鏉′欢 filterFrom: { tenantId: null, - agencyId:[], + agencyId: [], status: 1, }, // 瀵煎叆 @@ -150,9 +150,23 @@ { title: '鍗曞彿', field: 'businessFormCode', align: 'center' }, { title: '鐗╁搧鍚嶇О', field: 'goodsTemplateName', align: 'center' }, { title: '瑙勬牸鍨嬪彿', field: 'baseGoodsModelsName', align: 'center' }, - { title: '鍗曚环', field: 'price', align: 'center' }, + { + title: '鍗曚环', + field: 'price', + align: 'center', + formatter: (row) => { + return { value: row.price / 100 }; + }, + }, { title: '鍏ュ簱鏁伴噺', field: 'counts', align: 'center' }, - { title: '閲戦', field: 'amount', align: 'center' }, + { + title: '閲戦', + field: 'amount', + align: 'center', + formatter: (row) => { + return { value: row.price / 100 }; + }, + }, { title: '鎵�灞炴満鏋�', field: 'agencyName', align: 'center' }, { title: '鍒涘缓浜�', field: 'buyerName', align: 'center' }, { @@ -193,17 +207,16 @@ }, created() { // 鎼滅储妗嗚鏍煎瀷鍙� - goodsModel().then(res=>{ - this.items.forEach(v=>{ - if(v.label=='瑙勬牸鍨嬪彿'){ - v.options = res.map(item=>{ - item.label = item.modelName, - item.value = item.id - return item - }) + goodsModel().then((res) => { + this.items.forEach((v) => { + if (v.label == '瑙勬牸鍨嬪彿') { + v.options = res.map((item) => { + (item.label = item.modelName), (item.value = item.id); + return item; + }); } - }) - }) + }); + }); }, methods: { //瀵煎叆 @@ -247,9 +260,9 @@ .catch(() => {}); }, showDetail(row) { - this.detailSetting.id=row.businessId - this.detailSetting.title='璇︽儏' - this.detailSetting.show=true + this.detailSetting.id = row.businessId; + this.detailSetting.title = '璇︽儏'; + this.detailSetting.show = true; }, // 鏌ヨtable鍒楄〃 search(pageNum) { @@ -267,7 +280,7 @@ if (this.filterFrom.incomeTimeEnd) { this.filterFrom.incomeTimeEnd = this.filterFrom.incomeTimeEnd.replace(/\-/g, ''); } - if (params.agencyId&¶ms.agencyId.length) { + if (params.agencyId && params.agencyId.length) { this.filterFrom.agencyId = params.agencyId[params.agencyId.length - 1]; } this.search(1); -- Gitblit v1.9.1