This commit is contained in:
xd 2024-05-20 16:00:32 +08:00
parent 4f1c94e861
commit 8d1508a618
1 changed files with 89 additions and 85 deletions

View File

@ -17,54 +17,57 @@
<splitpanes class="default-theme mt5" split="vertical"> <splitpanes class="default-theme mt5" split="vertical">
<pane :size="60"> <pane :size="60">
<el-card id="scroll" class="box-card scrollable" :style="{'overflow': 'auto','max-height': scrollableHeight,'height': scrollableHeight}"> <el-card id="scroll" class="box-card scrollable" :style="{'overflow': 'auto','max-height': scrollableHeight,'height': scrollableHeight}">
<el-form-item label="目录:" class="customer-form-item"> <div style="min-width: 700px">
<el-row> <el-form-item label="目录:" class="customer-form-item">
<el-col :span="6" v-for="(item, index) in modelList" :key="index"> <el-row>
<el-link :underline="false" class="block" :style="selectedModelTag==item.name_0?'color:#ffba00;font-weight: bold;':'color:#1890ff;'" @click="selModelTag(item)">{{item.name_0}}</el-link> <el-col :span="6" v-for="(item, index) in modelList" :key="index">
</el-col> <el-link :underline="false" class="block" :style="selectedModelTag==item.name_0?'color:#ffba00;font-weight: bold;':'color:#1890ff;'" @click="selModelTag(item)">{{item.name_0}}</el-link>
</el-row> </el-col>
</el-form-item> </el-row>
<el-form-item label="备注:" v-if="showRemarkList"> </el-form-item>
<el-col :span="24"> <el-form-item label="备注:" v-if="showRemarkList">
<div class="text-content"> <el-col :span="24">
<div v-if="expandedIndex === id"> <div class="text-content">
<el-button type="text" style="float: right" @click="toggleText(-1)">收起</el-button> <div v-if="expandedIndex === id">
<div v-for="(item, index) in remarkList" :key="index" style="line-height: 25px"> <el-button type="text" style="float: right" @click="toggleText(-1)">收起</el-button>
{{index+1}}{{item.remark_0}}
</div>
</div>
<div v-else>
<el-button type="text" style="float: right" @click="toggleText(id)">更多</el-button>
<div class="text-preview">
<div v-for="(item, index) in remarkList" :key="index" style="line-height: 25px"> <div v-for="(item, index) in remarkList" :key="index" style="line-height: 25px">
{{index+1}}{{item.remark_0}} {{index+1}}{{item.remark_0}}
</div> </div>
</div> </div>
<div v-else>
<el-button type="text" style="float: right" @click="toggleText(id)">更多</el-button>
<div class="text-preview">
<div v-for="(item, index) in remarkList" :key="index" style="line-height: 25px">
{{index+1}}{{item.remark_0}}
</div>
</div>
</div>
</div> </div>
</div> </el-col>
</el-col> </el-form-item>
</el-form-item> <el-form-item label="型号:" v-if="showXinghList" class="customer-form-item">
<el-form-item label="型号:" v-if="showXinghList" class="customer-form-item"> <el-col :span="6" v-for="(item, index) in xinghList" :key="index">
<el-col :span="6" v-for="(item, index) in xinghList" :key="index"> <el-link :underline="false" class="block" :style="selectedXinghTag==item.name_0?'color:#ffba00;font-weight: bold;':'color:#1890ff;'" @click="selXinghTag(item)">{{item.name_0}}</el-link>
<el-link :underline="false" class="block" :style="selectedXinghTag==item.name_0?'color:#ffba00;font-weight: bold;':'color:#1890ff;'" @click="selXinghTag(item)">{{item.name_0}}</el-link> </el-col>
</el-col> </el-form-item>
</el-form-item> <el-form-item label="子类:" v-if="showZlList" class="customer-form-item">
<el-form-item label="子类:" v-if="showZlList" class="customer-form-item"> <el-col :span="6" v-for="(item, index) in zlList" :key="index">
<el-col :span="6" v-for="(item, index) in zlList" :key="index"> <el-link :underline="false" class="block" size="mini" :style="selectedZlTag==item.name_0?'color:#ffba00;font-weight: bold;':'color:#1890ff;'" @click="selZlTag(item)">{{item.name_0}}</el-link>
<el-link :underline="false" class="block" size="mini" :style="selectedZlTag==item.name_0?'color:#ffba00;font-weight: bold;':'color:#1890ff;'" @click="selZlTag(item)">{{item.name_0}}</el-link> </el-col>
</el-col> </el-form-item>
</el-form-item> <el-form-item label="衍生型号:" v-if="showYsxhList" class="customer-form-item">
<el-form-item label="衍生型号:" v-if="showYsxhList" class="customer-form-item"> <el-col :span="6" v-for="(item, index) in ysxhList" :key="index">
<el-col :span="6" v-for="(item, index) in ysxhList" :key="index"> <el-link :underline="false" class="block" :style="selectedYsxhTag==item.name_0?'color:#ffba00;font-weight: bold;':'color:#1890ff;'" @click="selYsxhTag(item)">{{item.name_0}}</el-link>
<el-link :underline="false" class="block" :style="selectedYsxhTag==item.name_0?'color:#ffba00;font-weight: bold;':'color:#1890ff;'" @click="selYsxhTag(item)">{{item.name_0}}</el-link> </el-col>
</el-col> </el-form-item>
</el-form-item> <el-form-item label="截面:" v-if="showJmList" class="customer-form-item">
<el-form-item label="截面:" v-if="showJmList" class="customer-form-item"> <el-col :span="3" v-for="(item, index) in jmList" :key="index">
<el-col :span="3" v-for="(item, index) in jmList" :key="index"> <el-link :underline="false"class="block" :style="selectedJmTag==item.section?'color:#ffba00;font-weight: bold;':'color:#1890ff;'" @click="selJmTag(item)">{{item.section}}</el-link>
<el-link :underline="false"class="block" :style="selectedJmTag==item.section?'color:#ffba00;font-weight: bold;':'color:#1890ff;'" @click="selJmTag(item)">{{item.section}}</el-link> </el-col>
</el-col> </el-form-item>
</el-form-item> </div>
<el-table width="100%" v-loading="searchResultLoading" ref="searchResultTable" :data="searchResultPagedData" @row-dblclick="handleRowDblclick">
<el-table width="100%" style="min-width:800px" v-loading="searchResultLoading" ref="searchResultTable" :data="searchResultPagedData" @row-dblclick="handleRowDblclick">
<el-table-column label="版本uid" align="center" prop="uid_0" v-if="false"/> <el-table-column label="版本uid" align="center" prop="uid_0" v-if="false"/>
<el-table-column label="产品型号" align="center" prop="name_0"/> <el-table-column label="产品型号" align="center" prop="name_0"/>
<el-table-column label="型号" align="center" prop="model" v-if="false"/> <el-table-column label="型号" align="center" prop="model" v-if="false"/>
@ -86,6 +89,7 @@
</pane> </pane>
<pane> <pane>
<el-card id="scroll" class="box-card scrollable" :style="{'overflow': 'auto','max-height': scrollableHeight,'height': scrollableHeight}"> <el-card id="scroll" class="box-card scrollable" :style="{'overflow': 'auto','max-height': scrollableHeight,'height': scrollableHeight}">
<div style="min-width: 650px">
<el-row :gutter="8"> <el-row :gutter="8">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="询价单位" prop="quotCustomer" style="margin-bottom: 10px;"> <el-form-item label="询价单位" prop="quotCustomer" style="margin-bottom: 10px;">
@ -135,48 +139,48 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</div>
<el-table v-loading="selectedResultLoading" width="100%;" :height="tableHeight" :row-class-name="selectedResultIndex" style="margin-top:5px" ref="selectedResultTable" :data="selectedResultData"> <el-table v-loading="selectedResultLoading" width="100%;" :height="tableHeight" :row-class-name="selectedResultIndex" style="margin-top:5px" ref="selectedResultTable" :data="selectedResultData">
<el-table-column label="" align="center" prop="index" width="50"/> <el-table-column label="" align="center" prop="index" width="50"/>
<el-table-column label="操作" align="center" width="60" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" width="60" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="handleDeleteClick(scope.$index)">删除</el-button> <el-button type="text" @click="handleDeleteClick(scope.$index)">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="版本uid" align="center" prop="uid_0" v-if="false"/> <el-table-column label="版本uid" align="center" prop="uid_0" v-if="false"/>
<el-table-column label="产品型号" align="center" prop="name_0" width="200" /> <el-table-column label="产品型号" align="center" prop="name_0" width="200" />
<el-table-column label="型号" align="center" prop="name_1" v-if="false"/> <el-table-column label="型号" align="center" prop="name_1" v-if="false"/>
<el-table-column label="规格" align="center" prop="spec" v-if="false"/> <el-table-column label="规格" align="center" prop="spec" v-if="false"/>
<el-table-column label="电压" align="center" prop="voltage"/> <el-table-column label="电压" align="center" prop="voltage"/>
<el-table-column label="红本价(元)" align="center" prop="price"/> <el-table-column label="红本价(元)" align="center" prop="price"/>
<el-table-column label="单位" align="center" prop="stu" /> <el-table-column label="单位" align="center" prop="stu" />
<!--<el-table-column label="单位" align="center" prop="stu"> <!--<el-table-column label="单位" align="center" prop="stu">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select v-model="scope.row.stu" @change="selectTypeChange(scope.row)"> <el-select v-model="scope.row.stu" @change="selectTypeChange(scope.row)">
<el-option label="KM" value="KM"/> <el-option label="KM" value="KM"/>
<el-option label="M" value="M"/> <el-option label="M" value="M"/>
<el-option label="只" value="只"/> <el-option label="只" value="只"/>
</el-select> </el-select>
</template> </template>
</el-table-column>--> </el-table-column>-->
<el-table-column label="一次折扣" align="center" prop="per"> <el-table-column label="一次折扣" align="center" prop="per">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.per" @blur="changeRowData" @keyup.enter.native="changeRowData"/> <el-input v-model="scope.row.per" @blur="changeRowData" @keyup.enter.native="changeRowData"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="二次折扣" align="center" prop="per2"> <el-table-column label="二次折扣" align="center" prop="per2">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.per2" @blur="changeRowData" @keyup.enter.native="changeRowData"/> <el-input v-model="scope.row.per2" @blur="changeRowData" @keyup.enter.native="changeRowData"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="单价" align="center" prop="setPrice"/> <el-table-column label="单价" align="center" prop="setPrice"/>
<el-table-column label="数量调整" align="center" prop="count"> <el-table-column label="数量调整" align="center" prop="count">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.count" @blur="changeRowData" @keyup.enter.native="changeRowData"/> <el-input v-model="scope.row.count" @blur="changeRowData" @keyup.enter.native="changeRowData"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="总价" align="center" prop="allPrice"/> <el-table-column label="总价" align="center" prop="allPrice"/>
</el-table> </el-table>
<!--<pagination <!--<pagination
v-show="selectedResultTotal>0" v-show="selectedResultTotal>0"
:total="selectedResultTotal" :total="selectedResultTotal"