yangfeng
2023-08-25 f417dc0a44d225d4ed19bcb5207250eb1b669455
bug修复
1个文件已添加
26个文件已修改
658 ■■■■ 已修改文件
src/api/common/other.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/makepager/CommonFormTableView.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/makepager/PublicFunctionBtnView.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/client/client/AllocationDialog.vue 109 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/client/client/index.vue 69 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/client/contacts/AddContactsDialog.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/client/contacts/DetailContacts.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/client/followupRecords/AddFollowupRecordsDialog.vue 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/client/salesLead/AddSalesLeadDialog.vue 67 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/other/payment/collectionPlan/AddCollectionPlan.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/other/payment/receipt/addReceipt.vue 27 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/other/payment/saleInvoice/addSaleInvoice.vue 109 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/contractManage/AddContractManageDialog.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/generatePlan/AddGeneratePlanDialog.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/masterOrder/AddMasterOrderDialog.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/quotation/AddQuotationDialog.vue 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/refundForm/AddRefundFormDialog.vue 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/salesDetails/AddSalesDetailsDialog.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/salesDetails/DetailSpecification.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/salesOpportunity/AddSalesOpportunityDialog.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/salesReturn/AddSalesReturnDialog.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/subOrder/AddSubOrderDialog.vue 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/service/clientServiceOrder/AddCientServiceOrderDialog.vue 43 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/service/serviceContract/AddServiceContractDialog.vue 38 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/service/serviceContract/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/service/serviceFeeManage/AddServiceFeeManageDialog.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/service/serviceFollowup/AddServiceFollowupDialog.vue 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/common/other.js
@@ -61,3 +61,12 @@
    params: data
  })
}
// 分配
export function getAssign(data) {
  return request({
    url: "/api/assign/assign",
    method: "post",
    data
  })
}
src/components/makepager/CommonFormTableView.vue
@@ -63,7 +63,11 @@
                  <div class="common-select-btn" @click="selClientClick(scope.row, item.prop)">
                    <i class="el-icon-circle-plus-outline" title="选择"></i>
                  </div>
                  <div class="common-select-btn" @click="clearupClient(scope.row)">
                  <div
                    v-if="scope.row[item.prop] && scope.row[item.prop].length > 0"
                    class="common-select-btn"
                    @click="clearupClient(scope.row)"
                  >
                    <i class="el-icon-edit-outline" title="清除"></i>
                  </div>
                </div>
