| | |
| | | </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> |
| | |
| | | <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" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import download from "downloadjs" |
| | | export default { |
| | | name: "DetailSupplier", |
| | | props: { |
| | |
| | | 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", |
| | |
| | | // 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, "", "") |
| | | } |
| | | } |
| | | } |