1、完善客商模块

2、完善基础数据模块
3、完善规范
This commit is contained in:
2026-08-01 01:23:13 +08:00
parent 6a4c5d02f4
commit 81c98f6ad8
77 changed files with 4883 additions and 711 deletions

View File

@@ -148,7 +148,6 @@
<el-button
type="primary"
text
icon="el-icon-view"
v-if="hasPermission('common_cargo_view')"
@click="$refs.crud.rowView(row, index)"
>
@@ -157,7 +156,6 @@
<el-button
type="primary"
text
icon="el-icon-edit"
v-if="hasPermission('common_cargo_edit') && !row.readonly"
@click="$refs.crud.rowEdit(row, index)"
>
@@ -166,7 +164,6 @@
<el-button
type="primary"
text
icon="el-icon-delete"
v-if="hasPermission('common_cargo_delete') && !row.readonly"
@click="rowDel(row)"
>
@@ -585,7 +582,7 @@ export default {
type: 'warning',
}).then(() => {
NProgress.start();
exportBlob(config.exportUrl, this.buildExportParams())
exportBlob(config.exportUrl, this.buildExportParams(), { feedback: true })
.then(res => {
downloadXls(
res.data,
@@ -599,9 +596,13 @@ export default {
},
handleTemplate() {
NProgress.start();
exportBlob(config.templateUrl, {
[this.website.tokenHeader]: getToken(),
})
exportBlob(
config.templateUrl,
{
[this.website.tokenHeader]: getToken(),
},
{ feedback: true }
)
.then(res => {
downloadXls(res.data, `${config.title}模板.xlsx`);
})

View File

@@ -105,7 +105,6 @@
<el-button
type="primary"
text
icon="el-icon-view"
v-if="hasPermission('common_route_view')"
@click="$refs.crud.rowView(row, index)"
>
@@ -114,7 +113,6 @@
<el-button
type="primary"
text
icon="el-icon-edit"
v-if="hasPermission('common_route_edit') && !row.readonly"
@click="$refs.crud.rowEdit(row, index)"
>
@@ -123,7 +121,6 @@
<el-button
type="primary"
text
icon="el-icon-delete"
v-if="hasPermission('common_route_delete') && !row.readonly"
@click="rowDel(row)"
>
@@ -612,7 +609,7 @@ export default {
type: 'warning',
}).then(() => {
NProgress.start();
exportBlob(config.exportUrl, this.buildExportParams())
exportBlob(config.exportUrl, this.buildExportParams(), { feedback: true })
.then(res => {
downloadXls(
res.data,

View File

@@ -109,7 +109,6 @@
<el-button
type="primary"
text
icon="el-icon-view"
v-if="hasPermission(`${config.permission}_view`)"
@click="$refs.crud.rowView(row, index)"
>
@@ -118,28 +117,27 @@
<el-button
type="primary"
text
icon="el-icon-edit"
v-if="canEdit(row)"
@click="$refs.crud.rowEdit(row, index)"
>
编辑
</el-button>
<el-button type="primary" text icon="el-icon-copy-document" v-if="canCopy(row)" @click="handleCopy(row)">
<el-button type="primary" text v-if="canCopy(row)" @click="handleCopy(row)">
复制
</el-button>
<el-button type="primary" text icon="el-icon-video-play" v-if="canEnable(row)" @click="handleAction('enable', row)">
<el-button type="primary" text v-if="canEnable(row)" @click="handleAction('enable', row)">
启用
</el-button>
<el-button type="primary" text icon="el-icon-video-pause" v-if="canDisable(row)" @click="handleAction('disable', row)">
<el-button type="primary" text v-if="canDisable(row)" @click="handleAction('disable', row)">
停用
</el-button>
<el-button type="primary" text icon="el-icon-refresh" v-if="canReassign(row)" @click="handleAction('reassign', row)">
<el-button type="primary" text v-if="canReassign(row)" @click="handleAction('reassign', row)">
重新派单
</el-button>
<el-button type="primary" text icon="el-icon-close" v-if="canCancel(row)" @click="handleAction('cancel', row)">
<el-button type="primary" text v-if="canCancel(row)" @click="handleAction('cancel', row)">
取消
</el-button>
<el-button type="primary" text icon="el-icon-check" v-if="canComplete(row)" @click="handleAction('complete', row)">
<el-button type="primary" text v-if="canComplete(row)" @click="handleAction('complete', row)">
完成
</el-button>
<el-button
@@ -147,12 +145,11 @@
:key="operation.action"
:type="operation.type || 'primary'"
text
:icon="operation.icon || 'el-icon-position'"
@click="handleCustomOperation(operation, row)"
>
{{ operation.label }}
</el-button>
<el-button type="primary" text icon="el-icon-delete" v-if="canDelete(row)" @click="rowDel(row)">
<el-button type="primary" text v-if="canDelete(row)" @click="rowDel(row)">
删除
</el-button>
</template>
@@ -562,7 +559,7 @@ export default {
type: 'warning',
}).then(() => {
NProgress.start();
exportBlob(this.config.exportUrl, this.buildExportParams())
exportBlob(this.config.exportUrl, this.buildExportParams(), { feedback: true })
.then(res => {
downloadXls(res.data, `${this.config.exportName || this.config.title}${this.$dayjs().format('YYYY-MM-DD HH:mm:ss')}.xlsx`);
})
@@ -573,9 +570,13 @@ export default {
},
handleTemplate() {
NProgress.start();
exportBlob(this.config.templateUrl, {
[this.website.tokenHeader]: getToken(),
})
exportBlob(
this.config.templateUrl,
{
[this.website.tokenHeader]: getToken(),
},
{ feedback: true }
)
.then(res => {
downloadXls(res.data, `${this.config.title}模板.xlsx`);
})

View File

@@ -336,7 +336,6 @@
<el-button
type="primary"
text
icon="el-icon-view"
v-if="hasPermission('process_config_view')"
@click="$refs.crud.rowView(row, index)"
>
@@ -345,7 +344,6 @@
<el-button
type="primary"
text
icon="el-icon-edit"
v-if="canEdit(row)"
@click="$refs.crud.rowEdit(row, index)"
>
@@ -354,7 +352,6 @@
<el-button
type="primary"
text
icon="el-icon-copy-document"
v-if="hasPermission('process_config_copy')"
@click="handleCopy(row)"
>
@@ -363,7 +360,6 @@
<el-button
type="primary"
text
icon="el-icon-video-play"
v-if="canEnable(row)"
@click="handleAction('enable', row)"
>
@@ -372,7 +368,6 @@
<el-button
type="primary"
text
icon="el-icon-video-pause"
v-if="canDisable(row)"
@click="handleAction('disable', row)"
>
@@ -381,7 +376,6 @@
<el-button
type="primary"
text
icon="el-icon-delete"
v-if="canDelete(row)"
@click="rowDel(row)"
>
@@ -952,7 +946,7 @@ export default {
type: 'warning',
}).then(() => {
NProgress.start();
exportBlob(config.exportUrl, this.buildExportParams())
exportBlob(config.exportUrl, this.buildExportParams(), { feedback: true })
.then(res => {
downloadXls(
res.data,

File diff suppressed because it is too large Load Diff