| | |
| | | |
| | | <script> |
| | | import { deletePurchase } from "@/api/purchaseManage/purchase"; |
| | | import { getDataByType } from "@/api/data"; |
| | | export default { |
| | | name: "DetailSupplier", |
| | | props: { |
| | |
| | | tableList: {}, |
| | | showSummary:{ |
| | | show: true, |
| | | sumProp: ["number", "total"], |
| | | mergeNumber: 4, |
| | | sumProp: ["amount", "total"], |
| | | mergeNumber: 5, |
| | | totalName:'小计' |
| | | }, |
| | | purchaseStatusList:getDataByType('purchaseStatus'), |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | mounted() {}, |
| | | computed: {}, |
| | | methods: { |
| | | getpurchaseStatus(val) { |
| | | if (val) { |
| | | for (let i in this.purchaseStatusList) { |
| | | if (this.purchaseStatusList[i].id == val) { |
| | | return this.purchaseStatusList[i].name; |
| | | } |
| | | } |
| | | } else { |
| | | return "--"; |
| | | } |
| | | }, |
| | | // email 通知下单 |
| | | emailClick() {}, |
| | | // 删除 |
| | |
| | | }, |
| | | { |
| | | leftStr: "采购单状态", |
| | | leftValue: item.contact_name, |
| | | leftValue: this.getpurchaseStatus(item.status), |
| | | rightStr: "采购负责人", |
| | | rightValue: item.contact_position, |
| | | }, |
| | |
| | | }, |
| | | { |
| | | leftStr: "到货仓库", |
| | | leftValue: item.sales_resources, |
| | | leftValue: item.warehouse, |
| | | rightStr: "", |
| | | rightValue: "", |
| | | }, |
| | |
| | | tableInfomation: item.productList?item.productList:[], |
| | | selectIndex: true, |
| | | tableColumn: [ |
| | | { label: "产品名称", prop: "name", min: 190, isCommonClick: true }, |
| | | { label: "产品编码", prop: "number", min: 130, isCommonClick: true }, |
| | | { 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 }, |