| | |
| | | productId: 1, |
| | | isNoProduct: true, |
| | | supplierId: this.addCommonConfig.infomation.supplierId, |
| | | detailEnter: true |
| | | detailEnter: true, |
| | | deliveryTime: this.addCommonConfig.infomation.deliveryTime, // 供货时长 |
| | | shippingDuration: this.addCommonConfig.infomation.shippingDuration, // 物流时长 |
| | | purchasePrice: this.addCommonConfig.infomation.purchasePrice // 采购价格 |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | saveParams() { |
| | | let data = this.editConfig.infomation |
| | | let params = { |
| | | deliveryTime: data.deliveryTime || 0, |
| | | deliveryTime: this.deliveryTime || 0, |
| | | id: data.ID || 0, |
| | | maximumStock: data.maximumStock || 0, |
| | | minimumStock: data.minimumStock || 0, |
| | |
| | | name: data.name || "", |
| | | number: data.number || "", |
| | | productType: data.productType || "", |
| | | purchasePrice: data.purchasePrice || 0, |
| | | purchasePrice: this.purchasePrice || 0, |
| | | remark: data.remark || "", |
| | | shippingDuration: data.shippingDuration || 0, |
| | | shippingDuration: this.shippingDuration || 0, |
| | | specifications: data.specifications || "", |
| | | supplierId: this.supplierId || 0, |
| | | unit: data.unit || "" |
| | |
| | | // 产品列表输入 |
| | | inputContent(val, prop, row) { |
| | | this.productId = row.productId |
| | | this.deliveryTime = row.deliveryTime |
| | | this.shippingDuration = row.shippingDuration |
| | | this.purchasePrice = row.purchasePrice |
| | | this.tableData.map((item) => { |
| | | if (item.productId === row.productId) { |
| | | item[prop] = val |
| | | item.supplierId = this.supplierId |
| | | item.deliveryTime = this.deliveryTime |
| | | item.shippingDuration = this.shippingDuration |
| | | item.purchasePrice = this.purchasePrice |
| | | } |
| | | }) |
| | | }, |
| | |
| | | desc: "", |
| | | name: "", |
| | | number: "", |
| | | price: 0, |
| | | purchasePrice: 0, |
| | | total: 0, |
| | | deliveryTime: 0, |
| | | shippingDuration: 0, |
| | | supplierId: this.supplierId |
| | | }) |
| | | }, |
| | |
| | | desc: "", |
| | | name: "", |
| | | number: "", |
| | | price: 0, |
| | | purchasePrice: 0, |
| | | total: 0, |
| | | deliveryTime: 0, |
| | | shippingDuration: 0, |
| | | supplierId: this.supplierId |
| | | } |
| | | ] |
| | |
| | | createContract, |
| | | updateSupplier, |
| | | getIndustryList, |
| | | getSupplierTypeList, |
| | | deleteContract |
| | | getSupplierTypeList |
| | | // previewContract |
| | | } from "@/api/supplierManage/supplier" |
| | | import EditDropdownDialog from "@/views/other/commonDialog/EditDropdownDialog" |
| | |
| | | }, |
| | | // 删除合同 |
| | | delContractClick() { |
| | | deleteContract({ |
| | | id: this.file_id |
| | | }).then((res) => { |
| | | console.log(res) |
| | | this.$message.success(res.msg) |
| | | this.file_id = 0 |
| | | }) |
| | | // deleteContract({ |
| | | // id: this.file_id |
| | | // }).then((res) => { |
| | | // console.log(res) |
| | | // this.$message.success(res.msg) |
| | | this.file_id = 0 |
| | | // }) |
| | | }, |
| | | // 预览合同 |
| | | async previewClick() { |
| | |
| | | { label: "联系人", prop: "contact", min: 130 }, |
| | | { label: "联系电话", prop: "phone", min: 130 }, |
| | | { label: "状态", prop: "status_name", min: 130 }, |
| | | { label: "创建时间", prop: "member_name", min: 130 } |
| | | { label: "创建时间", prop: "created_at", min: 130 } |
| | | ] |
| | | } |
| | | this.searchOptions = [] |
| | |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | console.log("dddd") |
| | | deleteProduct({ id: row.ID }).then((response) => { |
| | | if (response.code === 200) { |
| | | this.$message.success("删除成功") |