|
|
@@ -2,7 +2,9 @@
|
|
|
<div>
|
|
|
<el-dialog title="拆单" :visible.sync="dialogVisible" append-to-body width="50%" :before-close="handleClose">
|
|
|
<avue-form :option="optionForm" v-model="query" ref="form"></avue-form>
|
|
|
- <el-button type="success" size="small" plain @click="getList">查询</el-button>
|
|
|
+ <div style="display: flex;justify-content: flex-end;">
|
|
|
+ <el-button type="success" size="small" plain @click="getList">查询</el-button>
|
|
|
+ </div>
|
|
|
<avue-crud
|
|
|
v-if="dialogVisible"
|
|
|
:option="option"
|
|
|
@@ -122,8 +124,10 @@ export default {
|
|
|
this.ids = null;
|
|
|
this.query = {};
|
|
|
this.pickObj = {};
|
|
|
+ this.data=[]
|
|
|
this.query = {
|
|
|
- ...val
|
|
|
+ ...val,
|
|
|
+ hblno:null
|
|
|
};
|
|
|
this.ids = ids;
|
|
|
},
|
|
|
@@ -134,14 +138,27 @@ export default {
|
|
|
polId: this.query.polId,
|
|
|
podId: this.query.podId,
|
|
|
boxBelongsTo: this.query.boxBelongsTo,
|
|
|
- hblno: this.query.hblno
|
|
|
+ hblno: this.query.hblno,
|
|
|
+ id: this.query.id
|
|
|
};
|
|
|
- selectComplyWithData(obj).then(res => {
|
|
|
- this.data = res.data.data;
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: "加载中",
|
|
|
+ spinner: "el-icon-loading",
|
|
|
+ background: "rgba(255,255,255,0.7)"
|
|
|
});
|
|
|
+ selectComplyWithData(obj)
|
|
|
+ .then(res => {
|
|
|
+ this.data = res.data.data;
|
|
|
+ })
|
|
|
+ .finally(() => {
|
|
|
+ loading.close();
|
|
|
+ });
|
|
|
},
|
|
|
submit() {
|
|
|
- this.pickObj;
|
|
|
+ if (!this.pickObj.id) {
|
|
|
+ return this.$message.error("请选择数据");
|
|
|
+ }
|
|
|
let obj = {
|
|
|
billId: this.query.id,
|
|
|
billIdNew: this.pickObj.id,
|