|
@@ -2335,17 +2335,31 @@ export default {
|
|
|
this.reset();
|
|
|
const fId = row.fId || this.ids;
|
|
|
getWarehousebills(fId).then((response) => {
|
|
|
- this.form = response.data.warehousebills;
|
|
|
- this.fMblnoOptions = response.data.corps;
|
|
|
- this.KHblnoOptions = response.data.corps;
|
|
|
- this.fSbuOptions = response.data.corps;
|
|
|
- this.fWbuOptions = response.data.feesList;
|
|
|
- this.warehouseOptions = response.data.warehouse;
|
|
|
+ if(response.data.warehousebills){
|
|
|
+ this.form = response.data.warehousebills;
|
|
|
+ }
|
|
|
+ if(response.data.corps){
|
|
|
+ this.fMblnoOptions = response.data.corps;
|
|
|
+ this.KHblnoOptions = response.data.corps;
|
|
|
+ this.fSbuOptions = response.data.corps;
|
|
|
+ }
|
|
|
+ if(response.data.feesList){
|
|
|
+ this.fWbuOptions = response.data.feesList;
|
|
|
+ }
|
|
|
+ if(response.data.warehouse){
|
|
|
+ this.warehouseOptions = response.data.warehouse;
|
|
|
+ }
|
|
|
+ if(response.data.warehouseBillsItem) {
|
|
|
+ this.dataList = response.data.warehouseBillsItem;
|
|
|
+ }
|
|
|
+ if(response.data.enclosures) {
|
|
|
+ this.relevantAttachments = response.data.enclosures;
|
|
|
+ }
|
|
|
this.$set(this.form, "fStltypeid", this.form.fStltypeid + "");
|
|
|
this.$set(this.form, "fEta", Date.parse(this.form.fEta));
|
|
|
this.$set(this.form, "createTime", Date.parse(this.form.createTime));
|
|
|
this.$set(this.form, "fTrademodeid", this.form.fTrademodeid + "");
|
|
|
- this.dataList = response.data.warehouseBillsItem;
|
|
|
+
|
|
|
for (let list in this.dataList) {
|
|
|
this.$set(
|
|
|
this.dataList[list],
|
|
@@ -2355,7 +2369,6 @@ export default {
|
|
|
}
|
|
|
this.goodsOptions = response.data.goodsList;
|
|
|
this.kqhouseOptions = response.data.warehouseAreas;
|
|
|
- this.relevantAttachments = response.data.enclosures;
|
|
|
this.warehouseDrList = response.data.warehousebillsfeesDr;
|
|
|
for (let dr in this.warehouseDrList) {
|
|
|
this.$set(
|