|
@@ -88,17 +88,17 @@
|
|
<div v-else>—</div>
|
|
<div v-else>—</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column class="table_td" prop="unitPrice" label="单价(元/吨)">
|
|
|
|
|
|
+ <el-table-column class="table_td" prop="salePrice" label="单价(元/吨)">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div v-if="scope.row.salePlanType == '现货'">
|
|
<div v-if="scope.row.salePlanType == '现货'">
|
|
<div class="inputChenge">
|
|
<div class="inputChenge">
|
|
<!-- readonly -->
|
|
<!-- readonly -->
|
|
<el-input
|
|
<el-input
|
|
- v-model="scope.row.unitPrice"
|
|
|
|
|
|
+ v-model="scope.row.salePrice"
|
|
v-if="scope.row.identification == 'true'"
|
|
v-if="scope.row.identification == 'true'"
|
|
></el-input>
|
|
></el-input>
|
|
<div v-if="scope.row.identification == 'false'" class="inputs">
|
|
<div v-if="scope.row.identification == 'false'" class="inputs">
|
|
- {{ scope.row.unitPrice }}
|
|
|
|
|
|
+ {{ scope.row.salePrice }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<img
|
|
<img
|
|
@@ -570,13 +570,13 @@ export default {
|
|
}
|
|
}
|
|
if(row.salePlanType == '现货'){
|
|
if(row.salePlanType == '现货'){
|
|
if (
|
|
if (
|
|
- row.unitPrice > 100000 ||
|
|
|
|
- row.unitPrice < 1 ||
|
|
|
|
- (String(row.unitPrice).indexOf(
|
|
|
|
|
|
+ row.salePrice > 100000 ||
|
|
|
|
+ row.salePrice < 1 ||
|
|
|
|
+ (String(row.salePrice).indexOf(
|
|
'.'
|
|
'.'
|
|
) != -1 &&
|
|
) != -1 &&
|
|
- String(row.unitPrice).length -
|
|
|
|
- (String(row.unitPrice).indexOf(
|
|
|
|
|
|
+ String(row.salePrice).length -
|
|
|
|
+ (String(row.salePrice).indexOf(
|
|
'.'
|
|
'.'
|
|
) +
|
|
) +
|
|
1) >
|
|
1) >
|
|
@@ -624,7 +624,7 @@ export default {
|
|
.then(() => {
|
|
.then(() => {
|
|
saleEditOther({
|
|
saleEditOther({
|
|
flag: 2,
|
|
flag: 2,
|
|
- unitPrice: row.unitPrice,
|
|
|
|
|
|
+ salePrice: row.salePrice,
|
|
id: row.id,
|
|
id: row.id,
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|