| | |
| | | <li v-for="(item, i) in basicInfoList" :key="i"> |
| | | <div class="left"> |
| | | <div class="content-title">{{ item.leftStr + ":" }}</div> |
| | | <div class="content-data">{{ item.leftValue }}</div> |
| | | <div class="content-data">{{ item.leftValue ? item.leftValue : "--" }}</div> |
| | | </div> |
| | | <div class="right"> |
| | | <div class="content-title">{{ item.rightStr }}</div> |
| | | <div class="content-data">{{ item.rightValue }}</div> |
| | | <div v-if="item.rightStr" class="right"> |
| | | <div class="content-title">{{ item.rightStr + ":" }}</div> |
| | | <div class="content-data">{{ item.rightValue ? item.rightValue : "--" }}</div> |
| | | </div> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </div> |
| | | <!-- 附件信息 --> |
| | | <div class="basic-info"> |
| | | <!-- <div class="basic-info"> |
| | | <div class="basic-info-label" @click="expandClick('annex')"> |
| | | <i v-if="isAnnexExpand" class="el-icon-arrow-down"></i> |
| | | <i v-else class="el-icon-arrow-up"></i> |
| | |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </div> |
| | | </div> --> |
| | | <!-- 产品管理 --> |
| | | <div class="basic-info"> |
| | | <div class="basic-info-label" @click="expandClick('product')"> |
| | |
| | | </div> |
| | | </div> |
| | | <div v-if="activeName === 'detail'" class="second"> |
| | | <SalesDetails :isDetail="true" /> |
| | | <SalesDetails :isDetail="true" :add-config="addConfig" /> |
| | | </div> |
| | | </div> |
| | | </el-drawer> |
| | |
| | | <script> |
| | | import SalesDetails from "@/views/sales/salesDetails" |
| | | import CommonFormTableView from "@/components/makepager/CommonFormTableView" |
| | | |
| | | export default { |
| | | name: "DetailSubOrder", |
| | | props: { |
| | |
| | | sumProp: ["other1", "other2", "other3", "other4"], |
| | | mergeNumber: 3 |
| | | }, |
| | | productTableList: {} |
| | | productTableList: {}, |
| | | addConfig: {} |
| | | } |
| | | }, |
| | | created() { |
| | | this.setData() |
| | | this.setData(this.detailConfig.infomation) |
| | | this.addConfig = { |
| | | keywordType: "销售子单", |
| | | keyword: this.detailConfig.infomation.number, |
| | | id: this.detailConfig.infomation.id, |
| | | 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 |
| | | } |
| | | this.setTableForm() |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | setData() { |
| | | setData(item) { |
| | | this.basicInfoList = [ |
| | | { |
| | | leftStr: "客户名称", |
| | | leftValue: "", |
| | | leftValue: item.client.name, |
| | | rightStr: "单据编号", |
| | | rightValue: "" |
| | | rightValue: item.number |
| | | }, |
| | | { |
| | | leftStr: "销售总单", |
| | | leftValue: "", |
| | | leftValue: item.masterOrder.number, |
| | | rightStr: "负责人", |
| | | rightValue: "" |
| | | rightValue: item.member.username |
| | | }, |
| | | { |
| | | leftStr: "创建人", |
| | |
| | | leftValue: "", |
| | | rightStr: "更新时间", |
| | | rightValue: "" |
| | | }, |
| | | { |
| | | leftStr: "审批状态", |
| | | leftValue: "", |
| | | rightStr: "最新审批时间", |
| | | rightValue: "" |
| | | }, |
| | | { |
| | | leftStr: "上一步审批人", |
| | | leftValue: "", |
| | | rightStr: "当前审批人", |
| | | rightValue: "" |
| | | } |
| | | // { |
| | | // leftStr: "审批状态", |
| | | // leftValue: "", |
| | | // rightStr: "最新审批时间", |
| | | // rightValue: "" |
| | | // }, |
| | | // { |
| | | // leftStr: "上一步审批人", |
| | | // leftValue: "", |
| | | // rightStr: "当前审批人", |
| | | // rightValue: "" |
| | | // } |
| | | ] |
| | | }, |
| | | handleClose() { |