From a59ab6b2cb459c2ab6e1ac30bfa09de65d5f5856 Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期四, 23 十一月 2023 13:54:49 +0800 Subject: [PATCH] modify:修改供应商管理-采购列表数据,修改合同附件的上传下载和删除 --- src/views/supplierManage/supplier/DetailSupplier.vue | 38 +++++++++++++++++++++++++++----------- 1 files changed, 27 insertions(+), 11 deletions(-) diff --git a/src/views/supplierManage/supplier/DetailSupplier.vue b/src/views/supplierManage/supplier/DetailSupplier.vue index c2765a1..df157c1 100644 --- a/src/views/supplierManage/supplier/DetailSupplier.vue +++ b/src/views/supplierManage/supplier/DetailSupplier.vue @@ -65,7 +65,7 @@ </ul> <div class="business_scope"> <div class="content-title">{{ "鍚堝悓闄勪欢" }}</div> - <div class="content-data"> + <div class="content-data" @click="downLoadFiles"> {{ detailConfig.infomation.contract.fileName ? detailConfig.infomation.contract.fileName : "--" }} </div> </div> @@ -82,6 +82,7 @@ <span style="margin-left: 10px">浜у搧淇℃伅</span> </div> <div v-show="isBasicExpand" class="basic-info-content"> + <el-button type="primary" size="mini" @click="toPurchaseBtn"><i class="el-icon-plus"></i> 鏂板缓</el-button> <TableCommonView style="margin-top: 2px" class="content-table" @@ -99,6 +100,7 @@ </template> <script> +import download from "downloadjs" export default { name: "DetailSupplier", props: { @@ -128,21 +130,21 @@ noContactDays: 0, newContactDays: "", tableList:{}, - showCol: ['浜у搧鍚嶇О', '浜у搧缂栫爜', '璁¢噺鍗曚綅', '瑙勬牸鍨嬪彿', '鏁伴噺', '閿�鍞崟浠�','浠风◣鍚堣','鎻忚堪'], + showCol: ['閲囪喘鍗曞彿', '閲囪喘鍗曞悕绉�', '鍗曟嵁绫诲瀷', '渚涘簲鍟嗗悕绉�', '閲囪喘鏁伴噺', '鏀惰揣浠撳簱','缁忓姙浜�','鍒跺崟浜�'], tableColumn: [ - { label: "浜у搧鍚嶇О", prop: "name", min: 160, }, - { label: "浜у搧缂栫爜", prop: "number", min: 130, }, - { label: "璁¢噺鍗曚綅", prop: "unit", min: 130 }, - { label: "瑙勬牸鍨嬪彿", prop: "specifications", min: 130 }, - { label: "鏁伴噺", prop: "amount", min: 130 }, - { label: "閿�鍞崟浠�", prop: "price", min: 130 }, - { label: "浠风◣鍚堣", prop: "total", min: 130 }, - { label: "鎻忚堪", prop: "remark", min: 130 }, + { label: "鍗曟嵁绫诲瀷", prop: "orderType", min: 130 }, + { label: "閲囪喘鍗曞彿", prop: "number", min: 150, isCommonClick: true ,default:true}, + { label: "閲囪喘鍗曞悕绉�", prop: "name", min: 130, isCommonClick: true }, + { label: "渚涘簲鍟嗗悕绉�", prop: "supplierName", min: 130 }, + { label: "閲囪喘鏁伴噺", prop: "quantity", min: 130 }, + { label: "鏀惰揣浠撳簱", prop: "warehouse", min: 130 }, + { label: "缁忓姙浜�", prop: "handledBy", min: 130 }, + { label: "鍒跺崟浜�", prop: "creator", min: 130 } ], } }, created() { - console.log(this.detailConfig,"鎶藉眽缁勪欢") + console.log(this.commonDetail,"鎶藉眽缁勪欢props") this.setData(this.detailConfig.infomation) this.addConfig = { id_name: "sales_leads_id", @@ -295,6 +297,20 @@ // console.log(totalDays) return totalDays // 鐩稿樊鐨勫ぉ鏁� + }, + toPurchaseBtn(){ + this.$router.push({ + name: 'purchase', + params: { + supplierId:this.commonDetail.infomation.ID, + supplierName:this.commonDetail.infomation.name + } + }); + }, + // 涓嬭浇鍚堝悓闄勪欢 + downLoadFiles(){ + let url = "/api/downloadContract?id=" + this.commonDetail.infomation.fileId + download(url, "", "") } } } -- Gitblit v1.8.0