|
|
@@ -142,6 +142,19 @@
|
|
|
></dic-select>
|
|
|
<span v-else>{{ row.reservoirAreaName }}</span>
|
|
|
</template>
|
|
|
+ <template slot-scope="{ row }" slot="dot">
|
|
|
+ <dic-select
|
|
|
+ v-if="row.$cellEdit"
|
|
|
+ :key="row.dotList"
|
|
|
+ v-model="row.dot"
|
|
|
+ placeholder="批次号"
|
|
|
+ label="dot"
|
|
|
+ :mockData="row.dotList"
|
|
|
+ :activateCreated="false"
|
|
|
+ :filterable="true"
|
|
|
+ ></dic-select>
|
|
|
+ <span v-else>{{ row.dot }}</span>
|
|
|
+ </template>
|
|
|
</avue-crud>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="入库信息" name="payment_details">
|
|
|
@@ -593,18 +606,18 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: "批次号",
|
|
|
- cell: true,
|
|
|
+ // cell: true,
|
|
|
width: 120,
|
|
|
prop: "dot",
|
|
|
- type: "select",
|
|
|
- disabled: false,
|
|
|
+ // type: "select",
|
|
|
+ // disabled: false,
|
|
|
// allowCreate: true,
|
|
|
// filterable: true,
|
|
|
- dicData: [],
|
|
|
- props: {
|
|
|
- label: "dot",
|
|
|
- value: "dot"
|
|
|
- },
|
|
|
+ // dicData: [],
|
|
|
+ // props: {
|
|
|
+ // label: "dot",
|
|
|
+ // value: "dot"
|
|
|
+ // },
|
|
|
overHidden: true
|
|
|
},
|
|
|
{
|
|
|
@@ -813,13 +826,13 @@ export default {
|
|
|
this.findObject(this.optionContacts.column, "dot").disabled = true;
|
|
|
} else {
|
|
|
this.findObject(this.optionContacts.column, "dot").disabled = false;
|
|
|
- dotList({
|
|
|
- storageId: this.form.storageId,
|
|
|
- goodsId: this.formContacts.goodsId
|
|
|
- }).then(res => {
|
|
|
- console.log("dot", res);
|
|
|
- this.findObject(this.optionContacts.column, "dot").dicData = res.data.data;
|
|
|
- });
|
|
|
+ // dotList({
|
|
|
+ // storageId: this.form.storageId,
|
|
|
+ // goodsId: this.formContacts.goodsId
|
|
|
+ // }).then(res => {
|
|
|
+ // console.log("dot", res);
|
|
|
+ // this.findObject(this.optionContacts.column, "dot").dicData = res.data.data;
|
|
|
+ // });
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
@@ -853,13 +866,13 @@ export default {
|
|
|
this.findObject(this.optionContacts.column, "dot").disabled = true;
|
|
|
} else {
|
|
|
this.findObject(this.optionContacts.column, "dot").disabled = false;
|
|
|
- dotList({
|
|
|
- storageId: this.form.storageId,
|
|
|
- goodsId: this.formContacts.goodsId
|
|
|
- }).then(res => {
|
|
|
- console.log("567");
|
|
|
- this.findObject(this.optionContacts.column, "dot").dicData = res.data.data;
|
|
|
- });
|
|
|
+ // dotList({
|
|
|
+ // storageId: this.form.storageId,
|
|
|
+ // goodsId: this.formContacts.goodsId
|
|
|
+ // }).then(res => {
|
|
|
+ // console.log("567");
|
|
|
+ // this.findObject(this.optionContacts.column, "dot").dicData = res.data.data;
|
|
|
+ // });
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
@@ -1117,13 +1130,13 @@ export default {
|
|
|
this.findObject(this.optionContacts.column, "dot").disabled = true;
|
|
|
} else {
|
|
|
this.findObject(this.optionContacts.column, "dot").disabled = false;
|
|
|
- dotList({
|
|
|
- storageId: this.form.storageId,
|
|
|
- goodsId: this.formContacts.goodsId
|
|
|
- }).then(res => {
|
|
|
- console.log("567");
|
|
|
- this.findObject(this.optionContacts.column, "dot").dicData = res.data.data;
|
|
|
- });
|
|
|
+ // dotList({
|
|
|
+ // storageId: this.form.storageId,
|
|
|
+ // goodsId: this.formContacts.goodsId
|
|
|
+ // }).then(res => {
|
|
|
+ // console.log("567");
|
|
|
+ // this.findObject(this.optionContacts.column, "dot").dicData = res.data.data;
|
|
|
+ // });
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
@@ -1237,6 +1250,17 @@ export default {
|
|
|
this.editDisabled = false;
|
|
|
this.optionForm.disabled = false;
|
|
|
}
|
|
|
+ res.data.data.shipItemsList.forEach(row => {
|
|
|
+ row.dotList = [];
|
|
|
+ if (row.dots) {
|
|
|
+ let list = row.dots.split(",");
|
|
|
+ for (let item of list) {
|
|
|
+ row.dotList.push({
|
|
|
+ dot: item
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
this.form = res.data.data;
|
|
|
this.filesList = res.data.data.filesList;
|
|
|
})
|
|
|
@@ -1258,15 +1282,25 @@ export default {
|
|
|
this.$set(row, "$cellEdit", true);
|
|
|
}
|
|
|
// this.confirmEditing()
|
|
|
- dotList({
|
|
|
- storageId: this.form.storageId,
|
|
|
- goodsId: row.goodsId
|
|
|
- }).then(res => {
|
|
|
- this.findObject(this.optionContactsBack.column, "dot").dicData = res.data.data;
|
|
|
- // console.log(this.dicData)
|
|
|
- });
|
|
|
- console.log(this.optionContacts, 802);
|
|
|
+ // dotList({
|
|
|
+ // storageId: this.form.storageId,
|
|
|
+ // goodsId: row.goodsId
|
|
|
+ // }).then(res => {
|
|
|
+ // this.findObject(this.optionContacts.column, "dot").dicData = res.data.data;
|
|
|
+ // // console.log(this.dicData)
|
|
|
+ // });
|
|
|
+ // console.log(this.optionContacts, 802);
|
|
|
// this.$refs.formContacts.rowEdit(row, index)
|
|
|
+ // if (row.dots) {
|
|
|
+ // let dots=[]
|
|
|
+ // let list =row.dots.split(",");
|
|
|
+ // for (let item of list) {
|
|
|
+ // dots.push({
|
|
|
+ // dot: item
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // this.findObject(this.optionContacts.column, "dot").dicData =dots
|
|
|
+ // }
|
|
|
},
|
|
|
rowDelBox(row, index) {
|
|
|
this.$confirm("确定将选择数据删除?", {
|