From b5acca92bd0794c24310d15c6fba8433d08119c9 Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期三, 11 十月 2023 15:27:09 +0800 Subject: [PATCH] feat: 销售机会报价单销售总单销售子单 编辑弹窗调整表单编号位置, 更换适配新的编码组件 --- src/views/client/salesLead/AddSalesLeadDialog.vue | 80 +++++++++++++++++----------------------- 1 files changed, 34 insertions(+), 46 deletions(-) diff --git a/src/views/client/salesLead/AddSalesLeadDialog.vue b/src/views/client/salesLead/AddSalesLeadDialog.vue index 83da223..96ecfcc 100644 --- a/src/views/client/salesLead/AddSalesLeadDialog.vue +++ b/src/views/client/salesLead/AddSalesLeadDialog.vue @@ -11,7 +11,7 @@ :model="editConfig.infomation" :rules="rules" label-position="right" - label-width="308px" + label-width="130px" size="mini" > <!-- 淇℃伅 --> @@ -22,16 +22,16 @@ <el-row> <el-col :span="12"> <el-form-item label="瀹㈡埛鍚嶇О" prop="name"> - <el-input v-model="editConfig.infomation.name"></el-input> + <el-input v-model="editConfig.infomation.name" style="width: 100%"></el-input> </el-form-item> </el-col> <el-col :span="12"> <el-form-item label="閿�鍞嚎绱㈢紪鍙�" prop="number"> - <el-input v-model="editConfig.infomation.number"></el-input> + <el-input v-model="editConfig.infomation.number" style="width: 100%"></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 @@ -86,7 +86,7 @@ </el-col> <el-col :span="12"> <el-form-item label="璐熻矗浜�" prop="member_id"> - <el-select v-model="editConfig.infomation.member_id" placeholder="璇烽�夋嫨" size="mini"> + <el-select v-model="editConfig.infomation.member_id" placeholder="璇烽�夋嫨" style="width: 100%" size="mini"> <el-option v-for="item in memberOptions" :key="item.id" :label="item.username" :value="item.id"> </el-option> </el-select> @@ -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> @@ -251,7 +251,7 @@ computed: {}, data() { return { - dialogWidth: "80%", + dialogWidth: "50%", editConfig: this.editSalesLeadConfig, rules: { name: [{ required: true, message: "璇疯緭鍏ュ鎴峰悕绉�", trigger: "blur" }], @@ -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") @@ -431,7 +418,7 @@ .common-select { display: flex; .common-select-sel { - width: 270px; + width:100%; } .common-select-btn { margin-left: 5px; @@ -446,6 +433,7 @@ height: 30px; justify-content: center; align-items: center; + cursor:pointer; color: #6166d3; } } -- Gitblit v1.8.0