src/components/makepager/PublicFunctionBtnView.vue
@@ -79,7 +79,7 @@
    },
    allocation: {
      type: Boolean,
      default: true
      default: false
    },
    deleteButton: {
      type: Boolean,
src/views/client/client/AllocationDialog.vue
New file
@@ -0,0 +1,109 @@
<template>
  <div class="high-view-scope">
    <el-dialog title="分配" :visible.sync="editConfig.visible" :width="dialogWidth" :before-close="handleClose">
      <el-form
        ref="form"
        :model="editConfig.infomation"
        :rules="rules"
        label-position="right"
        label-width="130px"
        size="mini"
        style="height: 80px; margin-top: 40px; overflow-x: hidden"
      >
        <el-form-item label="销售负责人" prop="member_id">
          <el-select v-model="editConfig.infomation.member_id" placeholder="请选择" size="mini" style="width: 63%">
            <el-option v-for="item in memberOptions" :key="item.id" :label="item.username" :value="item.id">
            </el-option>
          </el-select>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" size="small" @click="sureClick">确认</el-button>
        <el-button size="small" @click="editConfig.visible = false">取消</el-button>
      </div>
    </el-dialog>
  </div>
</template>
<script>
import { getAllData } from "@/api/client/client"
import { getAssign } from "@/api/common/other"
export default {
  name: "AllocationDialog",
  props: {
    editCommonConfig: {
      type: Object,
      default: () => {
        return {
          visible: false,
          infomation: {}
        }
      }
    }
  },
  components: {},
  computed: {},
  watch: {},
  data() {
    return {
      dialogWidth: "25%",
      editConfig: this.editCommonConfig,
      memberOptions: [],
      rules: {
        member_id: [{ required: true, message: "请选择销售负责人", trigger: "change" }]
      }
    }
  },
  created() {
    this.getCommonData()
  },
  methods: {
    getCommonData() {
      getAllData().then((res) => {
        this.memberOptions = res.data.member
      })
    },
    handleClose() {
      this.editConfig.visible = false
    },
    // 确认
    async sureClick() {
      await getAssign({
        ids: [this.editConfig.infomation.id],
        member_id: this.editConfig.infomation.member_id,
        type: "client"
      }).then((res) => {
        this.editConfig.visible = false
        if (res.code === 200) {
          this.$message.success("添加成功")
          this.$parent.getData()
        }
      })
    }
  }
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
.high-view-scope {
  // .view-sel-bg {
  //   display: flex;
  //   align-items: center;
  //   margin: 20px 20px 0;
  //   .el-input {
  //     width: 240px;
  //     margin-left: 5px;
  //   }
  //   .el-checkbox {
  //     margin-left: 5px;
  //     margin-right: 0;
  //   }
  // }
  .dialog-footer {
    background-color: #f5f5f5;
    height: 55px;
    line-height: 55px;
  }
}
</style>
src/views/client/client/index.vue
@@ -45,7 +45,10 @@
      <template slot="tableButton">
        <el-table-column label="操作" width="150">
          <template slot-scope="scope">
            <el-button type="text" size="small" disabled>变更公海</el-button>
            <el-button v-if="activeName === 'first'" type="text" size="small" @click="allocationBtnClick(scope.row)"
              >分配</el-button
            >
            <el-button v-else type="text" size="small" @click="changeHighSeasClick(scope.row)">变更公海</el-button>
            <el-button @click="handleClick(scope.row)" type="text" size="small">编辑</el-button>
            <el-button @click="followupClick(scope.row)" type="text" size="small">跟进</el-button>
            <!-- <el-button @click="delClick(scope.row.id)" type="text" size="small">删除</el-button> -->
@@ -61,6 +64,8 @@
    <DetailContacts v-if="contactsDeail.visible" :contacts-detail="contactsDeail" />
    <!-- 新建/编辑跟进记录 -->
    <AddFollowupRecordsDialog v-if="editFollowupConfig.visible" :edit-contacts-config="editFollowupConfig" />
    <!-- 分配 -->
    <AllocationDialog v-if="allocationConfig.visible" :edit-common-config="allocationConfig" />
  </div>
</template>
@@ -69,6 +74,8 @@
import { getClientList, getDeleteClient } from "@/api/client/client"
import pageMixin from "@/components/makepager/pager/mixin/pageMixin"
import AddFollowupRecordsDialog from "@/views/client/followupRecords/AddFollowupRecordsDialog"
import AllocationDialog from "@/views/client/client/AllocationDialog"
import { getAssign } from "@/api/common/other"
export default {
  name: "CustomManage",
@@ -78,7 +85,8 @@
    AddClientManageDialog,
    DetailContacts: () => import("@/views/client/contacts/DetailContacts"),
    DetailClientManage: () => import("@/views/client/client/DetailClientManage"),
    AddFollowupRecordsDialog
    AddFollowupRecordsDialog,
    AllocationDialog
  },
  computed: {},
  data() {
@@ -126,11 +134,19 @@
        visible: false,
        title: "新建",
        infomation: {}
      }
      },
      allocationConfig: {
        visible: false,
        infomation: {}
      },
      not_admin: 2
    }
  },
  created() {
    this.setTable()
    this.search_map = {
      not_admin: this.not_admin
    }
    this.getData()
  },
  methods: {
@@ -186,7 +202,6 @@
                    }
                  }
                }
                console.log(contact_wechat, contact_email)
                return {
                  ...item,
                  contact_name: contact_name,
@@ -216,26 +231,44 @@
          this.loading = false
        })
    },
    tabsClick(tab, event) {
      console.log(tab, event)
    tabsClick(tab) {
      console.log(tab.name)
      if (tab.name === "first") {
        this.not_admin = 2
      } else {
        this.not_admin = 1
      }
      this.resetClick()
    },
    // 搜索
    searchClick(val, content) {
      console.log(val, content)
      this.search_map = {
        not_admin: this.not_admin,
        [val.value]: content
      }
      this.getData()
    },
    resetClick() {
      this.search_map = {}
      this.search_map = {
        not_admin: this.not_admin
      }
      this.getData()
    },
    // 新建
    addBtnClick() {
      this.editConfig.visible = true
      this.editConfig.title = "新建"
      this.editConfig.infomation = { city_id: 0 }
      this.editConfig.infomation = {
        city_id: 0,
        client_type_id: 1,
        client_origin_id: 1,
        client_level_id: 1,
        registered_capital_id: 1,
        enterprise_nature_id: 1,
        enterprise_scale_id: 1,
        industry_id: 1
      }
    },
    // 编辑
    handleClick(row) {
@@ -311,6 +344,26 @@
        number: "",
        next_follow_time: row.next_visit_time
      }
    },
    // 分配
    allocationBtnClick(row) {
      console.log(row)
      this.allocationConfig.visible = true
      this.allocationConfig.infomation = { member_id: row.member_id, id: row.id }
    },
    // 变更公海
    async changeHighSeasClick(row) {
      await getAssign({
        ids: [row.id],
        member_id: 1,
        type: "client"
      }).then((res) => {
        this.editConfig.visible = false
        if (res.code === 200) {
          this.$message.success("变更成功")
          this.getData()
        }
      })
    }
  }
}
src/views/client/contacts/AddContactsDialog.vue
@@ -45,7 +45,11 @@
                    <div class="common-select-btn" @click="selClientClick">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient">
                    <div
                      v-if="editConfig.infomation.client_name && editConfig.infomation.client_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
