| | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div style="font-size: 16px;margin-top: 10px;">当前项目条数:<span style="font-weight: 700;">{{ OnenewpacName.length }}</span>条</div> |
| | | <div style="font-size: 16px;margin-top: 10px;">当前项目条数:<span style="font-weight: 700;">{{ |
| | | OnenewpacName.length |
| | | }}</span>条</div> |
| | | |
| | | </el-col> |
| | | <el-col :span="2" :xs="24"> |
| | |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="8" :xs="24"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" |
| | | <el-form :model="queryParams1" ref="queryForm" size="small" :inline="true" v-show="showSearch" |
| | | label-width="68px" @submit.native.prevent> |
| | | <el-form-item label="项目名称" prop="proName"> |
| | | <el-input ref="inputName" v-model="queryParams.proName" placeholder="请输入项目名称" clearable |
| | | <el-input ref="inputName" v-model="queryParams1.proName" placeholder="请输入项目名称" clearable |
| | | @keyup.enter.native="handleSearchFor" style="width: 140px" /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuerys">重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-table border v-loading="loading" :data="OnenewpacName" :row-class-name="tableRowClassName" height="478" :cell-style="{ padding: '5px 0' }"> |
| | | <el-table border v-loading="loading" :data="OnenewpacName" :row-class-name="tableRowClassName" height="478" |
| | | :cell-style="{ padding: '5px 0' }"> |
| | | <el-table-column label="项目名称" align="center" prop="proName" width="410"> |
| | | |
| | | <template slot-scope="scope"> |
| | |
| | | <el-table-column label="折扣" width="151"> |
| | | <template slot-scope="scope"> |
| | | <!-- 只输入纯数字折扣 @input="validateDiscount(scope.row)"--> |
| | | <el-input-number v-model="scope.row.limits" |
| | | @change="handleManualChange(scope.row)" placeholder="输入折扣" size="mini" type="number" :min="0" |
| | | :step="0.1" :precision="1" :max="10"> |
| | | <el-input-number v-model="scope.row.limits" @change="handleManualChange(scope.row)" placeholder="输入折扣" |
| | | size="mini" type="number" :min="0" :step="0.1" :precision="1" :max="10"> |
| | | </el-input-number> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div style="font-size: 16px;margin-top: 10px;">当前项目条数:<span style="font-weight: 700;">{{ OnenewpacName.length }}</span>条</div> |
| | | <div style="font-size: 16px;margin-top: 10px;">当前项目条数:<span style="font-weight: 700;">{{ |
| | | OnenewpacName.length |
| | | }}</span>条</div> |
| | | |
| | | </el-col> |
| | | <!-- <el-col :span="2" :xs="24"> |
| | |
| | | </div> |
| | | </el-col> --> |
| | | <el-col :span="7" :xs="24"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" |
| | | <el-form :model="queryParams1" ref="queryForm" size="small" :inline="true" v-show="showSearch" |
| | | label-width="68px" @submit.native.prevent> |
| | | <el-form-item label="项目名称" prop="proName"> |
| | | <el-input ref="inputName" v-model="queryParams.proName" placeholder="请输入项目名称" clearable |
| | | <el-input ref="inputName" v-model="queryParams1.proName" placeholder="请输入项目名称" clearable |
| | | @keyup.enter.native="handleSearchFor" style="width: 140px" /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuerys">重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-table border v-loading="loading" :data="OnenewpacName" :row-class-name="tableRowClassName" height="478" :cell-style="{ padding: '5px 0' }"> |
| | | <el-table border v-loading="loading" :data="OnenewpacName" :row-class-name="tableRowClassName" height="478" |
| | | :cell-style="{ padding: '5px 0' }"> |
| | | <el-table-column label="项目名称" align="center" prop="proName" width="170"> |
| | | |
| | | <template slot-scope="scope"> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div style="font-size: 16px;margin-top: 10px;">当前项目条数:<span style="font-weight: 700;">{{ OnenewpacName.length }}</span>条</div> |
| | | <div style="font-size: 16px;margin-top: 10px;">当前项目条数:<span style="font-weight: 700;">{{ |
| | | OnenewpacName.length |
| | | }}</span>条</div> |
| | | |
| | | </el-col> |
| | | <!-- <el-col :span="2" :xs="24"> |
| | |
| | | </div> |
| | | </el-col> --> |
| | | <el-col :span="8" :xs="24"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" |
| | | <el-form :model="queryParams1" ref="queryForm" size="small" :inline="true" v-show="showSearch" |
| | | label-width="68px" @submit.native.prevent> |
| | | <el-form-item label="项目名称" prop="proName"> |
| | | <el-input ref="inputName" v-model="queryParams.proName" placeholder="请输入项目名称" clearable |
| | | <el-input ref="inputName" v-model="queryParams1.proName" placeholder="请输入项目名称" clearable |
| | | @keyup.enter.native="handleSearchFor" style="width: 140px" /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | |
| | | opens: false, |
| | | openss: false, |
| | | openOne: false, |
| | | queryParams1: { |
| | | proName: null, |
| | | pym: null, |
| | | }, |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | |
| | | xianprice: null, |
| | | limits: null |
| | | }, |
| | | |
| | | |
| | | id: "", |
| | | // 表单参数 |
| | | form: {}, |
| | |
| | | } |
| | | }, |
| | | handleSearchFor() { |
| | | getProjectList(this.queryParams.proName).then((response) => { |
| | | |
| | | response.data.forEach((item, index) => { |
| | | item.newID = |
| | | (this.queryParams.pageNum - 1) * this.queryParams.pageSize + |
| | | index + |
| | | 1; |
| | | }); |
| | | // 判断是否为汉字 |
| | | const isChineseChar = (char) => /[\u4E00-\u9FA5]/.test(char) |
| | | if (isChineseChar(this.queryParams1.proName)) { |
| | | this.queryParams1.pym = null |
| | | getProjectList(this.queryParams1).then((response) => { |
| | | this.Treedata = response.data; |
| | | }); |
| | | } else { |
| | | this.queryParams1.pym = this.queryParams1.proName |
| | | this.queryParams1.proName = null |
| | | getProjectList(this.queryParams1).then((response) => { |
| | | this.Treedata = response.data; |
| | | }); |
| | | } |
| | | }, |
| | | // 单项数据获取 |
| | | handleChangesingle(selection) { |