@lambo-design/workflow-approve 1.0.0-beta.81 → 1.0.0-beta.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambo-design/workflow-approve",
3
- "version": "1.0.0-beta.81",
3
+ "version": "1.0.0-beta.83",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "lambo",
@@ -2,7 +2,7 @@
2
2
  <div>
3
3
  <Modal v-model="modalBoxShow" width="1217" title="选择办理人" @on-ok="onOk" @on-cancel="onCancel" loading>
4
4
  <div class="org-info">
5
- <div class="org-tree">
5
+ <div class="org-tree" v-if="!useTransferRangeUsers">
6
6
  <div class="tree-content">
7
7
  <div v-if="treeData.length === 0">暂无数据</div>
8
8
  <Tree v-else v-for="(item,index) in treeData" :key="index" :data="item" ref="treeBM"
@@ -12,7 +12,7 @@
12
12
  </div>
13
13
  <div class="org-detil">
14
14
  <LamboPagingTable ref="selection" :data="tableData" :dataUrl="dataUrl" :columns="tableColumn" :searchParams="tableSearchParams"
15
- @on-selection-change="onSelectionChange" :page-disable="useTransferRangeUsers">
15
+ @on-selection-change="onSelectionChange" :page-disable="useTransferRangeUsers" :showTableOption="!useTransferRangeUsers">
16
16
  <div slot="search" v-if="!useTransferRangeUsers">
17
17
  <Form :label-width="60">
18
18
  <Row>
@@ -157,28 +157,46 @@ export default {
157
157
  sortField: 'user_name',
158
158
  sortable: 'custom'
159
159
  })
160
+
161
+ if (self.useTransferRangeUsers){
162
+ columns.push({
163
+ title: '联系电话',
164
+ key: 'tel',
165
+ sortField: 'tel',
166
+ sortable: 'custom'
167
+ })
168
+ }
160
169
  columns.push({
161
170
  title: '部门名称',
162
171
  key: 'organName',
163
172
  sortField: 'organ_name',
164
173
  sortable: 'custom'
165
174
  })
166
- columns.push({
167
- title: '状态',
168
- key: 'status',
169
- sortable: 'custom',
170
- align: 'center',
171
- width: 100,
172
- render: function (h, param) {
173
- let state = param.row.status
174
- if (state === '00') {
175
- state = '正常'
176
- } else {
177
- state = '锁定'
175
+ if (self.useTransferRangeUsers){
176
+ columns.push({
177
+ title: '公司名称',
178
+ key: 'comName',
179
+ sortField: 'com_name',
180
+ sortable: 'custom'
181
+ })
182
+ } else {
183
+ columns.push({
184
+ title: '状态',
185
+ key: 'status',
186
+ sortable: 'custom',
187
+ align: 'center',
188
+ width: 100,
189
+ render: function (h, param) {
190
+ let state = param.row.status
191
+ if (state === '00') {
192
+ state = '正常'
193
+ } else {
194
+ state = '锁定'
195
+ }
196
+ return h('span', state)
178
197
  }
179
- return h('span', state)
180
- }
181
- })
198
+ })
199
+ }
182
200
 
183
201
  return columns
184
202
  }
@@ -192,6 +210,7 @@ export default {
192
210
  },
193
211
  clearData(){
194
212
  this.idSelectedArr = []
213
+ this.useTransferRangeUsers = false
195
214
  //清除表格数据
196
215
  this.doSearch()
197
216
  },
@@ -175,7 +175,7 @@
175
175
  v-else-if="item.auditResult === '82'">指定他人处理</span>
176
176
  <span style="color: #ed4014; font-size: 13px;"
177
177
  v-else-if="item.auditResult === '83'">会签减签</span>
178
- <span style="color: #19be6b; font-size: 13px;"
178
+ <span style="color: #ed4014; font-size: 13px;"
179
179
  v-else-if="item.auditResult === '90'">{{item.rejectName ? item.rejectName : '驳回'}}指定节点</span>
180
180
  </Col>
181
181
  <Col span="12" style="text-align: right">
@@ -270,7 +270,7 @@
270
270
  v-else-if="item.auditResult === '82'">指定他人处理</span>
271
271
  <span style="color: #ed4014; font-size: 13px;"
272
272
  v-else-if="item.auditResult === '83'">会签减签</span>
273
- <span style="color: #19be6b; font-size: 13px;"
273
+ <span style="color: #ed4014; font-size: 13px;"
274
274
  v-else-if="item.auditResult === '90'">{{item.rejectName ? item.rejectName : '驳回'}}指定节点</span>
275
275
  <span style="color: #ff9900; font-size: 13px;" v-else>{{ '待' + handleName }}</span>
276
276
  </Col>
@@ -724,7 +724,7 @@ export default {
724
724
  getTimelineDotColor(auditResult) {
725
725
  if (this.auditPassStatus.includes(auditResult)) {
726
726
  return '#005aff'; // 蓝色:通过状态
727
- } else if (auditResult === '40' || auditResult === '50') {
727
+ } else if (auditResult === '40' || auditResult === '50' ) {
728
728
  return '#ffcc66'; // 黄色:驳回状态
729
729
  } else if (auditResult === '60' || auditResult === '62' || auditResult === '83') {
730
730
  return '#ed4014'; // 红色:撤回/委派状态