|
@@ -14,8 +14,7 @@
|
|
<div class="row1">
|
|
<div class="row1">
|
|
<div class="grid-content">
|
|
<div class="grid-content">
|
|
<el-form-item label="货名">
|
|
<el-form-item label="货名">
|
|
- <!-- <el-input v-model="baseInfoForm.goodsName"></el-input> -->
|
|
|
|
- <el-select v-model="selectVal" placeholder="请选择" @change="goodsChange">
|
|
|
|
|
|
+ <el-select v-model="selectVal" placeholder="请选择" @change="goodsChange" :disabled="!isEdit">
|
|
<el-option v-for="item in goodnameList" :key="item.constValue" :label="item.constValue"
|
|
<el-option v-for="item in goodnameList" :key="item.constValue" :label="item.constValue"
|
|
:value="item.constValue">
|
|
:value="item.constValue">
|
|
</el-option>
|
|
</el-option>
|
|
@@ -24,29 +23,34 @@
|
|
</div>
|
|
</div>
|
|
<div class="grid-content">
|
|
<div class="grid-content">
|
|
<el-form-item label="基准水分(%)">
|
|
<el-form-item label="基准水分(%)">
|
|
- <el-input v-model="baseInfoForm.waterBase" @input="changeBaseWater"></el-input>
|
|
|
|
|
|
+ <el-input v-model="baseInfoForm.waterBase" @input="changeBaseWater" :disabled="!isEdit"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</div>
|
|
</div>
|
|
<div class="grid-content">
|
|
<div class="grid-content">
|
|
<el-form-item label="扣重比">
|
|
<el-form-item label="扣重比">
|
|
- <el-input v-model="baseInfoForm.deductWeight"></el-input>
|
|
|
|
|
|
+ <el-input v-model="baseInfoForm.deductWeight" :disabled="!isEdit"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="grid-content">
|
|
|
|
+ <el-form-item label="干粮收购价格">
|
|
|
|
+ <el-input v-model="baseInfoForm.dryGrainPrice" :disabled="!isEdit"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row2">
|
|
<div class="row2">
|
|
<div class="grid-content">
|
|
<div class="grid-content">
|
|
<el-form-item label="干粮水分">
|
|
<el-form-item label="干粮水分">
|
|
- <el-input v-model="baseInfoForm.waterMin" @input="changeMinWater"></el-input>
|
|
|
|
|
|
+ <el-input v-model="baseInfoForm.waterMin" @input="changeMinWater" :disabled="!isEdit"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</div>
|
|
</div>
|
|
<div class="grid-content">
|
|
<div class="grid-content">
|
|
<el-form-item label="水分上限">
|
|
<el-form-item label="水分上限">
|
|
- <el-input v-model="baseInfoForm.waterMax" @input="changeMaxWater"></el-input>
|
|
|
|
|
|
+ <el-input v-model="baseInfoForm.waterMax" @input="changeMaxWater" :disabled="!isEdit"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</div>
|
|
</div>
|
|
<div class="grid-content">
|
|
<div class="grid-content">
|
|
<el-form-item label="销售上限(年/吨)">
|
|
<el-form-item label="销售上限(年/吨)">
|
|
- <el-input v-model="baseInfoForm.saleLimit"></el-input>
|
|
|
|
|
|
+ <el-input v-model="baseInfoForm.saleLimit" :disabled="!isEdit"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -54,23 +58,23 @@
|
|
<el-row class="row3">
|
|
<el-row class="row3">
|
|
<div class="top">
|
|
<div class="top">
|
|
<div class="title">粮价设置</div>
|
|
<div class="title">粮价设置</div>
|
|
- <el-button class="btn" @click="newSetPrice">新增</el-button>
|
|
|
|
|
|
+ <el-button v-if="priceList.length<4" class="btn" @click="newSetPrice" :disabled="!isEdit">新增</el-button>
|
|
</div>
|
|
</div>
|
|
<div class="content" v-for="(item,index) in priceList" :key="index">
|
|
<div class="content" v-for="(item,index) in priceList" :key="index">
|
|
<div class="top">
|
|
<div class="top">
|
|
<div class="left">
|
|
<div class="left">
|
|
<div class="text">基准单价(元/公斤)</div>
|
|
<div class="text">基准单价(元/公斤)</div>
|
|
- <el-input v-model="item.basicUnitPrice"></el-input>
|
|
|
|
|
|
+ <el-input v-model="item.basicUnitPrice" :disabled="!isEdit"></el-input>
|
|
</div>
|
|
</div>
|
|
- <el-button @click="delSetPrice(item,index)">删除</el-button>
|
|
|
|
|
|
+ <el-button @click="delSetPrice(item,index)" :disabled="!isEdit">删除</el-button>
|
|
</div>
|
|
</div>
|
|
{{item}}
|
|
{{item}}
|
|
<div class="level">
|
|
<div class="level">
|
|
<el-checkbox-group v-model="item.checkList" @change="changeLevel($event,index)">
|
|
<el-checkbox-group v-model="item.checkList" @change="changeLevel($event,index)">
|
|
- <el-checkbox label="一等"></el-checkbox>
|
|
|
|
- <el-checkbox label="二等"></el-checkbox>
|
|
|
|
- <el-checkbox label="三等"></el-checkbox>
|
|
|
|
- <el-checkbox label="等外"></el-checkbox>
|
|
|
|
|
|
+ <el-checkbox label="一等" :disabled="!isEdit"></el-checkbox>
|
|
|
|
+ <el-checkbox label="二等" :disabled="!isEdit"></el-checkbox>
|
|
|
|
+ <el-checkbox label="三等" :disabled="!isEdit"></el-checkbox>
|
|
|
|
+ <el-checkbox label="等外" :disabled="!isEdit"></el-checkbox>
|
|
</el-checkbox-group>
|
|
</el-checkbox-group>
|
|
</div>
|
|
</div>
|
|
<div class="count">
|
|
<div class="count">
|
|
@@ -86,9 +90,10 @@
|
|
<div class="item-style">
|
|
<div class="item-style">
|
|
<div v-if="item1.type!=4" class="item-style-title">
|
|
<div v-if="item1.type!=4" class="item-style-title">
|
|
<span>{{item1.name}}{{item1.index}}</span>
|
|
<span>{{item1.name}}{{item1.index}}</span>
|
|
- <span class="add" @click="add(item,item1,index)" v-if="item1.type!=3">+</span>
|
|
|
|
- <span class="reduce" @click="reduce(item,item1,index)"
|
|
|
|
- v-show="item1.type!=1&&item1.type!=2&&item1.type!=3">-</span>
|
|
|
|
|
|
+ <el-button class="add" @click="add(item,item1,index)" v-if="item1.type!=3" :disabled="!isEdit">+
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button class="reduce" @click="reduce(item,item1,index)"
|
|
|
|
+ v-show="item1.type!=1&&item1.type!=2&&item1.type!=3" :disabled="!isEdit">-</el-button>
|
|
</div>
|
|
</div>
|
|
<div v-show="item1.type!=4">
|
|
<div v-show="item1.type!=4">
|
|
<input v-if='item1.type==1' class="water-price" v-model="baseInfoForm.waterMin"
|
|
<input v-if='item1.type==1' class="water-price" v-model="baseInfoForm.waterMin"
|
|
@@ -103,13 +108,14 @@
|
|
<div class="circle" v-if="item1.type!=4"></div>
|
|
<div class="circle" v-if="item1.type!=4"></div>
|
|
</div>
|
|
</div>
|
|
<div class="bottom-price">
|
|
<div class="bottom-price">
|
|
- <input v-if="item1.type==4" class="water-price" v-model="item1.jfprice"></input>
|
|
|
|
|
|
+ <input v-if="item1.type==4" class="water-price" v-model="item1.jfprice" :disabled="!isEdit"></input>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <el-button class="submit" @click="submit">提交</el-button>
|
|
|
|
|
|
+ <!-- <el-button class="submit" @click="submit">提交</el-button> -->
|
|
|
|
+ <el-button class="submit" @click="submit">{{submitName}}</el-button>
|
|
</el-row>
|
|
</el-row>
|
|
</el-main>
|
|
</el-main>
|
|
<el-main v-show="!isCountShow">
|
|
<el-main v-show="!isCountShow">
|
|
@@ -128,12 +134,19 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="price3" label="三等单价">
|
|
<el-table-column prop="price3" label="三等单价">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="priceOther" label="等外单价">
|
|
|
|
|
|
+ <el-table-column prop="price4" label="等外单价">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
- <el-button class="submit" @click="closeCount">关闭</el-button>
|
|
|
|
- <el-button class="submit" @click="print">打印</el-button>
|
|
|
|
|
|
+
|
|
|
|
+ <!-- <el-button class="submit" @click="closeCount">关闭</el-button> -->
|
|
|
|
+
|
|
|
|
+ <div class="bottom-btn">
|
|
|
|
+ <div >当前价格尚未通过审核,建议审核通过后进行打印</div>
|
|
|
|
+ <el-button class="submit" @click="closeCount">关闭</el-button>
|
|
|
|
+ <el-button class="submit" @click="print">打印</el-button>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
|
|
</el-main>
|
|
</el-main>
|
|
</el-container>
|
|
</el-container>
|
|
@@ -141,11 +154,9 @@
|
|
<script>
|
|
<script>
|
|
import {
|
|
import {
|
|
purchasePriceAdd,
|
|
purchasePriceAdd,
|
|
- purchasePriceLook
|
|
|
|
|
|
+ purchasePriceLook,
|
|
|
|
+ purchasePriceEdit
|
|
} from '@/model/houseSelfCollect/index'
|
|
} from '@/model/houseSelfCollect/index'
|
|
- import {
|
|
|
|
- packList,
|
|
|
|
- } from '@/model/contarct/index'
|
|
|
|
export default {
|
|
export default {
|
|
|
|
|
|
components: {
|
|
components: {
|
|
@@ -158,38 +169,10 @@
|
|
return {
|
|
return {
|
|
selectVal: "",
|
|
selectVal: "",
|
|
goodnameList: [],
|
|
goodnameList: [],
|
|
- tableData: [{
|
|
|
|
- waterMin: '10',
|
|
|
|
- waterMax: '20',
|
|
|
|
- price1: '30',
|
|
|
|
- price2: '30',
|
|
|
|
- price3: '30',
|
|
|
|
- priceOther: '30',
|
|
|
|
- }, {
|
|
|
|
- waterMin: '11',
|
|
|
|
- waterMax: '20',
|
|
|
|
- price1: '30',
|
|
|
|
- price2: '30',
|
|
|
|
- price3: '30',
|
|
|
|
- priceOther: '30',
|
|
|
|
- }, {
|
|
|
|
- waterMin: '12',
|
|
|
|
- waterMax: '20',
|
|
|
|
- price1: '30',
|
|
|
|
- price2: '30',
|
|
|
|
- price3: '30',
|
|
|
|
- priceOther: '30',
|
|
|
|
- }, {
|
|
|
|
- waterMin: '13',
|
|
|
|
- waterMax: '20',
|
|
|
|
- price1: '30',
|
|
|
|
- price2: '30',
|
|
|
|
- price3: '30',
|
|
|
|
- priceOther: '30',
|
|
|
|
- }],
|
|
|
|
|
|
+ tableData: [],
|
|
|
|
+ submitName: "提交",
|
|
isCountShow: true,
|
|
isCountShow: true,
|
|
priceList: [{
|
|
priceList: [{
|
|
- unitPrice: '',
|
|
|
|
index: 0,
|
|
index: 0,
|
|
checkList: [],
|
|
checkList: [],
|
|
basicUnitPrice: "",
|
|
basicUnitPrice: "",
|
|
@@ -238,6 +221,7 @@
|
|
workflowId: '',
|
|
workflowId: '',
|
|
approveStatus: '',
|
|
approveStatus: '',
|
|
passDate: '',
|
|
passDate: '',
|
|
|
|
+ dryGrainPrice: '',
|
|
details: [],
|
|
details: [],
|
|
detailPrints: []
|
|
detailPrints: []
|
|
},
|
|
},
|
|
@@ -247,57 +231,111 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated() {
|
|
activated() {
|
|
- switch (this.$route.query.type) {
|
|
|
|
- case "新增":
|
|
|
|
- let _goodsNameList = []
|
|
|
|
- this.baseInfoForm.warehouseId = this.$route.query.warehouseId
|
|
|
|
- this.baseInfoForm.warehouseName = this.$route.query.warehouseName
|
|
|
|
- this.baseInfoForm.compId = this.$route.query.compId
|
|
|
|
- this.type = this.$route.query.type
|
|
|
|
- console.log(this.baseInfoForm)
|
|
|
|
- _goodsNameList = this.$route.query.goodsNameList
|
|
|
|
- this.priceList[0].detailList[0].water = this.baseInfoForm.waterMin
|
|
|
|
- this.priceList[0].detailList[2].water = this.baseInfoForm.waterBase
|
|
|
|
- this.priceList[0].detailList[4].water = this.baseInfoForm.waterMax
|
|
|
|
- // 货名
|
|
|
|
- packList({
|
|
|
|
- constId: 'CON2'
|
|
|
|
- })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- let _list = []
|
|
|
|
- for (let i = 0; i < response.length; i++) {
|
|
|
|
- let _isAll = true
|
|
|
|
- for (let j = 0; j < _goodsNameList.length; j++) {
|
|
|
|
- if (response[i].constValue != _goodsNameList[j]) {
|
|
|
|
- if (j == _goodsNameList.length - 1 && _isAll) {
|
|
|
|
- _list.push(response[i])
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- _isAll = false
|
|
|
|
- }
|
|
|
|
|
|
+ // 货名
|
|
|
|
+ let _goodsNameList = []
|
|
|
|
+ _goodsNameList = this.$route.query.goodsNameList
|
|
|
|
+ packList({
|
|
|
|
+ constId: 'CON2'
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ debugger
|
|
|
|
+ let _list = []
|
|
|
|
+ for (let i = 0; i < response.length; i++) {
|
|
|
|
+ let _isAll = true
|
|
|
|
+ for (let j = 0; j < _goodsNameList.length; j++) {
|
|
|
|
+ if (response[i].constValue != _goodsNameList[j]) {
|
|
|
|
+ if (j == _goodsNameList.length - 1 && _isAll) {
|
|
|
|
+ _list.push(response[i])
|
|
}
|
|
}
|
|
|
|
+ } else {
|
|
|
|
+ _isAll = false
|
|
}
|
|
}
|
|
- this.goodnameList = _list
|
|
|
|
- this.selectVal = _list[0].constValue
|
|
|
|
- })
|
|
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ this.goodnameList = _list
|
|
|
|
+ this.selectVal = _list[0].constValue
|
|
|
|
+ })
|
|
|
|
+ switch (this.$route.query.type) {
|
|
|
|
+ case "新增":
|
|
|
|
+ this.submitName = "提交"
|
|
|
|
+ this.baseInfoForm.warehouseId = this.$route.query.warehouseId
|
|
|
|
+ this.baseInfoForm.warehouseName = this.$route.query.warehouseName
|
|
|
|
+ this.baseInfoForm.compId = this.$route.query.compId
|
|
|
|
+ this.type = this.$route.query.type
|
|
|
|
+ console.log(this.baseInfoForm)
|
|
|
|
+
|
|
|
|
+ this.priceList[0].detailList[0].water = this.baseInfoForm.waterMin
|
|
|
|
+ this.priceList[0].detailList[2].water = this.baseInfoForm.waterBase
|
|
|
|
+ this.priceList[0].detailList[4].water = this.baseInfoForm.waterMax
|
|
|
|
+ this.isEdit = true
|
|
|
|
+ this.priceList = [{
|
|
|
|
+ index: 0,
|
|
|
|
+ checkList: [],
|
|
|
|
+ basicUnitPrice: "",
|
|
|
|
+ detailList: [{
|
|
|
|
+ type: 1,
|
|
|
|
+ name: "干粮",
|
|
|
|
+ water: "",
|
|
|
|
+ isWrite: false
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ type: 4,
|
|
|
|
+ jfprice: ""
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ type: 2,
|
|
|
|
+ name: "基准",
|
|
|
|
+ water: '',
|
|
|
|
+ isWrite: false
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ type: 4,
|
|
|
|
+ jfprice: ""
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ type: 3,
|
|
|
|
+ name: "上限",
|
|
|
|
+ water: '',
|
|
|
|
+ isWrite: false
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ }]
|
|
break;
|
|
break;
|
|
case "编辑":
|
|
case "编辑":
|
|
|
|
+ // this.isEdit = false;
|
|
|
|
+ this.submitName = "提交"
|
|
|
|
+ this.getData()
|
|
break;
|
|
break;
|
|
case "查看":
|
|
case "查看":
|
|
- this.baseInfoForm =JSON.parse(this.$route.query.data)
|
|
|
|
- purchasePriceLook({id:this.baseInfoForm.id}).toPromise().then((response) => {
|
|
|
|
- console.log(response)
|
|
|
|
- // this.tableData = response.records
|
|
|
|
- // this.getList()
|
|
|
|
- })
|
|
|
|
|
|
+ this.isEdit = false;
|
|
|
|
+ this.submitName = "计算"
|
|
|
|
+ this.getData()
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|
|
break
|
|
break
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- mounted() {},
|
|
|
|
|
|
+ mounted() {
|
|
|
|
+ debugger
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 查看/编辑获取数据
|
|
|
|
+ getData() {
|
|
|
|
+ this.type = this.$route.query.type
|
|
|
|
+ this.baseInfoForm = JSON.parse(this.$route.query.data)
|
|
|
|
+ purchasePriceLook({
|
|
|
|
+ id: this.baseInfoForm.id
|
|
|
|
+ }).toPromise().then((response) => {
|
|
|
|
+ console.log(response)
|
|
|
|
+ this.baseInfoForm = response
|
|
|
|
+ //构造查看priceList数据
|
|
|
|
+ this.priceList = []
|
|
|
|
+ this.makeLookPriceList()
|
|
|
|
+ })
|
|
|
|
+ },
|
|
goodsChange(e) {
|
|
goodsChange(e) {
|
|
console.log(e)
|
|
console.log(e)
|
|
},
|
|
},
|
|
@@ -331,6 +369,7 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ // 设置表格颜色
|
|
tableRowClassName({
|
|
tableRowClassName({
|
|
row,
|
|
row,
|
|
rowIndex
|
|
rowIndex
|
|
@@ -410,6 +449,7 @@
|
|
} catch (e) {}
|
|
} catch (e) {}
|
|
return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m)
|
|
return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m)
|
|
},
|
|
},
|
|
|
|
+ //保留两位小数
|
|
keepTwoDecimal(num) {
|
|
keepTwoDecimal(num) {
|
|
var result = parseFloat(num);
|
|
var result = parseFloat(num);
|
|
if (isNaN(result)) {
|
|
if (isNaN(result)) {
|
|
@@ -419,9 +459,9 @@
|
|
result = Math.round(result * 100) / 100;
|
|
result = Math.round(result * 100) / 100;
|
|
return result;
|
|
return result;
|
|
},
|
|
},
|
|
|
|
+ // 添加粮价设置
|
|
newSetPrice() {
|
|
newSetPrice() {
|
|
let _newObj = {
|
|
let _newObj = {
|
|
- unitPrice: '',
|
|
|
|
index: 0,
|
|
index: 0,
|
|
checkList: [],
|
|
checkList: [],
|
|
detailList: [{
|
|
detailList: [{
|
|
@@ -456,6 +496,7 @@
|
|
},
|
|
},
|
|
// 删除价格组
|
|
// 删除价格组
|
|
delSetPrice(item, index) {
|
|
delSetPrice(item, index) {
|
|
|
|
+ let that = this
|
|
this.$confirm(
|
|
this.$confirm(
|
|
'确认删除本组设置?',
|
|
'确认删除本组设置?',
|
|
'提示', {
|
|
'提示', {
|
|
@@ -465,13 +506,19 @@
|
|
}
|
|
}
|
|
)
|
|
)
|
|
.then(() => {
|
|
.then(() => {
|
|
- this.priceList.splice(index, 1)
|
|
|
|
|
|
+ if (that.priceList.length == 1) {
|
|
|
|
+ that.$message({
|
|
|
|
+ message: '至少保留一组粮价设置',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ that.priceList.splice(index, 1)
|
|
|
|
+ }
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
return false
|
|
return false
|
|
})
|
|
})
|
|
},
|
|
},
|
|
-
|
|
|
|
//构造新增价格数据
|
|
//构造新增价格数据
|
|
makePriceDataList() {
|
|
makePriceDataList() {
|
|
for (let k = 0; k < this.priceList.length; k++) {
|
|
for (let k = 0; k < this.priceList.length; k++) {
|
|
@@ -508,26 +555,162 @@
|
|
_detailsObj.point += ',' + this.priceList[k].detailList[i].water
|
|
_detailsObj.point += ',' + this.priceList[k].detailList[i].water
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ debugger
|
|
this.baseInfoForm.details.push(_detailsObj)
|
|
this.baseInfoForm.details.push(_detailsObj)
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
-
|
|
|
|
//打印
|
|
//打印
|
|
- print() {
|
|
|
|
|
|
+ print() {},
|
|
|
|
+ validate() {
|
|
|
|
+ let that = this
|
|
|
|
+ function _baseWaterValidate(min, max, saveNum, point, type) {
|
|
|
|
+ let _val1 = parseFloat(that.baseInfoForm.waterBase)
|
|
|
|
+ let _pointVal1 = _val1.toString().split(".")[1]
|
|
|
|
+ let _tobeVal1 = _val1 % saveNum
|
|
|
|
+ if (type == "waterBase") {
|
|
|
|
+ if (_val1 < max && _val1 > min && _pointVal1 < point && _tobeVal1 == 0) {
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (type == "deductWeight") {
|
|
|
|
+ if (_val1 < max && _val1 > min && _pointVal1 < point) {
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (type == "saleLimit") {
|
|
|
|
|
|
|
|
+ if (_val1 < max && _val1 > min && Number.isInteger(this.baseInfoForm.saleLimit)) {
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
|
|
+ if (_baseWaterValidate(1, 100, 1, 0.5, "waterBase") || this.baseInfoForm.waterBase == '') {
|
|
|
|
+ if (_baseWaterValidate(1, 100, 1, 0.5, "waterBase")) {
|
|
|
|
+ that.$message.error('水分基准输入错误,最多保留1位小数,基准水分须可被0.5整除!');
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error('基准水分不能为空!');
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ if (_baseWaterValidate(0, 2, 2, '', 'deductWeight') || this.baseInfoForm.deductWeight == '') {
|
|
|
|
+ if (_baseWaterValidate(0, 2, 2, '', 'deductWeight')) {
|
|
|
|
+ that.$message.error('扣重比输入错误!');
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error('扣重比不能为空!');
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ if (_baseWaterValidate(0, 1000, 4, '', 'deductWeight') || this.baseInfoForm.dryGrainPrice == '') {
|
|
|
|
+ if (_baseWaterValidate(0, 1000, 4, '', 'deductWeight')) {
|
|
|
|
+ that.$message.error('干粮收购价输入错误!');
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error('干粮收购价格不能为空!');
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (_baseWaterValidate(1, 100, 1, 0.5, "waterBase") || this.baseInfoForm.waterMin == '') {
|
|
|
|
+ if (_baseWaterValidate(1, 100, 1, 0.5, "waterBase")) {
|
|
|
|
+ that.$message.error('干粮水分输入错误!');
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error('干粮水分不能为空!');
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ if (_baseWaterValidate(1, 100, 1, 0.5, "waterBase") || this.baseInfoForm.waterMax == '') {
|
|
|
|
+ if (_baseWaterValidate(1, 100, 1, 0.5, "waterBase")) {
|
|
|
|
+ that.$message.error('水分上限输入错误!');
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error('水分上限不能为空!');
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ if (_baseWaterValidate(100, 100000, '', '', "saleLimit") || this.baseInfoForm.saleLimit == '') {
|
|
|
|
+ if (_baseWaterValidate(100, 100000, '', '', "saleLimit")) {
|
|
|
|
+ that.$message.error('销售上限输入错误!');
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error('销售上限不能为空!');
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ console.log(this.priceList.length)
|
|
|
|
+ if (this.priceList.length != 4) {
|
|
|
|
+ this.$message.error('粮价设置为4个等级!');
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ for (let i = 0; i < this.priceList.length; i++) {
|
|
|
|
+ let _item = this.priceList[i]
|
|
|
|
+ if (_baseWaterValidate(0, 50, 2, '', "deductWeight") || _item.basicUnitPrice == '') {
|
|
|
|
+ if (_baseWaterValidate(0, 50, 2, '', "deductWeight")) {
|
|
|
|
+ that.$message.error('基准单价输入错误!');
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error('基准单价不能为空!');
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ if (_item.checkList.length == 0) {
|
|
|
|
+ this.$message.error('等级不能为空!');
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ for (let j = 0; j < _item.detailList.length; j++) {
|
|
|
|
+ let _item1 = _item.detailList[j]
|
|
|
|
+ if (_item1.type == 4) {
|
|
|
|
+ if (_baseWaterValidate(0, 100, 3, '', 'deductWeight') || _item1.jfprice == "") {
|
|
|
|
+ if (_baseWaterValidate(0, 100, 3, '', 'deductWeight')) {
|
|
|
|
+ that.$message.error('降幅输入错误!');
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error('降幅价格不能为空!');
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (_baseWaterValidate(0, 100, 1, 0.5, "waterBase") || _item1.water == "") {
|
|
|
|
+ if (_baseWaterValidate(1, 100, 1, 0.5, "waterBase")) {
|
|
|
|
+ that.$message.error('分界值输入错误!');
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error('分界水分不能为空!');
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return true
|
|
},
|
|
},
|
|
// 提交
|
|
// 提交
|
|
submit() {
|
|
submit() {
|
|
- this.isCountShow = false
|
|
|
|
- this.makeTableList()
|
|
|
|
- this.makePriceDataList()
|
|
|
|
- this.baseInfoForm.goodsName = this.selectVal
|
|
|
|
- purchasePriceAdd(this.baseInfoForm).toPromise().then((response) => {
|
|
|
|
- console.log(response)
|
|
|
|
- // this.tableData = response.records
|
|
|
|
- })
|
|
|
|
|
|
+ debugger
|
|
|
|
+ let isValidate = this.validate()
|
|
|
|
+ if (isValidate) {
|
|
|
|
+ this.makeTableList()
|
|
|
|
+ this.makePriceDataList()
|
|
|
|
+ this.baseInfoForm.goodsName = this.selectVal
|
|
|
|
+ switch (this.$route.query.type) {
|
|
|
|
+ case "查看":
|
|
|
|
+ this.isCountShow = false;
|
|
|
|
+ break;
|
|
|
|
+ case "新增":
|
|
|
|
+ purchasePriceAdd(this.baseInfoForm).toPromise().then((response) => {
|
|
|
|
+ console.log(response)
|
|
|
|
+ // this.tableData = response.records
|
|
|
|
+
|
|
|
|
+ this.isCountShow = false
|
|
|
|
+ })
|
|
|
|
+ break;
|
|
|
|
+ case "编辑":
|
|
|
|
+ purchasePriceEdit(this.baseInfoForm).toPromise().then((response) => {
|
|
|
|
+ console.log(response)
|
|
|
|
+ // this.tableData = response.records
|
|
|
|
+ this.isCountShow = false
|
|
|
|
+ })
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
+ // 关闭
|
|
closeCount() {
|
|
closeCount() {
|
|
this.isCountShow = true
|
|
this.isCountShow = true
|
|
this.splitPriceList = []
|
|
this.splitPriceList = []
|
|
@@ -535,23 +718,15 @@
|
|
name: 'acquisitionManagement',
|
|
name: 'acquisitionManagement',
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- //处理表格数据
|
|
|
|
|
|
+ //处理价格表格数据
|
|
makeTableList() {
|
|
makeTableList() {
|
|
- // this.tableData
|
|
|
|
- //水分下限
|
|
|
|
- // this.baseInfoForm.waterMin
|
|
|
|
- // 水分上限
|
|
|
|
- // this.baseInfoForm.waterMax
|
|
|
|
- // price1
|
|
|
|
-
|
|
|
|
// 获取等级对应分界钱数
|
|
// 获取等级对应分界钱数
|
|
this.getSplitPrice()
|
|
this.getSplitPrice()
|
|
- // 分界价钱数据
|
|
|
|
- // this.splitPriceList
|
|
|
|
|
|
+ // 构造表格等差数列
|
|
let _list = []
|
|
let _list = []
|
|
let _obj = {}
|
|
let _obj = {}
|
|
let _waterMin = parseFloat(this.baseInfoForm.waterMin)
|
|
let _waterMin = parseFloat(this.baseInfoForm.waterMin)
|
|
- let _waterMax = parseFloat(this.baseInfoForm.waterMax)
|
|
|
|
|
|
+ let _waterMax = this.baseInfoForm.waterMax
|
|
let _count = (_waterMax - _waterMin) / 0.5 + 1
|
|
let _count = (_waterMax - _waterMin) / 0.5 + 1
|
|
for (let i = 0; i < _count; i++) {
|
|
for (let i = 0; i < _count; i++) {
|
|
if (i == 0) {
|
|
if (i == 0) {
|
|
@@ -562,7 +737,7 @@
|
|
price1: priceList[0],
|
|
price1: priceList[0],
|
|
price2: priceList[1],
|
|
price2: priceList[1],
|
|
price3: priceList[2],
|
|
price3: priceList[2],
|
|
- priceOther: priceList[3],
|
|
|
|
|
|
+ price4: priceList[3],
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
_waterMin += 0.5
|
|
_waterMin += 0.5
|
|
@@ -573,23 +748,21 @@
|
|
price1: priceList[0],
|
|
price1: priceList[0],
|
|
price2: priceList[1],
|
|
price2: priceList[1],
|
|
price3: priceList[2],
|
|
price3: priceList[2],
|
|
- priceOther: priceList[3],
|
|
|
|
|
|
+ price4: priceList[3],
|
|
}
|
|
}
|
|
}
|
|
}
|
|
_list.push(_obj)
|
|
_list.push(_obj)
|
|
- this.baseInfoForm.detailPrints.push(_obj)
|
|
|
|
}
|
|
}
|
|
this.tableData = _list
|
|
this.tableData = _list
|
|
},
|
|
},
|
|
- // 获取分界价格数据
|
|
|
|
|
|
+ // 获取分界价格数据,构造分界价格区间数据
|
|
getSplitPrice() {
|
|
getSplitPrice() {
|
|
-
|
|
|
|
let _priceList = this.priceList
|
|
let _priceList = this.priceList
|
|
for (let i = 0; i < _priceList.length; i++) {
|
|
for (let i = 0; i < _priceList.length; i++) {
|
|
for (let k = 0; k < _priceList[i].checkList.length; k++) {
|
|
for (let k = 0; k < _priceList[i].checkList.length; k++) {
|
|
let _obj = {}
|
|
let _obj = {}
|
|
_obj.level = _priceList[i].checkList[k]
|
|
_obj.level = _priceList[i].checkList[k]
|
|
- _obj.basicUnitPrice = parseFloat(_priceList[i].basicUnitPrice)
|
|
|
|
|
|
+ _obj.basicUnitPrice = _priceList[i].basicUnitPrice
|
|
_obj.priceList = []
|
|
_obj.priceList = []
|
|
_obj.haveSplit = false
|
|
_obj.haveSplit = false
|
|
for (let j = 0; j < _priceList[i].detailList.length; j++) {
|
|
for (let j = 0; j < _priceList[i].detailList.length; j++) {
|
|
@@ -598,6 +771,7 @@
|
|
}
|
|
}
|
|
if (_priceList[i].detailList[j].type != 4 && _priceList[i].detailList[j].type != 3) {
|
|
if (_priceList[i].detailList[j].type != 4 && _priceList[i].detailList[j].type != 3) {
|
|
_obj.priceList.push({
|
|
_obj.priceList.push({
|
|
|
|
+ index: j,
|
|
type: parseFloat(_priceList[i].detailList[j].type),
|
|
type: parseFloat(_priceList[i].detailList[j].type),
|
|
priceStart: parseFloat(_priceList[i].detailList[j].water),
|
|
priceStart: parseFloat(_priceList[i].detailList[j].water),
|
|
priceEnd: parseFloat(_priceList[i].detailList[j + 2].water),
|
|
priceEnd: parseFloat(_priceList[i].detailList[j + 2].water),
|
|
@@ -609,13 +783,56 @@
|
|
}
|
|
}
|
|
console.log(_obj)
|
|
console.log(_obj)
|
|
this.splitPriceList.push(_obj)
|
|
this.splitPriceList.push(_obj)
|
|
-
|
|
|
|
console.log(this.splitPriceList)
|
|
console.log(this.splitPriceList)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- getOtherPrice(list) {
|
|
|
|
-
|
|
|
|
|
|
+ // 获取当前价格左右价格区间数据
|
|
|
|
+ getOtherPrice(list, nowList, direction) {
|
|
|
|
+ //判断当前价格左右各有几个分界,返回当前除当前分界其他分界价格和
|
|
|
|
+ let _left = []
|
|
|
|
+ let _right = []
|
|
|
|
+ let _leftTotalPrice = 0
|
|
|
|
+ let _rightTotalPrice = 0
|
|
|
|
+ //当前分界左边价格
|
|
|
|
+ if (direction == "leftBasic") {
|
|
|
|
+ for (let i = 0; i < list.length; i++) {
|
|
|
|
+ if (nowList.index <= list[i].index && list[i].priceStart < 30) {
|
|
|
|
+ _right.push(list[i])
|
|
|
|
+ } else if (list[i].priceStart < 30) {
|
|
|
|
+ _left.push(list[i])
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (_left.length > 0) {
|
|
|
|
+ for (let j = 0; j < _left.length; j++) {
|
|
|
|
+ _leftTotalPrice += _left[j].totalPrice
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (_right.length > 0) {
|
|
|
|
+ for (let k = 0; k < _right.length; k++) {
|
|
|
|
+ _rightTotalPrice += _right[k].totalPrice
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ for (let m = 0; m < list.length; m++) {
|
|
|
|
+ if (nowList.index <= list[m].index && list[m].priceStart > 30) {
|
|
|
|
+ _left.push(list[m])
|
|
|
|
+ } else if (list[m].priceStart > 30) {
|
|
|
|
+ _right.push(list[m])
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (_left.length > 0) {
|
|
|
|
+ for (let j = 0; j < _left.length; j++) {
|
|
|
|
+ _leftTotalPrice += _left[j].totalPrice
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (_right.length > 0) {
|
|
|
|
+ for (let k = 0; k < _right.length; k++) {
|
|
|
|
+ _rightTotalPrice += _right[k].totalPrice
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return _leftTotalPrice + _rightTotalPrice
|
|
},
|
|
},
|
|
// 计算价格
|
|
// 计算价格
|
|
calculatePrice(_waterMin) {
|
|
calculatePrice(_waterMin) {
|
|
@@ -631,6 +848,7 @@
|
|
for (let k = 0; k < _list.length; k++) {
|
|
for (let k = 0; k < _list.length; k++) {
|
|
//基准左边
|
|
//基准左边
|
|
if (_waterMin < parseFloat(this.baseInfoForm.waterBase)) {
|
|
if (_waterMin < parseFloat(this.baseInfoForm.waterBase)) {
|
|
|
|
+ // 未设置分界
|
|
if (_waterMin >= _list[k].priceStart && _waterMin < _list[k].priceEnd && !this.splitPriceList[i]
|
|
if (_waterMin >= _list[k].priceStart && _waterMin < _list[k].priceEnd && !this.splitPriceList[i]
|
|
.haveSplit) {
|
|
.haveSplit) {
|
|
console.log(basePrice)
|
|
console.log(basePrice)
|
|
@@ -638,56 +856,105 @@
|
|
console.log(this.keepTwoDecimal(((parseFloat(this.baseInfoForm.waterBase) - _waterMin) / 0.5) * _list[k]
|
|
console.log(this.keepTwoDecimal(((parseFloat(this.baseInfoForm.waterBase) - _waterMin) / 0.5) * _list[k]
|
|
.betweenPrice))
|
|
.betweenPrice))
|
|
_price = basePrice + (parseFloat(this.baseInfoForm.waterBase) - _waterMin) / 0.5 * _list[k]
|
|
_price = basePrice + (parseFloat(this.baseInfoForm.waterBase) - _waterMin) / 0.5 * _list[k]
|
|
- .betweenPrice;
|
|
|
|
|
|
+ .betweenPrice;
|
|
console.log(_price)
|
|
console.log(_price)
|
|
prcieList.push(this.keepTwoDecimal(_price))
|
|
prcieList.push(this.keepTwoDecimal(_price))
|
|
} else if (_waterMin >= _list[k].priceStart && _waterMin < _list[k].priceEnd) {
|
|
} else if (_waterMin >= _list[k].priceStart && _waterMin < _list[k].priceEnd) {
|
|
- // 当前段价格+其他段价格
|
|
|
|
- let _otherPice = this.getOtherPrice(_list[k])
|
|
|
|
|
|
+ // 当前区间段价格+其他区间段价格
|
|
|
|
+ let _otherPice = this.getOtherPrice(_list, _list[k], "leftBasic")
|
|
let _price1 = (_list[k].priceEnd - _waterMin) / 0.5 * _list[k].betweenPrice + _otherPice;
|
|
let _price1 = (_list[k].priceEnd - _waterMin) / 0.5 * _list[k].betweenPrice + _otherPice;
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- // _price+=_list[k].totalPrice
|
|
|
|
|
|
+ prcieList.push(basePrice + _price1)
|
|
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
//基准值
|
|
//基准值
|
|
else if (_waterMin == parseFloat(this.baseInfoForm.waterBase)) {
|
|
else if (_waterMin == parseFloat(this.baseInfoForm.waterBase)) {
|
|
- prcieList.push(this.keepTwoDecimal(basePrice))
|
|
|
|
|
|
+ prcieList.push(this.keepTwoDecimal(basePrice))
|
|
}
|
|
}
|
|
// 基准右边
|
|
// 基准右边
|
|
else {
|
|
else {
|
|
-
|
|
|
|
- if (_waterMin > _list[k].priceStart && _waterMin <=_list[k].priceEnd && !this.splitPriceList[i]
|
|
|
|
|
|
+ if (_waterMin > _list[k].priceStart && _waterMin <= _list[k].priceEnd && !this.splitPriceList[i]
|
|
.haveSplit) {
|
|
.haveSplit) {
|
|
- _price = basePrice - (parseFloat(this.baseInfoForm.waterBase) - _waterMin) / 0.5 * _list[k]
|
|
|
|
- .betweenPrice;
|
|
|
|
|
|
+ _price = basePrice - (_waterMin - parseFloat(this.baseInfoForm.waterBase)) / 0.5 * _list[k]
|
|
|
|
+ .betweenPrice;
|
|
console.log(_price)
|
|
console.log(_price)
|
|
prcieList.push(this.keepTwoDecimal(_price))
|
|
prcieList.push(this.keepTwoDecimal(_price))
|
|
- } else if (_waterMin >= _list[k].priceStart && _waterMin < _list[k].priceEnd) {
|
|
|
|
|
|
+ } else if (_waterMin > _list[k].priceStart && _waterMin <= _list[k].priceEnd) {
|
|
// 当前段价格+其他段价格
|
|
// 当前段价格+其他段价格
|
|
- let _otherPice = this.getOtherPrice(_list[k])
|
|
|
|
- let _price1 = (_list[k].priceEnd - _waterMin) / 0.5 * _list[k].betweenPrice + _otherPice;
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- // _price+=_list[k].totalPrice
|
|
|
|
-
|
|
|
|
|
|
+ let _otherPice2 = this.getOtherPrice(_list, _list[k], "rightBasic")
|
|
|
|
+ let _price2 = (_waterMin - _list[k].priceEnd) / 0.5 * _list[k].betweenPrice + _otherPice2;
|
|
|
|
+ prcieList.push(basePrice - _price2)
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return prcieList
|
|
return prcieList
|
|
|
|
+ },
|
|
|
|
+ // 构造查看粮价设置数据
|
|
|
|
+ makeLookPriceList() {
|
|
|
|
+ debugger
|
|
|
|
+ this.selectVal = this.baseInfoForm.goodsName
|
|
|
|
+ let _priceList = this.baseInfoForm.details
|
|
|
|
+ let _checkList = []
|
|
|
|
+ let _detailList = []
|
|
|
|
+ let _pointPrice = []
|
|
|
|
+ let _basePrice = 0
|
|
|
|
+ for (let i = 0; i < _priceList.length; i++) {
|
|
|
|
+ _checkList = _priceList[i].level.split(',')
|
|
|
|
+ _detailList = _priceList[i].point.split(',')
|
|
|
|
+ _pointPrice = _priceList[i].pointPrice.split(',')
|
|
|
|
+ let _newDetailList = []
|
|
|
|
+ for (let k = 0; k < _detailList.length; k++) {
|
|
|
|
+ let _obj = {}
|
|
|
|
+ if (_detailList[k] == this.baseInfoForm.waterMin) {
|
|
|
|
+ _obj = {
|
|
|
|
+ type: 1,
|
|
|
|
+ name: "干粮",
|
|
|
|
+ water: _detailList[k],
|
|
|
|
+ isWrite: false
|
|
|
|
+ }
|
|
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ } else if (_detailList[k] == this.baseInfoForm.waterMax) {
|
|
|
|
+ _obj = {
|
|
|
|
+ type: 3,
|
|
|
|
+ name: "上限",
|
|
|
|
+ water: _detailList[k],
|
|
|
|
+ isWrite: false
|
|
|
|
+ }
|
|
|
|
+ } else if (_detailList[k] == this.baseInfoForm.waterBase) {
|
|
|
|
+ _obj = {
|
|
|
|
+ type: 2,
|
|
|
|
+ name: "基准",
|
|
|
|
+ water: _detailList[k],
|
|
|
|
+ isWrite: false
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ _obj = {
|
|
|
|
+ name: "分界",
|
|
|
|
+ water: _detailList[k],
|
|
|
|
+ type: 5,
|
|
|
|
+ index: k,
|
|
|
|
+ isWrite: false
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ }
|
|
|
|
+ _newDetailList.push(_obj)
|
|
|
|
+ if (k != _detailList.length - 1) {
|
|
|
|
+ _newDetailList.push({
|
|
|
|
+ type: 4,
|
|
|
|
+ jfprice: _pointPrice[k]
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ let _obj = {
|
|
|
|
+ basicUnitPrice: _priceList[i].basePrice,
|
|
|
|
+ index: i,
|
|
|
|
+ checkList: _checkList,
|
|
|
|
+ detailList: _newDetailList
|
|
|
|
+ }
|
|
|
|
+ this.priceList.push(_obj)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@@ -859,9 +1126,14 @@
|
|
background: #5473E8;
|
|
background: #5473E8;
|
|
border-radius: 2px;
|
|
border-radius: 2px;
|
|
color: white;
|
|
color: white;
|
|
- display: inline-block;
|
|
|
|
- text-align: center;
|
|
|
|
- line-height: 16px;
|
|
|
|
|
|
+ background: #5473E8;
|
|
|
|
+ border-radius: 2px;
|
|
|
|
+ color: white;
|
|
|
|
+ padding: 0 !important;
|
|
|
|
+ display: inline-flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ align-items: center;
|
|
|
|
+ font-size: 14px;
|
|
}
|
|
}
|
|
|
|
|
|
.reduce {
|
|
.reduce {
|