haoxuan
2023-12-20 caf1f99e718ca2ac07fa64e7a71a6d7fa88b8989
src/views/sales/quotation/AddQuotationDialog.vue
@@ -237,13 +237,13 @@
          <!-- 产品管理 -->
          <div class="basic-info-title" style="display: flex">
            产品管理
            <div style="margin-left: 400px">
            <!-- <div style="margin-left: 400px">
              币种
              <el-select v-model="editConfig.infomation.currency" placeholder="请选择" size="mini" style="width: 63%">
                <el-option v-for="item in currencyOptions" :key="item.id" :label="item.name" :value="item.id">
                </el-option>
              </el-select>
            </div>
            </div> -->
          </div>
          <div class="product-view">
            <CommonFormTableView
@@ -436,15 +436,17 @@
      getAllData()
        .then((res) => {
          this.memberOptions = res.data.member
          this.quotationStatusOptions = res.data.quotationStatus?res.data.quotationStatus:[]
          if (this.editConfig.title === "新建") {
            let username = document.cookie.replace(/(?:(?:^|.*;\s*)username\s*=\s*([^;]*).*$)|^.*$/, "$1")
            this.memberOptions.map((item) => {
              if (item.username == username) {
                this.editConfig.infomation.member_id = item.id
                this.$set(this.editConfig.infomation, "member_id", item.id)
              }
            })
            this.$set(this.editConfig.infomation,'quotation_status_id',this.quotationStatusOptions.length>0?this.quotationStatusOptions[0].id:'')
          }
          this.quotationStatusOptions = res.data.quotationStatus
          this.dataProcess()
        })
        .catch((err) => {
@@ -696,7 +698,7 @@
      if (this.editConfig.infomation?.member_id > 0) {
        callback()
      } else {
        callback(new Error("请输入销售负责人"))
        callback(new Error("请选择销售负责人"))
      }
    }
  }