From d3a7b64c6855523c1d4b4978df09eda788c0064c Mon Sep 17 00:00:00 2001 From: value <z1292839451@163.com> Date: 星期三, 24 四月 2024 18:20:41 +0800 Subject: [PATCH] 检验模板调整 --- src/components/view/b1-expenses.vue | 146 ++++++++++++++++++++++++------------------------ 1 files changed, 72 insertions(+), 74 deletions(-) diff --git a/src/components/view/b1-expenses.vue b/src/components/view/b1-expenses.vue index ebfbe7c..fd35c90 100644 --- a/src/components/view/b1-expenses.vue +++ b/src/components/view/b1-expenses.vue @@ -38,6 +38,10 @@ .el-form-item { margin-bottom: 16px; } + + >>>.el-table tbody tr:hover > td { + background-color: transparent !important; + } </style> <template> @@ -47,28 +51,29 @@ <el-row class="title"> <el-col :span="12" style="padding-left: 20px;">璐圭敤缁熻</el-col> <el-col :span="12" style="text-align: right;"> - <el-button size="small" type="primary">涓嬪崟</el-button> + <el-button size="small" type="primary">OA鎺ㄩ��</el-button> </el-col> </el-row> </div> <div class="search"> - <div class="search_thing"> - <div class="search_label">鏍峰搧鍚嶇О锛�</div> - <div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable - v-model="componentData.entity.sample" @keyup.enter.native="refreshTable()"></el-input></div> + <div class="search_thing"> + <div class="search_label">鏃堕棿鑼冨洿锛�</div> + <div class="search_input"> + <el-date-picker + v-model="dates" + type="datetimerange" + range-separator="鑷�" + format="yyyy-MM-dd HH:mm:ss" + start-placeholder="寮�濮嬫棩鏈�" + end-placeholder="缁撴潫鏃ユ湡" + size="small"> + </el-date-picker> + </div> </div> <div class="search_thing"> - <div class="search_label">鐘舵�侊細</div> - <div class="search_input"> - <el-select v-model="componentData.entity.status" placeholder="鍏ㄩ儴" size="small"> - <el-option - v-for="item in statusList" - :key="item.value" - :label="item.label" - :value="item.value"> - </el-option> - </el-select> - </div> + <div class="search_label">濮旀墭浜猴細</div> + <div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable + v-model="componentData.entity.name" @keyup.enter.native="refreshTable()"></el-input></div> </div> <div class="search_thing" style="padding-left: 30px;"> <el-button size="small" @click="refresh()">閲� 缃�</el-button> @@ -76,7 +81,7 @@ </div> </div> <div class="table"> - <ValueTable ref="ValueTable" :url="$api.insOrder.selectInsOrderParameter" :componentData="componentData" + <ValueTable ref="ValueTable" :url="$api.insOrder.costStatistics" :componentData="componentData" :key="upIndex" @handleWeave="handleWeave"/> </div> </div> @@ -102,68 +107,61 @@ return { componentData: { entity: { - entrustCode: null, - sample: null, - state: 1, + name: null, orderBy: { - field: 'id', + field: 'id,ins_sample_id', order: 'asc' } }, isIndex: true, showSelect: false, select: false, - do: [{ - id: 'handleWeave', - font: '鍦ㄧ嚎缂栧埗', - type: 'text', - method: 'handleWeave', - disabFun: (row, index) => { - return row.state != 1 - } - }, { - id: 'download', - font: '涓嬭浇', - type: 'text', - method: 'download', - disabFun: (row, index) => { - return row.state != 1 - } - }, { - id: 'handleUpload', - font: '涓婁紶', - type: 'text', - method: 'handleUpload', - disabFun: (row, index) => { - return row.state != 0 - } - }, { - id: 'handlRestore', - font: '杩樺師', - type: 'text', - method: 'handleRestore' - }, { - id: 'handleIssued', - font: '瀹℃牳', - type: 'text', - method: 'handleIssued', - disabFun: (row, index) => { - return row.state != 1 || row.sendTime != null - } - }, { - id: 'handleApprove', - font: '鎵瑰噯', - type: 'text', - method: 'handleApprove', - disabFun: (row, index) => { - return row.state != 1 || row.sendTime != null - } - }], - linkEvent:{ - entrustCode:{ - method:'selectAllByOne' - } - }, + highlight:false, + do: [], + linkEvent:{}, + spanConfig:{ + //鍚堝苟琛� + rows:[ + { + name:'createTime', + index:1 + }, + { + name:'entrustCode', + index:2 + }, + { + name:'company', + index:8 + }, + { + name:'name', + index:9 + }, + ], + // 鐗规畩鐨勫悎骞惰锛屾牴鎹甿ain鍜宺ows鐨刵ame鏉ュ悎骞� + special:{ + main:'insSampleId', + rows:[ + { + name:'sample', + index:3 + }, + { + name:'model', + index:4 + }, + { + name:'num', + index:5 + }, + { + name:'price', + index:6 + }, + ] + } + }, tagField: { type: { select: [{ @@ -190,8 +188,8 @@ }, entityCopy: {}, upIndex: 0, - statusList:[], - claimVisible:false + claimVisible:false, + dates: [] } }, mounted() { -- Gitblit v1.9.3