From b169e0fe3ecad3713880626bd6152c58d8ed4222 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期二, 10 十月 2023 19:59:57 +0800 Subject: [PATCH] Merge branch 'dev' of http://192.168.5.5:10010/r/web/crm-web into wn --- src/views/sales/contractManage/AddContractManageDialog.vue | 19 ++++++++++++++----- 1 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/views/sales/contractManage/AddContractManageDialog.vue b/src/views/sales/contractManage/AddContractManageDialog.vue index 7f5c91d..d0a9d4f 100644 --- a/src/views/sales/contractManage/AddContractManageDialog.vue +++ b/src/views/sales/contractManage/AddContractManageDialog.vue @@ -11,7 +11,7 @@ :model="editConfig.infomation" :rules="rules" label-position="right" - label-width="308px" + label-width="168px" size="mini" > <!-- 淇℃伅 --> @@ -32,6 +32,7 @@ " value-key="name" @select="handleSelectClient('client', $event)" + style="width: 100%" ></el-autocomplete> <div class="common-select-btn" @click="selClientClick('client')"> <i class="el-icon-circle-plus-outline" title="閫夋嫨"></i> @@ -48,7 +49,7 @@ </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-col :span="12"> @@ -57,7 +58,7 @@ v-model="editConfig.infomation.memberId" placeholder="璇烽�夋嫨" size="mini" - style="width: 63%" + style="width: 100%" > <el-option v-for="item in memberOptions" :key="item.id" :label="item.username" :value="item.id"> </el-option> @@ -72,6 +73,7 @@ placeholder="璇烽�夋嫨" class="common-select-sel" size="mini" + style="width: 100%" > <el-option v-for="item in statusOptions" :key="item.id" :label="item.name" :value="item.id"> </el-option> @@ -92,6 +94,7 @@ " value-key="number" @select="handleSelectClient('quotation', $event)" + style="width: 100%" ></el-autocomplete> <div class="common-select-btn" @click="selClientClick('quotation')"> <i class="el-icon-circle-plus-outline" title="閫夋嫨"></i> @@ -233,7 +236,7 @@ }, data() { return { - dialogWidth: "80%", + dialogWidth: "50%", editConfig: this.editCommonConfig, rules: { number: [{ required: true, message: "璇疯緭鍏�", trigger: "blur" }], @@ -343,14 +346,17 @@ } }, handleSelectClient(value, item) { - console.log(value) + console.log(item) if (value === "client") { + this.editConfig.infomation.client_name = item.name this.clientId = item.id } else if (value === "quotation") { + this.editConfig.infomation.quotation_number = item.number this.quotationId = item.id } }, selClientClick(value) { + console.log("aaaa") if (value === "client") { this.editSelectClientConfig.editVisible = true } else if (value === "quotation") { @@ -360,6 +366,7 @@ } }, selClient(row, value) { + console.log("bbbb") console.log(value) if (value === "client") { this.editConfig.infomation.client_name = row.name @@ -371,7 +378,9 @@ }, // 娓呴櫎宸查�夋嫨鐢ㄦ埛 clearupClient(value) { + console.log(value) if (value === "client") { + console.log("ss88888") this.editConfig.infomation.client_name = "" this.clientId = 0 } else if (value === "quotation") { -- Gitblit v1.8.0