| | |
| | | <template>
|
| | | <view class="content p30">
|
| | | <div class="content_search">
|
| | | <v-Search @searchInput="searchInput" @submit="submit" @reset="reset" :isShow="true"
|
| | | <v-Search @searchInput="searchForm.mixParam" @submit="search" @reset="reset" :isShow="true"
|
| | | placeholder="搜索工单编码/工序名称">
|
| | | <template v-slot:content>
|
| | | <div class="Search_item">
|
| | |
| | | <div class="content_list_item" v-for="(item, i) in list" :key="i" @click="jump(item)">
|
| | | <div class="content_list_item_top">
|
| | | <div class="content_list_item_top_left">
|
| | | <span v-if="item.mmodel">{{item.mmodel.name}} | {{item.procedureName}}</span>
|
| | | <span class="f32" v-if="item.mmodel">{{item.mmodel.name}} | {{item.procedureName}}</span>
|
| | | <div class="content_list_item_top_left_tag" v-if="item.urgent">优先{{item.urgent}}</div>
|
| | | <div class="content_list_item_top_left_tag backgreen" v-if="item.type === 0">正常</div>
|
| | | <div class="content_list_item_top_left_tag backyellow" v-if="item.type === 2">返工返修</div>
|
| | |
| | | <span class="green" v-if="item.status === 7">进行中</span>
|
| | | </div>
|
| | | </div>
|
| | | <span>工单编号: {{item.code}}</span>
|
| | | <span class="f24">工单编号: {{item.code}}</span>
|
| | | <div class="content_list_item_content">
|
| | | <div class="content_list_item_content_item">
|
| | | <div class="content_list_item_content_item_label">物料编码:</div>
|
| | |
| | | </div>
|
| | | </div>
|
| | | </scroll-view>
|
| | | <u-calendar :show="isOpenDate" mode="range" @confirm="dateConfirm"></u-calendar>
|
| | | <!-- <u-calendar :show="isOpenDate" mode="range" @confirm="dateConfirm"></u-calendar> --> |
| | | <l-calendar :lunar="false" v-model="isOpenDate" @change="onConfirm" :isRange="true" activeBgColor="#305ED5" |
| | | rangeColor="#305ED5" rangeBgColor="rgba(48, 80, 213, 0.1)"></l-calendar>
|
| | | </view>
|
| | | </template>
|
| | |
|
| | |
| | | import {
|
| | | getList,
|
| | | pageCount
|
| | | } from '@/util/api/WorkOrderAPI.js'
|
| | | } from '@/util/api/WorkOrderAPI.js' |
| | | import { gsdate } from '@/util/utils.js'
|
| | | export default {
|
| | | components: {
|
| | | vSearch,
|
| | |
| | | searchForm: {
|
| | | mixParam: '',
|
| | | startDate: '',
|
| | | endDate: '',
|
| | | endDate: gsdate(new Date()),
|
| | | statusList: []
|
| | | },
|
| | | page: {
|
| | |
| | | this.pageCounts()
|
| | | this.loadData()
|
| | | },
|
| | | methods: {
|
| | | methods: { |
| | | reset() { |
| | | this.searchForm = { |
| | | mixParam: '', |
| | | startDate: '', |
| | | endDate: gsdate(new Date()), |
| | | statusList: [] |
| | | } |
| | | this.page.page = 1 |
| | | this.pageCounts() |
| | | this.loadData() |
| | | },
|
| | | loadData() {
|
| | |
|
| | | getList({
|
| | |
| | | pageCounts() {
|
| | | pageCount({
|
| | | ...this.searchForm,
|
| | | endDate: this.searchForm.endDate ? (this.searchForm.endDate + ' 23:59:59') : '',
|
| | | endDate: this.searchForm.endDate || '',
|
| | | statusList: this.searchForm.statusList.length === 0 ? this.tagList[0].id : this.searchForm
|
| | | .statusList
|
| | | }).then(res => { |
| | |
| | | this.triggered = true;
|
| | | this.page.page = 1
|
| | | this.loadData()
|
| | | }, |
| | | search() { |
| | | this.page.page = 1 |
| | | this.loadData() |
| | | },
|
| | | jump(item) { |
| | | // uni.navigateTo({ |