diff --git a/src/views/merger/mergeredConfig/productClassify/index.vue b/src/views/merger/mergeredConfig/productClassify/index.vue index 782aeb3..83332e7 100644 --- a/src/views/merger/mergeredConfig/productClassify/index.vue +++ b/src/views/merger/mergeredConfig/productClassify/index.vue @@ -60,7 +60,7 @@ -
+
搜索 重置 @@ -70,10 +70,10 @@
-
+
-
+
@@ -198,7 +198,7 @@ :scroll="getTableScroll(1200)" :columns="refColumns" :data-source="dataSource" - :pagination="ipagination" + :pagination="pageParams" :loading="loading" size="middle" :custom-header-row="customHeaderRow" @@ -215,8 +215,7 @@ {{ text }} + >{{ text }} {{ text }}
{{ text }} @@ -230,8 +229,7 @@ 编辑 + >编辑 编辑 提交审核 @@ -417,7 +415,7 @@ import { getAction, postAction } from '@/api/manage'; import lodash from 'lodash'; export default { - name: 'productClassify', + name: 'ProductClassify', mixins: [JeecgListMixin, mixinDevice, WGridResizeByCssMixin], components: { batchAuditPassDialog, @@ -742,7 +740,7 @@ export default { regulationValid: '/interfaces/hscode/desc/regulationExpand', exportXlsEleUrl: 'merger/mergerReqsRdElem/exportXls', batchAuditPass: '/flow/common/batch-approve-pass', - batchAuditSubmit: '/flow/common/batch-submit' + batchAuditSubmit: '/flow/common/batch-submit', }, flowStatusCode: '', dictOptions: {}, @@ -756,7 +754,7 @@ export default { hiddenColumns: false, handlersData: [], batchAuditSubmitLoading: false, - batchAuditPassLoading: false + batchAuditPassLoading: false, }; }, created() { @@ -937,7 +935,7 @@ export default { flowId: record.flowId, type: 'submit', title: `【${record.countryName}】 ${record.partNo} 商品归类`, - } + }; that.showApprovalDialog(that.fdTemplateCode , data); }, }); @@ -947,6 +945,7 @@ export default { } } else { this.$refs.ApprovalProgressTemplate.show({ + fdTemplateCode: 'mergerApply', id: record.id, defaultverifyBy: record.verifyBy, flowId: record.flowId, @@ -984,6 +983,7 @@ export default { return; } this.$refs.ApprovalProgressTemplate.show({ + fdTemplateCode: 'mergerApply', id: this.selectedRowKeys[0], flowId: this.selectionRows[0].flowId, type: 'audit', @@ -1079,7 +1079,9 @@ export default { } this.recordObj = this.selectionRows[0]; this.classifierForm.classifierBy = this.selectionRows[0].classifierBy; + this.classifierForm.classifierName = this.selectionRows[0].classifier; this.classifierForm.verifyBy = this.selectionRows[0].verifyBy; + this.classifierForm.verifyByName = this.selectionRows[0].verifyByName; this.classifyShow = true; }, async classifyOK() { @@ -1281,11 +1283,11 @@ export default { 'MIDEA_MERGER_REQS_RD_ELEM' ); }, - selectionRowsVerify (max,msg){ + selectionRowsVerify(max, msg) { if (this.selectionRows.length === 0) { this.$message.warning('请选择至少一条数据进行操作!'); return false; - } + } if (max && this.selectionRows.length > max) { this.$message.warning(msg || `最多选择${max}条数据进行操作!`); return false; @@ -1307,13 +1309,15 @@ export default { auditNote: data.remark, handlers: [], fdTemplateCode: 'mergerApply', - }).then(res => { - if (res && res.success) { - that.batchNoticeHandle(res, 'pass'); - } - }).finally(() => { - that.batchAuditPassLoading = false; - }); + }) + .then((res) => { + if (res && res.success) { + that.batchNoticeHandle(res, 'pass'); + } + }) + .finally(() => { + that.batchAuditPassLoading = false; + }); }, submitPostHandle(data) { const that = this; @@ -1323,26 +1327,30 @@ export default { auditNote: data.remark, handlers: this.handlersData, fdTemplateCode: 'mergerApply', - }).then(res => { - if (res && res.success) { - that.batchNoticeHandle(res); - } - }).finally(() => { - that.batchAuditSubmitLoading = false; - }); + }) + .then((res) => { + if (res && res.success) { + that.batchNoticeHandle(res); + } + }) + .finally(() => { + that.batchAuditSubmitLoading = false; + }); }, userHandleOk(data) { - this.handlersData = lodash.isEmpty(data) ? [] : [ - { - unmodifiable: true, - name: data.operatorName, - id: data.operator, - type: 'USER' - } - ]; + this.handlersData = lodash.isEmpty(data) + ? [] + : [ + { + unmodifiable: true, + name: data.operatorName, + id: data.operator, + type: 'USER', + }, + ]; this.$refs.batchAuditPassDialogRef.show({ title: '批量提交审核', - type: 'submit' + type: 'submit', }); }, batchAuditPassHandle() { @@ -1351,7 +1359,7 @@ export default { } this.$refs.batchAuditPassDialogRef.show({ title: '批量审核通过', - type: 'pass' + type: 'pass', }); }, batchAuditSubmitHandle() { @@ -1359,7 +1367,7 @@ export default { if (!this.selectionRowsVerify(50)) { return; } - if (this.selectionRows.some(i => i.classifyStatus === '090')) { + if (this.selectionRows.some((i) => i.classifyStatus === '090')) { this.$message.warning('不能勾选状态为090-归类驳回的数据进行操作!'); return; } @@ -1374,13 +1382,13 @@ export default { that.handlersData = []; that.$refs.batchAuditPassDialogRef.show({ title: '批量提交审核', - type: 'submit' + type: 'submit', }); - } + }, }); }, batchNoticeHandle(res, type = 'submit') { - let msg = '' + let msg = ''; if (res.result && res.result.fail > 0) { if (type === 'pass') { msg = '(' + res.result.approveFailMsg + ')'; @@ -1390,16 +1398,18 @@ export default { } this.$MdAlert( `
成功:${res.result.success}条
` + - `失败:${res.result.fail}条 ${msg}
`, - '处理结果', { - showClose: false, - confirmButtonText: '确定', - dangerouslyUseHTMLString: true, - callback: () => { - this.loadData(); - }, - }); - } + `失败:${res.result.fail}条 ${msg}
`, + '处理结果', + { + showClose: false, + confirmButtonText: '确定', + dangerouslyUseHTMLString: true, + callback: () => { + this.loadData(); + }, + } + ); + }, }, };