|
<template>
|
<el-dialog :visible.sync="currentVisible" :closable="false" title="明细转移">
|
<el-alert title="提示:" type="success">
|
<div class="line-height-2">1先选择需要转移的明细</div>
|
<div class="line-height-2">2在“转移到采购单号”输入转向采购单号</div>
|
<div class="line-height-2">3输入完点击“确定”转移成功</div>
|
</el-alert>
|
<el-form :inline="true" :model="form" class="demo-form-inline margin-top-20">
|
<el-form-item :label-width="formLabelWidth" label="转移到预到货单号:">
|
<el-col :span="20">
|
<el-input v-model="form.orderCode" auto-complete="off"></el-input>
|
</el-col>
|
</el-form-item>
|
</el-form>
|
|
<div slot="footer" class="dialog-footer">
|
<el-button @click="currentVisible = false">取 消</el-button>
|
<el-button type="primary" @click="detailtransfer">确 定</el-button>
|
</div>
|
</el-dialog>
|
</template>
|
|
<script>
|
export default {
|
name: "order-barcode",
|
components: {},
|
props: {
|
visible: {
|
type: Boolean,
|
default: false,
|
required: true
|
}
|
},
|
data() {
|
return {
|
id: "",
|
form: {
|
orderCode: ""
|
},
|
order_Id: 0,
|
formLabelWidth: "150px",
|
detailIdList: ""
|
};
|
},
|
computed: {
|
currentVisible: {
|
get: function() {
|
return this.visible;
|
},
|
set: function(val) {
|
this.$emit("update:visible", val);
|
}
|
}
|
},
|
methods: {
|
detailtransfer() {
|
const url = "/api/inbound/order/transfer";
|
const params = {
|
order_Id: this.order_Id,
|
orderCode: this.form.orderCode,
|
detailIdList: this.detailIdList
|
};
|
var callback = res => {
|
this.common.showMsg(res);
|
if (res.result) {
|
this.currentVisible = false;
|
}
|
};
|
this.common.ajax(url, params, callback, null);
|
}
|
}
|
};
|
</script>
|
|
<style lang="less" scoped>
|
@deep: ~">>>";
|
|
@{deep} .el-dialog__body {
|
padding: 0px 10px;
|
}
|
</style>
|