|
@@ -38,6 +38,12 @@
|
|
|
>
|
|
|
<el-table-column label="品号" prop="bomColorCode" width="130" />
|
|
|
<el-table-column label="品名" prop="bomColorName" min-width="180" />
|
|
|
+ <!-- <el-table-column label="颜色" prop="color" width="140" />
|
|
|
+ <el-table-column label="尺寸(长宽高,cm)" width="140">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ `${scope.row.productLong} *${scope.row.productWide}*${scope.row.productHigh}` }} </span>
|
|
|
+ </template>
|
|
|
+ </el-table-column> -->
|
|
|
<el-table-column label="含税单价" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<span>¥{{ moneyFormat(scope.row.price, 3) }}</span>
|
|
@@ -51,19 +57,11 @@
|
|
|
<el-table-column label="已退货数量" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.returnedQuantity">{{ Number(scope.row.returnedQuantity) }}</span>
|
|
|
- <span v-else>0</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="剩余数量" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.surplusQuantity">{{ Number(scope.row.surplusQuantity) }}</span>
|
|
|
- <span v-else>0</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="已入库数量" width="100">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span v-if="scope.row.stockQuantity">{{ Number(scope.row.stockQuantity) }}</span>
|
|
|
- <span v-else>0</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="含税小计" align="right" width="100">
|
|
@@ -95,6 +93,11 @@
|
|
|
<span>¥{{ moneyFormat(scope.row.amount, 3) }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <!-- <el-table-column label="操作" align="center" width="80" fixed="right" v-if="!(this.rowData && this.rowData.id)">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button type="text" @click="clickRemove(scope.$index)">删除</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column> -->
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</el-card>
|
|
@@ -180,6 +183,7 @@
|
|
|
|
|
|
<script>
|
|
|
import * as API from '@/api/shengde/productionSystem/purchase/salesReturn'
|
|
|
+// import { purchaseContractGetList, purchaseContractDetail } from '@/api/shengde/productionSystem/purchase/contract'
|
|
|
import { purchaseContractList, purchaseContractDetail } from '@/api/shengde/productionSystem/purchase/contract'
|
|
|
import LabelTemplate from '@/components/LabelTemplate'
|
|
|
import Utils from '@/util/transit'
|
|
@@ -211,6 +215,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ // purchaseContractGetList({}).then((res) => {
|
|
|
+ // this.contractList = res.data.data.list
|
|
|
+ // })
|
|
|
purchaseContractList({ pageNum: 1, pageSize: 9999, type: 1 }).then((res) => {
|
|
|
this.contractList = res.data.data.records
|
|
|
})
|
|
@@ -324,13 +331,6 @@ export default {
|
|
|
purchaseContractDetail({ id: val }).then((res) => {
|
|
|
if (res.data.data.purchaseContractProductList && res.data.data.purchaseContractProductList.length > 0) {
|
|
|
this.form.purchaseReturnBomList = res.data.data.purchaseContractProductList.map((item) => {
|
|
|
- let surplusQuantity = 0
|
|
|
- if (item.stockQuantity) {
|
|
|
- surplusQuantity = Number(item.stockQuantity)
|
|
|
- }
|
|
|
- if (item.returnedQuantity) {
|
|
|
- surplusQuantity = surplusQuantity - Number(item.returnedQuantity)
|
|
|
- }
|
|
|
return {
|
|
|
bomColorCode: item.bomColorCode,
|
|
|
bomColorName: item.bomColorName,
|
|
@@ -341,13 +341,12 @@ export default {
|
|
|
price: item.price,
|
|
|
recentQuantity: item.quantity,
|
|
|
returnedQuantity: item.returnedQuantity,
|
|
|
- surplusQuantity: surplusQuantity,
|
|
|
+ surplusQuantity: item.surplusQuantity,
|
|
|
sumPrice: item.sumPrice,
|
|
|
quantity: undefined,
|
|
|
amount: 0,
|
|
|
purchaseContractProductId: item.id,
|
|
|
remark: item.remark,
|
|
|
- stockQuantity: item.stockQuantity,
|
|
|
}
|
|
|
})
|
|
|
} else {
|