|
@@ -340,6 +340,11 @@
|
|
|
{{ scope.row.partsNum }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column align="center" label="采购价格" prop="costPrice" min-width="120">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input size="small" type="number" v-model="scope.row.costPrice"></el-input>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column align="center" label="单价" prop="price" min-width="120">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input size="small" type="number" v-model="scope.row.price"></el-input>
|
|
@@ -634,6 +639,7 @@
|
|
|
<el-table-column align="center" label="内机数量" prop="insideNum" min-width="120"></el-table-column>
|
|
|
<el-table-column align="center" label="外机数量" prop="outNum" min-width="120"></el-table-column>
|
|
|
<el-table-column align="center" label="配件数量" prop="partNum" min-width="120"></el-table-column>
|
|
|
+ <el-table-column align="center" label="采购价格" prop="costPrice" min-width="120"></el-table-column>
|
|
|
<el-table-column align="center" label="单价" prop="price" min-width="120"></el-table-column>
|
|
|
<el-table-column align="center" label="金额" min-width="120">
|
|
|
<template slot-scope="scope">
|
|
@@ -1080,6 +1086,7 @@ export default {
|
|
|
}
|
|
|
if (!this.goodsList[i].num) return this.$errorMsg('请完善商品信息-订单数量')
|
|
|
if (!this.goodsList[i].price) return this.$errorMsg('请完善商品信息-单价')
|
|
|
+ if (!this.goodsList[i].costPrice) return this.$errorMsg('请完善商品信息-采购价格')
|
|
|
}
|
|
|
|
|
|
let orderSmallTypeText = this.orderTypeList.find(o => o.id == this.formData.orderSmallType).orderSmallTypeText
|
|
@@ -1394,6 +1401,7 @@ export default {
|
|
|
insideNum: '', // 内机数量
|
|
|
outNum: '', // 外机数量
|
|
|
partsNum: '', // 配件数量
|
|
|
+ costPrice: '', // 采购价格
|
|
|
price: '', // 单价
|
|
|
amount: '', // 金额
|
|
|
stockQty: '' // 当前库存
|