|
@@ -4,10 +4,10 @@
|
|
:get-list="getList"
|
|
:get-list="getList"
|
|
:table-attributes="tableAttributes"
|
|
:table-attributes="tableAttributes"
|
|
:table-events="tableEvents"
|
|
:table-events="tableEvents"
|
|
- :options-evens-group="optionsEvensGroup"
|
|
|
|
:moreParameters="moreParameters"
|
|
:moreParameters="moreParameters"
|
|
:column-parsing="columnParsing"
|
|
:column-parsing="columnParsing"
|
|
:exportList="exportList"
|
|
:exportList="exportList"
|
|
|
|
+ :optionsEvensGroup="optionsEvensGroup"
|
|
:operation="operation()"
|
|
:operation="operation()"
|
|
>
|
|
>
|
|
</template-page>
|
|
</template-page>
|
|
@@ -25,12 +25,11 @@ export default {
|
|
mixins: [import_mixin, operation_mixin],
|
|
mixins: [import_mixin, operation_mixin],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- // 事件组合
|
|
|
|
- optionsEvensGroup: [],
|
|
|
|
// 表格属性
|
|
// 表格属性
|
|
tableAttributes: {
|
|
tableAttributes: {
|
|
// 启用勾选列
|
|
// 启用勾选列
|
|
- selectColumn: false
|
|
|
|
|
|
+ selectColumn: true,
|
|
|
|
+ selectable: this.selectable
|
|
},
|
|
},
|
|
// 表格事件
|
|
// 表格事件
|
|
tableEvents: {
|
|
tableEvents: {
|
|
@@ -46,19 +45,66 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
|
|
+ optionsEvensGroup() {
|
|
|
|
+ return [
|
|
|
|
+ [
|
|
|
|
+ [
|
|
|
|
+ this.optionsEvensAuth('bulkSettlement', {
|
|
|
|
+ click: () => {
|
|
|
|
+ if (this.recordSelected.length === 0) {
|
|
|
|
+ this.$message.warning('请勾选工单')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ recycSettleBatchSettle(this.recordSelected.map(item => item.id)).then(res => {
|
|
|
|
+ this.$message({ type: 'success', message: `成功!` })
|
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ ]
|
|
|
|
+ ]
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ //bulkSettlement
|
|
// 更多参数
|
|
// 更多参数
|
|
moreParameters() {
|
|
moreParameters() {
|
|
- return []
|
|
|
|
|
|
+ return [
|
|
|
|
+ {
|
|
|
|
+ name: '状态',
|
|
|
|
+ key: 'status',
|
|
|
|
+ value: '',
|
|
|
|
+ conditions: [
|
|
|
|
+ {
|
|
|
|
+ label: '全部',
|
|
|
|
+ value: ''
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '待结算',
|
|
|
|
+ value: 'ING'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '已完成',
|
|
|
|
+ value: 'OVER'
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
},
|
|
},
|
|
formItems() {
|
|
formItems() {
|
|
return []
|
|
return []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ selectable(row, index) {
|
|
|
|
+ return ['ING'].includes(Object.entries(row.selectMapData.status).find(([key, val]) => val == row.status)?.[0])
|
|
|
|
+ },
|
|
// 列表请求函数
|
|
// 列表请求函数
|
|
getList(p, cb) {
|
|
getList(p, cb) {
|
|
try {
|
|
try {
|
|
var pam = JSON.parse(JSON.stringify(p))
|
|
var pam = JSON.parse(JSON.stringify(p))
|
|
|
|
+ if (pam.status) {
|
|
|
|
+ pam.params.push({ param: 'a.status', compare: '=', value: pam.status })
|
|
|
|
+ }
|
|
cb && cb(pam)
|
|
cb && cb(pam)
|
|
return recycSettleShopList(pam)
|
|
return recycSettleShopList(pam)
|
|
} catch (error) {
|
|
} catch (error) {
|
|
@@ -77,6 +123,19 @@ export default {
|
|
},
|
|
},
|
|
operation() {
|
|
operation() {
|
|
return this.operationBtn({
|
|
return this.operationBtn({
|
|
|
|
+ orderDetails: {
|
|
|
|
+ click: ({ row, index, column }) => {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ name: 'workOrderPool',
|
|
|
|
+ params: {
|
|
|
|
+ pageName: row.orderBaseId,
|
|
|
|
+ pageType: 'detail',
|
|
|
|
+ pageCode: row.orderBaseId,
|
|
|
|
+ pagePam: 'workOrderInfo'
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
settleAccounts: {
|
|
settleAccounts: {
|
|
conditions: ({ row, index, column }) => {
|
|
conditions: ({ row, index, column }) => {
|
|
return row.status == 'ING'
|
|
return row.status == 'ING'
|