Browse Source

0106版本补充

release/midea_0106
luwenlong 3 weeks ago
parent
commit
da8ac99264
  1. 64
      src/views/merger/mergeredConfig/productClassify/index.vue

64
src/views/merger/mergeredConfig/productClassify/index.vue

@ -60,7 +60,7 @@
</w-col> </w-col>
</template> </template>
<w-col :xl="4" :lg="5" :md="8" :sm="24"> <w-col :xl="4" :lg="5" :md="8" :sm="24">
<div class="table-page-search-submitButtons"> <div class="table-page-search-submit-buttons">
<w-button @click="searchQuery" type="primary" icon="search"> 搜索 </w-button> <w-button @click="searchQuery" type="primary" icon="search"> 搜索 </w-button>
<w-button @click="searchReset" type="primary" style="margin-left: 8px"> 重置 </w-button> <w-button @click="searchReset" type="primary" style="margin-left: 8px"> 重置 </w-button>
<j-super-query ref="superQueryModal" :field-list="refColumns" @handleSuperQuery="handleSuperQuery" /> <j-super-query ref="superQueryModal" :field-list="refColumns" @handleSuperQuery="handleSuperQuery" />
@ -70,10 +70,10 @@
</a> </a>
</div> </div>
</w-col> </w-col>
<div @click="exportModel()" class="leftArea" v-has="authObj.export"> <div @click="exportModel()" class="right-export-area" v-has="authObj.export">
<!-- <w-button type="primary" icon="download" @click="exportModel('bill_head')" <!-- <w-button type="primary" icon="download" @click="exportModel('bill_head')"
v-has="'bill:bill:export' + ieFlag + isBonded + emsCategory + menuType">导出</w-button> --> v-has="'bill:bill:export' + ieFlag + isBonded + emsCategory + menuType">导出</w-button> -->
<div class="filterBox"> <div class="filter-box">
<span class="iconfont icon-download-2"></span> <span class="iconfont icon-download-2"></span>
</div> </div>
</div> </div>
@ -198,7 +198,7 @@
:scroll="getTableScroll(1200)" :scroll="getTableScroll(1200)"
:columns="refColumns" :columns="refColumns"
:data-source="dataSource" :data-source="dataSource"
:pagination="ipagination" :pagination="pageParams"
:loading="loading" :loading="loading"
size="middle" size="middle"
:custom-header-row="customHeaderRow" :custom-header-row="customHeaderRow"
@ -215,8 +215,7 @@
<a <a
v-if="!['010', '070', '030', '071', '072'].includes(row.classifyStatus) || row.globalLock === 'Y'" v-if="!['010', '070', '030', '071', '072'].includes(row.classifyStatus) || row.globalLock === 'Y'"
@click="handleDetail(row)" @click="handleDetail(row)"
>{{ text }}</a >{{ text }}</a>
>
<a v-else @click="handleEdit(row)">{{ text }}</a> <a v-else @click="handleEdit(row)">{{ text }}</a>
</div> </div>
<a v-else-if="flag === 'reviewClassify'" @click="handleEdit(row)">{{ text }}</a> <a v-else-if="flag === 'reviewClassify'" @click="handleEdit(row)">{{ text }}</a>
@ -230,8 +229,7 @@
<span <span
v-if="!['010', '070', '030', '071', '072'].includes(row.classifyStatus) || row.globalLock === 'Y'" v-if="!['010', '070', '030', '071', '072'].includes(row.classifyStatus) || row.globalLock === 'Y'"
v-has="'productClassify:edit'" v-has="'productClassify:edit'"
>编辑</span >编辑</span>
>
<a v-else @click="handleEdit(row)" v-has="'productClassify:edit'">编辑</a> <a v-else @click="handleEdit(row)" v-has="'productClassify:edit'">编辑</a>
<w-divider type="vertical" v-has="'productClassify:edit'" /> <w-divider type="vertical" v-has="'productClassify:edit'" />
<a v-has="'productClassify:submit'" @click="submitFlow(row)" type="primary"> 提交审核 </a> <a v-has="'productClassify:submit'" @click="submitFlow(row)" type="primary"> 提交审核 </a>
@ -417,7 +415,7 @@ import { getAction, postAction } from '@/api/manage';
import lodash from 'lodash'; import lodash from 'lodash';
export default { export default {
name: 'productClassify', name: 'ProductClassify',
mixins: [JeecgListMixin, mixinDevice, WGridResizeByCssMixin], mixins: [JeecgListMixin, mixinDevice, WGridResizeByCssMixin],
components: { components: {
batchAuditPassDialog, batchAuditPassDialog,
@ -742,7 +740,7 @@ export default {
regulationValid: '/interfaces/hscode/desc/regulationExpand', regulationValid: '/interfaces/hscode/desc/regulationExpand',
exportXlsEleUrl: 'merger/mergerReqsRdElem/exportXls', exportXlsEleUrl: 'merger/mergerReqsRdElem/exportXls',
batchAuditPass: '/flow/common/batch-approve-pass', batchAuditPass: '/flow/common/batch-approve-pass',
batchAuditSubmit: '/flow/common/batch-submit' batchAuditSubmit: '/flow/common/batch-submit',
}, },
flowStatusCode: '', flowStatusCode: '',
dictOptions: {}, dictOptions: {},
@ -756,7 +754,7 @@ export default {
hiddenColumns: false, hiddenColumns: false,
handlersData: [], handlersData: [],
batchAuditSubmitLoading: false, batchAuditSubmitLoading: false,
batchAuditPassLoading: false batchAuditPassLoading: false,
}; };
}, },
created() { created() {
@ -937,7 +935,7 @@ export default {
flowId: record.flowId, flowId: record.flowId,
type: 'submit', type: 'submit',
title: `${record.countryName}${record.partNo} 商品归类`, title: `${record.countryName}${record.partNo} 商品归类`,
} };
that.showApprovalDialog(that.fdTemplateCode , data); that.showApprovalDialog(that.fdTemplateCode , data);
}, },
}); });
@ -947,6 +945,7 @@ export default {
} }
} else { } else {
this.$refs.ApprovalProgressTemplate.show({ this.$refs.ApprovalProgressTemplate.show({
fdTemplateCode: 'mergerApply',
id: record.id, id: record.id,
defaultverifyBy: record.verifyBy, defaultverifyBy: record.verifyBy,
flowId: record.flowId, flowId: record.flowId,
@ -984,6 +983,7 @@ export default {
return; return;
} }
this.$refs.ApprovalProgressTemplate.show({ this.$refs.ApprovalProgressTemplate.show({
fdTemplateCode: 'mergerApply',
id: this.selectedRowKeys[0], id: this.selectedRowKeys[0],
flowId: this.selectionRows[0].flowId, flowId: this.selectionRows[0].flowId,
type: 'audit', type: 'audit',
@ -1079,7 +1079,9 @@ export default {
} }
this.recordObj = this.selectionRows[0]; this.recordObj = this.selectionRows[0];
this.classifierForm.classifierBy = this.selectionRows[0].classifierBy; this.classifierForm.classifierBy = this.selectionRows[0].classifierBy;
this.classifierForm.classifierName = this.selectionRows[0].classifier;
this.classifierForm.verifyBy = this.selectionRows[0].verifyBy; this.classifierForm.verifyBy = this.selectionRows[0].verifyBy;
this.classifierForm.verifyByName = this.selectionRows[0].verifyByName;
this.classifyShow = true; this.classifyShow = true;
}, },
async classifyOK() { async classifyOK() {
@ -1307,11 +1309,13 @@ export default {
auditNote: data.remark, auditNote: data.remark,
handlers: [], handlers: [],
fdTemplateCode: 'mergerApply', fdTemplateCode: 'mergerApply',
}).then(res => { })
.then((res) => {
if (res && res.success) { if (res && res.success) {
that.batchNoticeHandle(res, 'pass'); that.batchNoticeHandle(res, 'pass');
} }
}).finally(() => { })
.finally(() => {
that.batchAuditPassLoading = false; that.batchAuditPassLoading = false;
}); });
}, },
@ -1323,26 +1327,30 @@ export default {
auditNote: data.remark, auditNote: data.remark,
handlers: this.handlersData, handlers: this.handlersData,
fdTemplateCode: 'mergerApply', fdTemplateCode: 'mergerApply',
}).then(res => { })
.then((res) => {
if (res && res.success) { if (res && res.success) {
that.batchNoticeHandle(res); that.batchNoticeHandle(res);
} }
}).finally(() => { })
.finally(() => {
that.batchAuditSubmitLoading = false; that.batchAuditSubmitLoading = false;
}); });
}, },
userHandleOk(data) { userHandleOk(data) {
this.handlersData = lodash.isEmpty(data) ? [] : [ this.handlersData = lodash.isEmpty(data)
? []
: [
{ {
unmodifiable: true, unmodifiable: true,
name: data.operatorName, name: data.operatorName,
id: data.operator, id: data.operator,
type: 'USER' type: 'USER',
} },
]; ];
this.$refs.batchAuditPassDialogRef.show({ this.$refs.batchAuditPassDialogRef.show({
title: '批量提交审核', title: '批量提交审核',
type: 'submit' type: 'submit',
}); });
}, },
batchAuditPassHandle() { batchAuditPassHandle() {
@ -1351,7 +1359,7 @@ export default {
} }
this.$refs.batchAuditPassDialogRef.show({ this.$refs.batchAuditPassDialogRef.show({
title: '批量审核通过', title: '批量审核通过',
type: 'pass' type: 'pass',
}); });
}, },
batchAuditSubmitHandle() { batchAuditSubmitHandle() {
@ -1359,7 +1367,7 @@ export default {
if (!this.selectionRowsVerify(50)) { if (!this.selectionRowsVerify(50)) {
return; return;
} }
if (this.selectionRows.some(i => i.classifyStatus === '090')) { if (this.selectionRows.some((i) => i.classifyStatus === '090')) {
this.$message.warning('不能勾选状态为090-归类驳回的数据进行操作!'); this.$message.warning('不能勾选状态为090-归类驳回的数据进行操作!');
return; return;
} }
@ -1374,13 +1382,13 @@ export default {
that.handlersData = []; that.handlersData = [];
that.$refs.batchAuditPassDialogRef.show({ that.$refs.batchAuditPassDialogRef.show({
title: '批量提交审核', title: '批量提交审核',
type: 'submit' type: 'submit',
}); });
} },
}); });
}, },
batchNoticeHandle(res, type = 'submit') { batchNoticeHandle(res, type = 'submit') {
let msg = '' let msg = '';
if (res.result && res.result.fail > 0) { if (res.result && res.result.fail > 0) {
if (type === 'pass') { if (type === 'pass') {
msg = '(' + res.result.approveFailMsg + ')'; msg = '(' + res.result.approveFailMsg + ')';
@ -1391,15 +1399,17 @@ export default {
this.$MdAlert( this.$MdAlert(
`<div style="word-break: break-all;">成功:${res.result.success}条<br>` + `<div style="word-break: break-all;">成功:${res.result.success}条<br>` +
`失败:${res.result.fail}${msg} </div>`, `失败:${res.result.fail}${msg} </div>`,
'处理结果', { '处理结果',
{
showClose: false, showClose: false,
confirmButtonText: '确定', confirmButtonText: '确定',
dangerouslyUseHTMLString: true, dangerouslyUseHTMLString: true,
callback: () => { callback: () => {
this.loadData(); this.loadData();
}, },
});
} }
);
},
}, },
}; };
</script> </script>

Loading…
Cancel
Save