@@ -424,6 +428,7 @@
      }
    },
    handleSelectClient(item) {
      this.editConfig.infomation.client_name = item.name
      this.clientId = item.id
    },
    selClientClick() {
@@ -436,8 +441,12 @@
    },
    // 清除已选择用户
    clearupClient() {
      console.log("sssssssss")
      console.log(this.editConfig.infomation.client_name)
      // if (this.editConfig.infomation.client_name !== "") {
      this.editConfig.infomation.client_name = ""
      this.clientId = 0
      // }
    },
    // 添加附件
    addAnnexClick() {},
src/views/client/contacts/DetailContacts.vue
@@ -22,7 +22,7 @@
                <div>跟进记录<el-badge type="primary" :value="2"> </el-badge></div>
              </template> -->
            </el-tab-pane>
            <el-tab-pane label="销售明细单" name="detail"></el-tab-pane>
            <!-- <el-tab-pane label="销售明细单" name="detail"></el-tab-pane> -->
            <el-tab-pane label="服务合同" name="serviceContract"></el-tab-pane>
          </el-tabs>
        </div>
src/views/client/followupRecords/AddFollowupRecordsDialog.vue
@@ -38,7 +38,11 @@
                    <div class="common-select-btn" @click="selClientClick('client')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('client')">
                    <div
                      v-if="editConfig.infomation.client_name && editConfig.infomation.client_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('client')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
@@ -81,7 +85,11 @@
                    <div class="common-select-btn" @click="selClientClick('contact')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('contact')">
                    <div
                      v-if="editConfig.infomation.contact_name && editConfig.infomation.contact_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('contact')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
@@ -139,7 +147,11 @@
                    <div class="common-select-btn" @click="selClientClick('chance')">
                      <i class="el-icon-circle-plus-outline"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('chance')">
                    <div
                      v-if="editConfig.infomation.sale_chance_name && editConfig.infomation.sale_chance_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('chance')"
                    >
                      <i class="el-icon-edit-outline"></i>
                    </div>
                  </div>
@@ -162,7 +174,11 @@
                    <div class="common-select-btn" @click="selClientClick('lead')">
                      <i class="el-icon-circle-plus-outline"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('lead')">
                    <div
                      v-if="editConfig.infomation.sales_leads_name && editConfig.infomation.sales_leads_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('lead')"
                    >
                      <i class="el-icon-edit-outline"></i>
                    </div>
                  </div>
src/views/client/salesLead/AddSalesLeadDialog.vue
@@ -30,8 +30,8 @@
                  <el-input v-model="editConfig.infomation.number"></el-input>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <!-- </el-row>
            <el-row> -->
              <el-col :span="12">
                <el-form-item label="联系人姓名" prop="contact_name">
                  <el-input v-model="editConfig.infomation.contact_name"></el-input>
@@ -42,8 +42,8 @@
                  <el-input v-model="editConfig.infomation.contact_position"></el-input>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <!-- </el-row>
            <el-row> -->
              <el-col :span="12">
                <el-form-item label="手机号码" prop="contact_phone">
                  <el-input
