2/27 界面 优化1.3

20240912_adapter
wangwei 4 months ago
parent c1723588e6
commit c6be3d3ec0

@ -1746,10 +1746,15 @@ export default {
} }
this.saveLoading = true this.saveLoading = true
if (this.orderFormData.billNo != null) { if (this.orderFormData.billNo != null) {
this.$confirm('是否确定取消此次上货?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
deleteByOrderId(tQuery).then((response) => { deleteByOrderId(tQuery).then((response) => {
this.saveLoading = false this.saveLoading = false
if (response.code === 20000) { if (response.code === 20000) {
this.$message.success('放弃成功') this.$message.success('取消上货成功')
this.successCloseData() this.successCloseData()
this.result = '' this.result = ''
this.$refs.inputRef.focus() this.$refs.inputRef.focus()
@ -1759,6 +1764,10 @@ export default {
this.loading = false this.loading = false
this.saveLoading = false this.saveLoading = false
}) })
}).catch(() => {
})
} else { } else {
this.successCloseData() this.successCloseData()
this.result = '' this.result = ''

@ -585,7 +585,6 @@ export default {
selectPrescribeDialog, selectPrescribeDialog,
prescribeCodePanel, prescribeCodePanel,
PanelOrderManuTagCode, prescribeOriginPanel, PanelOrderManuTagCode, prescribeOriginPanel,
PannelOrderBiz,
DialogCreateOrderSelect, DialogCreateOrderSelect,
PanelOrderAllDetail PanelOrderAllDetail
}, },

@ -47,7 +47,7 @@
<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 == '' "
>放弃 >取消上货
</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%;"-->
@ -1746,10 +1746,15 @@ export default {
} }
this.saveLoading = true this.saveLoading = true
if (this.orderFormData.billNo != null) { if (this.orderFormData.billNo != null) {
this.$confirm('是否确定取消此次上货?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
deleteByOrderId(tQuery).then((response) => { deleteByOrderId(tQuery).then((response) => {
this.saveLoading = false this.saveLoading = false
if (response.code === 20000) { if (response.code === 20000) {
this.$message.success('放弃成功') this.$message.success('取消上货成功')
this.successCloseData() this.successCloseData()
this.result = '' this.result = ''
this.$refs.inputRef.focus() this.$refs.inputRef.focus()
@ -1759,12 +1764,18 @@ export default {
this.loading = false this.loading = false
this.saveLoading = false this.saveLoading = false
}) })
}).catch(() => {
})
} else { } else {
this.successCloseData() this.successCloseData()
this.result = '' this.result = ''
this.$refs.inputRef.focus() this.$refs.inputRef.focus()
} }
this.sharedData = 'over'
// over tabs
EventBus.$emit('update-data', { message: this.sharedData });
}, },
// //
resetForm() { resetForm() {

Loading…
Cancel
Save