yangfeng
2023-08-30 38b5988fc107d74b4f3183734daa41dd08239b1a
供应商附件删除和创建时间及产品供货时长等字段联调
3个文件已修改
45 ■■■■■ 已修改文件
src/views/supplierManage/supplier/AddNewProduct.vue 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/supplierManage/supplier/AddSupplier.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/supplierManage/supplier/index.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/supplierManage/supplier/AddNewProduct.vue
@@ -60,7 +60,10 @@
      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() {
@@ -114,7 +117,7 @@
    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,
@@ -122,9 +125,9 @@
        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 || ""
@@ -167,10 +170,16 @@
    // 产品列表输入
    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
        }
      })
    },
@@ -184,8 +193,10 @@
        desc: "",
        name: "",
        number: "",
        price: 0,
        purchasePrice: 0,
        total: 0,
        deliveryTime: 0,
        shippingDuration: 0,
        supplierId: this.supplierId
      })
    },
@@ -200,8 +211,10 @@
          desc: "",
          name: "",
          number: "",
          price: 0,
          purchasePrice: 0,
          total: 0,
          deliveryTime: 0,
          shippingDuration: 0,
          supplierId: this.supplierId
        }
      ]
src/views/supplierManage/supplier/AddSupplier.vue
@@ -210,8 +210,7 @@
  createContract,
  updateSupplier,
  getIndustryList,
  getSupplierTypeList,
  deleteContract
  getSupplierTypeList
  // previewContract
} from "@/api/supplierManage/supplier"
import EditDropdownDialog from "@/views/other/commonDialog/EditDropdownDialog"
@@ -424,13 +423,13 @@
    },
    // 删除合同
    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() {
src/views/supplierManage/supplier/index.vue
@@ -178,7 +178,7 @@
          { 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 = []
@@ -330,7 +330,6 @@
        type: "warning"
      })
        .then(() => {
          console.log("dddd")
          deleteProduct({ id: row.ID }).then((response) => {
            if (response.code === 200) {
              this.$message.success("删除成功")