| | |
| | | { key: "sendFailCount", prop: "sendFailCount", label: "失败次数", width: 96, sortable: true, align: "center" }, |
| | | { key: "errorTime$", prop: "errorTime$", label: "失败时间", minWidth: 168, sortable: true }, |
| | | { key: "errorMemo", prop: "errorMemo", label: "失败原因", minWidth: 220, sortable: false, showOverflow: false }, |
| | | { key: "systemMsg", prop: "systemMsg", label: "系统消息", minWidth: 220, sortable: false, showOverflow: false } |
| | | { key: "systemMsg", prop: "systemMsg", label: "系统消息", minWidth: 320, sortable: false, showOverflow: false } |
| | | ]; |
| | | |
| | | var MANUAL_ROLLBACK_STATUSES = [6, 106, 506]; |
| | |
| | | condition: "", |
| | | wrk_no: "", |
| | | wms_wrk_no: "", |
| | | io_type: "", |
| | | wrk_sts: "", |
| | | loc_no: "", |
| | | source_loc_no: "", |
| | | crn_no: "", |
| | | dual_crn_no: "" |
| | | dual_crn_no: "", |
| | | barcode: "" |
| | | }; |
| | | } |
| | | |
| | |
| | | pageTotal: 0, |
| | | tableHeight: 520, |
| | | searchForm: cloneSearchForm(), |
| | | filterOptions: { |
| | | ioTypes: [], |
| | | wrkStatuses: [] |
| | | }, |
| | | sortState: { |
| | | prop: "", |
| | | order: "" |
| | |
| | | } |
| | | }, |
| | | created: function () { |
| | | this.loadFilterOptions(); |
| | | this.loadList(); |
| | | }, |
| | | mounted: function () { |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | loadFilterOptions: function () { |
| | | var vm = this; |
| | | [ |
| | | { |
| | | field: "wrkStatuses", |
| | | url: baseUrl + "/basWrkStatus/list/auth", |
| | | valueField: "wrkSts", |
| | | labelField: "wrkDesc" |
| | | }, |
| | | { |
| | | field: "ioTypes", |
| | | url: baseUrl + "/basWrkIotype/list/auth", |
| | | valueField: "ioType", |
| | | labelField: "ioDesc" |
| | | } |
| | | ].forEach(function (config) { |
| | | $.ajax({ |
| | | url: config.url, |
| | | headers: { token: localStorage.getItem("token") }, |
| | | method: "GET", |
| | | data: { |
| | | curr: 1, |
| | | limit: 200 |
| | | }, |
| | | success: function (res) { |
| | | if (res.code === 200) { |
| | | vm.$set(vm.filterOptions, config.field, ((res.data && res.data.records) || []).map(function (item) { |
| | | return { |
| | | value: item[config.valueField], |
| | | label: item[config.labelField] |
| | | }; |
| | | })); |
| | | return; |
| | | } |
| | | if (res.code === 403) { |
| | | top.location.href = baseUrl + "/"; |
| | | } |
| | | } |
| | | }); |
| | | }); |
| | | }, |
| | | displayCellValue: function (row, column) { |
| | | var value; |
| | | if (!row || !column) { |
| | |
| | | saveVisibleColumns(this.visibleColumnKeys); |
| | | this.scheduleTableLayout(); |
| | | }, |
| | | openBatchOutPage: function () { |
| | | window.open(baseUrl + "/views/wrkBatchOut/wrkBatchOut.html", "_blank"); |
| | | }, |
| | | handleRowCommand: function (command, row) { |
| | | if (command === "complete") { |
| | | this.completeTask(row); |
| | |
| | | cancelButtonText: "取消" |
| | | }).then(function () { |
| | | $.ajax({ |
| | | url: baseUrl + "/openapi/completeTask", |
| | | url: baseUrl + "/wrkMast/complete/auth", |
| | | contentType: "application/json", |
| | | headers: { token: localStorage.getItem("token") }, |
| | | data: JSON.stringify({ wrkNo: row.wrkNo }), |
| | |
| | | cancelButtonText: "取消" |
| | | }).then(function () { |
| | | $.ajax({ |
| | | url: baseUrl + "/openapi/cancelTask", |
| | | url: baseUrl + "/wrkMast/cancel/auth", |
| | | contentType: "application/json", |
| | | headers: { token: localStorage.getItem("token") }, |
| | | data: JSON.stringify({ wrkNo: row.wrkNo }), |