|
|
@@ -91,6 +91,40 @@
|
|
|
<p v-if="unManage == 0" class="isTableMust">
|
|
|
<van-icon name="info-o" /> 请根据本店实际经营的竞品产品,反馈价格信息!
|
|
|
</p>
|
|
|
+ <el-table
|
|
|
+ :data="competitortableData"
|
|
|
+ border
|
|
|
+ class="table-headermd"
|
|
|
+ style="width: 100%"
|
|
|
+ v-if="productTitles">
|
|
|
+ <el-table-column label="产品名称" prop="collectionName">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span class="tipTitle" @click="tipTitle(scope.row.collectionName)">
|
|
|
+ {{ scope.row.collectionName }}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="品类" prop="level1" />
|
|
|
+ <el-table-column label="档次" prop="grade" />
|
|
|
+ <el-table-column label="品牌" prop="brandName" />
|
|
|
+ <el-table-column label="规格" prop="spec" />
|
|
|
+ <el-table-column
|
|
|
+ v-for="(item, index) in productTitles"
|
|
|
+ :key="index"
|
|
|
+ :prop="item.titleValue">
|
|
|
+ <template slot="header">
|
|
|
+ <span>{{ item.titleName }}</span
|
|
|
+ ><span class="xing">*</span>
|
|
|
+ </template>
|
|
|
+ <template slot-scope="scope"
|
|
|
+ ><van-field
|
|
|
+ v-model="scope.row[item.titleValue]"
|
|
|
+ placeholder="请输入"
|
|
|
+ type="number"
|
|
|
+ @blur="inputblur(item.titleValue, scope.$index, '0')"
|
|
|
+ /></template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
<div v-if="unManage == 0" style="margin: 10px">
|
|
|
<van-checkbox v-model="checked" shape="square">全部不经营</van-checkbox>
|
|
|
</div>
|
|
|
@@ -2763,6 +2797,7 @@ export default {
|
|
|
stillDistribute: false,
|
|
|
productTitles: [],
|
|
|
inspectionType: '',
|
|
|
+ competitortableData: [],
|
|
|
};
|
|
|
},
|
|
|
beforeRouteLeave(to, from, next) {
|
|
|
@@ -3283,9 +3318,7 @@ export default {
|
|
|
console.log(params.id);
|
|
|
getCollectionInfos(params).then((res) => {
|
|
|
loading1.clear();
|
|
|
- // this.deviceCode = '';
|
|
|
- // this.putInCode = '';
|
|
|
- // this.equipmentCode = res.data.equipmentCode;
|
|
|
+ this.productTitles = res.data.productTitles || []; //产品类型表头数据
|
|
|
var checkUnManage = res.data;
|
|
|
var collectionItemLists = res.data.collectionItemList;
|
|
|
if (checkUnManage.checkUnManage != null && checkUnManage.checkUnManage != 'N') {
|
|
|
@@ -3294,8 +3327,6 @@ export default {
|
|
|
this.checked = false;
|
|
|
}
|
|
|
this.unManage = res.data.unManage;
|
|
|
- // this.deviceCode = res.data.deviceCode || ''; // 设备编号
|
|
|
- // this.putInCode = res.data.putInCode || ''; // 投放编号
|
|
|
// 调色机类型:buy-购买类调色机,place-放置类调色机 不显示设备编号和投放编号
|
|
|
if (this.inspectionType == 'buy') {
|
|
|
this.equipmentCode = this.putInCode || '';
|
|
|
@@ -3313,6 +3344,7 @@ export default {
|
|
|
this.processKey = false;
|
|
|
}
|
|
|
this.infoShow = res.data.isMust;
|
|
|
+ debugger;
|
|
|
if (this.$route.query.taskType == 1) {
|
|
|
for (var q = 0; q < collectionItemLists.length; q++) {
|
|
|
if (
|