放弃取货槽位 药品数据级别和下级数量过滤小数点 11/11 1.0

20240912_adapter
wangwei 8 months ago
parent 9a13067e2d
commit 2046d51ec5

@ -75,6 +75,7 @@
<el-input size="small" v-model="scope.row.packLevel" style="width: 100%" <el-input size="small" v-model="scope.row.packLevel" style="width: 100%"
type="number" type="number"
:disabled="scope.$index !== selectedIndex" :disabled="scope.$index !== selectedIndex"
@input="handleInput(scope.$index, $event,1)"
></el-input> ></el-input>
</template> </template>
</el-table-column> </el-table-column>
@ -90,6 +91,7 @@
<el-input size="small" v-model="scope.row.bhxjsl" style="width: 100%" <el-input size="small" v-model="scope.row.bhxjsl" style="width: 100%"
type="number" type="number"
:disabled="scope.$index !== selectedIndex" :disabled="scope.$index !== selectedIndex"
@input="handleInput(scope.$index, $event,2)"
></el-input> ></el-input>
</template> </template>
</el-table-column> </el-table-column>
@ -1263,6 +1265,16 @@ export default {
closeUdi(val) { closeUdi(val) {
this.chooseHouseDrugVisible = false this.chooseHouseDrugVisible = false
this.getThirdSysDetail() this.getThirdSysDetail()
},
handleInput(index, value,type){
const intValue = parseInt(value, 10);
//
if (type == 1){
this.$set(this.detailList[index], 'packLevel', intValue);
}else {
this.$set(this.detailList[index], 'bhxjsl', intValue);
}
} }
}, },

@ -35,7 +35,7 @@
</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" :disabled="orderFormData.billNo == null && curQueueName == '' "
>放弃 >放弃
</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"
@ -1777,24 +1777,31 @@ export default {
) )
tQuery.billNo = this.orderFormData.billNo tQuery.billNo = this.orderFormData.billNo
tQuery.orderType = 2 tQuery.orderType = 2
if (this.orderFormData.billNo == null) { // if (this.orderFormData.billNo == null) {
this.$message.error('请先录入单据信息!') // this.$message.error('')
return // return
} // }
this.saveLoading = true this.saveLoading = true
deleteByOrderId(tQuery).then((response) => { if (this.orderFormData.billNo != null){
this.saveLoading = false deleteByOrderId(tQuery).then((response) => {
if (response.code === 20000) { this.saveLoading = false
this.$message.success('放弃成功') if (response.code === 20000) {
this.successCloseData() this.$message.success('放弃成功')
this.result = '' this.successCloseData()
this.$refs.inputRef.focus() this.result = ''
} else { this.$refs.inputRef.focus()
this.$message.error(response.message) } else {
} this.$message.error(response.message)
this.loading = false }
this.saveLoading = false this.loading = false
}) this.saveLoading = false
})
}else {
this.successCloseData()
this.result = ''
this.$refs.inputRef.focus()
}
}, },
// //
resetForm() { resetForm() {

Loading…
Cancel
Save