@@ -179,19 +179,19 @@
                  </div>
                </el-form-item>
              </el-col> -->
            </el-row>
            <!-- <el-row>
              <!-- </el-row> -->
              <!-- <el-row> -->
              <el-col :span="24">
                <el-form-item label="地址" prop="address">
                <el-form-item label="详细地址" prop="detail_address">
                  <el-input
                    type="textarea"
                    :autosize="{ minRows: 2, maxRows: 4 }"
                    placeholder="请输入内容"
                    v-model="editConfig.infomation.address"
                    v-model="editConfig.infomation.detail_address"
                  ></el-input>
                </el-form-item>
              </el-col>
            </el-row> -->
            </el-row>
          </div>
          <!-- 备注信息 -->
          <div v-if="isUnflod" class="basic-info-title">备注信息</div>
@@ -331,41 +331,28 @@
            number: this.editConfig.infomation.number || "",
            province_id: this.editConfig.infomation.province_id || 0,
            region_id: this.editConfig.infomation.region_id || 0,
            sales_sources_id: this.editConfig.infomation.sales_sources_id || 0
            sales_sources_id: this.editConfig.infomation.sales_sources_id || 0,
            detail_address: this.editConfig.infomation.detail_address || ""
          }
          console.log(params)
          if (this.editConfig.title === "新建") {
            getAddSalesLeads(params)
              .then((res) => {
                console.log(res)
                this.editConfig.visible = false
                if (res.code === 200) {
                  this.$message({
                    message: "添加成功",
                    type: "success"
                  })
                  this.$parent.getData()
                }
              })
              .catch((err) => {
                console.log(err)
              })
            getAddSalesLeads(params).then((res) => {
              console.log(res)
              this.editConfig.visible = false
              if (res.code === 200) {
                this.$message.success("添加成功")
                this.$parent.getData()
              }
            })
          } else {
            getUpdateSalesLeads(params)
              .then((res) => {
                console.log(res)
                this.editConfig.visible = false
                if (res.code === 200) {
                  this.$message({
                    message: "编辑成功",
                    type: "success"
                  })
                  this.$parent.getData()
                }
              })
              .catch((err) => {
                console.log(err)
              })
            getUpdateSalesLeads(params).then((res) => {
              console.log(res)
              this.editConfig.visible = false
              if (res.code === 200) {
                this.$message.success("编辑成功")
                this.$parent.getData()
              }
            })
          }
        } else {
          console.log("error submit")
src/views/other/payment/collectionPlan/AddCollectionPlan.vue
@@ -32,7 +32,7 @@
          <div>{{ editConfig.infomation.amountTotal }}</div>
        </div>
        <div class="collection-view">
          <div class="label">收款计划负责人</div>
          <div class="label"><span style="color: #f56c6c">*</span>收款计划负责人</div>
          <el-select
            v-model="editConfig.infomation.principalId"
            placeholder="请选择"
src/views/other/payment/receipt/addReceipt.vue
@@ -39,7 +39,11 @@
                    <div class="common-select-btn" @click="selClientClick('client')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('client')">
                    <div
                      v-if="editConfig.infomation.client_name && editConfig.infomation.client_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('client')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
@@ -67,7 +71,14 @@
                    <div class="common-select-btn" @click="selClientClick('serviceContract')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('serviceContract')">
                    <div
                      v-if="
                        editConfig.infomation.serviceContract_Number &&
                        editConfig.infomation.serviceContract_Number.length > 0
                      "
                      class="common-select-btn"
                      @click="clearupClient('serviceContract')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
@@ -89,7 +100,11 @@
                    <div class="common-select-btn" @click="selClientClick('contract')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('contract')">
                    <div
                      v-if="editConfig.infomation.number && editConfig.infomation.number.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('contract')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
@@ -500,9 +515,9 @@
      }
    },
    selClient(row, value) {
      if (value === "contact") {
        this.editConfig.infomation.contact_name = row.name
        this.contactId = row.id
      if (value === "client") {
        this.editConfig.infomation.client_name = row.name
        this.clientId = row.id
      } else if (value === "serviceContract") {
        this.editConfig.infomation.serviceContract_Number = row.number
        this.serviceContractId = row.id
src/views/other/payment/saleInvoice/addSaleInvoice.vue
@@ -49,7 +49,11 @@
                    <div class="common-select-btn" @click="selClientClick('client')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('client')">
                    <div
                      v-if="editConfig.infomation.client_name && editConfig.infomation.client_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('client')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
@@ -121,7 +125,14 @@
                    <div class="common-select-btn" @click="selClientClick('serviceContract')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('serviceContract')">
                    <div
                      v-if="
                        editConfig.infomation.serviceContract_Number &&
                        editConfig.infomation.serviceContract_Number.length > 0
                      "
                      class="common-select-btn"
                      @click="clearupClient('serviceContract')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
@@ -143,7 +154,11 @@
                    <div class="common-select-btn" @click="selClientClick('contract')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('contract')">
                    <div
                      v-if="editConfig.infomation.number && editConfig.infomation.number.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('contract')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
@@ -558,8 +573,8 @@
      }
    },
    selClient(row, value) {
      if (value === "contact") {
        this.editConfig.infomation.contact_name = row.name
      if (value === "client") {
        this.editConfig.infomation.client_name = row.name
        this.contactId = row.id
      } else if (value === "serviceContract") {
        this.editConfig.infomation.serviceContract_Number = row.number
@@ -587,86 +602,84 @@
    // 设置允许上传文件格式
    setFormatClick() {},
    setTableForm() {
      if (this.editConfig.title === "新建") {
      if (this.editConfig.title === "新建" || this.editConfig.infomation.products.length === 0) {
        this.tableData = [
          {
            id: 1,
            Amount: 0,
            IsSale: true,
            MaterialMode: "",
            MinInventory: 0,
            Name: "",
            Number: "",
            PurchaseType: "",
            SalePrice: 0,
            Unit: ""
            productId: this.productId,
            id: 0,
            amount: 0,
            desc: "",
            name: "",
            number: "",
            price: 0,
            total: 0
          }
        ]
      } else {
        this.tableData = this.editConfig.infomation.products
        this.tableData.map((item, index) => {
          item.productId = index + 1
        })
      }
      this.productTableList = {
        tableData: this.tableData,
        tableColumn: [
          { label: "#", prop: "id", width: 40 },
          { label: "产品名称", prop: "Name", input: true, isRequird: true },
          { label: "产品编号", prop: "Number" },
          { label: "数量", prop: "Amount", input: true, isRequird: true },
          { label: "销售单价", prop: "Unit", input: true },
          { label: "价税合计", prop: "total", input: true },
          { label: "描述", prop: "other8" }
          { label: "#", prop: "productId", width: 40 },
          { label: "产品名称", prop: "name", productName: true, isRequird: true },
          { label: "产品编号", prop: "number" },
          { label: "数量", prop: "amount", inputNumber: true, isRequird: true },
          { label: "销售单价", prop: "price", inputFloat: true },
          { label: "价税合计", prop: "total", inputFloat: true }
        ]
      }
    },
    // 产品列表输入
    inputContent(val, prop, row) {
      console.log("aaaaaaaa")
      console.log(val, prop)
      this.productId = row.id
      this.productId = row.productId
      this.tableData.map((item) => {
        if (item.id === row.id) {
        if (item.productId === row.productId) {
          item[prop] = val
        }
      })
      console.log(this.tableData)
    },
    // 产品新增
    addProductClick() {
      this.productId++
      this.tableData.push({
        id: this.productId,
        Amount: 0,
        IsSale: true,
        MaterialMode: "",
        MinInventory: 0,
        Name: "",
        Number: "",
        PurchaseType: "",
        SalePrice: 0,
        Unit: ""
        productId: this.productId,
        id: 0,
        amount: 0,
        desc: "",
        name: "",
        number: "",
        price: 0,
        total: 0
      })
      this.showSummary.show = true
    },
    //  产品清空
    emptyProductClick() {
      this.productId = 1
      this.tableData = [
        {
          productId: this.productId,
          id: 0,
          Amount: 0,
          IsSale: true,
          MaterialMode: "",
          MinInventory: 0,
          Name: "",
          Number: "",
          PurchaseType: "",
          SalePrice: 0,
          Unit: ""
          amount: 0,
          desc: "",
          name: "",
          number: "",
          price: 0,
          total: 0
        }
      ]
      this.productTableList.tableData = this.tableData
    },
    // 产品重算
    recalculateProductClick() {}
    recalculateProductClick() {},
    clearupProduct(data) {
      this.tableData = data
      this.productTableList.tableData = this.tableData
    }
  }
}
</script>
src/views/sales/contractManage/AddContractManageDialog.vue
@@ -36,7 +36,11 @@
                    <div class="common-select-btn" @click="selClientClick('client')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('client')">
                    <div
                      v-if="editConfig.infomation.client_name && editConfig.infomation.client_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('client')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
@@ -92,7 +96,11 @@
                    <div class="common-select-btn" @click="selClientClick('quotation')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('quotation')">
                    <div
                      v-if="editConfig.infomation.quotation_number && editConfig.infomation.quotation_number.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('quotation')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
src/views/sales/generatePlan/AddGeneratePlanDialog.vue
@@ -32,7 +32,11 @@
                    <div class="common-select-btn" @click="selClientClick">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient">
                    <div
                      v-if="editConfig.infomation.client_name && editConfig.infomation.client_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
src/views/sales/masterOrder/AddMasterOrderDialog.vue
@@ -38,7 +38,11 @@
                    <div class="common-select-btn" @click="selClientClick('client')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('client')">
                    <div
                      v-if="editConfig.infomation.client_name && editConfig.infomation.client_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('client')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
src/views/sales/quotation/AddQuotationDialog.vue
@@ -39,7 +39,11 @@
                    <div class="common-select-btn" @click="selClientClick('client')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('client')">
                    <div
                      v-if="editConfig.infomation.client_name && editConfig.infomation.client_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('client')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
@@ -99,7 +103,11 @@
                    <div class="common-select-btn" @click="selClientClick('contact')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('contact')">
                    <div
                      v-if="editConfig.infomation.contact_name && editConfig.infomation.contact_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('contact')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
@@ -134,7 +142,11 @@
                    <div class="common-select-btn" @click="selClientClick('chance')">
                      <i class="el-icon-circle-plus-outline"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('chance')">
                    <div
                      v-if="editConfig.infomation.sale_chance_name && editConfig.infomation.sale_chance_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('chance')"
                    >
                      <i class="el-icon-edit-outline"></i>
                    </div>
                  </div>
src/views/sales/refundForm/AddRefundFormDialog.vue
@@ -39,7 +39,11 @@
                    <div class="common-select-btn" @click="selClientClick('client')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('client')">
                    <div
                      v-if="editConfig.infomation.client_name && editConfig.infomation.client_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('client')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
@@ -66,7 +70,13 @@
                    <div class="common-select-btn" @click="selClientClick('salesReturn')">
                      <i class="el-icon-circle-plus-outline"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('salesReturn')">
                    <div
                      v-if="
                        editConfig.infomation.sale_return_nunber && editConfig.infomation.sale_return_nunber.length > 0
                      "
                      class="common-select-btn"
                      @click="clearupClient('salesReturn')"
                    >
                      <i class="el-icon-edit-outline"></i>
                    </div>
                  </div>
@@ -312,11 +322,11 @@
      dialogWidth: "80%",
      editConfig: this.editCommonConfig,
      rules: {
        client_name: [{ required: true, message: "请选择", trigger: "change" }],
        number: [{ required: true, message: "请输入", trigger: "blur" }],
        refundDate: [{ required: true, message: "请选择", trigger: "change" }],
        memberId: [{ required: true, message: "请选择", trigger: "change" }],
        sale_return_nunber: [{ required: true, message: "请选择", trigger: "change" }]
        client_name: [{ required: true, message: "请选择客户名称", trigger: "change" }],
        number: [{ required: true, message: "请输入退款单编号", trigger: "blur" }],
        refundDate: [{ required: true, message: "请选择退款日期", trigger: "change" }],
        memberId: [{ required: true, message: "请选择销售负责人", trigger: "change" }],
        sale_return_nunber: [{ required: true, message: "请选择销售退货单", trigger: "change" }]
      },
      memberOptions: [],
      // selSourceOrderOptions: [{ value: "1", label: "销售退货单" }], // 选择源单
src/views/sales/salesDetails/AddSalesDetailsDialog.vue
@@ -39,7 +39,11 @@
                    <div class="common-select-btn" @click="selClientClick('client')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('client')">
                    <div
                      v-if="editConfig.infomation.client_name && editConfig.infomation.client_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('client')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
@@ -66,7 +70,11 @@
                    <div class="common-select-btn" @click="selClientClick('chance')">
                      <i class="el-icon-circle-plus-outline"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('chance')">
                    <div
                      v-if="editConfig.infomation.sale_chance_name && editConfig.infomation.sale_chance_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('chance')"
                    >
                      <i class="el-icon-edit-outline"></i>
                    </div>
                  </div>
src/views/sales/salesDetails/DetailSpecification.vue
@@ -275,7 +275,8 @@
      client_name: this.detailConfig.infomation.client.name,
      contact_name: this.detailConfig.infomation.contact_name,
      client_id: this.detailConfig.infomation.client_id,
      contact_id: this.detailConfig.infomation.contact_id
      contact_id: this.detailConfig.infomation.contact_id,
      amountTotal: this.detailConfig.infomation.amountTotal
    }
    this.setTableForm()
  },
src/views/sales/salesOpportunity/AddSalesOpportunityDialog.vue
@@ -39,7 +39,11 @@
                    <div class="common-select-btn" @click="selClientClick('client')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('client')">
                    <div
                      v-if="editConfig.infomation.client_name && editConfig.infomation.client_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('client')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
@@ -75,7 +79,11 @@
                    <div class="common-select-btn" @click="selClientClick('contact')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('contact')">
                    <div
                      v-if="editConfig.infomation.contact_name && editConfig.infomation.contact_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('contact')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
src/views/sales/salesReturn/AddSalesReturnDialog.vue
@@ -35,7 +35,11 @@
                    <div class="common-select-btn" @click="selClientClick">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient">
                    <div
                      v-if="editConfig.infomation.client_name && editConfig.infomation.client_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
src/views/sales/subOrder/AddSubOrderDialog.vue
@@ -38,7 +38,11 @@
                    <div class="common-select-btn" @click="selClientClick('client')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('client')">
                    <div
                      v-if="editConfig.infomation.client_name && editConfig.infomation.client_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('client')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
@@ -65,7 +69,14 @@
                    <div class="common-select-btn" @click="selClientClick('master')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('master')">
                    <div
                      v-if="
                        editConfig.infomation.master_order_number &&
                        editConfig.infomation.master_order_number.length > 0
                      "
                      class="common-select-btn"
                      @click="clearupClient('master')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
src/views/service/clientServiceOrder/AddCientServiceOrderDialog.vue
@@ -39,7 +39,11 @@
                    <div class="common-select-btn" @click="selClientClick('client')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('client')">
                    <div
                      v-if="editConfig.infomation.client_name && editConfig.infomation.client_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('client')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
@@ -66,7 +70,14 @@
                    <div class="common-select-btn" @click="selClientClick('serviceContract')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('serviceContract')">
                    <div
                      v-if="
                        editConfig.infomation.serviceContract_Number &&
                        editConfig.infomation.serviceContract_Number.length > 0
                      "
                      class="common-select-btn"
                      @click="clearupClient('serviceContract')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
@@ -110,7 +121,11 @@
                    <div class="common-select-btn" @click="selClientClick('contract')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('contract')">
                    <div
                      v-if="editConfig.infomation.number && editConfig.infomation.number.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('contract')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
@@ -153,7 +168,11 @@
                    <div class="common-select-btn" @click="selClientClick('productName')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('productName')">
                    <div
                      v-if="editConfig.infomation.product_name && editConfig.infomation.product_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('productName')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
@@ -196,7 +215,7 @@
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="联系人姓名" prop="client_name">
                <el-form-item label="联系人姓名" prop="contact_name">
                  <div class="custom-name">
                    <el-autocomplete
                      v-model="editConfig.infomation.contact_name"
@@ -211,7 +230,11 @@
                    <div class="common-select-btn" @click="selClientClick('contact')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('contact')">
                    <div
                      v-if="editConfig.infomation.contact_name && editConfig.infomation.contact_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('contact')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
@@ -275,7 +298,7 @@
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="销售机会" prop="client_name">
                <el-form-item label="销售机会" prop="sale_chance_name">
                  <div class="custom-name">
                    <el-autocomplete
                      v-model="editConfig.infomation.sale_chance_name"
@@ -290,7 +313,11 @@
                    <div class="common-select-btn" @click="selClientClick('chance')">
                      <i class="el-icon-circle-plus-outline"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('chance')">
                    <div
                      v-if="editConfig.infomation.sale_chance_name && editConfig.infomation.sale_chance_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('chance')"
                    >
                      <i class="el-icon-edit-outline"></i>
                    </div>
                  </div>
src/views/service/serviceContract/AddServiceContractDialog.vue
@@ -39,7 +39,11 @@
                    <div class="common-select-btn" @click="selClientClick('client')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('client')">
                    <div
                      v-if="editConfig.infomation.client_name && editConfig.infomation.client_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('client')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
@@ -64,7 +68,7 @@
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="联系人姓名" prop="contactId">
                <el-form-item label="联系人姓名" prop="contact_name">
                  <div class="custom-name">
                    <el-autocomplete
                      v-model="editConfig.infomation.contact_name"
@@ -79,14 +83,18 @@
                    <div class="common-select-btn" @click="selClientClick('contact')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('contact')">
                    <div
                      v-if="editConfig.infomation.contact_name && editConfig.infomation.contact_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('contact')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="销售机会" prop="saleChanceId">
                <el-form-item label="销售机会" prop="sale_chance_name">
                  <div class="custom-name">
                    <el-autocomplete
                      v-model="editConfig.infomation.sale_chance_name"
@@ -101,14 +109,18 @@
                    <div class="common-select-btn" @click="selClientClick('chance')">
                      <i class="el-icon-circle-plus-outline"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('chance')">
                    <div
                      v-if="editConfig.infomation.sale_chance_name && editConfig.infomation.sale_chance_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('chance')"
                    >
                      <i class="el-icon-edit-outline"></i>
                    </div>
                  </div>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="合同订单" prop="contractId">
                <el-form-item label="合同订单" prop="contract_number">
                  <div class="custom-name">
                    <el-autocomplete
                      v-model="editConfig.infomation.contract_number"
@@ -123,14 +135,18 @@
                    <div class="common-select-btn" @click="selClientClick('contract')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('contract')">
                    <div
                      v-if="editConfig.infomation.contract_number && editConfig.infomation.contract_number.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('contract')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="报价单" prop="quotationId">
                <el-form-item label="报价单" prop="quotation_number">
                  <div class="custom-name">
                    <el-autocomplete
                      v-model="editConfig.infomation.quotation_number"
@@ -145,7 +161,11 @@
                    <div class="common-select-btn" @click="selClientClick('quotation')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('quotation')">
                    <div
                      v-if="editConfig.infomation.quotation_number && editConfig.infomation.quotation_number.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('quotation')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
src/views/service/serviceContract/index.vue
@@ -141,7 +141,7 @@
          { label: "合同类型", prop: "serviceContractType" }, // 合同类型
          { label: "合同状态", prop: "serviceContractStatus" }, // 合同状态
          { label: "负责人", prop: "member_name" }, // 负责人
          { label: "产品名称", prop: "productName" }, // 产品名称
          { label: "产品名称", prop: "productName", isProductName: true }, // 产品名称
          { label: "服务开始日", prop: "startTime" }, // 服务开始日
          { label: "服务到期日", prop: "endTime" }, // 服务到期日
          { label: "价税合计", prop: "amountTotal" } // 价税合计
src/views/service/serviceFeeManage/AddServiceFeeManageDialog.vue
@@ -33,7 +33,11 @@
                    <div class="common-select-btn" @click="selClientClick">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient">
                    <div
                      v-if="editConfig.infomation.client_name && editConfig.infomation.client_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
src/views/service/serviceFollowup/AddServiceFollowupDialog.vue
@@ -39,7 +39,11 @@
                    <div class="common-select-btn" @click="selClientClick('client')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('client')">
                    <div
                      v-if="editConfig.infomation.client_name && editConfig.infomation.client_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('client')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
@@ -66,7 +70,11 @@
                    <div class="common-select-btn" @click="selClientClick('contact')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('contact')">
                    <div
                      v-if="editConfig.infomation.contact_name && editConfig.infomation.contact_name.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('contact')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>
@@ -88,7 +96,11 @@
                    <div class="common-select-btn" @click="selClientClick('customService')">
                      <i class="el-icon-circle-plus-outline" title="选择"></i>
                    </div>
                    <div class="common-select-btn" @click="clearupClient('customService')">
                    <div
                      v-if="editConfig.infomation.service_number && editConfig.infomation.service_number.length > 0"
                      class="common-select-btn"
                      @click="clearupClient('customService')"
                    >
                      <i class="el-icon-edit-outline" title="清除"></i>
                    </div>
                  </div>