|
@@ -2,18 +2,22 @@
|
|
|
<div id="pricePeriod">
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="商品标准价格" prop="standPrice">
|
|
|
- <el-input
|
|
|
+ <el-form-item label="商品标准价格(元)" prop="standPrice">
|
|
|
+ <el-input-number
|
|
|
+ :controls="false"
|
|
|
+ :min="0"
|
|
|
:style="`max-width:${inputWidth}px;`"
|
|
|
v-model="listData.standPrice"
|
|
|
- ><template slot="prepend">¥</template></el-input
|
|
|
+ ></el-input-number
|
|
|
>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="商品最低价格" prop="lowestPrice">
|
|
|
- <el-input
|
|
|
+ <el-form-item label="商品最低价格(元)" prop="lowestPrice">
|
|
|
+ <el-input-number
|
|
|
+ :controls="false"
|
|
|
+ :min="0"
|
|
|
:style="`max-width:${inputWidth}px;`"
|
|
|
v-model="listData.lowestPrice"
|
|
|
- ><template slot="prepend">¥</template></el-input
|
|
|
+ ></el-input-number
|
|
|
>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="状态" prop="status">
|
|
@@ -48,59 +52,64 @@
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label=" " prop="standPriceJson" label-width="0px">
|
|
|
- <h5 style="margin: 0px">
|
|
|
- 商品标准价格明细表:
|
|
|
- <el-button type="text" @click="addPriceInfo">添加</el-button>
|
|
|
- </h5>
|
|
|
- <el-table
|
|
|
- :data="listData.standPriceJson"
|
|
|
- show-summary
|
|
|
- :summary-method="totalPrice"
|
|
|
- border
|
|
|
- :header-cell-style="{
|
|
|
- 'background-color': '#eee',
|
|
|
- padding: '8px',
|
|
|
- color: '#333',
|
|
|
- }"
|
|
|
- >
|
|
|
- <el-table-column type="index" label="序号" width="80" align="center">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- v-for="(item, index) in tableSet"
|
|
|
- :width="item.width"
|
|
|
- :key="index"
|
|
|
- :label="item.label"
|
|
|
- align="center"
|
|
|
- :show-overflow-tooltip="true"
|
|
|
- header-align="center"
|
|
|
- :prop="item.prop"
|
|
|
+ <h5 style="margin: 0px">
|
|
|
+ 商品标准价格明细表:
|
|
|
+ <el-button type="text" @click="addPriceInfo">添加</el-button>
|
|
|
+ </h5>
|
|
|
+ <el-table
|
|
|
+ :data="listData.standPriceJson"
|
|
|
+ show-summary
|
|
|
+ :summary-method="totalPrice"
|
|
|
+ border
|
|
|
+ :header-cell-style="{
|
|
|
+ 'background-color': '#eee',
|
|
|
+ padding: '8px',
|
|
|
+ color: '#333',
|
|
|
+ }"
|
|
|
>
|
|
|
- <template slot-scope="scope">
|
|
|
- <span
|
|
|
- v-if="item.scope === 'editInfo'"
|
|
|
- @click="editPriceInfo(scope.row)"
|
|
|
- class="clickSpan"
|
|
|
- >{{ scope.row[item.prop] }}</span
|
|
|
- >
|
|
|
- <span v-else-if="item.scope === 'leftCh'"
|
|
|
- >{{ item.ch }}{{ scope.row[item.prop] }}</span
|
|
|
- >
|
|
|
- <span v-else>{{ scope.row[item.prop] }}</span></template
|
|
|
+ <el-table-column
|
|
|
+ type="index"
|
|
|
+ label="序号"
|
|
|
+ width="80"
|
|
|
+ align="center"
|
|
|
>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="操作"
|
|
|
- align="center"
|
|
|
- fixed="right"
|
|
|
- width="100px"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button type="text" @click="delPriceInfo(scope.row)"
|
|
|
- >删除</el-button
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ v-for="(item, index) in tableSet"
|
|
|
+ :width="item.width"
|
|
|
+ :key="index"
|
|
|
+ :label="item.label"
|
|
|
+ align="center"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
+ header-align="center"
|
|
|
+ :prop="item.prop"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span
|
|
|
+ v-if="item.scope === 'editInfo'"
|
|
|
+ @click="editPriceInfo(scope.row)"
|
|
|
+ class="clickSpan"
|
|
|
+ >{{ scope.row[item.prop] }}</span
|
|
|
+ >
|
|
|
+ <span v-else-if="item.scope === 'leftCh'"
|
|
|
+ >{{ item.ch }}{{ scope.row[item.prop] }}</span
|
|
|
+ >
|
|
|
+ <span v-else>{{ scope.row[item.prop] }}</span></template
|
|
|
>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="操作"
|
|
|
+ align="center"
|
|
|
+ fixed="right"
|
|
|
+ width="100px"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button type="text" @click="delPriceInfo(scope.row)"
|
|
|
+ >删除</el-button
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -228,8 +237,11 @@ export default {
|
|
|
computed: { ...mapGetters(["paysupply", "educationType", "paycost"]) },
|
|
|
methods: {
|
|
|
changeDataTime() {
|
|
|
- if(this.listData.studyTimeArrays && this.listData.studyTimeArrays.length){
|
|
|
- this.$bus.$emit("againValidate")
|
|
|
+ if (
|
|
|
+ this.listData.studyTimeArrays &&
|
|
|
+ this.listData.studyTimeArrays.length
|
|
|
+ ) {
|
|
|
+ this.$bus.$emit("againValidate");
|
|
|
}
|
|
|
},
|
|
|
openFunc() {
|