| | |
| | | > |
| | | <!-- 头 --> |
| | | <div slot="title" class="dialog-header"> |
| | | <span>{{ editCommonConfig.title + addName }}</span> |
| | | <span>{{ editCommonConfig.title === "查看" ? editCommonConfig.title : editCommonConfig.title + addName }}</span> |
| | | <div class="header_btns"> |
| | | <span class="btn"> |
| | | <i class="el-icon-printer"></i> |
| | |
| | | <div class="purchase-view"> |
| | | <div class="left"> |
| | | <div class="second-label">其他信息</div> |
| | | <el-form-item v-if="workType !== 1" label="送货策略" prop="client_name"> |
| | | <!-- <el-form-item v-if="workType !== 1" label="送货策略" prop="client_name"> |
| | | <el-select |
| | | v-model="editConfig.infomation.memberId" |
| | | placeholder="请选择" |
| | |
| | | <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-item> --> |
| | | <el-form-item label="负责人" prop="contacterName"> |
| | | <el-select |
| | | v-model="editConfig.infomation.contacterName" |
| | |
| | | detailId: 0, |
| | | isNoDetail: false, // 添加详情明细行时是否未选择 |
| | | tableColumn: [], |
| | | receiptType: this.addName, // 入库类型 |
| | | receiptType: "", // 入库类型 |
| | | companyObj: {}, |
| | | contacterObj: {}, |
| | | isValidateClick: false // 验证是否显示 |
| | |
| | | this.setDetailTableForm() |
| | | this.getCompanyList() |
| | | this.getLocationList() |
| | | this.receiptType = this.editConfig.title === "查看" ? this.editConfig.infomation.operationTypeName : this.addName |
| | | }, |
| | | methods: { |
| | | // 获取公司列表 |
| | |
| | | this.showEdit = false |
| | | this.showFooter = true |
| | | this.isValidateClick = false |
| | | } else if (this.editConfig.infomation.status === "完成") { |
| | | } else if (this.editConfig.infomation.status === 4) { |
| | | this.showButton = true |
| | | this.showEdit = false |
| | | this.isDelClick = true |
| | | this.showFooter = false |
| | | this.isValidateClick = false |
| | | } else if (this.editConfig.infomation.status === "已取消") { |
| | | } else if (this.editConfig.infomation.status === 5) { |
| | | this.showButton = true |
| | | this.showEdit = false |
| | | this.showFooter = false |
| | |
| | | let contacterID = 0 |
| | | let contacterName = "" |
| | | if (this.editConfig.title === "新建") { |
| | | companyID = this.companyObj.length === 0 ? 0 : this.companyObj.value |
| | | companyName = this.companyObj.length === 0 ? 0 : this.companyObj.label |
| | | contacterID = this.contacterObj.length === 0 ? 0 : this.contacterObj.value |
| | | contacterName = this.contacterObj.length === 0 ? 0 : this.contacterObj.label |
| | | companyID = Object.keys(this.companyObj).length === 0 ? 0 : this.companyObj.value |
| | | companyName = Object.keys(this.companyObj).length === 0 ? "" : this.companyObj.label |
| | | contacterID = Object.keys(this.contacterObj).length === 0 ? 0 : this.contacterObj.value |
| | | contacterName = Object.keys(this.contacterObj).length === 0 ? "" : this.contacterObj.label |
| | | } else { |
| | | companyID = this.companyObj.length === 0 ? data.companyID : this.companyObj.value |
| | | companyName = this.companyObj.length === 0 ? data.companyName : this.companyObj.label |
| | | contacterID = this.contacterObj.length === 0 ? data.contacterID : this.contacterObj.value |
| | | contacterName = this.contacterObj.length === 0 ? data.contacterName : this.contacterObj.label |
| | | companyID = Object.keys(this.companyObj).length === 0 ? data.companyID : this.companyObj.value |
| | | companyName = Object.keys(this.companyObj).length === 0 ? data.companyName : this.companyObj.label |
| | | contacterID = Object.keys(this.contacterObj).length === 0 ? data.contacterID : this.contacterObj.value |
| | | contacterName = Object.keys(this.contacterObj).length === 0 ? data.contacterName : this.contacterObj.label |
| | | } |
| | | let params = { |
| | | comment: data.comment || "", |
| | |
| | | number: "", |
| | | operationDate: data.operationDate || "", |
| | | operationTypeId: this.editConfig.operationTypeId, |
| | | operationTypeName: this.receiptType, |
| | | sourceNumber: data.sourceNumber || "", |
| | | status: 3, |
| | | toLocationId: data.toLocationId || 0 |
| | |
| | | ::v-deep { |
| | | .el-dialog__headerbtn { |
| | | position: absolute; |
| | | top: 18px; |
| | | top: 15px; |
| | | } |
| | | .el-button { |
| | | &:hover { |