|
|
|
@ -7,15 +7,18 @@ |
|
|
|
|
<a-row :gutter="24"> |
|
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24"> |
|
|
|
|
<a-form-item label="服装款式" v-if="styleId===undefined"> |
|
|
|
|
<j-dict-select-tag placeholder="请选择服装款式" dictCode="zy_cloths_style,style_names,id" v-model="queryParam.styleId" ></j-dict-select-tag> |
|
|
|
|
<j-dict-select-tag placeholder="请选择服装款式" dictCode="zy_cloths_style,style_names,id" |
|
|
|
|
v-model="queryParam.styleId"></j-dict-select-tag> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item label="服装款式" v-else=""> |
|
|
|
|
<j-dict-select-tag placeholder="请选择服装款式" dictCode="zy_cloths_style,style_names,id" v-model="queryParam.styleId" disabled></j-dict-select-tag> |
|
|
|
|
<j-dict-select-tag placeholder="请选择服装款式" dictCode="zy_cloths_style,style_names,id" |
|
|
|
|
v-model="queryParam.styleId" disabled></j-dict-select-tag> |
|
|
|
|
</a-form-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24"> |
|
|
|
|
<a-form-item label="辅料类型"> |
|
|
|
|
<j-dict-select-tag placeholder="请选择辅料类型" dictCode="zy_accessories,contents,id" v-model="queryParam.accessoriesId" ></j-dict-select-tag> |
|
|
|
|
<j-dict-select-tag placeholder="请选择辅料类型" dictCode="zy_accessories,contents,id" |
|
|
|
|
v-model="queryParam.accessoriesId"></j-dict-select-tag> |
|
|
|
|
</a-form-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24"> |
|
|
|
@ -24,6 +27,7 @@ |
|
|
|
|
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button> |
|
|
|
|
</span> |
|
|
|
|
</a-col> |
|
|
|
|
<a-button type="primary">{{biaoTi}}</a-button> |
|
|
|
|
</a-row> |
|
|
|
|
</a-row> |
|
|
|
|
</a-form> |
|
|
|
@ -34,23 +38,32 @@ |
|
|
|
|
<div class="table-operator"> |
|
|
|
|
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> |
|
|
|
|
<a-button type="primary" icon="download" @click="handleExportXls('款式辅料管理')">导出</a-button> |
|
|
|
|
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
|
|
|
|
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" |
|
|
|
|
@change="handleImportExcel"> |
|
|
|
|
<a-button type="primary" icon="import">导入</a-button> |
|
|
|
|
</a-upload> |
|
|
|
|
<!-- 高级查询区域 --> |
|
|
|
|
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
|
|
|
|
<j-super-query :fieldList="superFieldList" ref="superQueryModal" |
|
|
|
|
@handleSuperQuery="handleSuperQuery"></j-super-query> |
|
|
|
|
<a-dropdown v-if="selectedRowKeys.length > 0"> |
|
|
|
|
<a-menu slot="overlay"> |
|
|
|
|
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
|
|
|
|
<a-menu-item key="1" @click="batchDel"> |
|
|
|
|
<a-icon type="delete"/> |
|
|
|
|
删除 |
|
|
|
|
</a-menu-item> |
|
|
|
|
</a-menu> |
|
|
|
|
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
|
|
|
|
<a-button style="margin-left: 8px"> 批量操作 |
|
|
|
|
<a-icon type="down"/> |
|
|
|
|
</a-button> |
|
|
|
|
</a-dropdown> |
|
|
|
|
<a-button type="primary" @click="fanHui()">返回</a-button> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<!-- table区域-begin --> |
|
|
|
|
<div> |
|
|
|
|
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> |
|
|
|
|
<i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项 |
|
|
|
|
<i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a |
|
|
|
|
style="font-weight: 600">{{ selectedRowKeys.length }}</a>项 |
|
|
|
|
<a style="margin-left: 24px" @click="onClearSelected">清空</a> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
@ -73,7 +86,8 @@ |
|
|
|
|
</template> |
|
|
|
|
<template slot="imgSlot" slot-scope="text"> |
|
|
|
|
<span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span> |
|
|
|
|
<img v-else :src="getImgView(text)" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/> |
|
|
|
|
<img v-else :src="getImgView(text)" height="25px" alt="" |
|
|
|
|
style="max-width:80px;font-size: 12px;font-style: italic;"/> |
|
|
|
|
</template> |
|
|
|
|
<template slot="fileSlot" slot-scope="text"> |
|
|
|
|
<span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span> |
|
|
|
@ -110,7 +124,8 @@ |
|
|
|
|
</a-table> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<zy-style-accessories-modal @valueChange="valueChange" ref="modalForm" @ok="modalFormOk"></zy-style-accessories-modal> |
|
|
|
|
<zy-style-accessories-modal @valueChange="valueChange" ref="modalForm" |
|
|
|
|
@ok="modalFormOk"></zy-style-accessories-modal> |
|
|
|
|
</a-card> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
@ -122,6 +137,7 @@ |
|
|
|
|
import ZyStyleAccessoriesModal from './modules/ZyStyleAccessoriesModal' |
|
|
|
|
import {getAction} from "@api/manage"; |
|
|
|
|
import {filterObj} from "@/utils/util"; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
name: 'ZyStyleAccessoriesList', |
|
|
|
|
mixins: [JeecgListMixin, mixinDevice], |
|
|
|
@ -131,6 +147,7 @@ |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
description: '款式辅料管理管理页面', |
|
|
|
|
biaoTi: '', |
|
|
|
|
// 表头 |
|
|
|
|
columns: [ |
|
|
|
|
{ |
|
|
|
@ -191,6 +208,16 @@ |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
fanHui() { |
|
|
|
|
this.$router.push({ |
|
|
|
|
path: '/src/views/zyclothsstyle/ZyClothsStyleList', |
|
|
|
|
// query: { // 路由携带参数 |
|
|
|
|
// 'id': record.id, |
|
|
|
|
// 'typeId': record.typeId, |
|
|
|
|
// } |
|
|
|
|
// }); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
initDictConfig() { |
|
|
|
|
}, |
|
|
|
|
valueChange(value) { |
|
|
|
@ -200,6 +227,7 @@ |
|
|
|
|
if (this.loadRouteType === false) { |
|
|
|
|
this.styleId = this.$route.query.id; |
|
|
|
|
this.loadRouteType = true; |
|
|
|
|
this.biaoTi = this.$route.query.styleNames+"款式辅料管理"; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
loadData(arg) { |
|
|
|
@ -218,8 +246,7 @@ |
|
|
|
|
if (res.success) { |
|
|
|
|
//update-begin---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------ |
|
|
|
|
this.dataSource = res.result.records || res.result; |
|
|
|
|
if(res.result.total) |
|
|
|
|
{ |
|
|
|
|
if (res.result.total) { |
|
|
|
|
this.ipagination.total = res.result.total; |
|
|
|
|
} else { |
|
|
|
|
this.ipagination.total = 0; |
|
|
|
|