| | |
| | | "navigationBarTitleText": "工忥工", |
| | | "enablePullDownRefresh": false |
| | | } |
| | | },
|
| | | {
|
| | | "path": "pages/transferList/transferList",
|
| | | "style": {
|
| | | "navigationBarTitleText": "转åºå表",
|
| | | "enablePullDownRefresh": false
|
| | | }
|
| | | },
|
| | | {
|
| | | "path": "pages/warehousingDetails/warehousingDetails",
|
| | | "style": {
|
| | | "navigationBarTitleText": "å
¥åºè¯¦æ
",
|
| | | "enablePullDownRefresh": false
|
| | | }
|
| | | },
|
| | | {
|
| | | "path": "pages/outboundList/outboundList",
|
| | | "style": {
|
| | | "navigationBarTitleText": "åºåºåå表",
|
| | | "enablePullDownRefresh": false
|
| | | }
|
| | | }
|
| | | ]
|
| | | },
|
| | | {
|
| | | "root": "pages_inspect",
|
| | | "pages": [
|
| | | {
|
| | | "path": "pages/InspectionRecords/InspectionRecords",
|
| | | "style": {
|
| | | "navigationBarTitleText": "æ£éªè®°å½",
|
| | | "enablePullDownRefresh": false
|
| | | }
|
| | | },
|
| | | {
|
| | | "path": "pages/InspectionDetails/InspectionDetails",
|
| | | "style": {
|
| | | "navigationBarTitleText": "æ£éªè¯¦æ
",
|
| | | "enablePullDownRefresh": false
|
| | | }
|
| | | }
|
| | | ]
|
| | | }
|
| | |
| | | <text>计åç产æ°éï¼</text> |
| | | </view> |
| | | <view class="fp_list_item_right"> |
| | | <input type="number" v-model="form.num" placeholder="请è¾å
¥" /> |
| | | <u--input placeholder="请è¾å
¥" :customStyle="{width: '180rpx'}" inputAlign="right" type="number" border="surround" v-model="form.num"></u--input> |
| | | </view> |
| | | </view> |
| | | <view class="fp_list_item" @click="timeShow = true"> |
| | | <view class="fp_list_item"> |
| | | <view class="fp_list_item_left"> |
| | | <text style="color: #f00;">*</text> |
| | | <text>计åå¼å·¥æ¥æï¼</text> |
| | | </view> |
| | | <view class="fp_list_item_right"> |
| | | <view class="fp_list_item_right" @click="timeShow = true"> |
| | | <text class="black" v-if="form.startTime">{{form.startTime}}</text> |
| | | <text v-else>å¹´ / æ / æ¥</text> |
| | | <u-icon name="arrow-right" color="#999999"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="fp_list_item" @click="openSB"> |
| | | <view class="fp_list_item" @click="show = true"> |
| | | <view class="fp_list_item_left"> |
| | | <text>ç产设å¤</text> |
| | | </view> |
| | |
| | | <text>ç产人å</text> |
| | | </view> |
| | | <view class="fp_list_item_right"> |
| | | <u-checkbox-group v-model="form.personnelId" direction="horizontal" v-show="personnelData.length > 0"> |
| | | <u-checkbox :name="item.id" v-for="(item, index) in personnelData" :key="index" checked-color="#4275FC">{{item.text}}</u-checkbox> |
| | | <u-checkbox-group v-model="form.personnelId" v-show="personnelData.length > 0"> |
| | | <u-checkbox :name="item.id" v-for="(item, index) in personnelData" :key="index" activeColor="#4275FC">{{item.text}}</u-checkbox> |
| | | </u-checkbox-group> |
| | | <view class="wu" v-show="personnelData.length === 0"> |
| | | <text>ææ æ°æ®</text> |
| | |
| | | <button class="fp_footer_submit" @click="submit">确认</button> |
| | | </view> |
| | | <!-- éæ©æ¥æ --> |
| | | <u-calendar :show="timeShow" mode="range" @confirm="timeConfirm"></u-calendar> |
| | | <u-calendar :show="timeShow" @close="timeShow = false" @confirm="timeConfirm"></u-calendar> |
| | | <!-- éæ©è®¾å¤ --> |
| | | <u-picker :show="show" :columns="columns" @confirm="confirm" @cancel="show = false" keyName="label"></u-picker> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | show: false, |
| | | columns: [[{ label: '设å¤ä¸' }]], |
| | | form: { |
| | | num: $route.query.num, // ç产æ°é |
| | | num: '', // ç产æ°é |
| | | startTime: gsdate(new Date()), // å¼å§æ¶é´ |
| | | equipmentId: '', // 设å¤id |
| | | equipmentName: '', // 设å¤åç§° |
| | | personnelId: [] // 人åid |
| | | }, |
| | | personnelData: [], // äººåæ°æ® |
| | | timeShow: false |
| | | }; |
| | | }, |
| | | onLoad(option) { |
| | | this.form.num = option.num |
| | | }, |
| | | methods: { |
| | | go() { |
| | | uni.navigateBack({ delta: 1 }); |
| | | }, |
| | | confirm(val) { |
| | | this.form.equipmentName = val.value[0].label |
| | | this.form.equipmentId = 1 |
| | | this.show = false |
| | | }, |
| | | timeConfirm(val) { |
| | | console.log(val) |
| | | this.form.startTime = val[0] |
| | | this.timeShow = false |
| | | } |
| | | } |
| | |
| | | font-weight: 400; |
| | | } |
| | | } |
| | | .fp_list_item_right v-deep { |
| | | .fp_list_item_right { |
| | | display: flex; |
| | | align-items: center; |
| | | .wu { |
| | |
| | | width: 180rpx; |
| | | height: 60rpx; |
| | | border-radius: 8rpx; |
| | | border: 1rpx solid #E5E5E5; |
| | | border: 2rpx solid #E5E5E5; |
| | | padding: 0 30rpx; |
| | | text-align: right; |
| | | font-size: 25rpx; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view> |
| | | åºåºåå表 |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | |
| | | }; |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="content"> |
| | | <view class="content_search"> |
| | | <Search @searchInput="searchInput" @submit="submit" @reset="reset" :isShow="true" |
| | | placeholder="æç´¢ç©æåç§°/ç¼ç /å·¥åºåç§°"> |
| | | <template v-slot:content> |
| | | <view class="Search_item"> |
| | | <view class="Search_item_label">è®¡åæ¥æ</view> |
| | | <view class="Search_item_content" @click="openDate"> |
| | | <view class="Search_item_content_a" :style="listData.startDate ? 'color: #000' : ''"> |
| | | {{ listData.startDate ? listData.startDate : 'å¼å§æ¥æ'}}</view> |
| | | <text>-</text> |
| | | <view class="Search_item_content_a" :style="listData.endDate ? 'color: #000' : ''"> |
| | | {{ listData.endDate ? listData.endDate : 'ç»ææ¥æ'}}</view> |
| | | </view> |
| | | </view> |
| | | <view class="Search_item"> |
| | | <view class="Search_item_label">åæ®ç±»å</view> |
| | | <view class="Search_item_content"> |
| | | <view class="tag"> |
| | | <view class="tag_item" :class="{'tag_active': item.isActive}" v-for="(item, i) in types" |
| | | :key="item.id" @click="changeTags(i)">{{item.name}}</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | </Search> |
| | | <view class="content_search_x"></view> |
| | | <LabelSelection :TagList="tagList" :isShow="true" @change="clickTag" /> |
| | | </view> |
| | | <view class="content_total" :style="{top: top}">å
±{{listData.total}}æ¡æ°æ®</view> |
| | | <view class="content_list"> |
| | | <scroll-view @scrolltolower="getLists" scroll-y :style="{height: height}"> |
| | | <view class="content_list_item" v-for="(item, i) in lists" :key="i" @click="jump(item)"> |
| | | <!-- item头é¨è§å¾ --> |
| | | <view class="content_list_item_top"> |
| | | <view class="content_list_item_top_left"> |
| | | <!-- <text>转åºåå·ï¼</text>--> |
| | | <text>{{ item.code }}</text> |
| | | </view> |
| | | <view class="content_list_item_top_right"> |
| | | <text class="created" v-if="item.status === 0">å¾
åºåº</text> |
| | | <text class="warning" v-else-if="item.status === 1">å·²åºåº</text> |
| | | <text class="green" v-else-if="item.status === 2">å·²å
¥åº</text> |
| | | <text class="info" v-else-if="item.status === 3">已忶</text> |
| | | <text class="info" v-else-if="item.status === 4">å·²éå</text> |
| | | </view> |
| | | </view> |
| | | <!-- item主é¢ä¿¡æ¯é¨å --> |
| | | <view class="content_list_item_content"> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">åæ®ç±»åï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ tyepToStr(item.type) }} |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">转åºä»åºï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ item.outWarehouseName }} |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">转åºä»ç®¡åï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ item.outUserName }} |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">转å
¥ä»åºï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ item.inWarehouseName }} |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">转å
¥ä»ç®¡åï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ item.inUserName }} |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">计åè½¬åºæ¥æï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ item.outPlandate }} |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">计å转å
¥æ¥æï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ item.inPlandate }} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </scroll-view> |
| | | </view> |
| | | <!-- éæ©æ¥æ --> |
| | | <u-calendar :show="timeShow" @close="timeShow = false" @confirm="timeConfirm"></u-calendar> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import Search from '@/components/Search.vue' |
| | | import LabelSelection from '@/components/LabelSelection.vue' |
| | | export default { |
| | | components: { |
| | | Search, |
| | | LabelSelection |
| | | }, |
| | | data() { |
| | | return { |
| | | height: '', |
| | | top: '', |
| | | listData: { |
| | | capacity: 10, |
| | | page: 0, |
| | | total: 0, |
| | | startDate: '', |
| | | endDate: '', |
| | | procedureIds: [], |
| | | departIds: '', |
| | | mixParam: '', |
| | | cateIds: [] |
| | | }, |
| | | types: [ |
| | | // { name: 'å
¨é¨', id: '', isActive: false }, |
| | | // { name: '车é´é¢æ', id: '1', isActive: false }, |
| | | // { name: '车é´å¤æ', id: '2', isActive: false }, |
| | | // { name: 'å
¶ä»', id: '3', isActive: false }, |
| | | { |
| | | name: '车é´é¢æ', |
| | | id: '1', |
| | | isActive: false |
| | | }, |
| | | { |
| | | name: '计å颿', |
| | | id: '2', |
| | | isActive: false |
| | | }, |
| | | { |
| | | name: 'æºå°å¤æ', |
| | | id: '3', |
| | | isActive: false |
| | | }, |
| | | { |
| | | name: 'å®å·¥å
¥åº', |
| | | id: '4', |
| | | isActive: false |
| | | }, |
| | | { |
| | | name: '车é´è½¬åº', |
| | | id: '5', |
| | | isActive: false |
| | | }, |
| | | { |
| | | name: 'å¤åé¢æè½¬åº', |
| | | id: '6', |
| | | isActive: false |
| | | }, |
| | | { |
| | | name: 'å¤åå®å·¥è½¬åº', |
| | | id: '7', |
| | | isActive: false |
| | | }, |
| | | { |
| | | name: '产åå
¥åº', |
| | | id: '8', |
| | | isActive: false |
| | | }, |
| | | { |
| | | name: '产å转åº', |
| | | id: '9', |
| | | isActive: false |
| | | }, |
| | | { |
| | | name: 'è®©æ¥æ¾è¡å
¥åº', |
| | | id: '10', |
| | | isActive: false |
| | | }, |
| | | { |
| | | name: 'è®©æ¥æ¾è¡è½¬åº', |
| | | id: '11', |
| | | isActive: false |
| | | }, |
| | | { |
| | | name: '客è¿è¿ä¿®é¢æ', |
| | | id: '12', |
| | | isActive: false |
| | | }, |
| | | { |
| | | name: '客è¿è¿ä¿®å
¥åº', |
| | | id: '13', |
| | | isActive: false |
| | | }, |
| | | { |
| | | name: 'è·¨ç»ç»è½¬åº', |
| | | id: '14', |
| | | isActive: false |
| | | }, |
| | | { |
| | | name: 'å·¥åºæ¥åº', |
| | | id: '15', |
| | | isActive: false |
| | | }, |
| | | { |
| | | name: '客éè¿ä¿®é¢æ', |
| | | id: '16', |
| | | isActive: false |
| | | }, |
| | | { |
| | | name: '客éè¿ä¿®å
¥åº', |
| | | id: '17', |
| | | isActive: false |
| | | }, |
| | | { |
| | | name: 'åºåå
¥åº', |
| | | id: '30', |
| | | isActive: false |
| | | } |
| | | ], |
| | | orderType: [ |
| | | { name: '车é´é¢æ', id: 1 }, |
| | | { name: '计å颿', id: 2 }, |
| | | { name: 'æºå°å¤æ', id: 3 }, |
| | | { name: 'å®å·¥å
¥åº', id: 4 }, |
| | | { name: '车é´è½¬åº', id: 5 }, |
| | | { name: 'å¤åé¢æè½¬åº', id: 6 }, |
| | | { name: 'å¤åå®å·¥è½¬åº', id: 7 }, |
| | | { name: '产åå
¥åº', id: 8 }, |
| | | { name: '产å转åº', id: 9 }, |
| | | { name: 'è®©æ¥æ¾è¡å
¥åº', id: 10 }, |
| | | { name: 'è®©æ¥æ¾è¡è½¬åº', id: 11 }, |
| | | { name: '客è¿è¿ä¿®é¢æ', id: 12 }, |
| | | { name: '客è¿è¿ä¿®å
¥åº', id: 13 }, |
| | | { name: 'è·¨ç»ç»è½¬åº', id: 14 }, |
| | | { name: 'å·¥åºæ¥åº', id: 15 }, |
| | | { name: '客éè¿ä¿®é¢æ', id: 16 }, |
| | | { name: '客éè¿ä¿®å
¥åº', id: 17 }, |
| | | { name: 'åºåå
¥åº', id: 30 } |
| | | ], |
| | | tagList: [{ |
| | | id: "", |
| | | name: "å
¨é¨", |
| | | num: "10", |
| | | }, |
| | | { |
| | | id: "0", |
| | | name: "已计å", |
| | | num: "132", |
| | | }, |
| | | { |
| | | id: "1", |
| | | name: "已转åº", |
| | | num: "3", |
| | | }, |
| | | { |
| | | id: "2", |
| | | name: "已转å
¥", |
| | | num: "12", |
| | | }, |
| | | { |
| | | id: "3", |
| | | name: "已忶", |
| | | num: "12", |
| | | } |
| | | ], |
| | | data: [], // å·¥åºæ°æ® |
| | | factoryList: [], |
| | | finished: true, |
| | | loading: false, |
| | | refreshing: false, |
| | | timeShow: false, |
| | | lists: [{ |
| | | id: 1, |
| | | status: 0, |
| | | urgent: 1, |
| | | num: 100, |
| | | batch: '11111', |
| | | planDate: '2023-08-29', |
| | | mmodel: { |
| | | name: 'å·¥åºè®¡å', |
| | | code: 'fbdseasafghb' |
| | | }, |
| | | usermodel: { |
| | | realname: '计å人å' |
| | | }, |
| | | pmodel: { |
| | | name: 'å·¥åºè®¡å' |
| | | }, |
| | | fmodel: { |
| | | name: 'å·¥å' |
| | | } |
| | | }, |
| | | { |
| | | id: 2, |
| | | status: 0, |
| | | urgent: 1, |
| | | num: 100, |
| | | batch: '11111', |
| | | planDate: '2023-08-29', |
| | | mmodel: { |
| | | name: 'å·¥åºè®¡å', |
| | | code: 'fbdseasafghb' |
| | | }, |
| | | usermodel: { |
| | | realname: '计å人å' |
| | | }, |
| | | pmodel: { |
| | | name: 'å·¥åºè®¡å' |
| | | }, |
| | | fmodel: { |
| | | name: 'å·¥å' |
| | | } |
| | | }, |
| | | { |
| | | id: 3, |
| | | status: 0, |
| | | urgent: 1, |
| | | num: 100, |
| | | batch: '11111', |
| | | planDate: '2023-08-29', |
| | | mmodel: { |
| | | name: 'å·¥åºè®¡å', |
| | | code: 'fbdseasafghb' |
| | | }, |
| | | usermodel: { |
| | | realname: '计å人å' |
| | | }, |
| | | pmodel: { |
| | | name: 'å·¥åºè®¡å' |
| | | }, |
| | | fmodel: { |
| | | name: 'å·¥å' |
| | | } |
| | | }, |
| | | { |
| | | id: 4, |
| | | status: 0, |
| | | urgent: 1, |
| | | num: 100, |
| | | batch: '11111', |
| | | planDate: '2023-08-29', |
| | | mmodel: { |
| | | name: 'å·¥åºè®¡å', |
| | | code: 'fbdseasafghb' |
| | | }, |
| | | usermodel: { |
| | | realname: '计å人å' |
| | | }, |
| | | pmodel: { |
| | | name: 'å·¥åºè®¡å' |
| | | }, |
| | | fmodel: { |
| | | name: 'å·¥å' |
| | | } |
| | | }, |
| | | { |
| | | id: 5, |
| | | status: 0, |
| | | urgent: 1, |
| | | num: 100, |
| | | batch: '11111', |
| | | planDate: '2023-08-29', |
| | | mmodel: { |
| | | name: 'å·¥åºè®¡å', |
| | | code: 'fbdseasafghb' |
| | | }, |
| | | usermodel: { |
| | | realname: '计å人å' |
| | | }, |
| | | pmodel: { |
| | | name: 'å·¥åºè®¡å' |
| | | }, |
| | | fmodel: { |
| | | name: 'å·¥å' |
| | | } |
| | | } |
| | | ] |
| | | }; |
| | | }, |
| | | onReady() { |
| | | var that = this |
| | | this.$nextTick(() => { |
| | | uni.createSelectorQuery().in(this).select('.content_search').boundingClientRect((rect) => { |
| | | that.height = `calc(100vh - ${rect.height + 80}px)` |
| | | that.top = `${rect.height}px` |
| | | }).exec() |
| | | }) |
| | | }, |
| | | methods: { |
| | | tyepToStr(type) { |
| | | // <!-- 1ã车é´é¢æï¼2ã车é´å¤æï¼3ãå
¶ä»ï¼4ãå®å·¥å
¥åº --> |
| | | for (const item of this.orderType) { |
| | | if (item.id == type) { |
| | | return item.name |
| | | } |
| | | } |
| | | return '-' |
| | | }, |
| | | // 跳转 |
| | | jump(item) { |
| | | uni.navigateTo({ |
| | | url: `/pages/planDetails/planDetails?id=${item.id}` |
| | | }) |
| | | }, |
| | | // è·å头é¨ç»ä»¶é«åº¦ |
| | | getHeight(height) { |
| | | this.height = height |
| | | }, |
| | | // éç½® |
| | | reset() { |
| | | this.listData.page = 0 |
| | | this.finished = false |
| | | this.lists = [] |
| | | this.listData.mixParam = '' |
| | | this.listData.startDate = '' |
| | | this.listData.endDate = '' |
| | | this.listData.procedureIds = [] |
| | | if (this.factoryList.length > 0) { |
| | | this.listData.departIds = this.factoryList[0].id |
| | | } |
| | | if (this.data.length > 0) { |
| | | this.data.forEach(item => { |
| | | item.isActive = false |
| | | }) |
| | | } |
| | | // this.getLists() |
| | | // this.pageCounts() |
| | | }, |
| | | // æ¥æç¡®å® |
| | | timeConfirm(val) { |
| | | this.listData.startDate = val[0] |
| | | this.listData.endDate = val[val.length - 1] |
| | | this.timeShow = false |
| | | }, |
| | | // 忢工å |
| | | changeTags(i, id) { |
| | | this.listData.departIds = id |
| | | this.getWorkingProcedures(id) |
| | | this.factoryList.forEach((item, index) => { |
| | | if (index === i) { |
| | | item.isActive = true |
| | | } else { |
| | | item.isActive = false |
| | | } |
| | | }) |
| | | }, |
| | | // æå¼æ¥ææä»¶ |
| | | openDate() { |
| | | this.timeShow = true |
| | | }, |
| | | // æç´¢ |
| | | searchInput(val) { |
| | | this.listData.mixParam = val |
| | | this.listData.page = 0 |
| | | this.finished = false |
| | | this.lists = [] |
| | | this.getLists() |
| | | }, |
| | | // ç¹å»æ ç¾æç´¢ |
| | | clickTag(ids) { |
| | | this.listData.cateIds = ids |
| | | this.listData.page = 0 |
| | | this.finished = false |
| | | this.lists = [] |
| | | // this.getLists() |
| | | }, |
| | | // è·åå表ç»è®¡ |
| | | pageCounts() { |
| | | pageCount({ |
| | | factoryId: this.listData.departIds, |
| | | procedureIdList: this.listData.procedureIds ? this.listData.procedureIds : [], |
| | | startDate: this.listData.startDate, |
| | | endDate: this.listData.endDate, |
| | | statusList: this.listData.cateIds |
| | | }).then(res => { |
| | | if (res.code === 200 && res.data) { |
| | | this.tagList[0].num = res.data.allNum.toString() |
| | | this.tagList[1].num = res.data.startNum.toString() |
| | | this.tagList[2].num = res.data.ingNum.toString() |
| | | this.tagList[3].num = res.data.endNum.toString() |
| | | } |
| | | }) |
| | | }, |
| | | // è·åå·¥åæ°æ® |
| | | getOrganizations() { |
| | | getOrganization({ |
| | | type: 1 |
| | | }).then(res => { |
| | | if (res.code === 200 && res.data && res.data.length !== 0) { |
| | | res.data.forEach((item, i) => { |
| | | item.isActive = i === 0; |
| | | }) |
| | | if (res.data.length > 0) { |
| | | this.factoryList = res.data |
| | | this.listData.departIds = this.factoryList[0].id |
| | | this.listData.procedureIds = '' |
| | | this.finished = false |
| | | this.getWorkingProcedures(this.factoryList[0].id) |
| | | this.getLists() |
| | | this.pageCounts() |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | // è·åå·¥åºæ°æ® |
| | | getWorkingProcedures(orgId) { |
| | | this.data = [] |
| | | getWorkingProcedure({ |
| | | orgId |
| | | }) |
| | | .then(res => { |
| | | if (res.code === 200 && res.data && res.data.length !== 0) { |
| | | res.data.forEach((item, i) => { |
| | | item.isActive = false; |
| | | }) |
| | | this.data = res.data |
| | | } |
| | | }) |
| | | }, |
| | | // æç´¢å¼¹æ¡æäº¤ |
| | | submit() { |
| | | let pmodelOrgId = [] |
| | | this.data.forEach((item) => { |
| | | if (item.isActive) { |
| | | pmodelOrgId.push(item.id) |
| | | } |
| | | }) |
| | | this.listData.procedureIds = pmodelOrgId |
| | | this.listData.page = 0 |
| | | this.finished = false |
| | | this.lists = [] |
| | | // this.getLists() |
| | | // this.pageCounts() |
| | | }, |
| | | // è·å计ååè¡¨æ°æ® |
| | | getLists() { |
| | | console.log('getLists') |
| | | if (!this.finished) { |
| | | this.loading = true |
| | | this.listData.page = this.listData.page++ |
| | | getList({ |
| | | capacity: this.listData.capacity, |
| | | model: { |
| | | mixParam: this.listData.mixParam, |
| | | startDate: this.listData.startDate, |
| | | endDate: this.listData.endDate, |
| | | procedureIdList: this.listData.procedureIds ? this.listData.procedureIds : [], |
| | | factoryId: this.listData.departIds, |
| | | statusList: this.listData.cateIds |
| | | }, |
| | | page: this.listData.page, |
| | | sorts: [{ |
| | | direction: 'ASC', |
| | | property: 'publishDate' |
| | | }] |
| | | }).then(res => { |
| | | this.loading = false |
| | | this.listData.total = res.data.total |
| | | if (this.refreshing) { |
| | | this.lists = [] |
| | | this.refreshing = false; |
| | | } |
| | | if (res.code === 200 && res.data.records.length !== 0) { |
| | | if (this.lists.length === 0) { |
| | | this.lists = res.data.records |
| | | } else { |
| | | this.lists.push(...res.data.records) |
| | | } |
| | | } else { |
| | | this.finished = true |
| | | } |
| | | }).catch(err => { |
| | | this.loading = false |
| | | this.finished = true |
| | | if (this.refreshing) { |
| | | this.lists = [] |
| | | this.refreshing = false; |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .content { |
| | | .content_search { |
| | | width: 100%; |
| | | padding: 30rpx; |
| | | background: white; |
| | | position: sticky; |
| | | top: 0; |
| | | z-index: 999; |
| | | box-sizing: border-box; |
| | | |
| | | .Search_item { |
| | | margin-bottom: 40rpx; |
| | | |
| | | .Search_item_label { |
| | | font-size: 30rpx; |
| | | font-weight: 500; |
| | | color: #222222; |
| | | } |
| | | |
| | | .Search_item_content { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | margin-top: 30rpx; |
| | | |
| | | .tag { |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | align-items: center; |
| | | |
| | | .tag_active { |
| | | background: $nav-color !important; |
| | | color: #ffffff !important; |
| | | } |
| | | |
| | | .tag_item { |
| | | padding: 22rpx 26rpx; |
| | | box-sizing: border-box; |
| | | background: #F2F2F2; |
| | | border-radius: 8rpx; |
| | | font-size: 26rpx; |
| | | font-weight: 400; |
| | | color: #333333; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | margin-right: 22rpx; |
| | | margin-bottom: 22rpx; |
| | | } |
| | | } |
| | | |
| | | text { |
| | | font-size: 26rpx; |
| | | font-weight: 400; |
| | | color: #333333; |
| | | margin: 0 30rpx; |
| | | } |
| | | |
| | | .Search_item_content_a { |
| | | padding: 20rpx 0; |
| | | flex: 1; |
| | | background: #F7F7F7; |
| | | border-radius: 8rpx; |
| | | border: 1rpx solid #EEEEEE; |
| | | font-size: 26rpx; |
| | | font-weight: 400; |
| | | color: #B2B2B2; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .content_search_x { |
| | | height: 24rpx; |
| | | } |
| | | } |
| | | |
| | | .content_list { |
| | | width: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | |
| | | .content_list_item { |
| | | width: 100%; |
| | | box-sizing: border-box; |
| | | padding: 30rpx; |
| | | display: flex; |
| | | flex-direction: column; |
| | | border-bottom: 1rpx solid #ececec; |
| | | background: white; |
| | | |
| | | .content_list_item_top { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | |
| | | .content_list_item_top_left { |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | text { |
| | | font-size: 32rpx; |
| | | font-weight: 500; |
| | | color: #333333; |
| | | } |
| | | } |
| | | |
| | | .content_list_item_top_right { |
| | | font-size: 26rpx; |
| | | font-weight: 400; |
| | | |
| | | .created { |
| | | color: $nav-stateColor1 !important; |
| | | } |
| | | |
| | | .warning { |
| | | color: $nav-stateColor5 !important; |
| | | } |
| | | |
| | | .green { |
| | | color: $nav-stateColor6 !important; |
| | | } |
| | | |
| | | .info { |
| | | color: $nav-stateColor3 !important; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .content_list_item_content { |
| | | padding: 24rpx 30rpx; |
| | | background: #f7f7f7; |
| | | border-radius: 16rpx; |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | justify-content: space-between; |
| | | margin-top: 32rpx; |
| | | |
| | | .content_list_item_content_item { |
| | | width: 100%; |
| | | display: flex; |
| | | margin-top: 24rpx; |
| | | |
| | | &:first-child { |
| | | margin-top: 0; |
| | | } |
| | | |
| | | // &:nth-child(1) { |
| | | // margin-top: 0 !important; |
| | | // } |
| | | // &:nth-child(2) { |
| | | // margin-top: 0 !important; |
| | | // } |
| | | .content_list_item_content_item_label { |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #666666; |
| | | flex-shrink: 0; |
| | | } |
| | | |
| | | .content_list_item_content_item_nr { |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #222222; |
| | | margin-right: 10rpx; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .content_total { |
| | | width: 100%; |
| | | height: 80rpx; |
| | | padding: 24rpx 30rpx; |
| | | background: #F7F7F7; |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | box-sizing: border-box; |
| | | color: #666666; |
| | | position: sticky; |
| | | z-index: 99; |
| | | } |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="content"> |
| | | <view class="order-message"> |
| | | <view class="content_list_item_top"> |
| | | <view class="content_list_item_top_left"> |
| | | <!--<text>å
¥åºåå·ï¼</text>--> |
| | | <text>{{ data.code }}</text> |
| | | </view> |
| | | <view class="content_list_item_top_right"> |
| | | <text class="warning" v-if="data.status === 0">å¾
å
¥åº</text> |
| | | <text class="green" v-else-if="data.status === 1">å·²å
¥åº</text> |
| | | <text class="info" v-else-if="data.status === 2">已忶</text> |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content"> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">åæ®ç±»åï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ orderTyepToStr(data.billType) }} |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">å
¥è´§ä»åºï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ data.warehouseCode + ' | ' + data.warehouseName }} |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">è®¡åæ¥æï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ data.planDate }} |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">æ¥æºç±»åï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ tyepToStr(data.originType) }} |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">æ¥æºåå·ï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ data.originCode ? data.originCode : '-' }} |
| | | </view> |
| | | </view> |
| | | <view v-if="data.updateName" class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">æä½äººï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ data.updateName + ' - ' + data.updateMobile }} |
| | | </view> |
| | | </view> |
| | | <view v-if="data.updateTime" class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">æä½æ¶é´ï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | {{ data.updateTime }} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <!-- 转åºç©æ --> |
| | | <view class="title"> |
| | | <text class="title-prefix"></text> |
| | | <text>{{ data.status==1 ? 'å·²å
¥åºç©æ' : 'å¾
å
¥åºç©æ' }}</text> |
| | | </view> |
| | | <view class="material-content"> |
| | | <view class="item-style" v-for="(item, index) in materailArray" :key="index"> |
| | | <view class="item-title-style"> |
| | | <text style="font-weight: 500;">{{ item.materialName + ' | ' + item.materialCode}}</text> |
| | | </view> |
| | | <view class="item-content-style"> |
| | | <view class="content_list_item_content_item"> |
| | | <text class="content_list_item_content_item_label">æ¹æ¬¡å·ï¼</text> |
| | | <text class="content_list_item_content_item_nr">{{ item.batch || '-' }}</text> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <text class="content_list_item_content_item_label">æ°éï¼</text> |
| | | <text class="content_list_item_content_item_nr">{{ item.doneNum + item.unitName }}</text> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <text class="content_list_item_content_item_label">å·¥åºï¼</text> |
| | | <text class="content_list_item_content_item_nr">{{ item.procedureName || '-' }}</text> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <view class="content_list_item_content_item_label">è´¨éï¼</view> |
| | | <view class="content_list_item_content_item_nr"> |
| | | <text v-if="item.qualityType == 0" class="green">åæ ¼</text> |
| | | <text v-else-if="item.qualityType == 1" class="yellow">ä¸è¯</text> |
| | | <text v-else-if="item.qualityType == 2" class="red">æ¥åº</text> |
| | | <text v-else>-</text> |
| | | </view> |
| | | </view> |
| | | <view class="content_list_item_content_item"> |
| | | <text class="content_list_item_content_item_label">å
¥åºè´§ä½ï¼</text> |
| | | <text |
| | | class="content_list_item_content_item_nr">{{ item.locationName ? item.locationName : '-' }}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view v-if="data.status === 0" style="height:94rpx"></view> |
| | | <view v-if="data.status === 0" class="bottom-button"> |
| | | <button class="button button-cancel" @click="submit">å»å
¥åº</button> |
| | | <!-- <button class="button button-cancel" @click="cancel">åæ¶</button> --> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import { orderTyepToStr } from '@/util/constData.js' |
| | | export default { |
| | | data() { |
| | | return { |
| | | types: [ |
| | | { name: 'å
¨é¨', id: '', isActive: true }, |
| | | { name: 'éè´è®¢å', id: '0', isActive: false }, |
| | | { name: 'ç产工å', id: '1', isActive: false }, |
| | | { name: 'éå®è®¢å', id: '2', isActive: false }, |
| | | { name: '转åºå', id: '3', isActive: false }, |
| | | { name: 'çç¹å', id: '4', isActive: false }, |
| | | ], |
| | | data: {} |
| | | }; |
| | | }, |
| | | methods: { |
| | | tyepToStr(type) { |
| | | // <!-- 1ã车é´é¢æï¼2ã车é´å¤æï¼3ãå
¶ä»ï¼4ãå®å·¥å
¥åº --> |
| | | for (const item of this.types) { |
| | | if (parseInt(item.id) === this.type) { |
| | | return item.name |
| | | } |
| | | } |
| | | return '-' |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .content { |
| | | background: white; |
| | | |
| | | .order-message { |
| | | padding: 30rpx; |
| | | display: flex; |
| | | flex-direction: column; |
| | | |
| | | // border-bottom: 1rpx solid #ececec; |
| | | .content_list_item_top { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | |
| | | .content_list_item_top_left { |
| | | display: flex; |
| | | |
| | | // align-items: center; |
| | | text { |
| | | font-size: 32rpx; |
| | | font-weight: 500; |
| | | color: #333333; |
| | | } |
| | | } |
| | | |
| | | .content_list_item_top_right { |
| | | font-size: 26rpx; |
| | | font-weight: 400; |
| | | |
| | | .created { |
| | | color: $nav-stateColor1 !important; |
| | | } |
| | | |
| | | .warning { |
| | | color: $nav-stateColor5 !important; |
| | | } |
| | | |
| | | .green { |
| | | color: $nav-stateColor6 !important; |
| | | } |
| | | |
| | | .info { |
| | | color: $nav-stateColor3 !important; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .content_list_item_content { |
| | | padding: 24rpx 30rpx; |
| | | background: #f7f7f7; |
| | | border-radius: 16rpx; |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | justify-content: space-between; |
| | | margin-top: 32rpx; |
| | | |
| | | .content_list_item_content_item:first-child { |
| | | margin-top: 0; |
| | | } |
| | | |
| | | .content_list_item_content_item { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | margin-top: 24rpx; |
| | | |
| | | .content_list_item_content_item_label { |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #666666; |
| | | flex-shrink: 0; |
| | | } |
| | | |
| | | .content_list_item_content_item_nr { |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #222222; |
| | | margin-right: 10rpx; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .title { |
| | | background-color: #f7f7f7; |
| | | padding: 30rpx; |
| | | font-size: 30rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | .title-prefix { |
| | | display: inline-block; |
| | | background-color: #4275FC; |
| | | height: 30rpx; |
| | | width: 8rpx; |
| | | border-radius: 1rpx; |
| | | margin-right: 12rpx; |
| | | } |
| | | } |
| | | |
| | | .material-content { |
| | | padding: 30rpx; |
| | | |
| | | .item-style { |
| | | width: initial; |
| | | border-bottom: 1rpx solid #ececec; |
| | | margin-top: 30rpx; |
| | | |
| | | &:first-child { |
| | | margin-top: 0 !important; |
| | | } |
| | | |
| | | &:last-child { |
| | | border: none; |
| | | } |
| | | |
| | | .item-title-style { |
| | | margin-bottom: 12rpx; |
| | | font-size: 30rpx; |
| | | } |
| | | |
| | | .item-content-style { |
| | | // padding: 24rpx 30rpx; |
| | | // background-color: #f7f7f7; |
| | | // border-radius: 16rpx; |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | padding-bottom: 30rpx; |
| | | justify-content: space-between; |
| | | |
| | | &:last-child { |
| | | padding-bottom: 0; |
| | | } |
| | | |
| | | .content_list_item_content_item { |
| | | width: 100%; |
| | | display: flex; |
| | | margin-top: 24rpx; |
| | | |
| | | .content_list_item_content_item_label { |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #666666; |
| | | flex-shrink: 0; |
| | | } |
| | | |
| | | .content_list_item_content_item_nr { |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #222222; |
| | | margin-right: 10rpx; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .bottom-button { |
| | | padding: 1rpx; |
| | | background-color: #f7f7f7; |
| | | position: fixed; |
| | | width: 100%; |
| | | bottom: 0; |
| | | height: 188rpx; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | |
| | | .button-action { |
| | | background: #fff; |
| | | color: $nav-color; |
| | | } |
| | | |
| | | .button-cancel { |
| | | background: $nav-color; |
| | | color: #FFFFFF; |
| | | } |
| | | |
| | | .button { |
| | | margin: 32rpx 32rpx 68rpx 32rpx; |
| | | height: 88rpx; |
| | | /*width: 668rpx;*/ |
| | | // width: 334rpx; |
| | | border: none; |
| | | border-radius: 8rpx; |
| | | box-shadow: 0 0 12rpx 0 rgba(0, 0, 0, 0.08); |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | } |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="page"> |
| | | <view class="page_info"> |
| | | <view class="page_info_title">{{info.code}}</view> |
| | | <view class="page_info_nr"> |
| | | <view class="item"> |
| | | <view class="item_label">ç©æä¿¡æ¯ï¼</view> |
| | | <view class="item_nr" v-if="info.mmodel">{{info.mmodel.name}}丨{{info.mmodel.code}}</view> |
| | | </view> |
| | | <view class="items" style="margin-top: 0"> |
| | | <view class="item_label">ç产æ°éï¼</view> |
| | | <view class="item_nr" v-if="info.umodel">{{info.num}}{{info.umodel.name}}</view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="item_label">çäº§æ¹æ¬¡ï¼</view> |
| | | <view class="item_nr">{{info.batch}}</view> |
| | | </view> |
| | | <view class="items"> |
| | | <view class="item_label">ç产工åºï¼</view> |
| | | <view class="item_nr" v-if="info.pmodel">{{info.pmodel.name}}</view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="item_label">å·¥åç¼å·ï¼</view> |
| | | <view class="item_nr">{{info.workorderCode}}</view> |
| | | </view> |
| | | <!-- <view class="items">--> |
| | | <!-- <view class="item_label">ç产人åï¼</view>--> |
| | | <!-- <view class="item_nr">{{info.proUserids}}</view>--> |
| | | <!-- </view>--> |
| | | <view class="items"> |
| | | <view class="item_label">ç产设å¤ï¼</view> |
| | | <view class="item_nr" v-if="info.devmodel">{{info.devmodel.name}}</view> |
| | | </view> |
| | | <!-- <view class="items"> |
| | | <view class="item_label">å·¥è£
ç ï¼</view> |
| | | <view class="item_nr" v-if="info.amodel">{{info.amodel.code}}</view> |
| | | </view> --> |
| | | </view> |
| | | </view> |
| | | <view class="page_title">æ£éªä¿¡æ¯</view> |
| | | <view class="page_info1"> |
| | | <view class="page_info1_item" style="margin: 0;"> |
| | | <view class="label">æ£éªäººåï¼</view> |
| | | <view class="nr">{{info.smodelRealName}}/{{info.checkUserDepartName}}</view> |
| | | </view> |
| | | <view class="page_info1_items"> |
| | | <view class="label">æ£éªæ¥æï¼</view> |
| | | <view class="nr">{{info.checkDate}}</view> |
| | | </view> |
| | | <view class="page_info1_item"> |
| | | <view class="label">åæ ¼æ°éï¼</view> |
| | | <view class="nr" v-if="info.umodel">{{info.qualifiedNum}}{{info.umodel.name}}</view> |
| | | </view> |
| | | <view class="page_info1_items"> |
| | | <view class="label">ä¸è¯æ°éï¼</view> |
| | | <view class="nr" v-if="info.umodel">{{info.unqualifiedNum}}{{info.umodel.name}}</view> |
| | | </view> |
| | | </view> |
| | | <view class="page_err" v-if="info.checkInfo"> |
| | | <!-- <view class="page_err_item"> |
| | | <text>å·¥è£
{{info.qualifiedApplianceCode}}</text> |
| | | <text v-if="info.umodel">{{info.unqualifiedNum}}{{info.umodel.name}}</text> |
| | | </view> --> |
| | | <view class="page_err_items"> |
| | | <text>ä¸è¯åå ï¼</text> |
| | | <text>{{info.checkInfo}}</text> |
| | | </view> |
| | | </view> |
| | | <view class="page_footer" v-if="info.createUser === $store.state.userInfo.id && info.workorderstatus !== 4 && info.workorderstatus !== 2"> |
| | | <view class="page_footer_dele red" @click="dele">å é¤</view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | info: {} |
| | | }; |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .page { |
| | | width: 100%; |
| | | height: 100%; |
| | | position: absolute; |
| | | background: #F7F7F7; |
| | | .page_info { |
| | | padding: 30rpx; |
| | | background: #ffffff; |
| | | .page_info_title { |
| | | font-size: 32rpx; |
| | | font-weight: 500; |
| | | color: #333333; |
| | | } |
| | | .page_info_nr { |
| | | padding: 0 30rpx 30rpx 30rpx; |
| | | margin-top: 30rpx; |
| | | background: #F7F7F7; |
| | | border-radius: 16rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | flex-wrap: wrap; |
| | | .items { |
| | | width: 45%; |
| | | display: flex; |
| | | margin-top: 24rpx; |
| | | .item_label { |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #666666; |
| | | flex-shrink: 0; |
| | | } |
| | | .item_nr { |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #222222; |
| | | } |
| | | } |
| | | .item { |
| | | width: 55%; |
| | | display: flex; |
| | | margin-top: 24rpx; |
| | | .item_label { |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #666666; |
| | | flex-shrink: 0; |
| | | } |
| | | .item_nr { |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #222222; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | .page_title { |
| | | padding: 40rpx 30rpx 30rpx 30rpx; |
| | | font-size: 32rpx; |
| | | font-weight: 500; |
| | | color: #222222; |
| | | } |
| | | .page_info1 { |
| | | padding: 0 30rpx 30rpx 30rpx; |
| | | background: #ffffff; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | flex-wrap: wrap; |
| | | margin-bottom: 24rpx; |
| | | .page_info1_items { |
| | | display: flex; |
| | | width: 45%; |
| | | margin-top: 30rpx; |
| | | .label { |
| | | font-size: 26rpx; |
| | | font-weight: 400; |
| | | color: #666666; |
| | | flex-shrink: 0; |
| | | } |
| | | .nr { |
| | | font-size: 26rpx; |
| | | font-weight: 400; |
| | | color: #222222; |
| | | } |
| | | } |
| | | .page_info1_item { |
| | | display: flex; |
| | | width: 55%; |
| | | margin-top: 30rpx; |
| | | .label { |
| | | font-size: 26rpx; |
| | | font-weight: 400; |
| | | color: #666666; |
| | | flex-shrink: 0; |
| | | } |
| | | .nr { |
| | | font-size: 26rpx; |
| | | font-weight: 400; |
| | | color: #222222; |
| | | } |
| | | } |
| | | } |
| | | .page_err { |
| | | padding: 0 30rpx 30rpx 30rpx; |
| | | background: #ffffff; |
| | | .page_err_item { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | padding-top: 30rpx; |
| | | text { |
| | | &:nth-child(1) { |
| | | font-size: 32rpx; |
| | | font-weight: 500; |
| | | color: #DE5243; |
| | | } |
| | | &:nth-child(2) { |
| | | font-size: 26rpx; |
| | | font-weight: 400; |
| | | color: #DE5243; |
| | | } |
| | | } |
| | | } |
| | | .page_err_items { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | padding-top: 30rpx; |
| | | text { |
| | | &:nth-child(1) { |
| | | font-size: 26rpx; |
| | | font-weight: 400; |
| | | color: #666666; |
| | | flex-shrink: 0; |
| | | } |
| | | &:nth-child(2) { |
| | | font-size: 26rpx; |
| | | font-weight: 400; |
| | | color: #222222; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | .page_footer { |
| | | position: fixed; |
| | | bottom: 0; |
| | | width: 100%; |
| | | padding-bottom: 68rpx; |
| | | padding-left: 30rpx; |
| | | padding-right: 30rpx; |
| | | box-sizing: border-box; |
| | | .page_footer_dele { |
| | | width: 100%; |
| | | height: 88rpx; |
| | | background: white; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 30rpx; |
| | | border-radius: 8rpx; |
| | | box-shadow: 0 0 12rpx 0 rgba(0,0,0,0.08); |
| | | } |
| | | } |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="content"> |
| | | <view class="content_search"> |
| | | <Search @searchInput="searchInput" @submit="submit" @reset="reset" :isShow="true" placeholder="æç´¢å·¥åç¼ç /ç©æç¼ç 2"> |
| | | <template v-slot:content> |
| | | <view class="Search_item"> |
| | | <view class="Search_item_label">æ£éªæ¥æ</view> |
| | | <view class="Search_item_content" @click="timeShow = true"> |
| | | <view class="Search_item_content_a" :style="pageData.checkStartDate ? 'color: #000;' : ''">{{ pageData.checkStartDate ? pageData.checkStartDate : 'å¼å§æ¥æ'}}</view> |
| | | <text>-</text> |
| | | <view class="Search_item_content_a" :style="pageData.checkEndDate ? 'color: #000;' : ''">{{ pageData.checkEndDate ? pageData.checkEndDate : 'ç»ææ¥æ'}}</view> |
| | | </view> |
| | | </view> |
| | | <view class="Search_item"> |
| | | <view class="Search_item_label">æ£éªç±»å</view> |
| | | <view class="Search_item_content"> |
| | | <view class="tag"> |
| | | <view class="tag_item" :class="{'tag_active': item.isActive}" v-for="(item, i) in data" :key="item.id" @click="changeTag(i)">{{item.name}}</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="Search_item"> |
| | | <view class="Search_item_label">æ£éªå·¥åº</view> |
| | | <view class="Search_item_content"> |
| | | <view class="tag"> |
| | | <view class="tag_item" :class="{'tag_active': item.isActive}" v-for="(item, i) in workingProcedure" :key="item.id" @click="changeTag1(i)">{{item.name}}</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="Search_item"> |
| | | <view class="Search_item_label">æ¹æ¬¡å·</view> |
| | | <view class="Search_item_content"> |
| | | <u--input placeholder="请è¾å
¥æ¹æ¬¡å·" border="surround" v-model="pageData.batch"></u--input> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | </Search> |
| | | </view> |
| | | <view class="content_total" :style="{top: top}">å
±{{listData.total}}æ¡æ°æ®</view> |
| | | <view class="content_list"> |
| | | <scroll-view @scrolltolower="getLists" scroll-y :style="{height: height}"> |
| | | <view class="content_list_item" v-for="item in lists" :key="item.id" @click="jump(item)"> |
| | | <view class="content_list_item_title"> |
| | | <text>{{item.code}}</text> |
| | | <text class="warning" v-if="item.checkType === 0">巡线</text> |
| | | <text v-if="item.checkType === 1">å·¡æ£</text> |
| | | <text class="green" v-if="item.checkType === 2">å®å·¥æ£</text> |
| | | </view> |
| | | <view class="content_list_item_nr"> |
| | | <view class="content_list_item_nr_box"> |
| | | <view class="label">ç©æä¿¡æ¯ï¼</view> |
| | | <view class="cr" v-if="item.mmodel">{{item.mmodel.name}}丨{{item.mmodel.code}}</view> |
| | | </view> |
| | | <view class="content_list_item_nr_boxs"> |
| | | <view class="label">ç产æ°éï¼</view> |
| | | <view class="cr" v-if="item.umodel">{{item.num}}{{item.umodel.name}}</view> |
| | | </view> |
| | | <view class="content_list_item_nr_box"> |
| | | <view class="label">çäº§æ¹æ¬¡ï¼</view> |
| | | <view class="cr">{{item.batch}}</view> |
| | | </view> |
| | | <view class="content_list_item_nr_boxs"> |
| | | <view class="label">ç产工åºï¼</view> |
| | | <view class="cr" v-if="item.pmodel">{{item.pmodel.name}}</view> |
| | | </view> |
| | | <view class="content_list_item_nr_box"> |
| | | <view class="label">å·¥åç¼å·ï¼</view> |
| | | <view class="cr">{{item.workorderCode}}</view> |
| | | </view> |
| | | <view class="content_list_item_nr_boxs"> |
| | | <view class="label">æ£éªäººåï¼</view> |
| | | <view class="cr">{{item.smodelRealName}}/{{item.checkUserDepartName}}</view> |
| | | </view> |
| | | <!-- <view class="content_list_item_nr_box"> |
| | | <view class="label">æ£éªæ¥æï¼</view> |
| | | <view class="cr">{{item.checkDate}}</view> |
| | | </view> --> |
| | | <!-- <view class="content_list_item_nr_boxs"> |
| | | <view class="label">å·¥è£
ç ï¼</view> |
| | | <view class="cr" v-if="item.amodel">{{item.amodel.code}}</view> |
| | | </view> --> |
| | | <view class="content_list_item_nr_box"> |
| | | <view class="label">åæ ¼æ°éï¼</view> |
| | | <view class="cr" v-if="item.umodel">{{item.qualifiedNum}}{{item.umodel.name}}</view> |
| | | </view> |
| | | <view class="content_list_item_nr_boxs"> |
| | | <view class="label">ä¸è¯æ°éï¼</view> |
| | | <view class="cr warning" v-if="item.umodel">{{item.unqualifiedNum}}{{item.umodel.name}}</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </scroll-view> |
| | | </view> |
| | | <!-- éæ©æ¥æ --> |
| | | <u-calendar :show="timeShow" mode="range" @confirm="timeConfirm"></u-calendar> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import Search from '@/components/Search.vue' |
| | | export default { |
| | | components: { Search }, |
| | | data() { |
| | | return { |
| | | height: '', |
| | | top: '', |
| | | listData: { |
| | | capacity: 10, |
| | | page: 0, |
| | | total: 0, |
| | | startDate: '', |
| | | endDate: '', |
| | | procedureIds: [], |
| | | departIds: '', |
| | | mixParam: '', |
| | | cateIds: [] |
| | | }, |
| | | data: [ // æ£éªç±»å |
| | | { id: '0', name: '巡线', isActive: false }, |
| | | { id: '1', name: 'å·¡æ£', isActive: false }, |
| | | { id: '2', name: 'å®å·¥æ£', isActive: false } |
| | | ], |
| | | workingProcedure: [], // å·¥åº |
| | | finished: true, |
| | | loading: false, |
| | | refreshing: false, |
| | | timeShow: false, |
| | | lists: [ |
| | | { |
| | | id: 1, |
| | | checkType: 0, |
| | | status: 0, |
| | | code: '1234543223', |
| | | urgent: 1, |
| | | num: 100, |
| | | batch: '11111', |
| | | planDate: '2023-08-29', |
| | | mmodel: { |
| | | name: 'å·¥åºè®¡å', |
| | | code: 'fbdseasafghb' |
| | | }, |
| | | usermodel: { |
| | | realname: '计å人å' |
| | | }, |
| | | pmodel: { |
| | | name: 'å·¥åºè®¡å' |
| | | }, |
| | | fmodel: { |
| | | name: 'å·¥å' |
| | | } |
| | | }, |
| | | { |
| | | id: 2, |
| | | checkType: 1, |
| | | code: '1234543223', |
| | | status: 0, |
| | | urgent: 1, |
| | | num: 100, |
| | | batch: '11111', |
| | | planDate: '2023-08-29', |
| | | mmodel: { |
| | | name: 'å·¥åºè®¡å', |
| | | code: 'fbdseasafghb' |
| | | }, |
| | | usermodel: { |
| | | realname: '计å人å' |
| | | }, |
| | | pmodel: { |
| | | name: 'å·¥åºè®¡å' |
| | | }, |
| | | fmodel: { |
| | | name: 'å·¥å' |
| | | } |
| | | }, |
| | | { |
| | | id: 3, |
| | | checkType: 2, |
| | | code: '1234543223', |
| | | status: 0, |
| | | urgent: 1, |
| | | num: 100, |
| | | batch: '11111', |
| | | planDate: '2023-08-29', |
| | | mmodel: { |
| | | name: 'å·¥åºè®¡å', |
| | | code: 'fbdseasafghb' |
| | | }, |
| | | usermodel: { |
| | | realname: '计å人å' |
| | | }, |
| | | pmodel: { |
| | | name: 'å·¥åºè®¡å' |
| | | }, |
| | | fmodel: { |
| | | name: 'å·¥å' |
| | | } |
| | | }, |
| | | { |
| | | checkType: 2, |
| | | id: 4, |
| | | status: 0, |
| | | urgent: 1, |
| | | code: '1234543223', |
| | | num: 100, |
| | | batch: '11111', |
| | | planDate: '2023-08-29', |
| | | mmodel: { |
| | | name: 'å·¥åºè®¡å', |
| | | code: 'fbdseasafghb' |
| | | }, |
| | | usermodel: { |
| | | realname: '计å人å' |
| | | }, |
| | | pmodel: { |
| | | name: 'å·¥åºè®¡å' |
| | | }, |
| | | fmodel: { |
| | | name: 'å·¥å' |
| | | } |
| | | }, |
| | | { |
| | | checkType: 1, |
| | | id: 5, |
| | | status: 0, |
| | | code: '1234543223', |
| | | urgent: 1, |
| | | num: 100, |
| | | batch: '11111', |
| | | planDate: '2023-08-29', |
| | | mmodel: { |
| | | name: 'å·¥åºè®¡å', |
| | | code: 'fbdseasafghb' |
| | | }, |
| | | usermodel: { |
| | | realname: '计å人å' |
| | | }, |
| | | pmodel: { |
| | | name: 'å·¥åºè®¡å' |
| | | }, |
| | | fmodel: { |
| | | name: 'å·¥å' |
| | | } |
| | | } |
| | | ] |
| | | }; |
| | | }, |
| | | onReady() { |
| | | var that = this |
| | | this.$nextTick(() => { |
| | | uni.createSelectorQuery().in(this).select('.content_search').boundingClientRect((rect) => { |
| | | that.height = `calc(100vh - ${rect.height + 80}px)` |
| | | that.top = `${rect.height}px` |
| | | }).exec() |
| | | }) |
| | | }, |
| | | methods: { |
| | | // 跳转 |
| | | jump(item) { |
| | | uni.navigateTo({ |
| | | url: `/pages/InspectionDetails/InspectionDetails?id=${item.id}` |
| | | }) |
| | | }, |
| | | // è·å头é¨ç»ä»¶é«åº¦ |
| | | getHeight(height) { |
| | | this.height = height |
| | | }, |
| | | // éç½® |
| | | reset() { |
| | | this.listData.page = 0 |
| | | this.finished = false |
| | | this.lists = [] |
| | | this.listData.mixParam = '' |
| | | this.listData.startDate = '' |
| | | this.listData.endDate = '' |
| | | this.listData.procedureIds = [] |
| | | if (this.factoryList.length > 0) { |
| | | this.listData.departIds = this.factoryList[0].id |
| | | } |
| | | if (this.data.length > 0) { |
| | | this.data.forEach(item => { item.isActive = false }) |
| | | } |
| | | // this.getLists() |
| | | // this.pageCounts() |
| | | }, |
| | | // æ¥æç¡®å® |
| | | timeConfirm(val) { |
| | | this.listData.startDate = val[0] |
| | | this.listData.endDate = val[val.length - 1] |
| | | this.timeShow = false |
| | | }, |
| | | // 忢工å |
| | | changeTags(i, id) { |
| | | this.listData.departIds = id |
| | | this.getWorkingProcedures(id) |
| | | this.factoryList.forEach((item, index) => { |
| | | if (index === i) { |
| | | item.isActive = true |
| | | } else { |
| | | item.isActive = false |
| | | } |
| | | }) |
| | | }, |
| | | // æå¼æ¥ææä»¶ |
| | | openDate() { |
| | | this.timeShow = true |
| | | }, |
| | | // æç´¢ |
| | | searchInput(val) { |
| | | this.listData.mixParam = val |
| | | this.listData.page = 0 |
| | | this.finished = false |
| | | this.lists = [] |
| | | this.getLists() |
| | | }, |
| | | // ç¹å»æ ç¾æç´¢ |
| | | clickTag(ids) { |
| | | this.listData.cateIds = ids |
| | | this.listData.page = 0 |
| | | this.finished = false |
| | | this.lists = [] |
| | | // this.getLists() |
| | | }, |
| | | // è·åå表ç»è®¡ |
| | | pageCounts() { |
| | | pageCount({ |
| | | factoryId: this.listData.departIds, |
| | | procedureIdList: this.listData.procedureIds ? this.listData.procedureIds : [], |
| | | startDate: this.listData.startDate, |
| | | endDate: this.listData.endDate, |
| | | statusList: this.listData.cateIds |
| | | }).then(res => { |
| | | if (res.code === 200 && res.data) { |
| | | this.tagList[0].num = res.data.allNum.toString() |
| | | this.tagList[1].num = res.data.startNum.toString() |
| | | this.tagList[2].num = res.data.ingNum.toString() |
| | | this.tagList[3].num = res.data.endNum.toString() |
| | | } |
| | | }) |
| | | }, |
| | | // è·åå·¥åæ°æ® |
| | | getOrganizations() { |
| | | getOrganization({ |
| | | type: 1 |
| | | }).then(res => { |
| | | if (res.code === 200 && res.data && res.data.length !== 0) { |
| | | res.data.forEach((item, i) => { |
| | | item.isActive = i === 0; |
| | | }) |
| | | if (res.data.length > 0) { |
| | | this.factoryList = res.data |
| | | this.listData.departIds = this.factoryList[0].id |
| | | this.listData.procedureIds = '' |
| | | this.finished = false |
| | | this.getWorkingProcedures(this.factoryList[0].id) |
| | | this.getLists() |
| | | this.pageCounts() |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | // è·åå·¥åºæ°æ® |
| | | getWorkingProcedures(orgId) { |
| | | this.data = [] |
| | | getWorkingProcedure({ orgId }) |
| | | .then(res => { |
| | | if (res.code === 200 && res.data && res.data.length !== 0) { |
| | | res.data.forEach((item, i) => { |
| | | item.isActive = false; |
| | | }) |
| | | this.data = res.data |
| | | } |
| | | }) |
| | | }, |
| | | // æç´¢å¼¹æ¡æäº¤ |
| | | submit() { |
| | | let pmodelOrgId = [] |
| | | this.data.forEach((item) => { |
| | | if (item.isActive) { |
| | | pmodelOrgId.push(item.id) |
| | | } |
| | | }) |
| | | this.listData.procedureIds = pmodelOrgId |
| | | this.listData.page = 0 |
| | | this.finished = false |
| | | this.lists = [] |
| | | // this.getLists() |
| | | // this.pageCounts() |
| | | }, |
| | | // è·å计ååè¡¨æ°æ® |
| | | getLists() { |
| | | console.log('getLists') |
| | | if (!this.finished) { |
| | | this.loading = true |
| | | this.listData.page = this.listData.page++ |
| | | getList({ |
| | | capacity: this.listData.capacity, |
| | | model: { |
| | | mixParam: this.listData.mixParam, |
| | | startDate: this.listData.startDate, |
| | | endDate: this.listData.endDate, |
| | | procedureIdList: this.listData.procedureIds ? this.listData.procedureIds : [], |
| | | factoryId: this.listData.departIds, |
| | | statusList: this.listData.cateIds |
| | | }, |
| | | page: this.listData.page, |
| | | sorts: [ |
| | | { |
| | | direction: 'ASC', |
| | | property: 'publishDate' |
| | | } |
| | | ] |
| | | }).then(res => { |
| | | this.loading = false |
| | | this.listData.total = res.data.total |
| | | if (this.refreshing) { |
| | | this.lists = [] |
| | | this.refreshing = false; |
| | | } |
| | | if (res.code === 200 && res.data.records.length !== 0) { |
| | | if (this.lists.length === 0) { |
| | | this.lists = res.data.records |
| | | } else { |
| | | this.lists.push(...res.data.records) |
| | | } |
| | | } else { |
| | | this.finished = true |
| | | } |
| | | }).catch(err => { |
| | | this.loading = false |
| | | this.finished = true |
| | | if (this.refreshing) { |
| | | this.lists = [] |
| | | this.refreshing = false; |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .content { |
| | | .content_search { |
| | | width: 100%; |
| | | padding: 30rpx; |
| | | background: white; |
| | | position: sticky; |
| | | top: 0; |
| | | z-index: 999; |
| | | box-sizing: border-box; |
| | | .Search_item { |
| | | margin-bottom: 40rpx; |
| | | .Search_item_label { |
| | | font-size: 30rpx; |
| | | font-weight: 500; |
| | | color: #222222; |
| | | } |
| | | .Search_item_content { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | margin-top: 30rpx; |
| | | input { |
| | | width: 100%; |
| | | height: 70rpx; |
| | | border-radius: 10rpx; |
| | | padding: 0 20rpx; |
| | | box-sizing: border-box; |
| | | border: 1rpx solid #939393; |
| | | color: black; |
| | | font-size: 26rpx; |
| | | } |
| | | input::-webkit-input-placeholder { |
| | | color: #999999; |
| | | font-size: 26rpx; |
| | | } |
| | | input:-moz-placeholder { |
| | | color: #999999; |
| | | font-size: 26rpx; |
| | | } |
| | | input::-moz-placeholder { |
| | | color: #999999; |
| | | font-size: 26rpx; |
| | | } |
| | | input:-ms-input-placeholder { |
| | | color: #999999; |
| | | font-size: 26rpx; |
| | | } |
| | | .tag { |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | align-items: center; |
| | | .tag_active { |
| | | background: $nav-color !important; |
| | | color: #ffffff !important; |
| | | } |
| | | .tag_item { |
| | | width: 156rpx; |
| | | height: 70rpx; |
| | | box-sizing: border-box; |
| | | background: #F2F2F2; |
| | | border-radius: 8rpx; |
| | | font-size: 26rpx; |
| | | font-weight: 400; |
| | | color: #333333; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | margin-right: 22rpx; |
| | | margin-bottom: 22rpx; |
| | | &:nth-child(4n) { |
| | | margin-right: 0; |
| | | } |
| | | } |
| | | } |
| | | text { |
| | | font-size: 26rpx; |
| | | font-weight: 400; |
| | | color: #333333; |
| | | } |
| | | .Search_item_content_a { |
| | | width: 308rpx; |
| | | height: 70rpx; |
| | | background: #F7F7F7; |
| | | border-radius: 8rpx; |
| | | border: 1rpx solid #EEEEEE; |
| | | font-size: 26rpx; |
| | | font-weight: 400; |
| | | color: #B2B2B2; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | } |
| | | } |
| | | .content_search_x { |
| | | height: 24rpx; |
| | | } |
| | | } |
| | | .content_list { |
| | | width: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | .content_list_item { |
| | | width: 100%; |
| | | box-sizing: border-box; |
| | | padding: 30rpx; |
| | | background: #ffffff; |
| | | margin-bottom: 20rpx; |
| | | .content_list_item_title { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | .warning { |
| | | color: $nav-stateColor5 !important; |
| | | } |
| | | .green { |
| | | color: $nav-stateColor2 !important; |
| | | } |
| | | text { |
| | | font-size: 32rpx; |
| | | font-weight: 500; |
| | | color: #333333; |
| | | } |
| | | } |
| | | .content_list_item_nr { |
| | | padding: 24rpx 30rpx; |
| | | background: #F7F7F7; |
| | | border-radius: 16rpx; |
| | | margin-top: 30rpx; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | flex-wrap: wrap; |
| | | .content_list_item_nr_boxs { |
| | | width: 45%; |
| | | display: flex; |
| | | margin-top: 24rpx; |
| | | &:nth-child(1) { |
| | | margin-top: 0; |
| | | } |
| | | &:nth-child(2) { |
| | | margin-top: 0; |
| | | } |
| | | .warning { |
| | | color: $nav-stateColor4 !important; |
| | | } |
| | | .label { |
| | | flex-shrink: 0; |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #666666; |
| | | } |
| | | .cr { |
| | | flex: 1; |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #222222; |
| | | overflow: hidden; |
| | | white-space: nowrap; |
| | | text-overflow: ellipsis; |
| | | -o-text-overflow:ellipsis; |
| | | } |
| | | } |
| | | .content_list_item_nr_box { |
| | | width: 55%; |
| | | display: flex; |
| | | margin-top: 24rpx; |
| | | &:nth-child(1) { |
| | | margin-top: 0; |
| | | } |
| | | &:nth-child(2) { |
| | | margin-top: 0; |
| | | } |
| | | .label { |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #666666; |
| | | flex-shrink: 0; |
| | | } |
| | | .cr { |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #222222; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | .content_total { |
| | | width: 100%; |
| | | height: 80rpx; |
| | | padding: 24rpx 30rpx; |
| | | background: #F7F7F7; |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | box-sizing: border-box; |
| | | color: #666666; |
| | | position: sticky; |
| | | z-index: 99; |
| | | } |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | export const orderType = [ |
| | | { |
| | | name: '车é´é¢æ', |
| | | id: 1 |
| | | }, |
| | | { |
| | | name: '计å颿', |
| | | id: 2 |
| | | }, |
| | | { |
| | | name: 'æºå°å¤æ', |
| | | id: 3 |
| | | }, |
| | | { |
| | | name: 'å®å·¥å
¥åº', |
| | | id: 4 |
| | | }, |
| | | { |
| | | name: '车é´è½¬åº', |
| | | id: 5 |
| | | }, |
| | | { |
| | | name: 'å¤åé¢æè½¬åº', |
| | | id: 6 |
| | | }, |
| | | { |
| | | name: 'å¤åå®å·¥è½¬åº', |
| | | id: 7 |
| | | }, |
| | | { |
| | | name: '产åå
¥åº', |
| | | id: 8 |
| | | }, |
| | | { |
| | | name: '产å转åº', |
| | | id: 9 |
| | | }, |
| | | { |
| | | name: 'è®©æ¥æ¾è¡å
¥åº', |
| | | id: 10 |
| | | }, |
| | | { |
| | | name: 'è®©æ¥æ¾è¡è½¬åº', |
| | | id: 11 |
| | | }, |
| | | { |
| | | name: '客è¿è¿ä¿®é¢æ', |
| | | id: 12 |
| | | }, |
| | | { |
| | | name: '客è¿è¿ä¿®å
¥åº', |
| | | id: 13 |
| | | }, |
| | | { |
| | | name: 'è·¨ç»ç»è½¬åº', |
| | | id: 14 |
| | | }, |
| | | { |
| | | name: 'å·¥åºæ¥åº', |
| | | id: 15 |
| | | }, |
| | | { |
| | | name: '客éè¿ä¿®é¢æ', |
| | | id: 16 |
| | | }, |
| | | { |
| | | name: '客éè¿ä¿®å
¥åº', |
| | | id: 17 |
| | | }, |
| | | { |
| | | name: 'éå®åºåº', |
| | | id: 18 |
| | | }, |
| | | { |
| | | name: '让æ¥éå®', |
| | | id: 19 |
| | | }, |
| | | { |
| | | name: '工忿', |
| | | id: 20 |
| | | }, |
| | | { |
| | | name: 'ä»åºæ¥åº', |
| | | id: 21 |
| | | }, |
| | | { |
| | | name: '客鿣éªé¢æ', |
| | | id: 22 |
| | | }, |
| | | { |
| | | name: 'å®¢è¿æ£éªé¢æ', |
| | | id: 23 |
| | | }, |
| | | { |
| | | name: 'å·¥å产åº', |
| | | id: 24 |
| | | }, |
| | | { |
| | | name: 'éè´å
¥åº', |
| | | id: 25 |
| | | }, |
| | | { |
| | | name: '客鿣éªå
¥åº', |
| | | id: 26 |
| | | }, |
| | | { |
| | | name: 'å®¢è¿æ£éªå
¥åº', |
| | | id: 27 |
| | | }, |
| | | { |
| | | name: 'åºåè°æ´', |
| | | id: 28 |
| | | }, |
| | | { |
| | | name: 'åºåå
¥åº', |
| | | id: 30 |
| | | } |
| | | ] |
| | | |
| | | export const orderTyepToStr = (type) => { |
| | | // <!-- 1ã车é´é¢æï¼2ã车é´å¤æï¼3ãå
¶ä»ï¼4ãå®å·¥å
¥åº --> |
| | | for (const item of orderType) { |
| | | if (item.id === type) { |
| | | return item.name |
| | | } |
| | | } |
| | | return '-' |
| | | } |