2/20 上货优化1.0

20240912_adapter
wangwei 4 months ago
parent 2aec8def1f
commit e1f1d803a7

@ -24,36 +24,36 @@
v-show="isLinkDisabled" v-show="isLinkDisabled"
>拍照解码 >拍照解码
</el-button> </el-button>
<el-button size="mini" type="primary" @click.native="deleteCode" :loading="submitLoading" <!--<el-button size="mini" type="primary" @click.native="deleteCode" :loading="submitLoading"-->
v-if="splitType=='out' && labelName == 1" style="margin-right: 8px;border-radius: 5%;" <!-- v-if="splitType=='out' && labelName == 1" style="margin-right: 8px;border-radius: 5%;"-->
v-show="isLinkDisabled" :disabled="orderFormData.billNo == null || (splitType=='out' && redMesg)" <!-- v-show="isLinkDisabled" :disabled="orderFormData.billNo == null || (splitType=='out' && redMesg)"-->
>扫码剔除 <!--&gt;扫码剔除-->
</el-button> <!--</el-button>-->
<el-button size="mini" type="primary" @click.native="overdeleteCode" :loading="submitLoading" <!--<el-button size="mini" type="primary" @click.native="overdeleteCode" :loading="submitLoading"-->
v-if="splitType=='out' && labelName == 2" style="margin-right: 8px;border-radius: 5%;" <!-- v-if="splitType=='out' && labelName == 2" style="margin-right: 8px;border-radius: 5%;"-->
v-show="isLinkDisabled" <!-- v-show="isLinkDisabled"-->
>结束剔除 <!--&gt;结束剔除-->
</el-button> <!--</el-button>-->
<el-button size="mini" type="primary" @click.native="selectPrescribe()" :loading="submitLoading" <!--<el-button size="mini" type="primary" @click.native="selectPrescribe()" :loading="submitLoading"-->
v-if="splitType=='out' && !redMesg" style="margin-right: 8px;border-radius: 5%;" <!-- v-if="splitType=='out' && !redMesg" style="margin-right: 8px;border-radius: 5%;"-->
v-show="isLinkDisabled" <!-- v-show="isLinkDisabled"-->
>选入已完成单据 <!--&gt;选入已完成单据-->
</el-button> <!--</el-button>-->
<el-button size="mini" type="primary" @click.native="chooseDraftOrder()" :loading="submitLoading" <el-button size="mini" type="primary" @click.native="chooseDraftOrder()" :loading="submitLoading"
style="margin-right: 8px;border-radius: 5%;" v-show="isLinkDisabled " style="margin-right: 8px;border-radius: 5%;" v-show="isLinkDisabled "
:disabled="splitType=='out' && redMesg" :disabled="splitType=='out' && redMesg"
>选入单据 >选入单据
</el-button> </el-button>
<el-button size="mini" type="primary" @click.native="delOrder()" :loading="submitLoading" <!--<el-button size="mini" type="primary" @click.native="delOrder()" :loading="submitLoading"-->
style="margin-right: 8px;border-radius: 5%;" v-show="isLinkDisabled" <!-- style="margin-right: 8px;border-radius: 5%;" v-show="isLinkDisabled"-->
:disabled="orderFormData.billNo == null && curQueueName == '' " <!-- :disabled="orderFormData.billNo == null && curQueueName == '' "-->
>放弃 <!--&gt;放弃-->
</el-button> <!--</el-button>-->
<el-button size="mini" type="primary" @click.native="draftOrder()" :loading="submitLoading" <!--<el-button size="mini" type="primary" @click.native="draftOrder()" :loading="submitLoading"-->
v-show="isLinkDisabled" style="margin-right: 8px;border-radius: 5%;" <!-- v-show="isLinkDisabled" style="margin-right: 8px;border-radius: 5%;"-->
:disabled="splitType=='out' && redMesg" <!-- :disabled="splitType=='out' && redMesg"-->
>保存 <!--&gt;保存-->
</el-button> <!--</el-button>-->
<el-button size="mini" type="primary" @click.native="submit()" :loading="submitLoading" <el-button size="mini" type="primary" @click.native="submit()" :loading="submitLoading"
v-if="splitType=='out'" style="margin-right: 8px;border-radius: 5%;" v-if="splitType=='out'" style="margin-right: 8px;border-radius: 5%;"
:disabled="splitType=='out' && redMesg" :disabled="splitType=='out' && redMesg"
@ -328,7 +328,8 @@ import {
batchVailCode, batchVailCode,
batchAddCode, batchAddCode,
batchAddCodeByOrderFinish, batchAddCodeByOrderFinish,
upProcessing upProcessing,
getProcessingOrder
} from '@/api/inout/order' } from '@/api/inout/order'
import {filterSubAll, findByFrom, findInvByUser} from '@/api/system/invSubWarehouse' import {filterSubAll, findByFrom, findInvByUser} from '@/api/system/invSubWarehouse'
import {parseTime} from '@/utils/coTools' import {parseTime} from '@/utils/coTools'
@ -998,11 +999,13 @@ export default {
{ {
let item = this.allWorkPlaces.find(item => item.workplaceId == this.orderFormData.workPlaceCode) let item = this.allWorkPlaces.find(item => item.workplaceId == this.orderFormData.workPlaceCode)
this.queueStatus = item.queueStatus this.queueStatus = item.queueStatus
if (isBlank(this.curQueue.code)){
if (this.queueStatus == 1) { if (this.queueStatus == 1) {
this.redMesg = true this.redMesg = true
this.redMesgOld = true this.redMesgOld = true
} }
} }
}
}) })
@ -1626,6 +1629,32 @@ export default {
this.orderQuery = currentRow this.orderQuery = currentRow
this.chooseDraftOrderVisible = false this.chooseDraftOrderVisible = false
this.refreshOrder(this.orderQuery) this.refreshOrder(this.orderQuery)
let query = {
code : currentRow.workPlaceQueueCode,
workPlaceIdFk: currentRow.workPlaceCode
}
getByCode(query).then((response) => {
this.loading = false;
if (response.code == 20000) {
this.curQueue = response.data;
this.productName = this.curQueue.cpmctymc
if (isBlank(this.productName)) {
this.curQueueName = "当前取货槽:" + this.curQueue.code
} else {
this.curQueueName = "当前取货槽:" + this.productName + "(" + this.curQueue.code + ")"
}
this.redMesg = false
this.orderFormData.workPlaceQueueCode = this.curQueue.code
this.scanCode = '';
} else {
this.scanCode = ''
this.$message.error(response.message)
}
}).catch(() => {
})
// this.redMesg = false
// //
// this.upOrderStatus() // this.upOrderStatus()
@ -2009,14 +2038,18 @@ export default {
this.curQueueName = "当前取货槽:" + this.productName + "(" + this.curQueue.code + ")" this.curQueueName = "当前取货槽:" + this.productName + "(" + this.curQueue.code + ")"
} }
this.redMesg = false
this.orderFormData.workPlaceQueueCode = this.curQueue.code this.orderFormData.workPlaceQueueCode = this.curQueue.code
this.scanCode = ''; this.scanCode = '';
// //
this.getOrder()
} else { } else {
this.scanCode = '' this.scanCode = ''
this.$message.error(response.message) this.$message.error(response.message)
} }
}).catch(() => { }).catch(() => {
}) })
return true return true
}else if (str.includes("DMOENTER")) { }else if (str.includes("DMOENTER")) {
@ -2273,16 +2306,20 @@ export default {
}, },
getOrder() { getOrder() {
let query = { let query = {
workPlaceCode: this.workplaceId workPlaceCode: this.workplaceId,
workPlaceQueueCode: this.curQueue.code
} }
getProcessingOrder(query).then(res => { getProcessingOrder(query).then(res => {
if (res.code == 20000) { if (res.code == 20000) {
if (res.data != null) { if (res.data != null) {
this.refreshOrder(res.data) this.refreshOrder(res.data)
} }
} else {
this.$message.error('获取错误')
} }
// this.redMesg = false
// else {
// this.$message.error('')
// }
}) })
}, },
@ -2469,8 +2506,7 @@ export default {
this.workplaceId = this.$route.query.workplaceId this.workplaceId = this.$route.query.workplaceId
this.orderFormData.workPlaceCode = Number(this.$route.query.workplaceId) this.orderFormData.workPlaceCode = Number(this.$route.query.workplaceId)
this.orderFormData.splitBusType = 'YPCF002' this.orderFormData.splitBusType = 'YPCF002'
//
// this.getOrder()
} else { } else {
if (this.orderQuery.workPlaceCode != null) { if (this.orderQuery.workPlaceCode != null) {
this.orderFormData.workPlaceCode = String(this.orderQuery.workPlaceCode) this.orderFormData.workPlaceCode = String(this.orderQuery.workPlaceCode)

Loading…
Cancel
Save