| | |
| | | :add-title="'新建'" |
| | | :placeholder="'请输入单号/来源单据'" |
| | | :amount-view="false" |
| | | :search-task-map="searchTaskMap" |
| | | @addCommonClick="addBtnClick" |
| | | @searchClick="getList" |
| | | @delSelectClick="delSelectClick" |
| | | /> |
| | | </div> |
| | | <div class="list-view"> |
| | |
| | | v-if="editConfig.visible" |
| | | :work-type="workType" |
| | | :edit-common-config="editConfig" |
| | | :add-name="this.$route.params.name" |
| | | :add-name="addName" |
| | | :display-edit="displayEdit" |
| | | /> |
| | | </div> |
| | |
| | | params: {}, |
| | | displayEdit: false, |
| | | formLabel: "", |
| | | toLabel: "" |
| | | toLabel: "", |
| | | addName: "", |
| | | searchTaskMap: [] |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | sessionStorage.setItem("paramsData", JSON.stringify(params)) |
| | | } |
| | | this.params = params |
| | | this.searchTaskMap = |
| | | this.params.status > 0 ? [{ id: this.params.id, title: this.getStatus(this.params.status) }] : [] |
| | | this.getData() |
| | | // console.log(this.$route.params.workType) |
| | | }, |
| | |
| | | console.log(row) |
| | | this.editConfig.visible = true |
| | | this.editConfig.title = val |
| | | this.editConfig.operationTypeId = this.$route.params.id |
| | | this.editConfig.operationTypeId = this.params.id |
| | | this.editConfig.infomation = { ...row } |
| | | }, |
| | | // 新建 |
| | | addBtnClick() { |
| | | this.editConfig.visible = true |
| | | this.editConfig.title = "新建" |
| | | this.editConfig.operationTypeId = this.$route.params.id |
| | | this.addName = this.params.name |
| | | console.log(this.params, "ss刷新") |
| | | this.editConfig.operationTypeId = this.params.id |
| | | this.editConfig.code = this.params.code |
| | | this.editConfig.infomation = {} |
| | | this.editConfig.visible = true |
| | | }, |
| | | // 状态 |
| | | getStatus(val) { |
| | | return val === 1 ? "草稿" : val === 3 ? "就绪" : "完成" |
| | | return val === 1 ? "草稿" : val === 3 ? "就绪" : val === 4 ? "完成" : "" |
| | | }, |
| | | // 删除搜索状态 |
| | | delSelectClick() { |
| | | this.params.status = 0 |
| | | this.getData() |
| | | } |
| | | } |
| | | } |