From f417dc0a44d225d4ed19bcb5207250eb1b669455 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期五, 25 八月 2023 12:45:09 +0800
Subject: [PATCH] bug修复
---
src/views/other/payment/receipt/addReceipt.vue | 27 +
src/views/sales/generatePlan/AddGeneratePlanDialog.vue | 6
src/views/service/serviceFollowup/AddServiceFollowupDialog.vue | 18 +
src/views/client/followupRecords/AddFollowupRecordsDialog.vue | 24 +
src/views/sales/salesDetails/AddSalesDetailsDialog.vue | 12
src/views/service/clientServiceOrder/AddCientServiceOrderDialog.vue | 43 +++
src/views/sales/salesDetails/DetailSpecification.vue | 3
src/api/common/other.js | 9
src/views/other/payment/collectionPlan/AddCollectionPlan.vue | 2
src/views/client/contacts/DetailContacts.vue | 2
src/views/service/serviceContract/index.vue | 2
src/views/service/serviceFeeManage/AddServiceFeeManageDialog.vue | 6
src/views/service/serviceContract/AddServiceContractDialog.vue | 38 ++
src/views/client/client/index.vue | 69 +++++
src/views/client/contacts/AddContactsDialog.vue | 11
src/components/makepager/PublicFunctionBtnView.vue | 2
src/components/makepager/CommonFormTableView.vue | 6
src/views/client/salesLead/AddSalesLeadDialog.vue | 67 ++---
src/views/sales/masterOrder/AddMasterOrderDialog.vue | 6
src/views/sales/salesReturn/AddSalesReturnDialog.vue | 6
src/views/sales/refundForm/AddRefundFormDialog.vue | 24 +
src/views/sales/salesOpportunity/AddSalesOpportunityDialog.vue | 12
src/views/other/payment/saleInvoice/addSaleInvoice.vue | 109 +++++----
src/views/client/client/AllocationDialog.vue | 109 +++++++++
src/views/sales/quotation/AddQuotationDialog.vue | 18 +
src/views/sales/subOrder/AddSubOrderDialog.vue | 15 +
src/views/sales/contractManage/AddContractManageDialog.vue | 12
27 files changed, 503 insertions(+), 155 deletions(-)
diff --git a/src/api/common/other.js b/src/api/common/other.js
index 9c1eda8..a909ab6 100644
--- a/src/api/common/other.js
+++ b/src/api/common/other.js
@@ -61,3 +61,12 @@
params: data
})
}
+
+// 鍒嗛厤
+export function getAssign(data) {
+ return request({
+ url: "/api/assign/assign",
+ method: "post",
+ data
+ })
+}
diff --git a/src/components/makepager/CommonFormTableView.vue b/src/components/makepager/CommonFormTableView.vue
index 398ad6c..c421ddc 100644
--- a/src/components/makepager/CommonFormTableView.vue
+++ b/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>
diff --git a/src/components/makepager/PublicFunctionBtnView.vue b/src/components/makepager/PublicFunctionBtnView.vue
index 3036c9e..34493b6 100644
--- a/src/components/makepager/PublicFunctionBtnView.vue
+++ b/src/components/makepager/PublicFunctionBtnView.vue
@@ -79,7 +79,7 @@
},
allocation: {
type: Boolean,
- default: true
+ default: false
},
deleteButton: {
type: Boolean,
diff --git a/src/views/client/client/AllocationDialog.vue b/src/views/client/client/AllocationDialog.vue
new file mode 100644
index 0000000..c1a395b
--- /dev/null
+++ b/src/views/client/client/AllocationDialog.vue
@@ -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="閿�鍞礋璐d汉" 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: "璇烽�夋嫨閿�鍞礋璐d汉", 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>
diff --git a/src/views/client/client/index.vue b/src/views/client/client/index.vue
index f4be8f2..5aaf4b2 100644
--- a/src/views/client/client/index.vue
+++ b/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()
+ }
+ })
}
}
}
diff --git a/src/views/client/contacts/AddContactsDialog.vue b/src/views/client/contacts/AddContactsDialog.vue
index 80e8f08..787e8aa 100644
--- a/src/views/client/contacts/AddContactsDialog.vue
+++ b/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() {},
diff --git a/src/views/client/contacts/DetailContacts.vue b/src/views/client/contacts/DetailContacts.vue
index b50c987..3a1f128 100644
--- a/src/views/client/contacts/DetailContacts.vue
+++ b/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>
diff --git a/src/views/client/followupRecords/AddFollowupRecordsDialog.vue b/src/views/client/followupRecords/AddFollowupRecordsDialog.vue
index d58b2fa..fb7f1bf 100644
--- a/src/views/client/followupRecords/AddFollowupRecordsDialog.vue
+++ b/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>
diff --git a/src/views/client/salesLead/AddSalesLeadDialog.vue b/src/views/client/salesLead/AddSalesLeadDialog.vue
index 83da223..db84fa9 100644
--- a/src/views/client/salesLead/AddSalesLeadDialog.vue
+++ b/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")
diff --git a/src/views/other/payment/collectionPlan/AddCollectionPlan.vue b/src/views/other/payment/collectionPlan/AddCollectionPlan.vue
index ca2fc6d..f3d9da6 100644
--- a/src/views/other/payment/collectionPlan/AddCollectionPlan.vue
+++ b/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="璇烽�夋嫨"
diff --git a/src/views/other/payment/receipt/addReceipt.vue b/src/views/other/payment/receipt/addReceipt.vue
index 0a9203d..511ef9b 100644
--- a/src/views/other/payment/receipt/addReceipt.vue
+++ b/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
diff --git a/src/views/other/payment/saleInvoice/addSaleInvoice.vue b/src/views/other/payment/saleInvoice/addSaleInvoice.vue
index 0c2244b..db82aa3 100644
--- a/src/views/other/payment/saleInvoice/addSaleInvoice.vue
+++ b/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>
diff --git a/src/views/sales/contractManage/AddContractManageDialog.vue b/src/views/sales/contractManage/AddContractManageDialog.vue
index a8960f8..0d87f3d 100644
--- a/src/views/sales/contractManage/AddContractManageDialog.vue
+++ b/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>
diff --git a/src/views/sales/generatePlan/AddGeneratePlanDialog.vue b/src/views/sales/generatePlan/AddGeneratePlanDialog.vue
index 97c0605..ca13145 100644
--- a/src/views/sales/generatePlan/AddGeneratePlanDialog.vue
+++ b/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>
diff --git a/src/views/sales/masterOrder/AddMasterOrderDialog.vue b/src/views/sales/masterOrder/AddMasterOrderDialog.vue
index 7135130..5e92f7e 100644
--- a/src/views/sales/masterOrder/AddMasterOrderDialog.vue
+++ b/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>
diff --git a/src/views/sales/quotation/AddQuotationDialog.vue b/src/views/sales/quotation/AddQuotationDialog.vue
index a191a7b..1837b4d 100644
--- a/src/views/sales/quotation/AddQuotationDialog.vue
+++ b/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>
diff --git a/src/views/sales/refundForm/AddRefundFormDialog.vue b/src/views/sales/refundForm/AddRefundFormDialog.vue
index aecb816..fda3b18 100644
--- a/src/views/sales/refundForm/AddRefundFormDialog.vue
+++ b/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: "璇烽�夋嫨閿�鍞礋璐d汉", trigger: "change" }],
+ sale_return_nunber: [{ required: true, message: "璇烽�夋嫨閿�鍞��璐у崟", trigger: "change" }]
},
memberOptions: [],
// selSourceOrderOptions: [{ value: "1", label: "閿�鍞��璐у崟" }], // 閫夋嫨婧愬崟
diff --git a/src/views/sales/salesDetails/AddSalesDetailsDialog.vue b/src/views/sales/salesDetails/AddSalesDetailsDialog.vue
index 71c572a..91a283a 100644
--- a/src/views/sales/salesDetails/AddSalesDetailsDialog.vue
+++ b/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>
diff --git a/src/views/sales/salesDetails/DetailSpecification.vue b/src/views/sales/salesDetails/DetailSpecification.vue
index eacde64..4deabf7 100644
--- a/src/views/sales/salesDetails/DetailSpecification.vue
+++ b/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()
},
diff --git a/src/views/sales/salesOpportunity/AddSalesOpportunityDialog.vue b/src/views/sales/salesOpportunity/AddSalesOpportunityDialog.vue
index 34e33e8..cf157a8 100644
--- a/src/views/sales/salesOpportunity/AddSalesOpportunityDialog.vue
+++ b/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>
diff --git a/src/views/sales/salesReturn/AddSalesReturnDialog.vue b/src/views/sales/salesReturn/AddSalesReturnDialog.vue
index 82ef2b7..270ffad 100644
--- a/src/views/sales/salesReturn/AddSalesReturnDialog.vue
+++ b/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>
diff --git a/src/views/sales/subOrder/AddSubOrderDialog.vue b/src/views/sales/subOrder/AddSubOrderDialog.vue
index 7f89c86..8aa88ed 100644
--- a/src/views/sales/subOrder/AddSubOrderDialog.vue
+++ b/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>
diff --git a/src/views/service/clientServiceOrder/AddCientServiceOrderDialog.vue b/src/views/service/clientServiceOrder/AddCientServiceOrderDialog.vue
index 3b1b54c..3f433a3 100644
--- a/src/views/service/clientServiceOrder/AddCientServiceOrderDialog.vue
+++ b/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>
diff --git a/src/views/service/serviceContract/AddServiceContractDialog.vue b/src/views/service/serviceContract/AddServiceContractDialog.vue
index 456ad36..49c71a6 100644
--- a/src/views/service/serviceContract/AddServiceContractDialog.vue
+++ b/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>
diff --git a/src/views/service/serviceContract/index.vue b/src/views/service/serviceContract/index.vue
index 82b640e..bd50dc0 100644
--- a/src/views/service/serviceContract/index.vue
+++ b/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" } // 浠风◣鍚堣
diff --git a/src/views/service/serviceFeeManage/AddServiceFeeManageDialog.vue b/src/views/service/serviceFeeManage/AddServiceFeeManageDialog.vue
index 99f705d..e840bbf 100644
--- a/src/views/service/serviceFeeManage/AddServiceFeeManageDialog.vue
+++ b/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>
diff --git a/src/views/service/serviceFollowup/AddServiceFollowupDialog.vue b/src/views/service/serviceFollowup/AddServiceFollowupDialog.vue
index 6d31c79..96b0c55 100644
--- a/src/views/service/serviceFollowup/AddServiceFollowupDialog.vue
+++ b/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>
--
Gitblit v1.8.0