1/10 取消校验1.1

20240912_adapter
wangwei 3 months ago
parent cbbe33b91d
commit 341d007548

@ -113,3 +113,11 @@ export function commitCheckCodeOrder(query) {
data: query
});
}
export function deleteCodes(query) {
return axios({
url: "/udiwms/basic/collect/IoCollectCodeBackup/deleteCodes",
method: "post",
data: query
});
}

@ -5,6 +5,18 @@
<el-row :gutter="0" style="margin-top: 15px">
<el-col :span="24" align="right">
<el-button-group>
<el-button
type="primary"
:disabled="!orderData.billNo"
@click.native="abandonOrder()"
>取消校验
</el-button>
<!--<el-button-->
<!-- type="primary"-->
<!-- :disabled="!orderData.billNo"-->
<!-- @click.native="cancelCheckOrder()"-->
<!--&gt;取消校验-->
<!--</el-button>-->
<el-button
type="primary"
:disabled="!orderData.billNo"
@ -169,7 +181,12 @@ import { getCodeEndList } from '@/api/collect/IoCollectCodeSelect'
import { orderFinish } from '@/api/collect/collectOrder'
import selectPrescribeDialog from '@/views/collect/selectCollectOrderDialog'
import CollectFinishOrderBackupDetail from "./CollectFinishOrderBackupDetail"
import { commitCheckCodeOrder, scanCheckCodeOrder, scanCheckCodeReplace } from '@/api/collect/splitCreateOrder'
import {
commitCheckCodeOrder,
deleteCodes,
scanCheckCodeOrder,
scanCheckCodeReplace
} from '@/api/collect/splitCreateOrder'
import { isBlank } from '@/utils/strUtil'
export default {
@ -580,6 +597,52 @@ export default {
})
},
// cancelCheckOrder(){
// this.codeQuery.selectType = 2
// this.$confirm('', '', {
// confirmButtonText: '',
// cancelButtonText: '',
// type: 'warning',
// center: true,
// closeOnPressEscape: false,// ESC
// closeOnClickModal: false,//
// distinguishCancelAndClose: true//
// }).then(() => {
// this.getResultDetailList()
// this.initData()
// this.$message.success("")
// }).catch(() => {
//
// })
//
// },
abandonOrder(){
let query = {
billNo : this.orderData.billNo,
selectType : 2
}
this.$confirm('是否取消当前单据校验', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
center: true,
closeOnPressEscape: false,// ESC
closeOnClickModal: false,//
distinguishCancelAndClose: true//
}).then(() => {
deleteCodes(query).then(res => {
if (res.code == 20000){
this.init()
this.$message.success("取消成功")
}else {
this.$message.success(res.message)
}
})
}).catch(() => {
})
},
initData(){
this.scanCode = ''
this.$refs.inputRef.focus()

Loading…
Cancel
Save