| | |
| | | "navigationBarTitleText": "æ°å»ºå
¥åº",
|
| | | "enablePullDownRefresh": false
|
| | | }
|
| | | },
|
| | | {
|
| | | "path": "pages/newTransfer/newTransfer",
|
| | | "style": {
|
| | | "navigationBarTitleText": "æ°å»ºè½¬åº",
|
| | | "enablePullDownRefresh": false
|
| | | }
|
| | | }, |
| | | { |
| | | "path": "pages/manualFeed/manualFeed", |
| | |
| | | <template> |
| | | <view> |
| | | |
| | | <view class="rework"> |
| | | <view class="rework_list"> |
| | | <view class="rework_list_item" @click="typeShow = true"> |
| | | <text>åæ®ç±»å<text style="color: #DE5243;">*</text></text> |
| | | <view class="rework_list_item_right"> |
| | | <text :class="form.typeName ? 'black' : ''">{{form.typeName ? form.typeName : 'è¯·éæ©'}}</text> |
| | | <u-icon name="arrow-right" color="#999999"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="rework_list_item" @click="warehouseShow = true"> |
| | | <text>åºåºä»åº<text style="color: #DE5243;">*</text></text> |
| | | <view class="rework_list_item_right"> |
| | | <text :class="form.warehouseName ? 'black' : ''">{{form.warehouseName ? form.warehouseName : 'è¯·éæ©'}}</text> |
| | | <u-icon name="arrow-right" color="#999999"></u-icon> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="rework_qd"> |
| | | <view class="rework_qd_title"> |
| | | <view class="rework_qd_title_left"> |
| | | <view class="x"></view> |
| | | <!-- ${list.length} --> |
| | | <text>{{`åºåºç©ææ¸
å`}}</text> |
| | | </view> |
| | | <!-- <view class="rework_qd_title_right" @click="openMs"> |
| | | <image src="@/static/gongdan_ic_shoudong@2x.png" mode="widthFix" /> |
| | | <text>å¢å åºåº</text> |
| | | </view> --> |
| | | </view> |
| | | <van-swipe-cell v-for="(item, index) in list" :key="index"> |
| | | <view class="rework_qd_item"> |
| | | <image class="rework_qd_item_dele" @click="dele(index)" src="@/static/chuku_ic_delete@2x.png" mode="widthFix" /> |
| | | <view class="rework_qd_item_wl"> |
| | | <text>{{ item.materialName }} | {{ item.materialCode }}</text> |
| | | </view> |
| | | <view class="rework_qd_item_cate"> |
| | | <text class="green" v-if="item.qualityType === '0'">åæ ¼</text> |
| | | <text class="yellow" v-if="item.qualityType === '1'">ä¸è¯</text> |
| | | <text class="red" v-if="item.qualityType === '2'">æ¥åº</text> |
| | | <text> | {{ item.procedureName || '-' }} | </text> |
| | | <text>{{ item.batch || '-' }}</text> |
| | | </view> |
| | | <view class="rework_qd_item_hw"> |
| | | <text>åºåºè´§ä½ï¼{{ item.locationName }}</text> |
| | | <view class="rework_qd_item_hw_right"> |
| | | <text>æ°éï¼</text> |
| | | <u--input :customStyle="{width: '180rpx'}" placeholder="0" border="surround" type="number" v-model="item.num" @input="changeNum(item)"></u--input> |
| | | <text>{{ item.unitName }}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </van-swipe-cell> |
| | | </view> |
| | | <view class="rework_zw"></view> |
| | | <view class="rework_footer"> |
| | | <button class="rework_footer_add" @click="openMs">éæ©ç©æ</button> |
| | | <button class="rework_footer_submit" @click="onConfirm">æäº¤</button> |
| | | </view> |
| | | <!-- éæ©ä»åº --> |
| | | <Warehouse :show="warehouseShow" @close="close" @value="getValue" /> |
| | | <!-- éæ©ç©æ --> |
| | | <SelectMultipleMaterial ref="SelectMultipleMaterial" /> |
| | | <!-- åæ®ç±»å --> |
| | | <u-picker :show="typeShow" :columns="columns" @cancel="typeShow = false" @confirm="onConfirm1" keyName="name"></u-picker> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import Warehouse from '../../components/Warehouse.vue' |
| | | import SelectMultipleMaterial from '@/components/SelectMultipleMaterial.vue' |
| | | export default { |
| | | components: { Warehouse, SelectMultipleMaterial }, |
| | | data() { |
| | | return { |
| | | |
| | | form: { |
| | | warehouseName: '', |
| | | warehouseId: '', |
| | | type: '', |
| | | typeName: '' |
| | | }, |
| | | columns: [ |
| | | [ |
| | | { name: 'éå®åºåº', id: 18 }, |
| | | { name: 'åºåè°æ´', id: 28 }, |
| | | { name: 'ä»åºæ¥åº', id: 21 } |
| | | ] |
| | | ], |
| | | typeShow: false, |
| | | warehouseShow: false, |
| | | list: [] |
| | | }; |
| | | }, |
| | | methods: { |
| | | changeNum(obj) { |
| | | if (obj.num < 0) { |
| | | obj.num = '' |
| | | return uni.showToast({ title: 'åºåºç©ææ°éå¿
须大äº0', icon: 'none', duration: 2000 }); |
| | | } |
| | | if (obj.num > obj.total) { |
| | | obj.num = '' |
| | | return uni.showToast({ title: 'åºåºç©ææ°éä¸è½å¤§äºåºåæ°ï¼', icon: 'none', duration: 2000 }); |
| | | } |
| | | }, |
| | | // éæ©ä»åºåè° |
| | | getValue(item) { |
| | | this.form.warehouseName = item.name |
| | | this.form.warehouseId = item.id || 1 |
| | | this.list = [] |
| | | this.warehouseShow = false |
| | | }, |
| | | // åæ®ç±»å确认 |
| | | onConfirm1(value) { |
| | | this.form.typeName = value.value[0].name |
| | | this.form.type = value.value[0].id |
| | | this.typeShow = false |
| | | }, |
| | | // å
³éä»åºéæ©å¼¹æ¡ |
| | | close() { |
| | | this.warehouseShow = false |
| | | }, |
| | | // å é¤ |
| | | dele(index) { |
| | | if (this.list.length === 1) { |
| | | uni.showToast({ title: 'è³å°ä¿ç䏿¡ç©æµæ¸
åä¿¡æ¯ï¼', icon: 'none', duration: 2000 }); |
| | | return |
| | | } |
| | | this.list.splice(index, 1) |
| | | }, |
| | | // æå¼éæ©ç©æ |
| | | openMs() { |
| | | if (!this.form.warehouseId) return uni.showToast({ title: '请å
éæ©åºåºä»åº', icon: 'none', duration: 2000 }); |
| | | this.$refs.SelectMultipleMaterial.open({}) |
| | | }, |
| | | // è·åå½å¤©å¹´ææ¥ |
| | | getDay() { |
| | | var date = new Date(); |
| | | var year = date.getFullYear(); |
| | | var month = date.getMonth() + 1; |
| | | var day = date.getDate(); |
| | | return `${year}-${month <= 9 ? `0${month}` : month}-${day <= 9 ? `0${day}` : day}` |
| | | }, |
| | | // æäº¤ |
| | | onConfirm() { |
| | | if (!this.form.type) return uni.showToast({ title: 'è¯·éæ©åæ®ç±»å', icon: 'none', duration: 2000 }); |
| | | if (!this.form.warehouseId) return uni.showToast({ title: 'è¯·éæ©åºåºä»åº', icon: 'none', duration: 2000 }); |
| | | if (this.list.length === 0) return uni.showToast({ title: 'è³å°éæ©ä¸æ¡åºåºç©æ', icon: 'none', duration: 2000 }); |
| | | for (let i = 0; i < this.list.length; i++) { |
| | | if (!this.list[i].num || this.list[i].num == '' || this.list[i].num <= 0) { |
| | | return uni.showToast({ title: `第${i + 1}个åºåºç©ææ°éå¿
须大äº0`, icon: 'none', duration: 2000 }); |
| | | } |
| | | if (this.list[i].num > this.list[i].total) { |
| | | return uni.showToast({ title: `第${i + 1}ä¸ªç©ææ°éä¸è½å¤§äºåºåéï¼`, icon: 'none', duration: 2000 }); |
| | | } |
| | | } |
| | | createForStandard({ |
| | | billType: this.form.type, |
| | | planDate: this.getDay(), |
| | | origin: 0, |
| | | type: 0, |
| | | warehouseId: this.form.warehouseId, |
| | | woutBoundDetailBeans: this.list |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | uni.showToast({ title: 'åºåºæå', icon: 'none', duration: 2000 }); |
| | | setTimeout(() => { |
| | | uni.navigateBack({ delta: 1 }); |
| | | }, 2000) |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | |
| | | </style> |
| | | <style lang="scss" scoped> |
| | | .rework { |
| | | width: 100%; |
| | | .rework_list { |
| | | display: flex; |
| | | flex-direction: column; |
| | | background: white; |
| | | padding: 0 30rpx; |
| | | box-sizing: border-box; |
| | | .rework_list_item { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | height: 98rpx; |
| | | border-bottom: 1rpx solid #E5E5E5; |
| | | &:last-child { |
| | | border: none; |
| | | } |
| | | text { |
| | | font-size: 30rpx; |
| | | font-weight: 400; |
| | | color: #222222; |
| | | flex-shrink: 0; |
| | | b { |
| | | font-size: 30rpx; |
| | | color: red; |
| | | margin-right: 5rpx; |
| | | } |
| | | } |
| | | .rework_list_item_right { |
| | | display: flex; |
| | | align-items: center; |
| | | text { |
| | | font-size: 28rpx; |
| | | font-weight: 400; |
| | | color: #999999; |
| | | } |
| | | .black { |
| | | color: black !important; |
| | | } |
| | | input { |
| | | width: 230rpx; |
| | | font-size: 28rpx; |
| | | border: none; |
| | | } |
| | | input::-webkit-input-placeholder { /* WebKit browsers */ |
| | | font-size: 28rpx; |
| | | font-weight: 400; |
| | | color: #B2B2B2; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | .rework_qd { |
| | | margin-top: 40rpx; |
| | | .rework_qd_title { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | padding: 0 30rpx 30rpx 30rpx; |
| | | .rework_qd_title_left { |
| | | display: flex; |
| | | align-items: center; |
| | | text { |
| | | font-size: 32rpx; |
| | | font-weight: 500; |
| | | color: #222222; |
| | | } |
| | | .x { |
| | | width: 8rpx; |
| | | height: 30rpx; |
| | | background: #4275FC; |
| | | border-radius: 2rpx; |
| | | margin-right: 12rpx; |
| | | } |
| | | } |
| | | .rework_qd_title_right { |
| | | display: flex; |
| | | align-items: center; |
| | | image { |
| | | width: 28rpx; |
| | | height: 28rpx; |
| | | margin-right: 12rpx; |
| | | } |
| | | text { |
| | | font-size: 28rpx; |
| | | font-family: PingFangSC-Regular, PingFang SC; |
| | | font-weight: 400; |
| | | color: #4275FC; |
| | | } |
| | | } |
| | | } |
| | | .rework_qd_item { |
| | | background: #ffffff; |
| | | padding: 30rpx; |
| | | display: flex; |
| | | flex-direction: column; |
| | | margin-bottom: 30rpx; |
| | | position: relative; |
| | | .rework_qd_item_dele { |
| | | position: absolute; |
| | | right: 0; |
| | | top: 0; |
| | | width: 48rpx; |
| | | height: 48rpx; |
| | | } |
| | | .rework_qd_item_wl { |
| | | text { |
| | | font-size: 30rpx; |
| | | font-family: PingFangSC-Medium, PingFang SC; |
| | | font-weight: 500; |
| | | color: #222222; |
| | | } |
| | | } |
| | | .rework_qd_item_cate { |
| | | margin-top: 18rpx; |
| | | text { |
| | | font-size: 24rpx; |
| | | font-family: PingFangSC-Regular, PingFang SC; |
| | | font-weight: 400; |
| | | color: #666666; |
| | | } |
| | | } |
| | | .rework_qd_item_hw { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | margin-top: 24rpx; |
| | | text { |
| | | font-size: 26rpx; |
| | | font-family: PingFangSC-Regular, PingFang SC; |
| | | font-weight: 400; |
| | | color: #333333; |
| | | } |
| | | .rework_qd_item_hw_right { |
| | | display: flex; |
| | | align-items: center; |
| | | text { |
| | | font-size: 26rpx; |
| | | font-family: PingFangSC-Regular, PingFang SC; |
| | | font-weight: 400; |
| | | color: #666666; |
| | | } |
| | | input { |
| | | width: 180rpx; |
| | | height: 60rpx; |
| | | font-size: 28rpx; |
| | | font-family: PingFangSC-Regular, PingFang SC; |
| | | font-weight: 400; |
| | | color: #333333; |
| | | background: #FFFFFF; |
| | | border-radius: 8rpx; |
| | | border: 1rpx solid #CCCCCC; |
| | | margin: 0 20rpx; |
| | | padding: 0 30rpx; |
| | | box-sizing: border-box; |
| | | text-align: right; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | .rework_zw { |
| | | height: 168rpx; |
| | | } |
| | | .rework_footer { |
| | | width: calc(100% - 60rpx); |
| | | position: fixed; |
| | | bottom: 0; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | padding: 0 30rpx 68rpx 30rpx; |
| | | .rework_footer_add { |
| | | flex: 1; |
| | | height: 88rpx; |
| | | font-size: 30rpx; |
| | | font-weight: 500; |
| | | color: $nav-color; |
| | | background: #FFFFFF; |
| | | box-shadow: 0 0 12rpx 0 rgba(0,0,0,0.0800); |
| | | border-radius: 8rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | .rework_footer_submit { |
| | | flex: 1; |
| | | height: 88rpx; |
| | | font-size: 30rpx; |
| | | font-weight: 500; |
| | | color: #ffffff; |
| | | background: $nav-color; |
| | | box-shadow: 0 0 12rpx 0 rgba(0,0,0,0.0800); |
| | | border-radius: 8rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | border: none; |
| | | margin-left: 22rpx; |
| | | } |
| | | } |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="zk"> |
| | | <view class="zk_list"> |
| | | <view class="zk_list_item" @click="open('d')"> |
| | | <text>åæ®ç±»å</text> |
| | | <view class="zk_list_item_n"> |
| | | <text :style="data.typeName ? 'color: black;' : ''">{{data.typeName ? data.typeName : 'è¯·éæ©'}}</text> |
| | | <u-icon name="arrow-right" color="#999999" size="20"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="zk_list_item" @click="open('c')"> |
| | | <text>åºåºä»åº</text> |
| | | <view class="zk_list_item_n"> |
| | | <text :style="data.exWarehouse ? 'color: black;' : ''">{{data.exWarehouse ? data.exWarehouse : 'è¯·éæ©'}}</text> |
| | | <u-icon name="arrow-right" color="#999999" size="20"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="zk_list_item" @click="open('r')"> |
| | | <text>å
¥åºä»åº</text> |
| | | <view class="zk_list_item_n"> |
| | | <text :style="data.warehousingWarehouseName ? 'color: black;' : ''">{{data.warehousingWarehouseName ? data.warehousingWarehouseName : 'è¯·éæ©'}}</text> |
| | | <u-icon name="arrow-right" color="#999999" size="20"></u-icon> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="zk_title"> |
| | | <view class="zk_title_i"></view> |
| | | <text>转åºç©æå表</text> |
| | | </view> |
| | | <view class="zk_wl"> |
| | | <template v-if="view.MaterialList.length > 0"> |
| | | <van-swipe-cell v-for="(item, i) in view.MaterialList" :key="i"> |
| | | <view class="zk_wl_item"> |
| | | <text>{{item.materialName}}ï½{{item.materialCode}}</text> |
| | | <text> |
| | | <text class="green" v-if="item.qualityType === '0'">åæ ¼</text> |
| | | <text class="yellow" v-if="item.qualityType === '1'">ä¸è¯</text> |
| | | <text class="red" v-if="item.qualityType === '2'">æ¥åº</text> |
| | | | <text>{{item.procedureName ? item.procedureName : '-'}} | </text> |
| | | <text>{{item.batch ? item.batch : '-'}}</text> |
| | | </text> |
| | | <text>è´§ä½ï¼{{item.locationName}}</text> |
| | | <view class="zk_wl_item_num"> |
| | | <text>è½¬åºæ°é({{item.unitName}})ï¼</text> |
| | | <input type="number" v-model="item.total" placeholder="0" /> |
| | | </view> |
| | | </view> |
| | | <template #right> |
| | | <van-button square type="danger" style="height: 100%;" text="å é¤" @click="dele(i)" /> |
| | | </template> |
| | | </van-swipe-cell> |
| | | </template> |
| | | <view class="zk_wl_w" v-else> |
| | | <text>ææ æ°æ®</text> |
| | | </view> |
| | | </view> |
| | | <view class="zk_z"></view> |
| | | <view class="zk_footer"> |
| | | <view class="zk_footer_wl" @click="open('w')">éæ©ç©æ</view> |
| | | <view style="width: 20rpx"></view> |
| | | <view class="zk_footer_submit" @click="submit">æäº¤</view> |
| | | </view> |
| | | <!-- éæ©ä»åº --> |
| | | <Warehouse :show="view.Warehouse" @close="view.Warehouse = false" @value="getValue" /> |
| | | <!-- éæ©ç©æ --> |
| | | <SelectMultipleMaterial ref="SelectMultipleMaterial" /> |
| | | <!-- åæ®ç±»å --> |
| | | <u-picker :show="view.type" :columns="view.documentTypeDate" keyName="name" @cancel="onCancel" @confirm="onConfirm"></u-picker> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import { setTime } from '@/util/utils.js' |
| | | import { documentType } from '@/util/constData.js' |
| | | import SelectMultipleMaterial from '@/components/SelectMultipleMaterial.vue' |
| | | import Warehouse from '../../components/Warehouse.vue' |
| | | export default { |
| | | components: { |
| | | SelectMultipleMaterial, |
| | | Warehouse |
| | | }, |
| | | data() { |
| | | return { |
| | | data: { |
| | | type: '', |
| | | outUserId: '', |
| | | inUserId: '', |
| | | typeName: '', |
| | | exWarehouse: '', |
| | | exWarehouseId: '', |
| | | warehousingWarehouse: '', |
| | | warehousingWarehouseName: '' |
| | | }, |
| | | view: { |
| | | type: false, |
| | | Warehouse: false, |
| | | Material: false, |
| | | status: '', |
| | | MaterialList: [], |
| | | documentTypeDate: [ |
| | | [ |
| | | { name: '车é´é¢æ', id: 1 }, |
| | | { 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: 16 }, |
| | | { name: '客éè¿ä¿®å
¥åº', id: 17 }, |
| | | { name: 'åºåå
¥åº', id: 30 } |
| | | ] |
| | | ], |
| | | warehouseQualityType: '', |
| | | customFieldName: { |
| | | text: 'name' |
| | | } |
| | | } |
| | | }; |
| | | }, |
| | | methods: { |
| | | // ä»åºåè° |
| | | getValue(val) { |
| | | if (this.view.status === 'c') { |
| | | this.data.exWarehouse = val.name |
| | | this.data.exWarehouseId = val.id || 1 |
| | | this.data.outUserId = val.managerId || 3 |
| | | } else if (this.view.status === 'r') { |
| | | this.data.warehousingWarehouseName = val.name |
| | | this.data.warehousingWarehouse = val.id || 2 |
| | | this.data.inUserId = val.managerId || 4 |
| | | this.view.warehouseQualityType = val.tmodel.label |
| | | } |
| | | view.Warehouse = false |
| | | }, |
| | | // ç¡®è®¤åæ®ç±»å |
| | | onConfirm(val) { |
| | | this.data.type = val.value[0].id |
| | | this.data.typeName = val.value[0].name |
| | | this.view.type = false |
| | | }, |
| | | onCancel() { |
| | | this.view.type = false |
| | | }, |
| | | // å建转åºå |
| | | submit() { |
| | | if (!this.data.type) return uni.showToast({ title: 'åæ®ç±»åä¸è½ä¸ºç©º', icon: 'none', duration: 2000 }); |
| | | if (!this.data.exWarehouse) return uni.showToast({ title: 'åºåºä»åºä¸è½ä¸ºç©º', icon: 'none', duration: 2000 }); |
| | | if (!this.data.warehousingWarehouse) return uni.showToast({ title: 'å
¥åºä»åºä¸è½ä¸ºç©º', icon: 'none', duration: 2000 }); |
| | | if (this.view.MaterialList.length === 0) return uni.showToast({ title: '转åºç©æä¸è½ä¸ºç©º', icon: 'none', duration: 2000 }); |
| | | for (let i = 0; i < this.view.MaterialList.length; i++) { |
| | | if (!this.view.MaterialList[i].total || this.view.MaterialList[i].total <= 0) { |
| | | uni.showToast({ title: 'è½¬åºæ°éå¿
须大äº0', icon: 'none', duration: 2000 }); |
| | | return |
| | | } |
| | | if (Number(this.view.MaterialList[i].total) > Number(this.view.MaterialList[i].num)) { |
| | | uni.showToast({ title: '转åºçç©ææ°éä¸è½å¤§äºåºåéï¼', icon: 'none', duration: 2000 }); |
| | | return |
| | | } |
| | | } |
| | | let time = setTime(new Date(), '-') |
| | | let wtransferDetailBeanList = [] |
| | | this.view.MaterialList.forEach((element) => { |
| | | wtransferDetailBeanList.push({ |
| | | batch: element.batch, |
| | | materialId: element.materialId, |
| | | procedureId: element.procedureId, |
| | | procedureName: element.procedureName, |
| | | qualityType: element.qualityType, |
| | | unitId: element.unitId, |
| | | outPlanNum: element.total, |
| | | proceduresId: element.procedureId, |
| | | inLocationId: null, |
| | | outLocationId: element.locationId, |
| | | inWarehouseId: data.exWarehouseId, |
| | | outWarehouseId: data.warehousingWarehouse |
| | | }) |
| | | }) |
| | | createZK({ |
| | | type: this.data.type, |
| | | outPlandate: time, |
| | | inPlandate: time, |
| | | origin: 0, |
| | | outUserId: this.data.outUserId, |
| | | inUserId: this.data.inUserId, |
| | | inWarehouseId: this.data.warehousingWarehouse, |
| | | outWarehouseId: this.data.exWarehouseId, |
| | | wtransferDetailBeanList |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | uni.showToast({ title: 'å建æåï¼', icon: 'none', duration: 2000 }); |
| | | setTimeout(() => { |
| | | uni.navigateBack({ delta: 1 }); |
| | | }, 2000) |
| | | } |
| | | }) |
| | | }, |
| | | // æå¼éæ©å¼¹æ¡ |
| | | open(type) { |
| | | if (type === 'd') { |
| | | this.view.type = true |
| | | } else if (type === 'c') { |
| | | this.view.status = 'c' |
| | | this.view.Warehouse = true |
| | | } else if (type === 'r') { |
| | | this.view.status = 'r' |
| | | this.view.Warehouse = true |
| | | } else if (type === 'w') { |
| | | if (this.data.exWarehouseId) { |
| | | if (this.data.warehousingWarehouseName) { |
| | | // let arr = [] |
| | | // this.view.MaterialList.forEach(element => { |
| | | // arr.push(element.id) |
| | | // }) |
| | | // const { selected } = Material.value |
| | | // Material.value.selected = arr |
| | | // view.Material = true |
| | | this.$refs.SelectMultipleMaterial.open({}) |
| | | } else { |
| | | uni.showToast({ title: '请å
éæ©å
¥åºä»åº', icon: 'none', duration: 2000 }); |
| | | } |
| | | } else { |
| | | uni.showToast({ title: '请å
éæ©åºåºä»åº', icon: 'none', duration: 2000 }); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .zk { |
| | | position: absolute; |
| | | width: 100%; |
| | | |
| | | .zk_list { |
| | | padding: 0 30rpx; |
| | | background: white; |
| | | margin-top: 20rpx; |
| | | |
| | | .zk_list_item { |
| | | height: 98rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | border-bottom: 1rpx solid #E5E5E5; |
| | | |
| | | &:last-child { |
| | | border: none !important; |
| | | } |
| | | |
| | | text { |
| | | font-size: 30rpx; |
| | | font-weight: 400; |
| | | color: #222222; |
| | | } |
| | | |
| | | .zk_list_item_n { |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | text { |
| | | font-size: 28rpx; |
| | | font-weight: 400; |
| | | color: #999999; |
| | | margin-right: 10rpx; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .zk_title { |
| | | padding: 40rpx 30rpx 30rpx 30rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | .zk_title_i { |
| | | width: 8rpx; |
| | | height: 30rpx; |
| | | background: #4275FC; |
| | | border-radius: 2rpx; |
| | | margin-right: 12rpx; |
| | | } |
| | | |
| | | text { |
| | | font-size: 32rpx; |
| | | font-weight: 500; |
| | | color: #222222; |
| | | } |
| | | } |
| | | |
| | | .zk_wl { |
| | | background: white; |
| | | |
| | | .zk_wl_w { |
| | | width: 100%; |
| | | height: 200rpx; |
| | | background: white; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 26rpx; |
| | | color: black; |
| | | } |
| | | |
| | | .zk_wl_item { |
| | | display: flex; |
| | | flex-direction: column; |
| | | padding: 30rpx; |
| | | border-bottom: 1rpx solid #e2e2e2; |
| | | |
| | | .zk_wl_item_num { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | margin-top: 30rpx; |
| | | |
| | | text { |
| | | font-size: 28rpx; |
| | | font-weight: 400; |
| | | color: #222222; |
| | | margin: 0 !important; |
| | | } |
| | | |
| | | input { |
| | | width: 180rpx; |
| | | height: 60rpx; |
| | | background: #FFFFFF; |
| | | border-radius: 8rpx; |
| | | border: 1rpx solid #CCCCCC; |
| | | padding: 0 30rpx; |
| | | font-size: 28rpx; |
| | | } |
| | | |
| | | input::-webkit-input-placeholder { |
| | | font-size: 28rpx; |
| | | font-weight: 400; |
| | | color: #999999; |
| | | } |
| | | } |
| | | |
| | | text { |
| | | &:nth-child(1) { |
| | | font-size: 30rpx; |
| | | font-weight: 500; |
| | | color: #222222; |
| | | margin-bottom: 24rpx; |
| | | } |
| | | |
| | | &:nth-child(2) { |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #666666; |
| | | margin-bottom: 30rpx; |
| | | |
| | | text { |
| | | font-size: 24rpx; |
| | | } |
| | | } |
| | | |
| | | &:nth-child(3) { |
| | | font-size: 28rpx; |
| | | font-weight: 400; |
| | | color: #333333; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .zk_z { |
| | | height: 168rpx; |
| | | } |
| | | |
| | | .zk_footer { |
| | | width: 100%; |
| | | box-sizing: border-box; |
| | | padding: 0 30rpx; |
| | | position: fixed; |
| | | bottom: 0; |
| | | left: 0; |
| | | padding-bottom: 68rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | |
| | | .zk_footer_wl { |
| | | flex: 1; |
| | | height: 88rpx; |
| | | background: #FFFFFF; |
| | | box-shadow: 0 0 12rpx 0 rgba(0, 0, 0, 0.08); |
| | | border-radius: 8rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 30rpx; |
| | | font-weight: 500; |
| | | color: $nav-color; |
| | | } |
| | | |
| | | .zk_footer_submit { |
| | | flex: 1; |
| | | height: 88rpx; |
| | | background: $nav-color; |
| | | box-shadow: 0 0 12rpx 0 rgba(0, 0, 0, 0.08); |
| | | border-radius: 8rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 30rpx; |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | export const documentType = [ |
| | | { name: '车é´é¢æ', id: 1 }, |
| | | { 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: 16 }, |
| | | { name: '客éè¿ä¿®å
¥åº', id: 17 }, |
| | | { name: 'åºåå
¥åº', id: 30 } |
| | | ] |
| | | |
| | | export const orderType = [ |
| | | { |
| | | name: '车é´é¢æ', |
| | |
| | | return y + '-' + m + '-' + d; |
| | | } |
| | | |
| | | export { gsdate } |
| | | /*** |
| | | * |
| | | * @param time æ¥æ å¹´ææ¥æ¶åç§ |
| | | * @param Sign é´é |
| | | */ |
| | | function setTime (time, Sign) { |
| | | let year = time.getFullYear(); |
| | | let month = time.getMonth() + 1 >= 10 ? time.getMonth() + 1 : `0${time.getMonth() + 1}`; |
| | | let day = time.getDate() >= 10 ? time.getDate() : `0${time.getDate()}`; |
| | | let hour = time.getHours() >= 10 ? time.getHours() : `0${time.getHours()}`; |
| | | let minute = time.getMinutes() >= 10 ? time.getMinutes() : `0${time.getMinutes()}`; |
| | | let second = time.getSeconds() >= 10 ? time.getSeconds() : `0${time.getSeconds()}`; |
| | | return [year, Sign, month , Sign, day, ' ', hour , ':', minute, ':', second ].join(''); |
| | | } |
| | | |
| | | export { gsdate, setTime } |