zuozhengqing
2023-11-16 519fd6dc67a4db8fdba7e63b61fc6cc0e28f04c1
src/views/supplierManage/supplier/AddSupplier.vue
@@ -14,7 +14,7 @@
        :model="editConfig.infomation"
        :rules="rules"
        label-position="right"
        label-width="308px"
        label-width="150px"
        size="mini"
      >
        <!-- 信息 -->
@@ -210,8 +210,7 @@
  createContract,
  updateSupplier,
  getIndustryList,
  getSupplierTypeList,
  deleteContract
  getSupplierTypeList
  // previewContract
} from "@/api/supplierManage/supplier"
import EditDropdownDialog from "@/views/other/commonDialog/EditDropdownDialog"
@@ -237,7 +236,7 @@
  computed: {},
  data() {
    return {
      dialogWidth: "80%",
      dialogWidth: "50%",
      editConfig: this.addCommonConfig,
      rules: {
        name: [{ required: true, message: "请输入", trigger: "blur" }],
@@ -300,7 +299,7 @@
        page: 1,
        pageSize: 100
      }).then((res) => {
        this.supplierTypeOptions = res.data.data.list
        this.supplierTypeOptions = res.data.list
      })
    },
    // 所属行业
@@ -309,7 +308,7 @@
        page: 1,
        pageSize: 100
      }).then((res) => {
        this.industryOptions = res.data.data.list
        this.industryOptions = res.data.list
      })
    },
    handleClose() {
@@ -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() {
@@ -494,11 +493,6 @@
      .file-content {
        display: flex;
      }
    }
    .dialog-footer {
      background-color: #f5f5f5;
      height: 55px;
      line-height: 55px;
    }
  }
}