| | |
| | | <span>{{item.outActnum}}{{item.unitName}}</span> |
| | | </div> |
| | | <div class="page_content_title_bottom"> |
| | | <span class="green" v-if="item.qualityType === 0">合格 <span |
| | | class="black">/</span> </span> |
| | | <span class="warning" v-else-if="item.qualityType === 1">不良 <span |
| | | class="black">/</span> </span> |
| | | <span class="error" v-else-if="item.qualityType === 2">报废 <span |
| | | class="black">/</span> </span> |
| | | <span v-else>- / </span> |
| | | <span>{{item.procedureName ? item.procedureName : '-'}} / </span> |
| | | <span class="green" v-if="item.qualityType === 0">合格<text class="c6" decode>{{ split}}</text></span> |
| | | <span class="warning" v-else-if="item.qualityType === 1">不良<text class="c6" decode>{{ split}}</text></span> |
| | | <span class="error" v-else-if="item.qualityType === 2">报废<text class="c6" decode>{{ split}}</text></span> |
| | | <span v-else>-<text class="c6" decode>{{ split}}</text></span> |
| | | <span>{{item.procedureName ? item.procedureName : '-'}}<text class="c6" decode>{{ split}}</text></span> |
| | | <span>{{item.batch ? item.batch : '-'}}</span> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="page_yxwl_list_item_sx"> |
| | | <span class="green" v-if="item.qualityType === 0">合格 <span>/</span> </span> |
| | | <span class="warning" v-else-if="item.qualityType === 1">不良 <span>/</span> </span> |
| | | <span class="red" v-else-if="item.qualityType === 2">报废 <span>/</span> </span> |
| | | <span>{{item.procedureName ? item.procedureName : '-'}} <span>/</span> </span> |
| | | <span class="green" v-if="item.qualityType === 0">合格<text class="c6" decode>{{ split}}</text></span> |
| | | <span class="warning" v-else-if="item.qualityType === 1">不良<text class="c6" decode>{{ split}}</text></span> |
| | | <span class="red" v-else-if="item.qualityType === 2">报废<text class="c6" decode>{{ split}}</text></span> |
| | | <span>{{item.procedureName ? item.procedureName : '-'}}<text class="c6" decode>{{ split}}</text></span> |
| | | <span>{{item.batch ? item.batch : '-'}}</span> |
| | | </div> |
| | | <div class="page_yxwl_list_item_num"> |
| | |
| | | <span>{{item.locationName ? item.locationName : '-'}}</span> |
| | | </div> |
| | | </div> |
| | | <div class="items"> |
| | | <div class="items f24"> |
| | | <div class="label">数量:</div> |
| | | <div class="nr"> |
| | | <input type="text" v-model="item.scanNum" placeholder="请输入" /> |
| | |
| | | <div class="itemy" v-for="(item1, idx) in item.woutboundRedisCodeBeanList" :key="idx"> |
| | | <div class="label">工装{{item1.scanCode}}:</div> |
| | | <div class="nr">{{item1.num}}{{item1.unitName}}</div> |
| | | <div class="dele" @click="dele(item1)"> |
| | | <image src="../../../static/chuku_ic_delete@2x.png" class="img36" mode=""></image> |
| | | <div class="dele" @click="woScanMaterialBeanList.splice(index, 1)"> |
| | | <image src="../../../static/chuku_ic_delete@2x.png" class="img48" mode=""></image> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="page_yxwl_list_item_sx"> |
| | | <span class="green" v-if="item1.qualityType === 0">合格 <span>/</span> </span> |
| | | <span class="yellow" v-else-if="item1.qualityType === 1">不良 <span>/</span> </span> |
| | | <span class="red" v-else-if="item1.qualityType === 2">报废 <span>/</span> </span> |
| | | <span>{{item1.procedureName ? item1.procedureName : '-'}} <span>/</span> </span> |
| | | <span class="green" v-if="item1.qualityType === 0">合格<text class="c6" decode>{{ split}}</text></span> |
| | | <span class="yellow" v-else-if="item1.qualityType === 1">不良<text class="c6" decode>{{ split}}</text></span> |
| | | <span class="red" v-else-if="item1.qualityType === 2">报废<text class="c6" decode>{{ split}}</text></span> |
| | | <span>{{item1.procedureName ? item1.procedureName : '-'}}<text class="c6" decode>{{ split}}</text></span> |
| | | <span>{{item1.batch ? item1.batch : '-'}}</span> |
| | | </div> |
| | | <div class="page_yxwl_list_item_num"> |
| | |
| | | <span>{{item1.locationName}}</span> |
| | | </div> |
| | | </div> |
| | | <div class="itemy_item"> |
| | | <div class="itemy_item f24"> |
| | | <div class="label">数量:</div> |
| | | <div class="nr"> |
| | | <!-- @input="inputNum(item1)" --> |
| | |
| | | <span>{{item1.unitName}}</span> |
| | | </div> |
| | | </div> |
| | | <!-- @click="dele()" --> |
| | | <div class="dele" @click="dele(idx)"> |
| | | <image src="../../../static/chuku_ic_delete@2x.png" class="img36" mode=""></image> |
| | | <!-- @click="dele()" dele(index) { |
| | | this.outboundList.splice(index, 1) |
| | | }, --> |
| | | <div class="dele" @click="seleMateriaList.splice(index, 1)"> |
| | | <image src="../../../static/chuku_ic_delete@2x.png" class="img48" mode=""></image> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | split: ' / ', |
| | | type: '', |
| | | id: '', |
| | | wareHouseId: '', |
| | |
| | | }, |
| | | selectMaterial(val) { |
| | | let material = JSON.parse(JSON.stringify(val)) |
| | | let tempMaterial = this.seleMateriaList.find(item => item.locationId == this.location) |
| | | if (tempMaterial) { |
| | | if (tempMaterial.qualityType == material.qualityType && tempMaterial.procedureId == material |
| | | .procedureId && |
| | | tempMaterial.batch == material.batch && tempMaterial.materialId == material.materialId) { |
| | | uni.$u.toast('相同货位,同一个物料只能有一个') |
| | | return |
| | | let repetition = false |
| | | this.seleMateriaList.forEach(item => { |
| | | if (item.locationId == this.location) { |
| | | if (item.id == material.id) { |
| | | repetition = true |
| | | return |
| | | } |
| | | } |
| | | }) |
| | | if (repetition) { |
| | | uni.$u.toast('相同货位,同一个物料只能有一个') |
| | | return |
| | | } |
| | | // let tempMaterial = this.seleMateriaList.find(item => item.locationId == this.location) |
| | | // debugger |
| | | // if (tempMaterial) { |
| | | // /* |
| | | // tempMaterial.qualityType == material.qualityType |
| | | // && tempMaterial.procedureId == material.procedureId |
| | | // &&tempMaterial.batch == material.batch |
| | | // &&tempMaterial.oldLocationId == material.locationId |
| | | // && tempMaterial.materialId == material.materialId |
| | | // */ |
| | | // if (tempMaterial.id == material.id) { |
| | | // uni.$u.toast('相同货位,同一个物料只能有一个') |
| | | // return |
| | | // } |
| | | // } |
| | | // if (tempMaterial && tempMaterial.id == material.id) { |
| | | // uni.$u.toast('相同货位,同一个物料只能有一个') |
| | | // return |
| | | // } |
| | | let materialNum = 0 |
| | | let num = 0 |
| | | // let selectedM = this.seleMateriaList.find(item => item.id == material.id) |
| | | // let waitMaterial = this.MateriaList.find(item => item.id === material.id) |
| | | this.seleMateriaList.forEach(item => { |
| | | if (item.id === material.id) { |
| | | materialNum += Number(item.outActnum) |
| | |
| | | num = item.outActnum - materialNum |
| | | } |
| | | }) |
| | | |
| | | material.outActnum = num |
| | | this.seleMateriaList.push({ |
| | | ...material, |
| | | oldLocationId: material.locationId, |
| | | locationId: this.location, |
| | | locationName: this.locationName |
| | | }) |
| | |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.$store.dispatch('getUpcomingNum') |
| | | uni.$emit('success') |
| | | uni.$u.toast('操作成功') |
| | | if (this.type == '4') { // 跳转完工入库详情 |
| | | // uni.navigateTo({ |
| | |
| | | if (res.code === 200) { |
| | | this.$store.dispatch('getUpcomingNum') |
| | | uni.$u.toast('操作成功') |
| | | uni.$emit('success') |
| | | uni.redirectTo({ |
| | | url: `/pages_adjust/pages/warehousingDetails1/warehousingDetails1?id=${this.id}` |
| | | }) |
| | |
| | | display: flex; |
| | | align-items: center; |
| | | margin-top: 15rpx; |
| | | font-size: 24rpx; |
| | | } |
| | | |
| | | .page_yxwl_list_item_num { |