¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <u-modal v-model="showModal" title="" :show-cancel-button="showCancelButton" @confirm="confirm" @cancel="cancel"> |
| | | <view class="slot-content"> |
| | | <slot></slot> |
| | | </view> |
| | | </u-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | props: { |
| | | showCancelButton: { |
| | | type: Boolean, |
| | | default: true |
| | | }, |
| | | confirm: { |
| | | type: Function, |
| | | default: () => { } |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | showModal: false |
| | | } |
| | | }, |
| | | methods: { |
| | | open() { |
| | | this.showModal = true; |
| | | }, |
| | | cancel() { |
| | | this.showModal = false; |
| | | }, |
| | | } |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | ::v-deep .u-model__title { |
| | | padding-top: 0 !important; |
| | | } |
| | | |
| | | .slot-content { |
| | | min-height: 400rpx; |
| | | box-sizing: border-box; |
| | | padding-top: 250rpx; |
| | | background: url(../../static/custom/moda-lbg.png) no-repeat center / 100% 100% !important; |
| | | } |
| | | </style> |
| | |
| | | } |
| | | }, |
| | | // ç产ç¸å
³ |
| | | // æ¥å·¥ |
| | | { |
| | | "path": "pages/product/report/index", |
| | | "style": { |
| | |
| | | "titleNView": { |
| | | "buttons": [ |
| | | { |
| | | "text": "æ¸
空", |
| | | "text": "æäº¤", |
| | | "type": "none", |
| | | "color": "#ffffff", |
| | | "fontSize": "14px" |
| | | "fontSize": "14px", |
| | | "marginRight": "10px" |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | // 车é´è®¢åå表 |
| | | { |
| | | "path": "pages/product/report/orderList", |
| | | "style": { |
| | | "navigationStyle": "custom", |
| | | "navigationBarTextStyle": "white", |
| | | "navigationBarBackgroundColor": "#3281FF" |
| | | } |
| | | }, |
| | | // æ¥æ¥ç¸å
³ |
| | |
| | | "pagePath": "pages/sys/home/index", |
| | | "iconPath": "static/custom/tabbar/home_1.png", |
| | | "selectedIconPath": "static/custom/tabbar/home_2.png", |
| | | "text": "主页" |
| | | "text": "å·¥ä½å°" |
| | | }, |
| | | { |
| | | "pagePath": "pages/sys/user/index", |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <u-modal v-model="show" ref="uModal" title="" :show-cancel-button="true" @confirm="confirm" @cancel="cancel" |
| | | :async-close="true"> |
| | | <view style="padding: 20rpx;"> |
| | | <u-form :model="form" ref="uFormSave" :label-width="280" :rules="rules" :error-type="['toast']"> |
| | | <u-form-item label="æ¹å·" :border-bottom="false" prop="value0"> |
| | | <u-input v-model="form.value0" disabled /> |
| | | </u-form-item> |
| | | <u-form-item label="é¿åº¦" :border-bottom="false" prop="value1"> |
| | | <u-input v-model="form.value1" /> |
| | | </u-form-item> |
| | | <u-form-item label="åºä½" :border-bottom="false" prop="value2"> |
| | | <u-input v-model="form.value2" disabled /> |
| | | </u-form-item> |
| | | <u-form-item label="çå·" :border-bottom="false" prop="value3"> |
| | | <u-input v-model="form.value3" /> |
| | | </u-form-item> |
| | | <u-form-item label="æ¯é" :border-bottom="false" prop="value4"> |
| | | <u-input v-model="form.value4" /> |
| | | </u-form-item> |
| | | <u-form-item label="åé" :border-bottom="false" prop="value5"> |
| | | <u-input v-model="form.value5" /> |
| | | </u-form-item> |
| | | <u-form-item label="å·¥åº" :border-bottom="false" prop="value6"> |
| | | <u-input v-model="form.value6" disabled /> |
| | | </u-form-item> |
| | | <u-form-item label="æåå¤å¾æµéå¼" :border-bottom="false" prop="value7"> |
| | | <u-input v-model="form.value7" /> |
| | | </u-form-item> |
| | | <u-form-item label="éç«çµå" :border-bottom="false" prop="value8"> |
| | | <u-input v-model="form.value8" /> |
| | | </u-form-item> |
| | | <u-form-item label="转é" prop="value9" :border-bottom="false"> |
| | | <u-input v-model="form.value9" /> |
| | | </u-form-item> |
| | | <u-form-item label="å¤é¨æ°å" prop="value10" :border-bottom="false"> |
| | | <u-input v-model="form.value10" /> |
| | | </u-form-item> |
| | | <u-form-item label="ç产é度" prop="value11" :border-bottom="false"> |
| | | <u-input v-model="form.value11" /> |
| | | </u-form-item> |
| | | </u-form> |
| | | </view> |
| | | |
| | | </u-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | show: false, |
| | | form: { |
| | | value0: null, |
| | | value1: null, |
| | | value2: null, |
| | | value3: null, |
| | | value4: null, |
| | | value5: null, |
| | | value6: null, |
| | | value7: null, |
| | | value8: null, |
| | | value9: null, |
| | | value10: null, |
| | | value11: null |
| | | }, |
| | | rules: { |
| | | value1: [ |
| | | { required: true, message: '请è¾å
¥é¿åº¦', trigger: ['blur', 'change'] }, |
| | | ], |
| | | value3: [ |
| | | { required: true, message: '请è¾å
¥çå·', trigger: ['blur', 'change'] }, |
| | | ], |
| | | value4: [ |
| | | { required: true, message: '请è¾å
¥æ¯é', trigger: ['blur', 'change'] }, |
| | | ], |
| | | value5: [ |
| | | { required: true, message: '请è¾å
¥åé', trigger: ['blur', 'change'] }, |
| | | ], |
| | | value7: [ |
| | | { required: true, message: '请è¾å
¥æåå¤å¾æµéå¼', trigger: ['blur', 'change'] }, |
| | | ], |
| | | value8: [ |
| | | { required: true, message: '请è¾å
¥éç«çµå', trigger: ['blur', 'change'] }, |
| | | ], |
| | | value9: [ |
| | | { required: true, message: '请è¾å
¥è½¬é', trigger: ['blur', 'change'] }, |
| | | ], |
| | | value10: [ |
| | | { required: true, message: '请è¾å
¥å¤é¨æ°å', trigger: ['blur', 'change'] } |
| | | ], |
| | | value11: [ |
| | | { required: true, message: '请è¾å
¥ç产é度', trigger: ['blur', 'change'] } |
| | | ] |
| | | }, |
| | | } |
| | | }, |
| | | watch: { |
| | | show(val) { |
| | | if (val) { |
| | | this.$nextTick(() => { |
| | | this.$refs.uFormSave.setRules(this.rules); |
| | | }); |
| | | } |
| | | }, |
| | | }, |
| | | methods: { |
| | | confirm() { |
| | | this.$refs.uFormSave.validate((valid) => { |
| | | if (valid) { |
| | | console.log('éªè¯éè¿'); |
| | | // æ§è¡æäº¤é»è¾ï¼å¦API请æ±ï¼ |
| | | // æäº¤æååå
³éæ¨¡ææ¡ |
| | | this.$refs.uModal.cancel(); |
| | | } else { |
| | | console.log('éªè¯å¤±è´¥'); |
| | | // æ¾ç¤ºéè¯¯ä¿¡æ¯ |
| | | this.$refs.uModal.clearLoading(); // æ¸
é¤å è½½ç¶æ |
| | | } |
| | | }); |
| | | }, |
| | | cancel() { |
| | | this.show = false; |
| | | }, |
| | | open() { |
| | | this.show = true; |
| | | } |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | ::v-deep .u-model__title { |
| | | padding-top: 0 !important; |
| | | } |
| | | |
| | | ::v-deep .u-input__input { |
| | | text-align: right !important; |
| | | } |
| | | </style> |
| | |
| | | .body { |
| | | background: linear-gradient(to bottom, #e5f0ff, #f6f9ff); |
| | | .page { |
| | | box-sizing: border-box; |
| | | padding-top: 26rpx; |
| | | height: 100vh; |
| | | padding: 30rpx; |
| | | } |
| | | .top_code { |
| | | height: 80rpx; |
| | | .u-checkbox-group { |
| | | display: flex; |
| | | align-items: center; |
| | | margin: 0 30rpx; |
| | | margin-bottom: 10rpx; |
| | | flex-direction: column; |
| | | } |
| | | .top_code_edit { |
| | | text-align: right; |
| | | flex: 1; |
| | | margin-bottom: 18rpx; |
| | | } |
| | | .main_view { |
| | | margin-top: 5rpx; |
| | | background-image: url("~@/static/custom/home/home_img_bg.png"); |
| | | background-repeat: no-repeat; |
| | | background-size: 100% auto; |
| | | border-radius: 15rpx; |
| | | height: 936rpx; |
| | | margin: 0 30rpx; |
| | | box-sizing: border-box; |
| | | padding: 37rpx 25rpx; |
| | | .u-form-item { |
| | | padding: 0; |
| | | } |
| | | |
| | | .product-number-icon { |
| | | background-image: url("~@/static/custom/daily/icon_number.png"); |
| | | background-repeat: no-repeat; |
| | | background-size: cover; |
| | | height: 32rpx; |
| | | width: 32rpx; |
| | | position: relative; |
| | | margin-right: 8rpx; |
| | | } |
| | | |
| | | .product-edit-icon { |
| | | background-image: url("~@/static/custom/daily/icon_edit.png"); |
| | | background-repeat: no-repeat; |
| | | background-size: cover; |
| | | height: 32rpx; |
| | | width: 32rpx; |
| | | position: relative; |
| | | } |
| | | .icon_history { |
| | | background-image: url("~@/static/custom/daily/icon_history.png"); |
| | | background-repeat: no-repeat; |
| | | background-size: cover; |
| | | height: 26rpx; |
| | | width: 26rpx; |
| | | margin-right: 8rpx; |
| | | position: relative; |
| | | } |
| | | .icon_save { |
| | | background-image: url("~@/static/custom/daily/icon_save.png"); |
| | | background-repeat: no-repeat; |
| | | background-size: cover; |
| | | height: 26rpx; |
| | | width: 26rpx; |
| | | margin-right: 8rpx; |
| | | position: relative; |
| | | } |
| | | .icon_right { |
| | | background-image: url("~@/static/custom/daily/icon_right.png"); |
| | | background-repeat: no-repeat; |
| | | background-size: cover; |
| | | height: 26rpx; |
| | | width: 26rpx; |
| | | margin-right: 8rpx; |
| | | position: relative; |
| | | } |
| | | .main_top_title { |
| | | font-weight: 800; |
| | | font-size: 34rpx; |
| | | color: #1d2541; |
| | | margin-bottom: 20rpx; |
| | | } |
| | | .main_item { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | font-size: 30rpx; |
| | | line-height: 112rpx; |
| | | border-bottom: 1rpx solid rgba(213, 213, 213, 0.67); |
| | | box-sizing: border-box; |
| | | .value2 { |
| | | width: 450rpx; /*çåæå¤§å®½åº¦*/ |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; /* è®¾ç½®ææ¬æº¢åºæ¶æ¾ç¤ºçç¥å· */ |
| | | white-space: nowrap; /* è®¾ç½®ä¸æ¢è¡ */ |
| | | text-align: right; |
| | | padding-left: 40rpx; |
| | | .packer-popup { |
| | | ::v-deep .u-mode-center-box { |
| | | border-radius: 30rpx; |
| | | } |
| | | } |
| | | .btns { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | margin-top: 33rpx; |
| | | .uni-button { |
| | | .popup-row { |
| | | background-image: url("~@/static/custom/packing/row_bg.png"); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height: 89rpx; |
| | | width: 520rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | ::v-deep.u-icon__icon { |
| | | height: 26rpx; |
| | | width: 26rpx; |
| | | justify-content: space-between; |
| | | padding-top: 12rpx; |
| | | padding-left: 14rpx; |
| | | padding-right: 20rpx; |
| | | } |
| | | } |
| | |
| | | <template> |
| | | <view class="body"> |
| | | <view class="top_code"> |
| | | <u-icon class="product-number-icon"></u-icon>ç¼å·ï¼ |
| | | <text selectable>{{ dutyNo }}</text> |
| | | <view class="top_code_edit"> |
| | | <u-icon class="product-edit-icon" @click="edit" v-show="true"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="main_view"> |
| | | <h3 class="main_top_title">å·¥ä½å°</h3> |
| | | <view class="main_item" @click="goPage(0)"> |
| | | <span style="color:#4F4F4F">å·¥ä½ç«</span> |
| | | <view> |
| | | <span style="color:#333333;margin-right: 20rpx;">{{ query.workstationName }}</span> |
| | | <u-icon v-if="isShowButton" name="arrow-right" color="#687792" size="28"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="main_item" @click="goPage(1)"> |
| | | <span style="color:#4F4F4F">å·¥åº</span> |
| | | <view> |
| | | <span style="color:#333333;margin-right: 20rpx;">{{ query.operationName }}</span> |
| | | <u-icon v-if="isShowButton" name="arrow-right" color="#687792" size="28"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="main_item" @click="goPage(2)"> |
| | | <span style="color:#4F4F4F">æ¥æ</span> |
| | | <view> |
| | | <span style="color:#333333;margin-right: 20rpx;">{{ query.updateTime }}</span> |
| | | <u-icon v-if="isShowButton" name="arrow-right" color="#687792" size="28"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="main_item" @click="goPage(3)"> |
| | | <span style="color:#4F4F4F">çæ¬¡</span> |
| | | <view> |
| | | <span style="color:#333333;margin-right: 20rpx;">{{ query.clazzType }}</span> |
| | | <u-icon v-if="isShowButton" name="arrow-right" color="#687792" size="28"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="main_item" @click="goPage(4)"> |
| | | <span style="color:#4F4F4F;width: 118rpx;">ç产人å</span> |
| | | <view class="value2"> |
| | | <span style="color:#333333;margin-right: 20rpx;">{{ staffNameJoin }}</span> |
| | | </view> |
| | | <u-icon v-if="isShowButton" name="arrow-right" color="#687792" size="28"></u-icon> |
| | | </view> |
| | | <view class="main_item"> |
| | | <span style="color:#4F4F4F">å建人</span> |
| | | <view> |
| | | <span style="color:#333333;">{{ query.createUser }}</span> |
| | | </view> |
| | | </view> |
| | | <view class="btns"> |
| | | <u-button :custom-style="customStyle" @click="goPage(9)">æå·¥</u-button> |
| | | <u-button :custom-style="customStyle" style="width: 150rpx;" @click="goPage(6)"> |
| | | <u-icon class="icon_history" size="26rpx" /> |
| | | <span style="line-height: 40rpx;">åå²</span> |
| | | </u-button> |
| | | <u-button v-if="isShowButton" @click="submit" :custom-style="customStyle" |
| | | style="background: #30AFFF;color: #fff;border: 0;width: 150rpx;"> |
| | | <u-icon class="icon_save" size="26rpx" /> |
| | | <span style="line-height: 40rpx;">ä¿å</span> |
| | | </u-button> |
| | | <u-button :custom-style="customStyle" style="background: #214DED;color: #fff;border: 0;width: 150rpx;" |
| | | @click="goPage(8)"> |
| | | <u-icon class="icon_right" size="26rpx" /> |
| | | <span style="line-height: 40rpx;">æ¥å·¥</span></u-button> |
| | | </view> |
| | | </view> |
| | | <u-calendar v-model="calendarShow" :mode="mode" @change="changeCalendar"></u-calendar> |
| | | <!--å·¥åºä¸ææ¡--> |
| | | <u-select :default-value="[operationIndex]" v-model="selectShowOperation" :list="operationList" |
| | | @confirm="confirmOperation"></u-select> |
| | | <u-select v-model="selectShowClazzType" :list="clazzTypeList" @confirm="confirmClazzType"></u-select> |
| | | <u-toast ref="uToast" /> |
| | | </view> |
| | | <!-- æ¥å·¥ --> |
| | | <div class="page"> |
| | | <u-form :model="form" ref="uForm" :label-width="200" :rules="rules" :error-type="['toast']"> |
| | | <u-form-item label="车é´" :border-bottom="false" prop="value0"> |
| | | <u-radio-group v-model="form.value0"> |
| | | <u-radio name="导ä½">导ä½</u-radio> |
| | | <u-radio name="éæ">éæ</u-radio> |
| | | </u-radio-group> |
| | | </u-form-item> |
| | | <u-form-item label="æ¥å·¥åå·" :border-bottom="false" prop="value1"> |
| | | <u-input v-model="form.value1" type="select" placeholder="è¯·æ«ææ¥å·¥åå·" @click="open" /> |
| | | </u-form-item> |
| | | <u-form-item label="å·¥åº" :border-bottom="false" prop="value2"> |
| | | <u-input v-model="form.value2" type="select" placeholder="è¯·æ«ææ¥å·¥åå·" /> |
| | | </u-form-item> |
| | | <u-form-item label="订åå·" :border-bottom="false" prop="value3"> |
| | | <u-input v-model="form.value3" type="select" placeholder="ç¹å»éæ©" @click="openList" /> |
| | | </u-form-item> |
| | | <u-form-item label="é¶ä»¶å·" :border-bottom="false" prop="value4"> |
| | | <u-input v-model="form.value4" placeholder="" disabled /> |
| | | </u-form-item> |
| | | <u-form-item label="é¶ä»¶æè¿°" :border-bottom="false" prop="value5"> |
| | | <u-input v-model="form.value5" placeholder="" disabled /> |
| | | </u-form-item> |
| | | <u-form-item label="æ¹é大å°" :border-bottom="false" prop="value6"> |
| | | <u-input v-model="form.value6" placeholder="" disabled /> |
| | | </u-form-item> |
| | | <u-form-item label="å©ä½æ°é" :border-bottom="false" prop="value7"> |
| | | <u-input v-model="form.value7" placeholder="" disabled /> |
| | | </u-form-item> |
| | | <u-form-item label="åºä½" :border-bottom="false" prop="value8"> |
| | | <u-input v-model="form.value8" placeholder="" disabled /> |
| | | </u-form-item> |
| | | <u-form-item label="æ¥å·¥ç±»å" prop="value9"> |
| | | <u-radio-group v-model="form.value9"> |
| | | <u-radio name="䏿ºæ¥å·¥">䏿ºæ¥å·¥</u-radio> |
| | | <u-radio name="æªä¸æºæ¥å·¥">æªä¸æºæ¥å·¥</u-radio> |
| | | </u-radio-group> |
| | | </u-form-item> |
| | | <u-form-item label="æ¥æ¶é¶ä»¶" prop="value10"> |
| | | <u-radio-group v-model="form.value10"> |
| | | <u-radio name="车é´è®¢å">车é´è®¢å</u-radio> |
| | | <u-radio name="æ¿ä»£é¶ä»¶">æ¿ä»£é¶ä»¶</u-radio> |
| | | </u-radio-group> |
| | | </u-form-item> |
| | | <u-form-item label="ç©æåå·¥åº" prop="value11"> |
| | | <u-checkbox-group> |
| | | <u-checkbox :name="item.name" v-for="(item, index) in checkboxList" :key="index" v-model="item.value" |
| | | @change="changeCheckbox"> |
| | | {{ item.name }} |
| | | </u-checkbox> |
| | | </u-checkbox-group> |
| | | </u-form-item> |
| | | <u-form-item label="åºåæ¥æ¶" :border-bottom="false" prop="value12"></u-form-item> |
| | | </u-form> |
| | | <!-- 填忥工å --> |
| | | <modalBg ref="modalBg" :confirm="confirm"> |
| | | <u-field v-model="form.value1" label="æ¥å·¥åå·" placeholder="请è¾å
¥" :border-bottom="false"> |
| | | </u-field> |
| | | </modalBg> |
| | | <saveForm ref="saveForm" /> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | dateFormat |
| | | } from "@/utils/date.js"; |
| | | import UIcon from "../../../uview-ui/components/u-icon/u-icon.vue"; |
| | | import modalBg from '@/components/modal/modal-bg.vue' |
| | | import saveForm from './components/saveForm.vue' |
| | | export default { |
| | | components: { |
| | | UIcon |
| | | }, |
| | | data() { |
| | | return { |
| | | customStyle: { |
| | | 'background': '#FFFFFF', |
| | | 'border-radius': '8rpx', |
| | | 'border': '1px solid #D2D2D2', |
| | | 'width': '121rpx', |
| | | 'height': '65rpx', |
| | | 'font-weight': 500, |
| | | 'font-size': '28rpx', |
| | | 'color': '#333333', |
| | | 'pading': '0 30rpx' |
| | | }, |
| | | calendarShow: false, |
| | | selectShowOperation: false, |
| | | selectShowClazzType: false, |
| | | mode: 'date', |
| | | id: '', |
| | | dutyNo: '', // ç¼å· |
| | | query: { |
| | | updateTime: dateFormat( |
| | | new Date(), 'yyyy-MM-dd'), |
| | | workstationName: '', // å·¥ä½ç«åç§° |
| | | workstationId: '', // å·¥ä½ç«id |
| | | clazzType: '', // çæ¬¡ |
| | | productionUser: '', |
| | | operationId: '', // å·¥åºid |
| | | operationName: '', // å·¥åºåç§° |
| | | userList: [], |
| | | createUser: '' |
| | | }, |
| | | toId: '', |
| | | operationList: [], |
| | | clazzTypeList: [{ |
| | | label: 'ç½ç' |
| | | }, |
| | | { |
| | | label: 'æç' |
| | | }, |
| | | ], |
| | | workstation: '', |
| | | staffNameJoin: '', |
| | | operationIndex: '', |
| | | isEdit: false, // æ¯å¦ä¿®æ¹ |
| | | isShowButton: false, |
| | | workCenter: '', |
| | | addOrEdit: '', |
| | | info: {}, |
| | | firstOperationId: null, |
| | | lastOperationId: null, |
| | | } |
| | | }, |
| | | onShow() { |
| | | // this.getLastDutyRecordFun() |
| | | }, |
| | | onLoad() { |
| | | uni.$on('dailyListInfo', (info) => { |
| | | this.dutyNo = info.dutyNo |
| | | this.id = info.id |
| | | this.query.createUser = this.vuex_username |
| | | this.query.clazzType = info.clazzType |
| | | this.query.workstationId = info.workstationId |
| | | this.query.workstationName = info.workstationName |
| | | this.query.productionUser = info.productionUser.split(',').reverse() |
| | | this.query.userList = info.productionUserList.split(',') |
| | | this.query.operationId = info.operationId |
| | | this.getOperation() |
| | | }) |
| | | |
| | | uni.$on('returnData', (data) => { |
| | | // 临æ¶åå¨å·¥ä½ç«çæ°æ® |
| | | this.workstation = data |
| | | // ç»é¡µé¢å·¥ä½ç«èµå¼ |
| | | this.query.workstationName = '(' + data.workCenter + ')' + data.name |
| | | this.query.workstationId = data.id |
| | | // æ¸
空工åºé项 |
| | | this.query.operationName = '' |
| | | this.query.operationId = '' |
| | | this.operationIndex = 0 |
| | | this.getOperationTaskFun(data.workCenter) |
| | | }) |
| | | uni.$on('checkedList', (data) => { |
| | | let staffNameList = [] |
| | | let staffNoList = [] |
| | | data.forEach(i => { |
| | | staffNameList.push(i.staffName) |
| | | staffNoList.push(i.staffNo) |
| | | }) |
| | | this.query.productionUser = staffNameList |
| | | this.query.userList = staffNoList |
| | | }); |
| | | }, |
| | | onReady() { |
| | | // 馿¬¡è¿å
¥é¡µé¢è·åå½åç»å½äººæå䏿¬¡æäº¤çæ¥æ¥ |
| | | this.getLastDutyRecordFun() |
| | | }, |
| | | methods: { |
| | | isNotOperationName(workCenter, operationName, workCenterTwo) { |
| | | // 夿æ¯å¦ä¸ºè¯¥å·¥ä½ç« |
| | | if (workCenter.includes(workCenterTwo)) { |
| | | // 夿æ¯å¦å
å«å·¥åºåç§° |
| | | if (!operationName.includes(this.query.operationName)) { |
| | | return true |
| | | } else { |
| | | return false |
| | | } |
| | | } else { |
| | | return false |
| | | } |
| | | }, |
| | | // 夿工忝å¦çäº,忶夿æ¯å¦ä¸ºç¬¬ä¸éå·¥åº |
| | | isFirstOperationId(workCenter, workCenterTwo) { |
| | | if (workCenter.includes(workCenterTwo)) { |
| | | // 夿æ¯å¦ä¸ä¸ºç¬¬ä¸éå·¥åº |
| | | if (this.query.operationId !== this.firstOperationId) { |
| | | return true |
| | | } else { |
| | | return false |
| | | } |
| | | } else { |
| | | return false |
| | | } |
| | | }, |
| | | // 馿¬¡è¿å
¥é¡µé¢è·åå½åç»å½äººæå䏿¬¡æäº¤çæ¥æ¥ |
| | | getLastDutyRecordFun() { |
| | | this.$u.api.dailyPaper.getLastDutyRecord().then(res => { |
| | | if (res.code === 0) { |
| | | this.dutyNo = res.data.dutyNo |
| | | this.id = res.data.id |
| | | this.query.createUser = this.vuex_username |
| | | this.query.clazzType = res.data.clazzType |
| | | this.query.workstationId = res.data.workstationId |
| | | this.query.workstationName = res.data.workstationName |
| | | this.query.productionUser = res.data.productionUser.split(',').reverse() |
| | | this.query.userList = res.data.productionUserList.split(',') |
| | | this.query.operationId = res.data.operationId |
| | | this.getOperation() |
| | | } else { |
| | | this.$u.toast(res.msg) |
| | | } |
| | | }) |
| | | }, |
| | | // æ¸
空é»è¾ |
| | | onNavigationBarButtonTap(e) { |
| | | this.isEdit = true |
| | | this.isShowButton = true |
| | | this.addOrEdit = 'add' |
| | | this.query.productionUser = '' |
| | | this.query.productionUserList = [] |
| | | this.staffNameJoin = '' |
| | | this.query.updateTime = '' |
| | | }, |
| | | edit() { |
| | | this.isEdit = !this.isEdit |
| | | this.isShowButton = this.isEdit |
| | | this.addOrEdit = 'edit' |
| | | }, |
| | | goPage(index) { |
| | | switch (index) { |
| | | // 跳转å°åå²é¡µé¢ |
| | | case 6: |
| | | uni.navigateTo({ |
| | | url: '/pages/daily/daily/daily-list' |
| | | }) |
| | | break; |
| | | // è·³è½¬å°æ¥å·¥é¡µé¢ |
| | | case 8: |
| | | if (this.isEdit) { |
| | | this.$refs.uToast.show({ |
| | | title: '请å
ä¿åä¿®æ¹', |
| | | type: 'warning ' |
| | | }) |
| | | return |
| | | } |
| | | |
| | | let workCenter = this.query.workstationName.split(')')[0].substring(1) |
| | | let operation = this.query.workstationName.split(')')[1] |
| | | console.log(workCenter, operation, this.firstOperationId, this.query.operationId, this.query) |
| | | if (workCenter == "TM-01" || workCenter == "JG-01" || workCenter == "YB-04" || this.isFirstOperationId('DY-01,GY-01,YB-01,YB-02', workCenter) || this.isNotOperationName('ZZ-02', 'äºè£
,注油', workCenter)) { |
| | | let item = { |
| | | workstationId: this.query.workstationId, |
| | | clazzType: this.query.clazzType, |
| | | dutyNo: this.dutyNo, |
| | | userStaffNo: this.query.userList, |
| | | workstationName: this.query.workstationName, |
| | | staffNameJoin: this.staffNameJoin, |
| | | workCenter: workCenter, |
| | | operationId: this.query.operationId, |
| | | firstOperationId: this.firstOperationId, |
| | | lastOperationId: this.lastOperationId |
| | | } |
| | | uni.navigateTo({ |
| | | url: '/pages/daily/common/work-reporting?info=' + encodeURIComponent(JSON |
| | | .stringify(item)) |
| | | }) |
| | | } else if (this.query.workstationName.includes("TX-02") && !this.query.operationName.includes("å è£
")) { |
| | | let item = { |
| | | workstationId: this.query.workstationId, |
| | | clazzType: this.query.clazzType, |
| | | dutyNo: this.dutyNo, |
| | | userStaffNo: this.query.userList, |
| | | workstationName: this.query.workstationName, |
| | | staffNameJoin: this.staffNameJoin, |
| | | workCenter: "TX-02", |
| | | operationId: this.query.operationId, |
| | | firstOperationId: this.firstOperationId, |
| | | lastOperationId: this.lastOperationId |
| | | } |
| | | uni.navigateTo({ |
| | | url: '/pages/daily/common/work-reporting?info=' + encodeURIComponent(JSON |
| | | .stringify(item)) |
| | | }) |
| | | } else { |
| | | uni.navigateTo({ |
| | | url: `/pages/daily/common/work-order-list?workstationId=${this.query.workstationId}&toId=${this.toId}&clazzType=${this.query.clazzType}&dutyNo=${this.dutyNo}&userStaffNo=${this.query.userList}&workstationName=${this.query.workstationName}&staffNameJoin=${this.staffNameJoin}` |
| | | }) |
| | | } |
| | | break; |
| | | // è·³è½¬å°æå·¥é¡µé¢ |
| | | case 9: |
| | | if (this.isEdit) { |
| | | this.$refs.uToast.show({ |
| | | title: '请å
ä¿åä¿®æ¹', |
| | | type: 'warning ' |
| | | }) |
| | | return |
| | | } |
| | | uni.navigateTo({ |
| | | url: `/pages/daily/handyman/handyman?dutyNo=${this.query.dutyNo}&updateTime=${this.query.updateTime}&userList=${this.query.productionUser}&staffList=${this.query.userList}` |
| | | }) |
| | | break; |
| | | } |
| | | if (!this.isEdit) { |
| | | return |
| | | } else { |
| | | switch (index) { |
| | | case 0: |
| | | uni.navigateTo({ |
| | | url: '/pages/daily/workstation/index' |
| | | }) |
| | | break; |
| | | case 1: |
| | | if (!this.query.workstationName) { |
| | | this.$refs.uToast.show({ |
| | | title: '请å
鿩工ä½ç«', |
| | | type: 'warning ' |
| | | }) |
| | | } else { |
| | | this.selectShowOperation = true; |
| | | } |
| | | break; |
| | | case 2: |
| | | this.calendarShow = true; |
| | | break; |
| | | case 3: |
| | | this.selectShowClazzType = true; |
| | | break; |
| | | case 4: |
| | | let staffList = this.query.productionUser |
| | | let staffNoList = this.query.userList |
| | | const list = [] |
| | | for (const i in staffList) { |
| | | const obj = { |
| | | staffName: staffList[i], |
| | | staffNo: staffNoList[i] |
| | | } |
| | | list.push(obj) |
| | | } |
| | | uni.navigateTo({ |
| | | url: '/pages/daily/production-person/production-person?list=' + encodeURIComponent( |
| | | JSON.stringify(list)) |
| | | }) |
| | | break; |
| | | } |
| | | } |
| | | }, |
| | | // æäº¤æ¥æ¥ä¿®æ¹ |
| | | submit() { |
| | | if (!this.query.workstationId) { |
| | | this.$u.toast('è¯·éæ©å·¥ä½ç«') |
| | | return |
| | | } else if (!this.query.operationId) { |
| | | this.$u.toast('è¯·éæ©å·¥åº') |
| | | return |
| | | } else if (!this.query.clazzType) { |
| | | this.$u.toast('è¯·éæ©çæ¬¡') |
| | | return |
| | | } else if (!this.query.productionUser) { |
| | | this.$u.toast('è¯·éæ©ç产人å') |
| | | return |
| | | } else if (!this.query.updateTime) { |
| | | this.$u.toast('è¯·éæ©æ¶é´') |
| | | return |
| | | } |
| | | |
| | | let params = JSON.parse(JSON.stringify(this.query)) |
| | | this.$delete(params, 'productionUser') |
| | | this.$delete(params, 'productionUserList') |
| | | params.updateTime = params.updateTime + ' 00:00:00' |
| | | params.id = null |
| | | if (this.addOrEdit === 'add') { |
| | | this.$u.api.dailyPaper.addDailyPaper(params).then(res => { |
| | | if (res.code === 0) { |
| | | // this.getLastDutyRecordFun() |
| | | this.query.createUser = this.vuex_username |
| | | this.$u.toast('ä¿åæå') |
| | | this.isShowButton = false |
| | | this.getLastDutyRecordFun() |
| | | } |
| | | }) |
| | | } else { |
| | | params.id = this.id |
| | | this.$u.api.dailyPaper.editDailyPaper(params).then(res => { |
| | | if (res.code === 0) { |
| | | // this.getLastDutyRecordFun() |
| | | this.$u.toast('ä¿®æ¹æå') |
| | | this.isShowButton = false |
| | | } |
| | | }) |
| | | } |
| | | this.isEdit = false |
| | | }, |
| | | changeCalendar(e) { |
| | | this.query.updateTime = e.result; |
| | | }, |
| | | confirmOperation(e) { |
| | | this.query.operationName = e[0].label |
| | | this.query.operationId = e[0].value |
| | | const index = this.operationList.findIndex(item => item.value === this.query.operationId) |
| | | if (index > -1) { |
| | | this.operationIndex = index |
| | | this.toId = this.operationList[index].value |
| | | } |
| | | }, |
| | | confirmClazzType(e) { |
| | | this.query.clazzType = e[0].label |
| | | }, |
| | | // æ¥è¯¢å·¥ä½ç« |
| | | getOperation() { |
| | | this.$u.api.dailyPaper.getWorkstation().then(res => { |
| | | if (res.code === 0) { |
| | | const index = res.data.findIndex(item => item.name === this.query.workstationName) |
| | | if (index > -1) { |
| | | this.workCenter = res.data[index].workCenter |
| | | } |
| | | this.query.workstationName = '(' + this.workCenter + ')' + this.query.workstationName |
| | | this.getOperationTaskFun(this.workCenter, this.query.operationId) |
| | | } |
| | | }) |
| | | }, |
| | | getOperationTaskFun(id, operationId) { |
| | | this.operationList = [] |
| | | const params = { |
| | | workCenter: id, |
| | | current: 1, |
| | | size: -1 |
| | | } |
| | | // æ¥è¯¢å·¥åºå表 |
| | | this.$u.api.dailyPaper.getOperation(params).then(res => { |
| | | if (res.code === 0) { |
| | | if (res.data.records.length > 0) { |
| | | res.data.records.forEach(i => { |
| | | const obj = Object.assign({ |
| | | label: i.name, |
| | | value: i.id, |
| | | }) |
| | | this.operationList.push(obj) |
| | | }) |
| | | if (operationId) { |
| | | const index = this.operationList.findIndex(item => item.value === operationId) |
| | | if (index > -1) { |
| | | this.operationIndex = index |
| | | this.query.operationName = this.operationList[index].label |
| | | this.toId = this.operationList[index].value |
| | | } |
| | | } |
| | | this.firstOperationId = this.operationList[0].value |
| | | this.lastOperationId = this.operationList[this.operationList.length - 1].value |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | watch: { |
| | | 'query.productionUser': { |
| | | handler(newName, oldName) { |
| | | if (this.query.productionUser.length > 0) { |
| | | this.staffNameJoin = this.query.productionUser.join() |
| | | } else { |
| | | this.staffNameJoin = '' |
| | | } |
| | | }, |
| | | immediate: true, |
| | | deep: true |
| | | } |
| | | } |
| | | components: { modalBg, saveForm }, |
| | | data() { |
| | | return { |
| | | checkboxList: [ |
| | | { |
| | | name: 'åå²', |
| | | value: false |
| | | }, |
| | | { |
| | | name: 'å·¥åºçèªå¨æ¥å', |
| | | value: false |
| | | }, |
| | | { |
| | | name: 'ç®åç©ææ£æ¥', |
| | | value: false |
| | | } |
| | | ], |
| | | form: { |
| | | value0: '', |
| | | value1: '', |
| | | value2: '', |
| | | value3: '', |
| | | value4: '', |
| | | value5: '', |
| | | value6: '', |
| | | value7: '', |
| | | value8: '', |
| | | value9: '䏿ºæ¥å·¥', |
| | | value10: '车é´è®¢å', |
| | | value11: [], // å¤éæ¡ç»çå¼ |
| | | value12: '' |
| | | }, |
| | | rules: { |
| | | value0: [ |
| | | { |
| | | required: true, |
| | | message: 'è¯·éæ©è½¦é´', |
| | | trigger: ['change'] |
| | | } |
| | | ], |
| | | value1: [ |
| | | { |
| | | required: true, |
| | | message: 'è¯·éæ©æ¥å·¥åå·', |
| | | trigger: ['change', 'blur'] |
| | | } |
| | | ], |
| | | value2: [ |
| | | { |
| | | required: true, |
| | | message: 'è¯·éæ©å·¥åº', |
| | | trigger: ['change', 'blur'] |
| | | } |
| | | ], |
| | | value3: [ |
| | | { |
| | | required: true, |
| | | message: 'è¯·éæ©è®¢åå·', |
| | | trigger: ['change', 'blur'] |
| | | } |
| | | ], |
| | | value9: [ |
| | | { |
| | | required: true, |
| | | message: 'è¯·éæ©æ¥å·¥ç±»å', |
| | | trigger: ['change'] |
| | | } |
| | | ], |
| | | value10: [ |
| | | { |
| | | required: true, |
| | | message: 'è¯·éæ©æ¥æ¶é¶ä»¶ç±»å', |
| | | trigger: ['change'] |
| | | } |
| | | ], |
| | | value11: [ |
| | | { |
| | | type: 'array', |
| | | required: true, |
| | | message: '请è³å°éæ©ä¸ä¸ªç©æåå·¥åºé项', |
| | | trigger: ['change'] |
| | | } |
| | | ] |
| | | }, |
| | | showSave: false, |
| | | } |
| | | }, |
| | | // ç¹å»æäº¤æé®çäºä»¶å¤ç彿° |
| | | onNavigationBarButtonTap() { |
| | | this.form.value11 = this.checkboxList.filter(item => item.value).map(item => item.name); |
| | | this.$refs.uForm.validate(valid => { |
| | | if (valid) { |
| | | console.log('éªè¯éè¿'); |
| | | // å¤çæäº¤é»è¾ |
| | | this.$refs.saveForm.open(); |
| | | } else { |
| | | console.log('éªè¯å¤±è´¥'); |
| | | // å¯ä»¥è·åå
·ä½çéè¯¯ä¿¡æ¯ |
| | | const errors = this.$refs.uForm.getError(); |
| | | console.log('é误信æ¯:', errors); |
| | | } |
| | | }); |
| | | }, |
| | | onReady() { |
| | | this.$refs.uForm.setRules(this.rules); |
| | | }, |
| | | methods: { |
| | | // å¤éå¤ç |
| | | changeCheckbox(val) { |
| | | if (val.name === 'åå²') { |
| | | this.checkboxList[2].value = false |
| | | } |
| | | if (val.name === 'ç®åç©ææ£æ¥') { |
| | | this.checkboxList[0].value = false |
| | | } |
| | | }, |
| | | // æå¼å¼¹æ¡--åé¢è¿éè¦ç嬿«ç æªæ«ç ç»æï¼èµå¼ç»æ¥å·¥åå·å段ï¼ç¶åæå¼å¼¹æ¡éæ©è®¢åå·çæä½ |
| | | open() { |
| | | this.$refs.modalBg.open(); |
| | | }, |
| | | // å¼¹æ¡ä¿å |
| | | confirm() { |
| | | console.log('ä¿å', this.form.value1); |
| | | // è¯·æ±æ¥å£ï¼æ ¹æ®å·¥åå·æ¥è¯¢å
¶ä»ä¿¡æ¯å¹¶èµå¼ |
| | | }, |
| | | // éæ©è®¢åå· |
| | | openList() { |
| | | if (this.form.value1 === '') { |
| | | uni.showToast({ |
| | | title: '请å
æ«ææè¾å
¥æ¥å·¥åå·', |
| | | icon: 'none' |
| | | }) |
| | | return |
| | | } |
| | | uni.navigateTo({ |
| | | url: '/pages/product/report/orderList' |
| | | }) |
| | | }, |
| | | setNo(val) { |
| | | this.form.value3 = val |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .body { |
| | | background: linear-gradient(to bottom, #e5f0ff, #f6f9ff); |
| | | box-sizing: border-box; |
| | | padding-top: 26rpx; |
| | | height: 100vh; |
| | | } |
| | | .top_code { |
| | | height: 80rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | margin: 0 30rpx; |
| | | margin-bottom: 10rpx; |
| | | } |
| | | .top_code_edit { |
| | | text-align: right; |
| | | flex: 1; |
| | | margin-bottom: 18rpx; |
| | | } |
| | | .main_view { |
| | | margin-top: 5rpx; |
| | | background-image: url("~@/static/custom/home/home_img_bg.png"); |
| | | background-repeat: no-repeat; |
| | | background-size: 100% auto; |
| | | border-radius: 15rpx; |
| | | height: 936rpx; |
| | | margin: 0 30rpx; |
| | | box-sizing: border-box; |
| | | padding: 37rpx 25rpx; |
| | | } |
| | | |
| | | .product-number-icon { |
| | | background-image: url("~@/static/custom/daily/icon_number.png"); |
| | | background-repeat: no-repeat; |
| | | background-size: cover; |
| | | height: 32rpx; |
| | | width: 32rpx; |
| | | position: relative; |
| | | margin-right: 8rpx; |
| | | } |
| | | |
| | | .product-edit-icon { |
| | | background-image: url("~@/static/custom/daily/icon_edit.png"); |
| | | background-repeat: no-repeat; |
| | | background-size: cover; |
| | | height: 32rpx; |
| | | width: 32rpx; |
| | | position: relative; |
| | | } |
| | | .icon_history { |
| | | background-image: url("~@/static/custom/daily/icon_history.png"); |
| | | background-repeat: no-repeat; |
| | | background-size: cover; |
| | | height: 26rpx; |
| | | width: 26rpx; |
| | | margin-right: 8rpx; |
| | | position: relative; |
| | | } |
| | | .icon_save { |
| | | background-image: url("~@/static/custom/daily/icon_save.png"); |
| | | background-repeat: no-repeat; |
| | | background-size: cover; |
| | | height: 26rpx; |
| | | width: 26rpx; |
| | | margin-right: 8rpx; |
| | | position: relative; |
| | | } |
| | | .icon_right { |
| | | background-image: url("~@/static/custom/daily/icon_right.png"); |
| | | background-repeat: no-repeat; |
| | | background-size: cover; |
| | | height: 26rpx; |
| | | width: 26rpx; |
| | | margin-right: 8rpx; |
| | | position: relative; |
| | | } |
| | | .main_top_title { |
| | | font-weight: 800; |
| | | font-size: 34rpx; |
| | | color: #1d2541; |
| | | margin-bottom: 20rpx; |
| | | } |
| | | .main_item { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | font-size: 30rpx; |
| | | line-height: 112rpx; |
| | | border-bottom: 1rpx solid rgba(213, 213, 213, 0.67); |
| | | box-sizing: border-box; |
| | | .value2 { |
| | | width: 450rpx; /*çåæå¤§å®½åº¦*/ |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; /* è®¾ç½®ææ¬æº¢åºæ¶æ¾ç¤ºçç¥å· */ |
| | | white-space: nowrap; /* è®¾ç½®ä¸æ¢è¡ */ |
| | | text-align: right; |
| | | padding-left: 40rpx; |
| | | } |
| | | } |
| | | .btns { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | margin-top: 33rpx; |
| | | .uni-button { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | ::v-deep.u-icon__icon { |
| | | height: 26rpx; |
| | | width: 26rpx; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="body"> |
| | | <view class="top_code"> |
| | | <u-icon class="product-number-icon"></u-icon>ç¼å·ï¼ |
| | | <text selectable>{{ dutyNo }}</text> |
| | | <view class="top_code_edit"> |
| | | <u-icon class="product-edit-icon" @click="edit" v-show="true"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="main_view"> |
| | | <h3 class="main_top_title">å·¥ä½å°</h3> |
| | | <view class="main_item" @click="goPage(0)"> |
| | | <span style="color:#4F4F4F">å·¥ä½ç«</span> |
| | | <view> |
| | | <span style="color:#333333;margin-right: 20rpx;">{{ query.workstationName }}</span> |
| | | <u-icon v-if="isShowButton" name="arrow-right" color="#687792" size="28"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="main_item" @click="goPage(1)"> |
| | | <span style="color:#4F4F4F">å·¥åº</span> |
| | | <view> |
| | | <span style="color:#333333;margin-right: 20rpx;">{{ query.operationName }}</span> |
| | | <u-icon v-if="isShowButton" name="arrow-right" color="#687792" size="28"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="main_item" @click="goPage(2)"> |
| | | <span style="color:#4F4F4F">æ¥æ</span> |
| | | <view> |
| | | <span style="color:#333333;margin-right: 20rpx;">{{ query.updateTime }}</span> |
| | | <u-icon v-if="isShowButton" name="arrow-right" color="#687792" size="28"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="main_item" @click="goPage(3)"> |
| | | <span style="color:#4F4F4F">çæ¬¡</span> |
| | | <view> |
| | | <span style="color:#333333;margin-right: 20rpx;">{{ query.clazzType }}</span> |
| | | <u-icon v-if="isShowButton" name="arrow-right" color="#687792" size="28"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="main_item" @click="goPage(4)"> |
| | | <span style="color:#4F4F4F;width: 118rpx;">ç产人å</span> |
| | | <view class="value2"> |
| | | <span style="color:#333333;margin-right: 20rpx;">{{ staffNameJoin }}</span> |
| | | </view> |
| | | <u-icon v-if="isShowButton" name="arrow-right" color="#687792" size="28"></u-icon> |
| | | </view> |
| | | <view class="main_item"> |
| | | <span style="color:#4F4F4F">å建人</span> |
| | | <view> |
| | | <span style="color:#333333;">{{ query.createUser }}</span> |
| | | </view> |
| | | </view> |
| | | <view class="btns"> |
| | | <u-button :custom-style="customStyle" @click="goPage(9)">æå·¥</u-button> |
| | | <u-button :custom-style="customStyle" style="width: 150rpx;" @click="goPage(6)"> |
| | | <u-icon class="icon_history" size="26rpx" /> |
| | | <span style="line-height: 40rpx;">åå²</span> |
| | | </u-button> |
| | | <u-button v-if="isShowButton" @click="submit" :custom-style="customStyle" |
| | | style="background: #30AFFF;color: #fff;border: 0;width: 150rpx;"> |
| | | <u-icon class="icon_save" size="26rpx" /> |
| | | <span style="line-height: 40rpx;">ä¿å</span> |
| | | </u-button> |
| | | <u-button :custom-style="customStyle" style="background: #214DED;color: #fff;border: 0;width: 150rpx;" |
| | | @click="goPage(8)"> |
| | | <u-icon class="icon_right" size="26rpx" /> |
| | | <span style="line-height: 40rpx;">æ¥å·¥</span></u-button> |
| | | </view> |
| | | </view> |
| | | <u-calendar v-model="calendarShow" :mode="mode" @change="changeCalendar"></u-calendar> |
| | | <!--å·¥åºä¸ææ¡--> |
| | | <u-select :default-value="[operationIndex]" v-model="selectShowOperation" :list="operationList" |
| | | @confirm="confirmOperation"></u-select> |
| | | <u-select v-model="selectShowClazzType" :list="clazzTypeList" @confirm="confirmClazzType"></u-select> |
| | | <u-toast ref="uToast" /> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | dateFormat |
| | | } from "@/utils/date.js"; |
| | | import UIcon from "../../../uview-ui/components/u-icon/u-icon.vue"; |
| | | export default { |
| | | components: { |
| | | UIcon |
| | | }, |
| | | data() { |
| | | return { |
| | | customStyle: { |
| | | 'background': '#FFFFFF', |
| | | 'border-radius': '8rpx', |
| | | 'border': '1px solid #D2D2D2', |
| | | 'width': '121rpx', |
| | | 'height': '65rpx', |
| | | 'font-weight': 500, |
| | | 'font-size': '28rpx', |
| | | 'color': '#333333', |
| | | 'pading': '0 30rpx' |
| | | }, |
| | | calendarShow: false, |
| | | selectShowOperation: false, |
| | | selectShowClazzType: false, |
| | | mode: 'date', |
| | | id: '', |
| | | dutyNo: '', // ç¼å· |
| | | query: { |
| | | updateTime: dateFormat( |
| | | new Date(), 'yyyy-MM-dd'), |
| | | workstationName: '', // å·¥ä½ç«åç§° |
| | | workstationId: '', // å·¥ä½ç«id |
| | | clazzType: '', // çæ¬¡ |
| | | productionUser: '', |
| | | operationId: '', // å·¥åºid |
| | | operationName: '', // å·¥åºåç§° |
| | | userList: [], |
| | | createUser: '' |
| | | }, |
| | | toId: '', |
| | | operationList: [], |
| | | clazzTypeList: [{ |
| | | label: 'ç½ç' |
| | | }, |
| | | { |
| | | label: 'æç' |
| | | }, |
| | | ], |
| | | workstation: '', |
| | | staffNameJoin: '', |
| | | operationIndex: '', |
| | | isEdit: false, // æ¯å¦ä¿®æ¹ |
| | | isShowButton: false, |
| | | workCenter: '', |
| | | addOrEdit: '', |
| | | info: {}, |
| | | firstOperationId: null, |
| | | lastOperationId: null, |
| | | } |
| | | }, |
| | | onShow() { |
| | | // this.getLastDutyRecordFun() |
| | | }, |
| | | onLoad() { |
| | | uni.$on('dailyListInfo', (info) => { |
| | | this.dutyNo = info.dutyNo |
| | | this.id = info.id |
| | | this.query.createUser = this.vuex_username |
| | | this.query.clazzType = info.clazzType |
| | | this.query.workstationId = info.workstationId |
| | | this.query.workstationName = info.workstationName |
| | | this.query.productionUser = info.productionUser.split(',').reverse() |
| | | this.query.userList = info.productionUserList.split(',') |
| | | this.query.operationId = info.operationId |
| | | this.getOperation() |
| | | }) |
| | | |
| | | uni.$on('returnData', (data) => { |
| | | // 临æ¶åå¨å·¥ä½ç«çæ°æ® |
| | | this.workstation = data |
| | | // ç»é¡µé¢å·¥ä½ç«èµå¼ |
| | | this.query.workstationName = '(' + data.workCenter + ')' + data.name |
| | | this.query.workstationId = data.id |
| | | // æ¸
空工åºé项 |
| | | this.query.operationName = '' |
| | | this.query.operationId = '' |
| | | this.operationIndex = 0 |
| | | this.getOperationTaskFun(data.workCenter) |
| | | }) |
| | | uni.$on('checkedList', (data) => { |
| | | let staffNameList = [] |
| | | let staffNoList = [] |
| | | data.forEach(i => { |
| | | staffNameList.push(i.staffName) |
| | | staffNoList.push(i.staffNo) |
| | | }) |
| | | this.query.productionUser = staffNameList |
| | | this.query.userList = staffNoList |
| | | }); |
| | | }, |
| | | onReady() { |
| | | // 馿¬¡è¿å
¥é¡µé¢è·åå½åç»å½äººæå䏿¬¡æäº¤çæ¥æ¥ |
| | | this.getLastDutyRecordFun() |
| | | }, |
| | | methods: { |
| | | isNotOperationName(workCenter, operationName, workCenterTwo) { |
| | | // 夿æ¯å¦ä¸ºè¯¥å·¥ä½ç« |
| | | if (workCenter.includes(workCenterTwo)) { |
| | | // 夿æ¯å¦å
å«å·¥åºåç§° |
| | | if (!operationName.includes(this.query.operationName)) { |
| | | return true |
| | | } else { |
| | | return false |
| | | } |
| | | } else { |
| | | return false |
| | | } |
| | | }, |
| | | // 夿工忝å¦çäº,忶夿æ¯å¦ä¸ºç¬¬ä¸éå·¥åº |
| | | isFirstOperationId(workCenter, workCenterTwo) { |
| | | if (workCenter.includes(workCenterTwo)) { |
| | | // 夿æ¯å¦ä¸ä¸ºç¬¬ä¸éå·¥åº |
| | | if (this.query.operationId !== this.firstOperationId) { |
| | | return true |
| | | } else { |
| | | return false |
| | | } |
| | | } else { |
| | | return false |
| | | } |
| | | }, |
| | | // 馿¬¡è¿å
¥é¡µé¢è·åå½åç»å½äººæå䏿¬¡æäº¤çæ¥æ¥ |
| | | getLastDutyRecordFun() { |
| | | this.$u.api.dailyPaper.getLastDutyRecord().then(res => { |
| | | if (res.code === 0) { |
| | | this.dutyNo = res.data.dutyNo |
| | | this.id = res.data.id |
| | | this.query.createUser = this.vuex_username |
| | | this.query.clazzType = res.data.clazzType |
| | | this.query.workstationId = res.data.workstationId |
| | | this.query.workstationName = res.data.workstationName |
| | | this.query.productionUser = res.data.productionUser.split(',').reverse() |
| | | this.query.userList = res.data.productionUserList.split(',') |
| | | this.query.operationId = res.data.operationId |
| | | this.getOperation() |
| | | } else { |
| | | this.$u.toast(res.msg) |
| | | } |
| | | }) |
| | | }, |
| | | // æ¸
空é»è¾ |
| | | onNavigationBarButtonTap(e) { |
| | | this.isEdit = true |
| | | this.isShowButton = true |
| | | this.addOrEdit = 'add' |
| | | this.query.productionUser = '' |
| | | this.query.productionUserList = [] |
| | | this.staffNameJoin = '' |
| | | this.query.updateTime = '' |
| | | }, |
| | | edit() { |
| | | this.isEdit = !this.isEdit |
| | | this.isShowButton = this.isEdit |
| | | this.addOrEdit = 'edit' |
| | | }, |
| | | goPage(index) { |
| | | switch (index) { |
| | | // 跳转å°åå²é¡µé¢ |
| | | case 6: |
| | | uni.navigateTo({ |
| | | url: '/pages/daily/daily/daily-list' |
| | | }) |
| | | break; |
| | | // è·³è½¬å°æ¥å·¥é¡µé¢ |
| | | case 8: |
| | | if (this.isEdit) { |
| | | this.$refs.uToast.show({ |
| | | title: '请å
ä¿åä¿®æ¹', |
| | | type: 'warning ' |
| | | }) |
| | | return |
| | | } |
| | | |
| | | let workCenter = this.query.workstationName.split(')')[0].substring(1) |
| | | let operation = this.query.workstationName.split(')')[1] |
| | | console.log(workCenter, operation, this.firstOperationId, this.query.operationId, this.query) |
| | | if (workCenter == "TM-01" || workCenter == "JG-01" || workCenter == "YB-04" || this.isFirstOperationId('DY-01,GY-01,YB-01,YB-02', workCenter) || this.isNotOperationName('ZZ-02', 'äºè£
,注油', workCenter)) { |
| | | let item = { |
| | | workstationId: this.query.workstationId, |
| | | clazzType: this.query.clazzType, |
| | | dutyNo: this.dutyNo, |
| | | userStaffNo: this.query.userList, |
| | | workstationName: this.query.workstationName, |
| | | staffNameJoin: this.staffNameJoin, |
| | | workCenter: workCenter, |
| | | operationId: this.query.operationId, |
| | | firstOperationId: this.firstOperationId, |
| | | lastOperationId: this.lastOperationId |
| | | } |
| | | uni.navigateTo({ |
| | | url: '/pages/daily/common/work-reporting?info=' + encodeURIComponent(JSON |
| | | .stringify(item)) |
| | | }) |
| | | } else if (this.query.workstationName.includes("TX-02") && !this.query.operationName.includes("å è£
")) { |
| | | let item = { |
| | | workstationId: this.query.workstationId, |
| | | clazzType: this.query.clazzType, |
| | | dutyNo: this.dutyNo, |
| | | userStaffNo: this.query.userList, |
| | | workstationName: this.query.workstationName, |
| | | staffNameJoin: this.staffNameJoin, |
| | | workCenter: "TX-02", |
| | | operationId: this.query.operationId, |
| | | firstOperationId: this.firstOperationId, |
| | | lastOperationId: this.lastOperationId |
| | | } |
| | | uni.navigateTo({ |
| | | url: '/pages/daily/common/work-reporting?info=' + encodeURIComponent(JSON |
| | | .stringify(item)) |
| | | }) |
| | | } else { |
| | | uni.navigateTo({ |
| | | url: `/pages/daily/common/work-order-list?workstationId=${this.query.workstationId}&toId=${this.toId}&clazzType=${this.query.clazzType}&dutyNo=${this.dutyNo}&userStaffNo=${this.query.userList}&workstationName=${this.query.workstationName}&staffNameJoin=${this.staffNameJoin}` |
| | | }) |
| | | } |
| | | break; |
| | | // è·³è½¬å°æå·¥é¡µé¢ |
| | | case 9: |
| | | if (this.isEdit) { |
| | | this.$refs.uToast.show({ |
| | | title: '请å
ä¿åä¿®æ¹', |
| | | type: 'warning ' |
| | | }) |
| | | return |
| | | } |
| | | uni.navigateTo({ |
| | | url: `/pages/daily/handyman/handyman?dutyNo=${this.query.dutyNo}&updateTime=${this.query.updateTime}&userList=${this.query.productionUser}&staffList=${this.query.userList}` |
| | | }) |
| | | break; |
| | | } |
| | | if (!this.isEdit) { |
| | | return |
| | | } else { |
| | | switch (index) { |
| | | case 0: |
| | | uni.navigateTo({ |
| | | url: '/pages/daily/workstation/index' |
| | | }) |
| | | break; |
| | | case 1: |
| | | if (!this.query.workstationName) { |
| | | this.$refs.uToast.show({ |
| | | title: '请å
鿩工ä½ç«', |
| | | type: 'warning ' |
| | | }) |
| | | } else { |
| | | this.selectShowOperation = true; |
| | | } |
| | | break; |
| | | case 2: |
| | | this.calendarShow = true; |
| | | break; |
| | | case 3: |
| | | this.selectShowClazzType = true; |
| | | break; |
| | | case 4: |
| | | let staffList = this.query.productionUser |
| | | let staffNoList = this.query.userList |
| | | const list = [] |
| | | for (const i in staffList) { |
| | | const obj = { |
| | | staffName: staffList[i], |
| | | staffNo: staffNoList[i] |
| | | } |
| | | list.push(obj) |
| | | } |
| | | uni.navigateTo({ |
| | | url: '/pages/daily/production-person/production-person?list=' + encodeURIComponent( |
| | | JSON.stringify(list)) |
| | | }) |
| | | break; |
| | | } |
| | | } |
| | | }, |
| | | // æäº¤æ¥æ¥ä¿®æ¹ |
| | | submit() { |
| | | if (!this.query.workstationId) { |
| | | this.$u.toast('è¯·éæ©å·¥ä½ç«') |
| | | return |
| | | } else if (!this.query.operationId) { |
| | | this.$u.toast('è¯·éæ©å·¥åº') |
| | | return |
| | | } else if (!this.query.clazzType) { |
| | | this.$u.toast('è¯·éæ©çæ¬¡') |
| | | return |
| | | } else if (!this.query.productionUser) { |
| | | this.$u.toast('è¯·éæ©ç产人å') |
| | | return |
| | | } else if (!this.query.updateTime) { |
| | | this.$u.toast('è¯·éæ©æ¶é´') |
| | | return |
| | | } |
| | | |
| | | let params = JSON.parse(JSON.stringify(this.query)) |
| | | this.$delete(params, 'productionUser') |
| | | this.$delete(params, 'productionUserList') |
| | | params.updateTime = params.updateTime + ' 00:00:00' |
| | | params.id = null |
| | | if (this.addOrEdit === 'add') { |
| | | this.$u.api.dailyPaper.addDailyPaper(params).then(res => { |
| | | if (res.code === 0) { |
| | | // this.getLastDutyRecordFun() |
| | | this.query.createUser = this.vuex_username |
| | | this.$u.toast('ä¿åæå') |
| | | this.isShowButton = false |
| | | this.getLastDutyRecordFun() |
| | | } |
| | | }) |
| | | } else { |
| | | params.id = this.id |
| | | this.$u.api.dailyPaper.editDailyPaper(params).then(res => { |
| | | if (res.code === 0) { |
| | | // this.getLastDutyRecordFun() |
| | | this.$u.toast('ä¿®æ¹æå') |
| | | this.isShowButton = false |
| | | } |
| | | }) |
| | | } |
| | | this.isEdit = false |
| | | }, |
| | | changeCalendar(e) { |
| | | this.query.updateTime = e.result; |
| | | }, |
| | | confirmOperation(e) { |
| | | this.query.operationName = e[0].label |
| | | this.query.operationId = e[0].value |
| | | const index = this.operationList.findIndex(item => item.value === this.query.operationId) |
| | | if (index > -1) { |
| | | this.operationIndex = index |
| | | this.toId = this.operationList[index].value |
| | | } |
| | | }, |
| | | confirmClazzType(e) { |
| | | this.query.clazzType = e[0].label |
| | | }, |
| | | // æ¥è¯¢å·¥ä½ç« |
| | | getOperation() { |
| | | this.$u.api.dailyPaper.getWorkstation().then(res => { |
| | | if (res.code === 0) { |
| | | const index = res.data.findIndex(item => item.name === this.query.workstationName) |
| | | if (index > -1) { |
| | | this.workCenter = res.data[index].workCenter |
| | | } |
| | | this.query.workstationName = '(' + this.workCenter + ')' + this.query.workstationName |
| | | this.getOperationTaskFun(this.workCenter, this.query.operationId) |
| | | } |
| | | }) |
| | | }, |
| | | getOperationTaskFun(id, operationId) { |
| | | this.operationList = [] |
| | | const params = { |
| | | workCenter: id, |
| | | current: 1, |
| | | size: -1 |
| | | } |
| | | // æ¥è¯¢å·¥åºå表 |
| | | this.$u.api.dailyPaper.getOperation(params).then(res => { |
| | | if (res.code === 0) { |
| | | if (res.data.records.length > 0) { |
| | | res.data.records.forEach(i => { |
| | | const obj = Object.assign({ |
| | | label: i.name, |
| | | value: i.id, |
| | | }) |
| | | this.operationList.push(obj) |
| | | }) |
| | | if (operationId) { |
| | | const index = this.operationList.findIndex(item => item.value === operationId) |
| | | if (index > -1) { |
| | | this.operationIndex = index |
| | | this.query.operationName = this.operationList[index].label |
| | | this.toId = this.operationList[index].value |
| | | } |
| | | } |
| | | this.firstOperationId = this.operationList[0].value |
| | | this.lastOperationId = this.operationList[this.operationList.length - 1].value |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | watch: { |
| | | 'query.productionUser': { |
| | | handler(newName, oldName) { |
| | | if (this.query.productionUser.length > 0) { |
| | | this.staffNameJoin = this.query.productionUser.join() |
| | | } else { |
| | | this.staffNameJoin = '' |
| | | } |
| | | }, |
| | | immediate: true, |
| | | deep: true |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | @import 'index0.scss'; |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="page"> |
| | | <view class="finishProductIn-locno-bg" /> |
| | | <u-navbar title="车é´è®¢åå表" :background="background" :border-bottom="false" :title-bold="true" title-color="#000" |
| | | back-icon-color="#000" /> |
| | | <view class="finishProductIn-locno-search"> |
| | | <u-search v-model="keywords" shape="square" bg-color="rgba(250,252,255,0.36)" :show-action="false" |
| | | placeholder="请è¾å
¥è½¦é´è®¢åå·" @clear="search" @custom="search" @search="search"> |
| | | </u-search> |
| | | </view> |
| | | <view class="wrap"> |
| | | <scroll-view class="finishProductIn-locno-scroll-list" scroll-y="true" @scrolltolower="loadMore"> |
| | | <u-cell-group class="finishProductIn-locno-scroll-list-group" :border="false"> |
| | | <view class="content" v-for="(item, index) in list" :key="item.locNo" :index="index" |
| | | @click="selectNo(item.index)"> |
| | | <view class="content-header"> |
| | | <view class="content-header-title">{{ item.index }}</view> |
| | | </view> |
| | | <view class="content-body"> |
| | | <view class="row-list"> |
| | | <view class="_label"> |
| | | <view class="_label-icon-1"> |
| | | </view> |
| | | <view class="_label-name">订åå·ï¼</view> |
| | | </view> |
| | | <view class="_content"> |
| | | {{ item.value0 }} |
| | | </view> |
| | | </view> |
| | | <view class="row-list"> |
| | | <view class="_label"> |
| | | <view class="_label-icon-2"> |
| | | </view> |
| | | <view class="_label-name">é¶ä»¶å·ï¼</view> |
| | | </view> |
| | | <view class="_content"> |
| | | {{ item.value1 }} |
| | | </view> |
| | | </view> |
| | | <view class="row-list"> |
| | | <view class="_label"> |
| | | <view class="_label-icon-3"> |
| | | </view> |
| | | <view class="_label-name">é¶ä»¶æè¿°ï¼</view> |
| | | </view> |
| | | <view class="_content"> |
| | | {{ item.value2 }} |
| | | </view> |
| | | </view> |
| | | <view class="row-list"> |
| | | <view class="_label"> |
| | | <view class="_label-icon-1"> |
| | | </view> |
| | | <view class="_label-name">æ¹é大å°ï¼</view> |
| | | </view> |
| | | <view class="_content"> |
| | | {{ item.value3 }} |
| | | </view> |
| | | </view> |
| | | <view class="row-list"> |
| | | <view class="_label"> |
| | | <view class="_label-icon-2"> |
| | | </view> |
| | | <view class="_label-name">å¼å§æ¥æï¼</view> |
| | | </view> |
| | | <view class="_content"> |
| | | {{ item.value4 }} |
| | | </view> |
| | | </view> |
| | | <view class="row-list"> |
| | | <view class="_label"> |
| | | <view class="_label-icon-3"> |
| | | </view> |
| | | <view class="_label-name">ç»ææ¥æï¼</view> |
| | | </view> |
| | | <view class="_content"> |
| | | {{ item.value5 }} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </u-cell-group> |
| | | <view class="loadmore" @click="loadMore"> |
| | | <u-loadmore :status="loadStatus"></u-loadmore> |
| | | </view> |
| | | </scroll-view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | <script> |
| | | import content_bg from '@/static/custom/finishProductIn/locNoBg.png' |
| | | export default { |
| | | data() { |
| | | return { |
| | | background: { |
| | | backgroundImage: `url(${content_bg})`, |
| | | backgroundAttachment: 'fixed', |
| | | backgroundSize: '100% auto', |
| | | backgroundRepeat: 'no-repeat', |
| | | }, |
| | | keywords: '', |
| | | alllist: [], |
| | | originList: [], |
| | | query: { |
| | | current: 1, |
| | | size: 10 |
| | | }, |
| | | list: [ |
| | | { |
| | | index: 1, |
| | | value0: '123456789', |
| | | value1: '123456789', |
| | | value2: '123456789', |
| | | value3: '123456789', |
| | | value4: '123456789', |
| | | value5: '123456789' |
| | | } |
| | | ], |
| | | count: 0, |
| | | loadStatus: 'loading' |
| | | }; |
| | | }, |
| | | onLoad() { |
| | | this.$u.api.finishProductIn.fetchList().then(res => { |
| | | this.alllist = res.data |
| | | this.originList = res.data |
| | | this.loadList() |
| | | }) |
| | | }, |
| | | methods: { |
| | | loadMore() { |
| | | if (this.loadStatus == "nomore" || this.loadStatus == "loading") { |
| | | return |
| | | } |
| | | this.loadStatus = "loading"; |
| | | setTimeout(() => { |
| | | this.query.current += 1; |
| | | this.loadList(); |
| | | }, 100); |
| | | }, |
| | | loadList() { |
| | | const data = this.originList.slice((this.query.current - 1) * this.query.size, this.query.current * this.query.size) |
| | | this.list = this.list.concat(data); |
| | | this.loadStatus = "loadmore"; |
| | | if (!data || data.length < this.query.size) { |
| | | this.loadStatus = "nomore"; |
| | | } |
| | | }, |
| | | search(value) { |
| | | this.list = []; |
| | | this.query.current = 1; |
| | | if (value) { |
| | | this.originList = this.alllist.filter(item => item.locNo.includes(value)) |
| | | } else { |
| | | this.originList = this.alllist |
| | | } |
| | | this.loadList() |
| | | }, |
| | | selectNo(no) { |
| | | this.refreshLastPage(no) |
| | | }, |
| | | |
| | | //å·æ°ä¸ä¸ä¸ªé¡µé¢ |
| | | refreshLastPage(no) { |
| | | // åç¥ A.vue æ´æ°æ°æ® |
| | | // è·å页颿 |
| | | let pages = getCurrentPages() |
| | | |
| | | // è·åä¸ä¸é¡µæ |
| | | let prevPage = pages[pages.length - 2] |
| | | |
| | | // 触åä¸ä¸é¡µ upData 彿°(å¹¶æºå¸¦åæ°) |
| | | prevPage.$vm.setNo(no) |
| | | |
| | | // è¿åä¸ä¸é¡µ |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }) |
| | | }, |
| | | } |
| | | }; |
| | | </script> |
| | | <style lang="scss"> |
| | | .finishProductIn-locno-bg { |
| | | background-color: #F6F9FF; |
| | | background-image: url('~@/static/custom/finishProductIn/locNoBg.png'); |
| | | // background: linear-gradient(180deg,rgba(206,227,254,1),rgba(206,227,254,1) 20%,rgba(206,227,254,0.5) 40%,rgba(206,227,254,0.25) 60%,rgba(206,227,254,0.08) 80%,rgba(206,227,254,0)); |
| | | padding: 0 20rpx; |
| | | background-attachment: fixed; |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | position: fixed; |
| | | top: 0; |
| | | bottom: 0; |
| | | width: 100%; |
| | | z-index: -1; |
| | | } |
| | | |
| | | .finishProductIn-locno-search { |
| | | padding: 40rpx 30rpx 20rpx 30rpx; |
| | | } |
| | | |
| | | .wrap .finishProductIn-locno-scroll-list { |
| | | height: calc(100vh - var(--window-top) - var(--window-bottom) - 242rpx); |
| | | width: 100%; |
| | | } |
| | | |
| | | .finishProductIn-locno-scroll-list-group { |
| | | ::v-deep .u-cell-item-box { |
| | | background-color: rgba(250, 252, 255, 0.36) !important; |
| | | padding: 0rpx 30rpx; |
| | | } |
| | | |
| | | .content { |
| | | font-size: 12px; |
| | | background-color: #FFFFFF; |
| | | box-sizing: border-box; |
| | | border-radius: 10rpx; |
| | | margin: 0rpx 0rpx 16rpx; |
| | | padding: 20rpx 8rpx; |
| | | box-shadow: none; |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | .content-header { |
| | | width: 40rpx; |
| | | height: 90rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | .content-header-icon { |
| | | background-image: url('~@/static/custom/moveWareHouse/header_icon.png'); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height: 28rpx; |
| | | width: 28rpx; |
| | | } |
| | | |
| | | .content-header-title { |
| | | margin-left: 11rpx; |
| | | font-size: 26rpx; |
| | | font-weight: bold; |
| | | color: #333333; |
| | | } |
| | | } |
| | | |
| | | .content-body { |
| | | flex: 1; |
| | | background: #F5F9FF; |
| | | border-radius: 10rpx; |
| | | padding: 0rpx 23rpx; |
| | | |
| | | .row-list { |
| | | height: 60rpx; |
| | | display: flex; |
| | | flex-direction: row; |
| | | padding: 0px; |
| | | align-items: center; |
| | | } |
| | | |
| | | .row-list ._label { |
| | | display: flex; |
| | | flex: 0.8; |
| | | color: #909399; |
| | | align-items: center; |
| | | |
| | | ._label-icon-1 { |
| | | background-image: url('~@/static/custom/moveWareHouse/label-icon-1.png'); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height: 26rpx; |
| | | width: 26rpx; |
| | | } |
| | | |
| | | ._label-icon-2 { |
| | | background-image: url('~@/static/custom/moveWareHouse/label-icon-2.png'); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height: 26rpx; |
| | | width: 26rpx; |
| | | } |
| | | |
| | | ._label-icon-3 { |
| | | background-image: url('~@/static/custom/moveWareHouse/label-icon-3.png'); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height: 26rpx; |
| | | width: 26rpx; |
| | | } |
| | | |
| | | ._label-name { |
| | | margin-left: 11rpx; |
| | | font-size: 26rpx; |
| | | font-weight: 500; |
| | | color: #666666; |
| | | } |
| | | } |
| | | |
| | | .row-list ._content { |
| | | flex: 1.5; |
| | | text-align: right; |
| | | color: #909399; |
| | | font-size: 24rpx; |
| | | } |
| | | |
| | | .row-list .s1 { |
| | | color: #D35651; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | url: '/', |
| | | icon: 'feeding' |
| | | }, |
| | | { |
| | | name: '车é´è®¢åä¸å', |
| | | url: '/', |
| | | icon: 'feeding' |
| | | }, |
| | | { |
| | | name: '车é´åæ¶ä¸å', |
| | | url: '/', |
| | | icon: 'feeding' |
| | | }, |
| | | ] |
| | | }, |
| | | { |
| | |
| | | { |
| | | name: 'æ ¸ç£
å½å
¥', |
| | | url: '/pages/wareHouse/packing/registration', |
| | | icon: 'feeding' |
| | | }, |
| | | { |
| | | name: 'åºåä»¶çç¹', |
| | | url: '/pages/wareHouse/inventory/index', |
| | | icon: 'feeding' |
| | | }, |
| | | { |
| | | name: '导ä½å¤è´§çç¹', |
| | | url: '/pages/wareHouse/inventory/index', |
| | | icon: 'feeding' |
| | | }, |
| | | ] |
| | |
| | | .wrap { |
| | | height: calc(100vh - 200rpx); |
| | | background: linear-gradient(to bottom, #e5f0ff, #f6f9ff); |
| | | overflow-y: auto; |
| | | } |
| | | |
| | | .work-stage-title { |
| | |
| | | <template> |
| | | <view class="page"> |
| | | <view class="movewarehouse-index-bg"/> |
| | | <u-navbar title="ç§»åº" :background="background" :border-bottom="false" :title-bold="true" title-color="#000" back-icon-color="#000"/> |
| | | <view class="movewarehouse-index-bg" /> |
| | | <u-navbar title="ç§»åº" :background="background" :border-bottom="false" :title-bold="true" title-color="#000" |
| | | back-icon-color="#000" /> |
| | | <view class="movewarehouse-index-search"> |
| | | <!--<u-search v-model="keywords" shape="square" bg-color="rgba(250,252,255,0.36)" :show-action="false" placeholder="请è¾å
¥åºä½å·" @clear="search" @custom="search" @search="search"> |
| | | </u-search>--> |
| | | <view class="movewarehouse-index-search-view"> |
| | | <view class="movewarehouse-index-search-view-item"> |
| | | <text class="item-one">è³åºä½å·</text> |
| | | <text class="item-one-content">{{tolocationNo}}</text> |
| | | </view> |
| | | <text class="item-one">è³åºä½å·</text> |
| | | <text class="item-one-content">{{ tolocationNo }}</text> |
| | | </view> |
| | | <view class="movewarehouse-index-search-view-item" @click="seachLocationNo()"> |
| | | <text class="item-two">è¯·éæ©</text> |
| | | <u-icon name="arrow-right" color="#2979ff" size="28"></u-icon> |
| | | <text class="item-two">è¯·éæ©</text> |
| | | <u-icon name="arrow-right" color="#2979ff" size="28"></u-icon> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="wrap"> |
| | | <view class="wrap"> |
| | | <scroll-view class="movewarehouse-index-scroll-list" scroll-y="true"> |
| | | <u-cell-group class="movewarehouse-index-scroll-list-group" :border="false"> |
| | | <view class="content" v-for="(item, index) in list" :key="item.id" :index="index"> |
| | |
| | | </view> |
| | | <view class="header-item-toolbar" @click="deleteHandle(item)"> |
| | | <view class="header-item-toolbar-del-icon"> |
| | | |
| | | |
| | | </view> |
| | | <view class="header-item-toolbar-del-text"> |
| | | å é¤ |
| | |
| | | </view> |
| | | <view class="_content"> |
| | | <text class="_content-text">{{ item.availableStockQuantity }}</text> |
| | | ({{ item.unit }}) |
| | | ({{ item.unit }}) |
| | | </view> |
| | | </view> |
| | | <view class="row-list"> |
| | |
| | | </u-cell-group> |
| | | </scroll-view> |
| | | <scan></scan> |
| | | <view class="new-form-footer" v-if="list.length>0"> |
| | | <view class="new-form-footer" v-if="list.length > 0"> |
| | | <u-button class="btn" type="primary" @click="submit">æäº¤</u-button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | <script> |
| | | import scan from "@/components/scan/scan.vue"; |
| | | import content_bg from '@/static/custom/moveWareHouse/locNoBg.png' |
| | | export default { |
| | | components: { |
| | | scan |
| | | }, |
| | | data() { |
| | | return { |
| | | background:{ |
| | | backgroundImage: `url(${content_bg})`, |
| | | backgroundAttachment: 'fixed', |
| | | backgroundSize: '100% auto', |
| | | backgroundRepeat: 'no-repeat', |
| | | }, |
| | | list: [], |
| | | tolocationNo: "", |
| | | keywords:'' |
| | | }; |
| | | }, |
| | | onLoad() { |
| | | // this.loadList("221206000739N"); |
| | | // let data = '{"part_no":"88.118.1/A0047954","lot_batch_no":"221112000082N","qty_arrived":0.5,"wdr":"221112000082N"}' |
| | | // let data = '221206000739N' |
| | | // let sn = '' |
| | | // if (data.indexOf('{') >= 0) { |
| | | // //大æ ç¾äºä½ç |
| | | // sn = JSON.parse(data).lot_batch_no |
| | | // } else { |
| | | // //å°æ ç¾æ¡ç |
| | | // sn = data |
| | | // } |
| | | // console.log(sn); |
| | | }, |
| | | onShow() { |
| | | import scan from "@/components/scan/scan.vue"; |
| | | import content_bg from '@/static/custom/moveWareHouse/locNoBg.png' |
| | | export default { |
| | | components: { |
| | | scan |
| | | }, |
| | | data() { |
| | | return { |
| | | background: { |
| | | backgroundImage: `url(${content_bg})`, |
| | | backgroundAttachment: 'fixed', |
| | | backgroundSize: '100% auto', |
| | | backgroundRepeat: 'no-repeat', |
| | | }, |
| | | list: [], |
| | | tolocationNo: "", |
| | | keywords: '' |
| | | }; |
| | | }, |
| | | onLoad() { |
| | | // this.loadList("221206000739N"); |
| | | // let data = '{"part_no":"88.118.1/A0047954","lot_batch_no":"221112000082N","qty_arrived":0.5,"wdr":"221112000082N"}' |
| | | // let data = '221206000739N' |
| | | // let sn = '' |
| | | // if (data.indexOf('{') >= 0) { |
| | | // //大æ ç¾äºä½ç |
| | | // sn = JSON.parse(data).lot_batch_no |
| | | // } else { |
| | | // //å°æ ç¾æ¡ç |
| | | // sn = data |
| | | // } |
| | | // console.log(sn); |
| | | }, |
| | | onShow() { |
| | | |
| | | let that = this |
| | | |
| | | uni.$off('scan') // æ¯æ¬¡è¿æ¥å
ç§»é¤å
¨å±èªå®ä¹äºä»¶çå¬å¨ |
| | | uni.$on('scan', function (data) { |
| | | console.log('onscan'); |
| | | //æ«ç æååçåè°ï¼ä½ å¯ä»¥åèªå·±çé»è¾ä»£ç å¨è¿é |
| | | console.log('æ«ç ç»æï¼', data.code); |
| | | |
| | | if (data.code != "" && (that.tolocationNo == "")) { |
| | | uni.showToast({ |
| | | title: 'è¯·éæ©è³åºä½å·', |
| | | icon: 'none' |
| | | }) |
| | | return |
| | | } |
| | | |
| | | let sn = '' |
| | | if (data.code.indexOf('{') >= 0) { |
| | | //大æ ç¾äºä½ç |
| | | let snNoIndex = data.code.indexOf('sn_no') |
| | | if (snNoIndex > -1) { |
| | | sn = JSON.parse(data.code).sn_no |
| | | } else { |
| | | sn = JSON.parse(data.code).lot_batch_no |
| | | } |
| | | } else { |
| | | //å°æ ç¾æ¡ç |
| | | sn = data.code |
| | | } |
| | | |
| | | //夿æ°ç»ä¸æ¯å¦åå¨ SN æ¯å¦å·²ç»åå¨ |
| | | let initList = that.list.filter(item => item |
| | | .partBatchNo == sn) |
| | | if (initList.length > 0) { |
| | | uni.showToast({ |
| | | title: "SN:" + sn + ",å·²åå¨,è¯·éæ©å¦ä¸ä¸ªSNå·", |
| | | icon: "none" |
| | | }); |
| | | return |
| | | } |
| | | |
| | | that.loadList(sn); |
| | | }) |
| | | }, |
| | | onNavigationBarButtonTap(e) { |
| | | uni.scanCode({ |
| | | success: res => { |
| | | try { |
| | | const result = JSON.parse(res.result) |
| | | |
| | | } catch (e) { } |
| | | } |
| | | }); |
| | | }, |
| | | methods: { |
| | | //è³åºä½ |
| | | seachLocationNo() { |
| | | uni.navigateTo({ |
| | | url: '/pages/wareHouse/moveWareHouse/locNoList' |
| | | }) |
| | | }, |
| | | loadList(sanCode) { |
| | | uni.showLoading({ |
| | | mask: true, |
| | | title: "å è½½ä¸", |
| | | }); |
| | | let that = this |
| | | |
| | | uni.$off('scan') // æ¯æ¬¡è¿æ¥å
ç§»é¤å
¨å±èªå®ä¹äºä»¶çå¬å¨ |
| | | uni.$on('scan', function(data) { |
| | | console.log('onscan'); |
| | | //æ«ç æååçåè°ï¼ä½ å¯ä»¥åèªå·±çé»è¾ä»£ç å¨è¿é |
| | | console.log('æ«ç ç»æï¼', data.code); |
| | | |
| | | if (data.code != "" && (that.tolocationNo == "")) { |
| | | uni.showToast({ |
| | | title: 'è¯·éæ©è³åºä½å·', |
| | | icon: 'none' |
| | | }) |
| | | return |
| | | } |
| | | |
| | | let sn = '' |
| | | if (data.code.indexOf('{') >= 0) { |
| | | //大æ ç¾äºä½ç |
| | | let snNoIndex=data.code.indexOf('sn_no') |
| | | if(snNoIndex>-1){ |
| | | sn = JSON.parse(data.code).sn_no |
| | | }else{ |
| | | sn = JSON.parse(data.code).lot_batch_no |
| | | } |
| | | } else { |
| | | //å°æ ç¾æ¡ç |
| | | sn = data.code |
| | | if (sanCode != "") { |
| | | let data = { |
| | | sn: sanCode |
| | | } |
| | | |
| | | //夿æ°ç»ä¸æ¯å¦åå¨ SN æ¯å¦å·²ç»åå¨ |
| | | let initList = that.list.filter(item => item |
| | | .partBatchNo == sn) |
| | | //夿æ°ç»ä¸æ¯å¦åå¨ è³åºä½å· SN |
| | | let initList = that.list.filter(item => item.arriveLocationNo == that.tolocationNo).filter(item => item |
| | | .partBatchNo == sanCode) |
| | | if (initList.length > 0) { |
| | | uni.showToast({ |
| | | title: "SN:" + sn + ",å·²åå¨,è¯·éæ©å¦ä¸ä¸ªSNå·", |
| | | title: "åºä½å·:" + that.tolocationNo + ",SN:" + sanCode + ",å·²ç»æ«è¿ç ", |
| | | icon: "none" |
| | | }); |
| | | return |
| | | } |
| | | |
| | | that.loadList(sn); |
| | | }) |
| | | }, |
| | | onNavigationBarButtonTap(e) { |
| | | uni.scanCode({ |
| | | success: res => { |
| | | try { |
| | | const result = JSON.parse(res.result) |
| | | // æ¥è¯¢ç§»åºä¿¡æ¯ |
| | | that.$u.api.pigxWareHouse.list(data).then(res => { |
| | | let reList = [] |
| | | reList = res.data |
| | | |
| | | } catch (e) {} |
| | | if (reList.length == 0) { |
| | | uni.showToast({ |
| | | title: "åºä½å·:" + that.tolocationNo + ",SN:" + sanCode + ",æªæ«å°ç§»åºä¿¡æ¯", |
| | | icon: "none" |
| | | }); |
| | | } else { |
| | | for (let i = 0; i < reList.length; i++) { |
| | | if (reList[i].locationNo !== that.tolocationNo) { |
| | | let item = { |
| | | id: reList[i].id, |
| | | partNo: reList[i].partNo, |
| | | partName: reList[i].partName, |
| | | partBatchNo: reList[i].partBatchNo, |
| | | ifsBatchNo: reList[i].ifsBatchNo, |
| | | unit: reList[i].unit, |
| | | locationNo: reList[i].locationNo, |
| | | availableStockQuantity: reList[i].availableStockQuantity, |
| | | arriveLocationNo: that.tolocationNo, |
| | | moveQty: 0 |
| | | } |
| | | that.list.push(item) |
| | | } |
| | | } |
| | | } |
| | | |
| | | uni.hideLoading(); |
| | | }) |
| | | } |
| | | }, |
| | | //è³åºä½å·è®¾ç½® |
| | | setNo(no) { |
| | | this.tolocationNo = no |
| | | }, |
| | | deleteHandle(obj) { |
| | | let that = this |
| | | uni.showModal({ |
| | | title: 'æç¤º', |
| | | content: 'æ¤æä½å°å é¤è¯¥ç§»åºä¿¡æ¯, æ¯å¦ç»§ç»?', |
| | | success: function (res) { |
| | | if (res.confirm) { |
| | | that.list.map((item, index) => { |
| | | if (obj.id == item.id) { |
| | | that.list.splice(index, 1) |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | methods: { |
| | | //è³åºä½ |
| | | seachLocationNo() { |
| | | uni.navigateTo({ |
| | | url: '/pages/wareHouse/moveWareHouse/locNoList' |
| | | }) |
| | | }, |
| | | loadList(sanCode) { |
| | | uni.showLoading({ |
| | | mask: true, |
| | | title: "å è½½ä¸", |
| | | }); |
| | | let that = this |
| | | submit() { |
| | | let that = this |
| | | |
| | | if (sanCode != "") { |
| | | let data = { |
| | | sn: sanCode |
| | | } |
| | | that.list.map((item) => { |
| | | |
| | | //夿æ°ç»ä¸æ¯å¦åå¨ è³åºä½å· SN |
| | | let initList = that.list.filter(item => item.arriveLocationNo == that.tolocationNo).filter(item => item |
| | | .partBatchNo == sanCode) |
| | | if (initList.length > 0) { |
| | | uni.showToast({ |
| | | title: "åºä½å·:" + that.tolocationNo + ",SN:" + sanCode + ",å·²ç»æ«è¿ç ", |
| | | icon: "none" |
| | | }); |
| | | return |
| | | } |
| | | |
| | | // æ¥è¯¢ç§»åºä¿¡æ¯ |
| | | that.$u.api.pigxWareHouse.list(data).then(res => { |
| | | let reList = [] |
| | | reList = res.data |
| | | if (item.moveQty <= 0) { |
| | | uni.showToast({ |
| | | title: 'è¯·ç§»åºæ°éå¿
须大äº0', |
| | | icon: "none" |
| | | }); |
| | | return |
| | | } |
| | | |
| | | if (reList.length == 0) { |
| | | uni.showToast({ |
| | | title: "åºä½å·:" + that.tolocationNo + ",SN:" + sanCode + ",æªæ«å°ç§»åºä¿¡æ¯", |
| | | icon: "none" |
| | | }); |
| | | } else { |
| | | for (let i = 0; i < reList.length; i++) { |
| | | if (reList[i].locationNo !== that.tolocationNo) { |
| | | let item = { |
| | | id: reList[i].id, |
| | | partNo: reList[i].partNo, |
| | | partName: reList[i].partName, |
| | | partBatchNo: reList[i].partBatchNo, |
| | | ifsBatchNo: reList[i].ifsBatchNo, |
| | | unit: reList[i].unit, |
| | | locationNo: reList[i].locationNo, |
| | | availableStockQuantity: reList[i].availableStockQuantity, |
| | | arriveLocationNo: that.tolocationNo, |
| | | moveQty: 0 |
| | | } |
| | | that.list.push(item) |
| | | } |
| | | } |
| | | if (item.moveQty > item.availableStockQuantity) { |
| | | uni.showToast({ |
| | | title: 'ç§»åºæ°éä¸è½å¤§äºå¯ç¨åºåæ°é', |
| | | icon: "none" |
| | | }); |
| | | return |
| | | } |
| | | }); |
| | | |
| | | |
| | | let subList = [] |
| | | that.list.map((item) => { |
| | | |
| | | let sub = { |
| | | stockId: item.id, |
| | | arriveLocationNo: item.arriveLocationNo, |
| | | moveQty: item.moveQty |
| | | } |
| | | |
| | | subList.push(sub) |
| | | |
| | | }); |
| | | |
| | | that.$u.api.pigxWareHouse.addList(subList).then(res => { |
| | | |
| | | if (res.code == 0) { |
| | | uni.showModal({ |
| | | title: 'æç¤º', |
| | | content: 'æäº¤æå', |
| | | showCancel: false, |
| | | success: function () { |
| | | that.list = [] |
| | | that.tolocationNo = "" |
| | | } |
| | | }) |
| | | } else { |
| | | uni.showModal({ |
| | | title: 'æç¤º', |
| | | content: 'æäº¤å¤±è´¥', |
| | | showCancel: false, |
| | | success: function () { |
| | | |
| | | uni.hideLoading(); |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | //è³åºä½å·è®¾ç½® |
| | | setNo(no) { |
| | | this.tolocationNo = no |
| | | }, |
| | | deleteHandle(obj) { |
| | | let that = this |
| | | uni.showModal({ |
| | | title: 'æç¤º', |
| | | content: 'æ¤æä½å°å é¤è¯¥ç§»åºä¿¡æ¯, æ¯å¦ç»§ç»?', |
| | | success: function(res) { |
| | | if (res.confirm) { |
| | | that.list.map((item, index) => { |
| | | if (obj.id == item.id) { |
| | | that.list.splice(index, 1) |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | submit() { |
| | | let that = this |
| | | |
| | | that.list.map((item) => { |
| | | }) |
| | | |
| | | |
| | | if (item.moveQty <= 0) { |
| | | uni.showToast({ |
| | | title: 'è¯·ç§»åºæ°éå¿
须大äº0', |
| | | icon: "none" |
| | | }); |
| | | return |
| | | } |
| | | |
| | | if (item.moveQty > item.availableStockQuantity) { |
| | | uni.showToast({ |
| | | title: 'ç§»åºæ°éä¸è½å¤§äºå¯ç¨åºåæ°é', |
| | | icon: "none" |
| | | }); |
| | | return |
| | | } |
| | | }); |
| | | |
| | | |
| | | let subList = [] |
| | | that.list.map((item) => { |
| | | |
| | | let sub = { |
| | | stockId: item.id, |
| | | arriveLocationNo: item.arriveLocationNo, |
| | | moveQty: item.moveQty |
| | | } |
| | | |
| | | subList.push(sub) |
| | | |
| | | }); |
| | | |
| | | that.$u.api.pigxWareHouse.addList(subList).then(res => { |
| | | |
| | | if (res.code == 0) { |
| | | uni.showModal({ |
| | | title: 'æç¤º', |
| | | content: 'æäº¤æå', |
| | | showCancel: false, |
| | | success: function() { |
| | | that.list = [] |
| | | that.tolocationNo = "" |
| | | } |
| | | }) |
| | | } else { |
| | | uni.showModal({ |
| | | title: 'æç¤º', |
| | | content: 'æäº¤å¤±è´¥', |
| | | showCancel: false, |
| | | success: function() { |
| | | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | }) |
| | | |
| | | |
| | | }, |
| | | } |
| | | }; |
| | | }, |
| | | } |
| | | }; |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .movewarehouse-index-bg{ |
| | | background-color: #F6F9FF; |
| | | background-image: url('~@/static/custom/moveWareHouse/locNoBg.png'); |
| | | // background: linear-gradient(180deg,rgba(206,227,254,1),rgba(206,227,254,1) 20%,rgba(206,227,254,0.5) 40%,rgba(206,227,254,0.25) 60%,rgba(206,227,254,0.08) 80%,rgba(206,227,254,0)); |
| | | padding: 0 20rpx; |
| | | background-attachment: fixed; |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | position: fixed; |
| | | top: 0; |
| | | bottom: 0; |
| | | width: 100%; |
| | | z-index: -1; |
| | | } |
| | | .movewarehouse-index-search{ |
| | | padding: 40rpx 30rpx 20rpx 30rpx; |
| | | } |
| | | .movewarehouse-index-search-view{ |
| | | height: 66rpx; |
| | | border: 1px solid #ADC8E4; |
| | | border-radius: 8rpx; |
| | | background: rgba(250,252,255,0.36); |
| | | line-height: 66rpx; |
| | | padding-left:33rpx; |
| | | padding-right:10rpx; |
| | | display:flex; |
| | | justify-content: space-between; |
| | | .movewarehouse-index-search-view-item{ |
| | | .item-one{ |
| | | font-size: 30rpx; |
| | | color: #283E65; |
| | | } |
| | | .item-one-content{ |
| | | margin-left: 10rpx; |
| | | color: #909399; |
| | | font-size: 26rpx; |
| | | } |
| | | .item-two{ |
| | | font-size: 30rpx; |
| | | color: #A6B4CC; |
| | | } |
| | | .movewarehouse-index-bg { |
| | | background-color: #F6F9FF; |
| | | background-image: url('~@/static/custom/moveWareHouse/locNoBg.png'); |
| | | // background: linear-gradient(180deg,rgba(206,227,254,1),rgba(206,227,254,1) 20%,rgba(206,227,254,0.5) 40%,rgba(206,227,254,0.25) 60%,rgba(206,227,254,0.08) 80%,rgba(206,227,254,0)); |
| | | padding: 0 20rpx; |
| | | background-attachment: fixed; |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | position: fixed; |
| | | top: 0; |
| | | bottom: 0; |
| | | width: 100%; |
| | | z-index: -1; |
| | | } |
| | | |
| | | .movewarehouse-index-search { |
| | | padding: 40rpx 30rpx 20rpx 30rpx; |
| | | } |
| | | |
| | | .movewarehouse-index-search-view { |
| | | height: 66rpx; |
| | | border: 1px solid #ADC8E4; |
| | | border-radius: 8rpx; |
| | | background: rgba(250, 252, 255, 0.36); |
| | | line-height: 66rpx; |
| | | padding-left: 33rpx; |
| | | padding-right: 10rpx; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | |
| | | .movewarehouse-index-search-view-item { |
| | | .item-one { |
| | | font-size: 30rpx; |
| | | color: #283E65; |
| | | } |
| | | |
| | | .item-one-content { |
| | | margin-left: 10rpx; |
| | | color: #909399; |
| | | font-size: 26rpx; |
| | | } |
| | | |
| | | .item-two { |
| | | font-size: 30rpx; |
| | | color: #A6B4CC; |
| | | } |
| | | } |
| | | .wrap .movewarehouse-index-scroll-list{ |
| | | height:calc(100vh - var(--window-top) - var(--window-bottom) - 378rpx); |
| | | width:100%; |
| | | } |
| | | .movewarehouse-index-scroll-list-group{ |
| | | ::v-deep .u-cell-item-box { |
| | | background-color:rgba(250,252,255,0.36) !important; |
| | | padding:0rpx 30rpx ; |
| | | } |
| | | .content { |
| | | font-size: 12px; |
| | | background-color: #FFFFFF; |
| | | box-sizing: border-box; |
| | | border-radius: 10rpx; |
| | | margin: 0rpx 0rpx 16rpx; |
| | | height: 432rpx; |
| | | padding: 10rpx 20rpx; |
| | | box-shadow:0rpx 6rpx 12rpx 2rpx rgba(127, 127, 127, 0.1) !important; |
| | | position:relative; |
| | | .content-header{ |
| | | .header-item{ |
| | | height: 50rpx; |
| | | display: flex; |
| | | align-items:center; |
| | | .content-header-icon-one{ |
| | | background-image: url('~@/static/custom/moveWareHouse/label-icon-1.png'); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height:28rpx; |
| | | width:28rpx; |
| | | } |
| | | .content-header-icon-two{ |
| | | background-image: url('~@/static/custom/moveWareHouse/header_icon.png'); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height:28rpx; |
| | | width:28rpx; |
| | | } |
| | | .content-header-title{ |
| | | margin-left: 11rpx; |
| | | font-size: 26rpx; |
| | | font-weight: bold; |
| | | color: #333333; |
| | | } |
| | | } |
| | | .header-item-toolbar{ |
| | | position: absolute; |
| | | background-image: url('~@/static/custom/moveWareHouse/del-icon.png'); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height:60rpx; |
| | | width:140rpx; |
| | | right:0; |
| | | top:0; |
| | | display: flex; |
| | | justify-content: flex-end; |
| | | padding-top: 10rpx; |
| | | padding-right: 18rpx; |
| | | .header-item-toolbar-del-icon{ |
| | | background-image: url('~@/static/custom/moveWareHouse/icon_dele.png'); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height:25rpx; |
| | | width:22rpx; |
| | | margin-top: 5rpx; |
| | | } |
| | | .header-item-toolbar-del-text{ |
| | | margin-left:7rpx; |
| | | height: 23rpx; |
| | | font-size: 24rpx; |
| | | color: #FFFFFF; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .content-body{ |
| | | height:300rpx; |
| | | background: #F5F9FF; |
| | | border-radius: 10rpx; |
| | | padding: 25rpx 23rpx; |
| | | .row-list { |
| | | height: 50rpx; |
| | | display: flex; |
| | | flex-direction: row; |
| | | padding: 0px; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | } |
| | | .row-list ._label { |
| | | display: flex; |
| | | color: #666666; |
| | | font-size:26rpx; |
| | | align-items: center; |
| | | width: 170rpx; |
| | | } |
| | | |
| | | .row-list ._content { |
| | | text-align: right; |
| | | color: #909399; |
| | | font-size: 24rpx; |
| | | ._content-text{ |
| | | color:#214ded; |
| | | } |
| | | } |
| | | .row-list ._input { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | border-bottom: 1px solid #4FA0FF; |
| | | height: 56rpx; |
| | | .edit_icon{ |
| | | background-image: url('~@/static/custom/finishProductIn/icon_edit.png'); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height:26rpx; |
| | | width:26rpx; |
| | | } |
| | | ::v-deep .uni-input-input{ |
| | | color:#D35651; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .wrap .movewarehouse-index-scroll-list { |
| | | height: calc(100vh - var(--window-top) - var(--window-bottom) - 378rpx); |
| | | width: 100%; |
| | | } |
| | | |
| | | .movewarehouse-index-scroll-list-group { |
| | | ::v-deep .u-cell-item-box { |
| | | background-color: rgba(250, 252, 255, 0.36) !important; |
| | | padding: 0rpx 30rpx; |
| | | } |
| | | |
| | | .new-form-footer{ |
| | | display: flex; |
| | | margin-top: 10rpx; |
| | | margin-bottom: 10rpx; |
| | | margin-left: 20rpx; |
| | | margin-right: 20rpx; |
| | | padding-bottom: 14rpx; |
| | | .btn { |
| | | flex: 1; |
| | | margin: 10rpx; |
| | | background: #214DED; |
| | | box-shadow: 0rpx 6rpx 8rpx 0rpx rgba(4,49,212,0.3); |
| | | font-weight: bold; |
| | | color: #FEFEFE; |
| | | font-family: PingFang SC; |
| | | .content { |
| | | font-size: 12px; |
| | | background-color: #FFFFFF; |
| | | box-sizing: border-box; |
| | | border-radius: 10rpx; |
| | | margin: 0rpx 0rpx 16rpx; |
| | | height: 432rpx; |
| | | padding: 10rpx 20rpx; |
| | | box-shadow: 0rpx 6rpx 12rpx 2rpx rgba(127, 127, 127, 0.1) !important; |
| | | position: relative; |
| | | |
| | | .content-header { |
| | | .header-item { |
| | | height: 50rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | .content-header-icon-one { |
| | | background-image: url('~@/static/custom/moveWareHouse/label-icon-1.png'); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height: 28rpx; |
| | | width: 28rpx; |
| | | } |
| | | |
| | | .content-header-icon-two { |
| | | background-image: url('~@/static/custom/moveWareHouse/header_icon.png'); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height: 28rpx; |
| | | width: 28rpx; |
| | | } |
| | | |
| | | .content-header-title { |
| | | margin-left: 11rpx; |
| | | font-size: 26rpx; |
| | | font-weight: bold; |
| | | color: #333333; |
| | | } |
| | | } |
| | | |
| | | .header-item-toolbar { |
| | | position: absolute; |
| | | background-image: url('~@/static/custom/moveWareHouse/del-icon.png'); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height: 60rpx; |
| | | width: 140rpx; |
| | | right: 0; |
| | | top: 0; |
| | | display: flex; |
| | | justify-content: flex-end; |
| | | padding-top: 10rpx; |
| | | padding-right: 18rpx; |
| | | |
| | | .header-item-toolbar-del-icon { |
| | | background-image: url('~@/static/custom/moveWareHouse/icon_dele.png'); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height: 25rpx; |
| | | width: 22rpx; |
| | | margin-top: 5rpx; |
| | | } |
| | | |
| | | .header-item-toolbar-del-text { |
| | | margin-left: 7rpx; |
| | | height: 23rpx; |
| | | font-size: 24rpx; |
| | | color: #FFFFFF; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .content-body { |
| | | height: 300rpx; |
| | | background: #F5F9FF; |
| | | border-radius: 10rpx; |
| | | padding: 25rpx 23rpx; |
| | | |
| | | .row-list { |
| | | height: 50rpx; |
| | | display: flex; |
| | | flex-direction: row; |
| | | padding: 0px; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | } |
| | | |
| | | .row-list ._label { |
| | | display: flex; |
| | | color: #666666; |
| | | font-size: 26rpx; |
| | | align-items: center; |
| | | width: 170rpx; |
| | | } |
| | | |
| | | .row-list ._content { |
| | | text-align: right; |
| | | color: #909399; |
| | | font-size: 24rpx; |
| | | |
| | | ._content-text { |
| | | color: #214ded; |
| | | } |
| | | } |
| | | |
| | | .row-list ._input { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | border-bottom: 1px solid #4FA0FF; |
| | | height: 56rpx; |
| | | |
| | | .edit_icon { |
| | | background-image: url('~@/static/custom/finishProductIn/icon_edit.png'); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height: 26rpx; |
| | | width: 26rpx; |
| | | } |
| | | |
| | | ::v-deep .uni-input-input { |
| | | color: #D35651; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .new-form-footer { |
| | | display: flex; |
| | | margin-top: 10rpx; |
| | | margin-bottom: 10rpx; |
| | | margin-left: 20rpx; |
| | | margin-right: 20rpx; |
| | | padding-bottom: 14rpx; |
| | | |
| | | .btn { |
| | | flex: 1; |
| | | margin: 10rpx; |
| | | background: #214DED; |
| | | box-shadow: 0rpx 6rpx 8rpx 0rpx rgba(4, 49, 212, 0.3); |
| | | font-weight: bold; |
| | | color: #FEFEFE; |
| | | font-family: PingFang SC; |
| | | } |
| | | } |
| | | </style> |