| | |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(column, DateUtils.convert(dates[0])); |
| | | wrapper.le(column, DateUtils.convert(dates[1])); |
| | | } else if ("io_type".equals(column) || "wrk_sts".equals(column)) { |
| | | wrapper.eq(column, val); |
| | | } else { |
| | | wrapper.like(column, val); |
| | | } |
| | |
| | | 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) { |
| | |
| | | </el-input> |
| | | </div> |
| | | <div class="toolbar-search-item"> |
| | | <el-select |
| | | v-model="searchForm.io_type" |
| | | clearable |
| | | size="small" |
| | | placeholder="任务类型" |
| | | style="width: 100%;"> |
| | | <el-option |
| | | v-for="item in filterOptions.ioTypes" |
| | | :key="'io-type-' + item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </div> |
| | | <div class="toolbar-search-item"> |
| | | <el-select |
| | | v-model="searchForm.wrk_sts" |
| | | clearable |
| | | size="small" |
| | | placeholder="工作状态" |
| | | style="width: 100%;"> |
| | | <el-option |
| | | v-for="item in filterOptions.wrkStatuses" |
| | | :key="'wrk-sts-' + item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </div> |
| | | <div class="toolbar-search-item"> |
| | | <el-input |
| | | v-model.trim="searchForm.loc_no" |
| | | clearable |
| | |
| | | <script type="text/javascript" src="../../static/js/common.js?v=20260309_i18n_fix1"></script> |
| | | <script type="text/javascript" src="../../static/vue/js/vue.min.js"></script> |
| | | <script type="text/javascript" src="../../static/vue/element/element.js"></script> |
| | | <script type="text/javascript" src="../../static/js/wrkMast/wrkMast.js?v=20260322_system_msg_wrap"></script> |
| | | <script type="text/javascript" src="../../static/js/wrkMast/wrkMast.js?v=20260401_filter_state_type"></script> |
| | | </html> |