| | |
| | | <SearchCommonView |
| | | :add-title="'新建'" |
| | | :showAdd="false" |
| | | :showDownload="true" |
| | | :placeholder="'请根据单号、产品、业务类型进行搜索'" |
| | | :amount-view="false" |
| | | @addCommonClick="addBtnClick" |
| | | @searchClick="getList" |
| | | :inputName="params.keyWord" |
| | | /> |
| | | </div> |
| | | <div class="list-view"> |
| | |
| | | @selTableCol="selTableCol" |
| | | > |
| | | <template slot="tableButton"> |
| | | <el-table-column label="操作" width="100"> |
| | | <el-table-column label="操作" width="120"> |
| | | <template slot-scope="scope"> |
| | | <el-button @click="tableRowClick(scope.row, '查看')" type="text" size="small">查看</el-button> |
| | | <el-button |
| | |
| | | </div> |
| | | <!-- 查看/编辑 --> |
| | | <AddOverviewDialog |
| | | ref="viewDialog" |
| | | v-if="editConfig.visible" |
| | | :edit-common-config="editConfig" |
| | | :add-name="addName" |
| | |
| | | |
| | | import AddOverviewDialog from "@/views/overview/AddOverviewDialog" |
| | | import { getDataByType } from "@/api/data" |
| | | |
| | | export default { |
| | | name: "InboundOutboundDetail", |
| | | props: {}, |
| | |
| | | }, |
| | | created() { |
| | | this.setTable() |
| | | console.log(this.$route.params) |
| | | var paramsList = sessionStorage.getItem("paramsList") |
| | | let params = {} |
| | | if (paramsList) { |
| | |
| | | sessionStorage.setItem("paramsList", JSON.stringify(params)) |
| | | } |
| | | this.params = params |
| | | console.log(this.params,'====111') |
| | | console.log(this.params,'路由参数') |
| | | this.getData() |
| | | }, |
| | | // 页面销毁之前 |
| | |
| | | }, |
| | | { |
| | | label: "业务类型", |
| | | prop: "baseOperationType", |
| | | prop: "operationTypeName", |
| | | isShowColumn: true, |
| | | default: true, |
| | | conversion: true, |
| | | getStatus: this.getBaseOperationTypeList |
| | | // conversion: true, |
| | | // getStatus: this.getBaseOperationTypeList |
| | | }, |
| | | { |
| | | label: "从", |
| | |
| | | async getData() { |
| | | if (this.params.name === "报表") { |
| | | await listByCondition({ |
| | | // condition:"", |
| | | keyWord:this.params.keyWord, |
| | | produceId:this.params.produceId, |
| | | unit:this.params.unit, |
| | |
| | | this.getData() |
| | | }, |
| | | tableRowClick(row,val) { |
| | | console.log(row,"看看") |
| | | this.workType=row.baseOperationType |
| | | this.editConfig.title = val |
| | | getOperationInfo(row.operationId).then((res)=>{ |
| | | this.editConfig.infomation = { ...res.data } |
| | | let params=JSON.parse( |
| | | JSON.stringify(res.data) |
| | | ); |
| | | params.details.map((item) => { |
| | | item.fromLocationId = item.fromLocation.jointName |
| | | item.toLocationId = item.toLocation.jointName |
| | | }) |
| | | params.location = { |
| | | value:params.location.id || params.location.value, |
| | | label: params.location.jointName || params.location.label |
| | | } |
| | | params.toLocation = { |
| | | value: params.toLocation.id || params.toLocation.value, |
| | | label: params.toLocation.jointName || params.toLocation.label |
| | | } |
| | | params.locationID = params.location.jointName |
| | | params.locationId =params.location.value |
| | | params.managerObj={ |
| | | label:params.manager, |
| | | value:params.managerId |
| | | } |
| | | params.accountantObj={ |
| | | label:params.accountant, |
| | | value:params.accountantId |
| | | } |
| | | params.custodianObj={ |
| | | label:params.custodian, |
| | | value:params.custodianId |
| | | } |
| | | this.editConfig.infomation = { |
| | | ...params |
| | | } |
| | | this.editConfig.visible = true |
| | | }) |
| | | // this.editConfig.visible = true |
| | |
| | | getStatus(val) { |
| | | let newVal=Number(val) |
| | | return newVal === 1 ? "草稿" : newVal === 3 ? "就绪" : newVal=== 4 ?"完成":newVal=== 5 ?"已取消":" " |
| | | } |
| | | }, |
| | | } |
| | | } |
| | | </script> |