|
@@ -8,6 +8,7 @@
|
|
:moreParameters="moreParameters"
|
|
:moreParameters="moreParameters"
|
|
:column-parsing="columnParsing"
|
|
:column-parsing="columnParsing"
|
|
:exportList="exportList"
|
|
:exportList="exportList"
|
|
|
|
+ :operation="operation()"
|
|
>
|
|
>
|
|
</template-page>
|
|
</template-page>
|
|
</template>
|
|
</template>
|
|
@@ -17,10 +18,11 @@ import TemplatePage from '@/components/template/template-page-1.vue'
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
import ImageUpload from '@/components/file-upload'
|
|
import ImageUpload from '@/components/file-upload'
|
|
import { required, mobileRequired, mobile, httpUrl, email } from '@/components/template/rules_verify.js'
|
|
import { required, mobileRequired, mobile, httpUrl, email } from '@/components/template/rules_verify.js'
|
|
-import { recycSettleShopList, recycSettleShopListExport } from '@/api/shoppingGuideCommission'
|
|
|
|
|
|
+import { recycSettleShopList, recycSettleShopListExport, recycSettleBatchSettle } from '@/api/shoppingGuideCommission'
|
|
|
|
+import operation_mixin from '@/components/template/operation_mixin.js'
|
|
export default {
|
|
export default {
|
|
components: { TemplatePage, ImageUpload },
|
|
components: { TemplatePage, ImageUpload },
|
|
- mixins: [import_mixin],
|
|
|
|
|
|
+ mixins: [import_mixin, operation_mixin],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
// 事件组合
|
|
// 事件组合
|
|
@@ -72,6 +74,20 @@ export default {
|
|
// 监听勾选变化
|
|
// 监听勾选变化
|
|
selectionChange(data) {
|
|
selectionChange(data) {
|
|
this.recordSelected = data
|
|
this.recordSelected = data
|
|
|
|
+ },
|
|
|
|
+ operation() {
|
|
|
|
+ return this.operationBtn({
|
|
|
|
+ settleAccounts: {
|
|
|
|
+ click: ({ row, index, column }) => {
|
|
|
|
+ recycSettleBatchSettle({
|
|
|
|
+ ids: [row.id]
|
|
|
|
+ }).then(res => {
|
|
|
|
+ this.$message({ type: 'success', message: `成功!` })
|
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|