|
@@ -7,20 +7,20 @@
|
|
|
<div style="padding: 0px 20px">
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="调出仓库:" prop="supplierName">
|
|
|
- <span>{{ form.supplierName }}</span>
|
|
|
+ <el-form-item label="调出仓库:" prop="outWarehouseName">
|
|
|
+ <span>{{ form.outWarehouseName }}</span>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="调入仓库:" prop="code">
|
|
|
+ <el-form-item label="调入仓库:" prop="inWarehouseName">
|
|
|
<span>
|
|
|
- {{ form.code }}
|
|
|
+ {{ form.inWarehouseName || "京东" }}
|
|
|
</span>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <el-form-item label="调仓备注:" prop="supplierName">
|
|
|
- <span>{{ form.supplierName }}</span>
|
|
|
+ <el-form-item label="调仓备注:" prop="remark">
|
|
|
+ <span>{{ form.remark }}</span>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
|
|
@@ -28,11 +28,12 @@
|
|
|
<labelTitle content="调仓明细"></labelTitle>
|
|
|
</div>
|
|
|
<div style="padding: 0px 20px">
|
|
|
- <el-table :data="form.goodsList">
|
|
|
- <el-table-column label="产品编码" prop="goodsCode" min-width="150" />
|
|
|
- <el-table-column label="产品名称" prop="goodsName" min-width="150" />
|
|
|
- <el-table-column label="规格" prop="goodsUnit" width="80" />
|
|
|
- <el-table-column label="调仓数量" prop="unitPrice" width="100" />
|
|
|
+ <el-table :data="form.productInfoList">
|
|
|
+ <el-table-column label="产品编码" prop="code" />
|
|
|
+ <el-table-column label="产品名称" prop="name" />
|
|
|
+ <el-table-column label="规格" prop="specs" width="120" />
|
|
|
+ <el-table-column label="调出数量" prop="outQuantity" width="100" />
|
|
|
+ <el-table-column label="调入数量" prop="inQuantity" width="100" />
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</el-form>
|
|
@@ -41,8 +42,8 @@
|
|
|
|
|
|
<script>
|
|
|
import labelTitle from "@/components/label-title/index.vue";
|
|
|
-import { purchaseDetails } from "@/api/purchase-management/purchase/index.js";
|
|
|
-import { supplySelect } from "@/api/product-material/supply/index.js";
|
|
|
+import { transferDetails } from "@/api/inbound-outbound/transfer.js";
|
|
|
+// import { supplySelect } from "@/api/product-material/supply/index.js";
|
|
|
|
|
|
export default {
|
|
|
name: "TransferDetails",
|
|
@@ -71,17 +72,30 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
if (this.rowData.id) {
|
|
|
- // this.getDetails();
|
|
|
+ this.getDetails();
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
async getDetails() {
|
|
|
this.loading = true;
|
|
|
- const { data } = await supplySelect({ name: "", code: "", type: "" });
|
|
|
- this.supplySelectList = data.data;
|
|
|
- purchaseDetails({ id: this.rowData.id }).then((res) => {
|
|
|
- this.getSupplierName(res.data.data.supplierId, res.data.data);
|
|
|
- });
|
|
|
+ transferDetails({ id: this.rowData.id }).then(
|
|
|
+ (res) => {
|
|
|
+ if (res.data.data.inQuantity !== -1) {
|
|
|
+ res.data.data.productInfoList[0].inQuantity =
|
|
|
+ res.data.data.inQuantity;
|
|
|
+ }
|
|
|
+ if (res.data.data.outQuantity !== -1) {
|
|
|
+ res.data.data.productInfoList[0].outQuantity =
|
|
|
+ res.data.data.outQuantity;
|
|
|
+ }
|
|
|
+ this.form = res.data.data;
|
|
|
+ this.loading = false;
|
|
|
+ },
|
|
|
+ (err) => {
|
|
|
+ this.msgInfo("请联系管理员!");
|
|
|
+ this.loading = false;
|
|
|
+ }
|
|
|
+ );
|
|
|
},
|
|
|
},
|
|
|
};
|