| | |
| | | :placeholder="'请根据单号、产品、业务类型进行搜索'" |
| | | :amount-view="false" |
| | | @addCommonClick="addBtnClick" |
| | | :inputName="params.keyWord" |
| | | @searchClick="getList" |
| | | /> |
| | | </div> |
| | |
| | | </div> |
| | | <!-- 查看/编辑 --> |
| | | <AddOverviewDialog |
| | | ref="viewDialog" |
| | | v-if="editConfig.visible" |
| | | :edit-common-config="editConfig" |
| | | :add-name="addName" |
| | |
| | | }, |
| | | 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 } |
| | | res.data.details.map((item) => { |
| | | item.fromLocationId = item.fromLocation.jointName |
| | | item.toLocationId = item.toLocation.jointName |
| | | }) |
| | | res.data.location = { |
| | | value: res.data.location.id || res.data.location.value, |
| | | label: res.data.location.jointName || res.data.location.label |
| | | } |
| | | res.data.toLocation = { |
| | | value: res.data.toLocation.id || res.data.toLocation.value, |
| | | label: res.data.toLocation.jointName || res.data.toLocation.label |
| | | } |
| | | res.data.locationID = res.data.location.jointName |
| | | res.data.locationId = res.data.location.value |
| | | this.editConfig.infomation = { |
| | | ...res.data |
| | | } |
| | | this.editConfig.visible = true |
| | | }) |
| | | // this.editConfig.visible = true |