| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getDeleteSalesLeads } from "@/api/client/salesLead"; |
| | | import { deletePurchase } from "@/api/purchaseManage/purchase"; |
| | | export default { |
| | | name: "DetailSupplier", |
| | | props: { |
| | |
| | | basicInfoList: [], |
| | | isDynamicExpand: true, // 账户信息 |
| | | dynamicInfoList: [], |
| | | addConfig: {}, |
| | | record: "", // 最新进展 |
| | | noContactDays: 0, |
| | | newContactDays: "", |
| | |
| | | }, |
| | | created() { |
| | | this.setData(this.detailConfig.infomation); |
| | | this.addConfig = { |
| | | id_name: "sales_leads_id", |
| | | id: this.detailConfig.infomation.id, |
| | | common_name: this.detailConfig.infomation.id, |
| | | sales_leads_name: this.detailConfig.infomation.name, |
| | | sales_leads_id: this.detailConfig.infomation.id, |
| | | }; |
| | | |
| | | }, |
| | | mounted() {}, |
| | | computed: {}, |
| | |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | getDeleteSalesLeads({ ids: this.selValueList }).then((response) => { |
| | | deletePurchase({ id: this.commonDetail.infomation.ID }).then((response) => { |
| | | if (response.code === 200) { |
| | | this.$message.success("删除成功"); |
| | | this.getData(); |
| | | this.detailConfig.visible=false; |
| | | this.$parent.getData(); |
| | | } else { |
| | | this.$message.warning("删除失败"); |
| | | } |
| | |
| | | }, |
| | | setData(item) { |
| | | if (item.FollowRecord && item.FollowRecord.length > 0) { |
| | | this.record = item.FollowRecord[0].record; |
| | | console.log(item.FollowRecord[0].follow_time); |
| | | let follow_time = item.FollowRecord[0].follow_time; |
| | | this.newContactDays = follow_time.substring(0, 10); |
| | | this.noContactDays = this.getDiffDay(Date.now(), this.newContactDays); |
| | | } |
| | | this.record =item.record?item.record:'' |
| | | this.formInfoList = [ |
| | | { |
| | | str: "供应商名称", |
| | | value: "", |
| | | value: item.name, |
| | | }, |
| | | { |
| | | str: "合计", |
| | |
| | | }, |
| | | { |
| | | str: "签约日期", |
| | | value: "", |
| | | value:item.signingDate, |
| | | }, |
| | | { |
| | | str: "采购负责人", |
| | |
| | | }, |
| | | { |
| | | leftStr: "采购联系人", |
| | | leftValue: item.contact_phone, |
| | | leftValue: item.contact, |
| | | rightStr: "联系电话", |
| | | rightValue: "18513375588", |
| | | rightValue: item.phone, |
| | | }, |
| | | { |
| | | leftStr: "签约日期", |
| | | leftValue: item.sales_resources, |
| | | leftValue: item.signingDate, |
| | | rightStr: "交付日期", |
| | | rightValue: item.member_name, |
| | | rightValue: item.deliveryDate, |
| | | }, |
| | | { |
| | | leftStr: "到货仓库", |
| | |
| | | }, |
| | | ]; |
| | | this.tableList = { |
| | | tableInfomation: [ |
| | | { |
| | | number:1, |
| | | total:1, |
| | | } |
| | | ], |
| | | tableInfomation: item.productList?item.productList:[], |
| | | selectIndex: true, |
| | | tableColumn: [ |
| | | { label: "产品名称", prop: "number", min: 190, isCommonClick: true }, |
| | | { label: "产品编码", prop: "total", min: 130, isCommonClick: true }, |
| | | { label: "计量单位", prop: "contact_name", min: 130 }, |
| | | { label: "规格型号", prop: "contact_phone", min: 130 }, |
| | | { label: "数量", prop: "contact_phone", min: 130 }, |
| | | { label: "销售单价", prop: "sales_resources", min: 130 }, |
| | | { label: "价税合计", prop: "province", min: 130 }, |
| | | { label: "描述", prop: "province", min: 130 }, |
| | | { label: "产品名称", prop: "name", min: 190, isCommonClick: true }, |
| | | { label: "产品编码", prop: "number", min: 130, isCommonClick: true }, |
| | | { 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 }, |
| | | ], |
| | | }; |
| | | }, |