|
|
|
@ -4,11 +4,14 @@ |
|
|
|
|
<div class="table-page-search-wrapper"> |
|
|
|
|
<a-form layout="inline" @keyup.enter.native="searchQuery"> |
|
|
|
|
<a-row :gutter="24"> |
|
|
|
|
<a-col> |
|
|
|
|
<a-button type="primary">{{biaoTi}}</a-button> |
|
|
|
|
</a-col> |
|
|
|
|
</a-row> |
|
|
|
|
</a-form> |
|
|
|
|
</div> |
|
|
|
|
<!-- 查询区域-END --> |
|
|
|
|
|
|
|
|
|
<a-button type="primary" @click="fanHui()">返回</a-button> |
|
|
|
|
|
|
|
|
|
<!-- table区域-begin --> |
|
|
|
|
<div> |
|
|
|
@ -44,24 +47,25 @@ |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
|
|
|
|
|
import '@/assets/less/TableExpand.less' |
|
|
|
|
import { JVXETypes } from '@/components/jeecg/JVxeTable' |
|
|
|
|
import { mixinDevice } from '@/utils/mixin' |
|
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
|
|
|
|
import ZyStyleModelModal from './modules/ZyStyleModelModal' |
|
|
|
|
import {deleteAction, getAction, postAction, putAction, postFormAction, httpAction} from "@api/manage"; |
|
|
|
|
import store from "@/store"; |
|
|
|
|
import {filterObj, validateDuplicateValue} from '@/utils/util' |
|
|
|
|
import '@/assets/less/TableExpand.less' |
|
|
|
|
import {JVXETypes} from '@/components/jeecg/JVxeTable' |
|
|
|
|
import {mixinDevice} from '@/utils/mixin' |
|
|
|
|
import {JeecgListMixin} from '@/mixins/JeecgListMixin' |
|
|
|
|
import ZyStyleModelModal from './modules/ZyStyleModelModal' |
|
|
|
|
import {deleteAction, getAction, postAction, putAction, postFormAction, httpAction} from "@api/manage"; |
|
|
|
|
import store from "@/store"; |
|
|
|
|
import {filterObj, validateDuplicateValue} from '@/utils/util' |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
export default { |
|
|
|
|
name: 'ZyStyleModelList', |
|
|
|
|
mixins:[JeecgListMixin, mixinDevice], |
|
|
|
|
mixins: [JeecgListMixin, mixinDevice], |
|
|
|
|
components: { |
|
|
|
|
ZyStyleModelModal |
|
|
|
|
}, |
|
|
|
|
data () { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
description: 'zy_style_model管理页面', |
|
|
|
|
biaoTi: '', |
|
|
|
|
// 表头 |
|
|
|
|
// 工具栏的按钮配置 |
|
|
|
|
toolbarConfig: { |
|
|
|
@ -70,7 +74,7 @@ |
|
|
|
|
}, |
|
|
|
|
validatorRules: { |
|
|
|
|
styleId: [ |
|
|
|
|
{ required: true, message: '请选择服装类型!'}, |
|
|
|
|
{required: true, message: '请选择服装类型!'}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
// 是否正在加载 |
|
|
|
@ -87,7 +91,7 @@ |
|
|
|
|
total: 0, |
|
|
|
|
showQuickJumper: true, |
|
|
|
|
showSizeChanger: true, |
|
|
|
|
id:null |
|
|
|
|
id: null |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 数据源,控制表格的数据 |
|
|
|
@ -104,18 +108,18 @@ |
|
|
|
|
validateRules: [{required: true, message: '${title}不能为空'}] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title:'是否默认尺码', |
|
|
|
|
align:"center", |
|
|
|
|
title: '是否默认尺码', |
|
|
|
|
align: "center", |
|
|
|
|
width: '150px', |
|
|
|
|
key: 'isdefault', |
|
|
|
|
type: JVXETypes.select, |
|
|
|
|
dictCode: 'isdefault', |
|
|
|
|
defaultValue : 0, |
|
|
|
|
defaultValue: 0, |
|
|
|
|
}, |
|
|
|
|
{key: 'modelNumber', title: '型号编码', dictCode: 'modenumber',width: '120px', type: JVXETypes.select}, |
|
|
|
|
{key: 'size', title: '码数', width: '100px',dictCode: 'size', type: JVXETypes.select}, |
|
|
|
|
{key: 'anumbers', title: '型', width: '100px',dictCode: 'hsize', type: JVXETypes.select}, |
|
|
|
|
{key: 'bnumbers', title: '号', width: '100px',dictCode: 'xsize', type: JVXETypes.select}, |
|
|
|
|
{key: 'modelNumber', title: '型号编码', dictCode: 'modenumber', width: '120px', type: JVXETypes.select}, |
|
|
|
|
{key: 'size', title: '码数', width: '100px', dictCode: 'size', type: JVXETypes.select}, |
|
|
|
|
{key: 'anumbers', title: '型', width: '100px', dictCode: 'hsize', type: JVXETypes.select}, |
|
|
|
|
{key: 'bnumbers', title: '号', width: '100px', dictCode: 'xsize', type: JVXETypes.select}, |
|
|
|
|
{key: 'collarLarge', title: '领大', width: '80px', type: JVXETypes.input}, |
|
|
|
|
{key: 'bust', title: '胸围', width: '80px', type: JVXETypes.input}, |
|
|
|
|
{key: 'sleeveLength', title: '袖长', width: '80px', type: JVXETypes.input}, |
|
|
|
@ -146,27 +150,37 @@ |
|
|
|
|
importExcelUrl: "zystylemodel/zyStyleModel/importExcel", |
|
|
|
|
}, |
|
|
|
|
//参数 |
|
|
|
|
loadRouteType:false, |
|
|
|
|
id:null, |
|
|
|
|
rowId:'', |
|
|
|
|
dictOptions:{}, |
|
|
|
|
superFieldList:[], |
|
|
|
|
loadRouteType: false, |
|
|
|
|
id: null, |
|
|
|
|
rowId: '', |
|
|
|
|
dictOptions: {}, |
|
|
|
|
superFieldList: [], |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
//this.loadData(); |
|
|
|
|
this.loadParameter() ; |
|
|
|
|
this.loadParameter(); |
|
|
|
|
//备份model原始值 |
|
|
|
|
//this.modelDefault = JSON.parse(JSON.stringify(this.model)); |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
importExcelUrl: function(){ |
|
|
|
|
importExcelUrl: function () { |
|
|
|
|
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
fanHui() { |
|
|
|
|
this.$router.push({ |
|
|
|
|
path: '/src/views/zyclothsstyle/ZyClothsStyleList', |
|
|
|
|
// query: { // 路由携带参数 |
|
|
|
|
// 'id': record.id, |
|
|
|
|
// 'typeId': record.typeId, |
|
|
|
|
// } |
|
|
|
|
// }); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
handleDelete: function (id) { |
|
|
|
|
if(!this.url.delete){ |
|
|
|
|
if (!this.url.delete) { |
|
|
|
|
this.$message.error("请设置url.delete属性!") |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
@ -182,7 +196,7 @@ |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
submitForm (props) { |
|
|
|
|
submitForm(props) { |
|
|
|
|
this.model = Object.assign({}, props); |
|
|
|
|
var str = props.rowId; |
|
|
|
|
let httpurl = ''; |
|
|
|
@ -207,7 +221,8 @@ |
|
|
|
|
loadParameter() { |
|
|
|
|
if (this.loadRouteType === false) { |
|
|
|
|
this.id = this.$route.query.id; |
|
|
|
|
console.log("**********传递到此层的id:"+this.id); |
|
|
|
|
this.biaoTi = this.$route.query.styleNames+"款式型号管理"; |
|
|
|
|
console.log("**********传递到此层的id:" + this.id); |
|
|
|
|
this.loadRouteType = true; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -226,12 +241,11 @@ |
|
|
|
|
/*// 后台查询回来的 total,数据总数量 |
|
|
|
|
this.pagination.total = res.result.total*/ |
|
|
|
|
// 将查询的数据赋值给 dataSource |
|
|
|
|
this.dataSource = res.result.records||res.result; |
|
|
|
|
console.log(this.dataSource,'abc') |
|
|
|
|
if(res.result.total) |
|
|
|
|
{ |
|
|
|
|
this.dataSource = res.result.records || res.result; |
|
|
|
|
console.log(this.dataSource, 'abc') |
|
|
|
|
if (res.result.total) { |
|
|
|
|
this.pagination.total = res.result.total; |
|
|
|
|
}else{ |
|
|
|
|
} else { |
|
|
|
|
this.pagination.total = 0; |
|
|
|
|
} |
|
|
|
|
//this.dataSource = res.result.records |
|
|
|
@ -252,42 +266,42 @@ |
|
|
|
|
// 查询数据 |
|
|
|
|
this.loadData() |
|
|
|
|
}, |
|
|
|
|
initDictConfig(){ |
|
|
|
|
initDictConfig() { |
|
|
|
|
}, |
|
|
|
|
getQueryParams() { |
|
|
|
|
//获取查询条件 |
|
|
|
|
let sqp = {} |
|
|
|
|
if(this.superQueryParams){ |
|
|
|
|
sqp['superQueryParams']=encodeURI(this.superQueryParams) |
|
|
|
|
if (this.superQueryParams) { |
|
|
|
|
sqp['superQueryParams'] = encodeURI(this.superQueryParams) |
|
|
|
|
sqp['superQueryMatchType'] = this.superQueryMatchType |
|
|
|
|
} |
|
|
|
|
var param = Object.assign(sqp, this.queryParam, this.isorter ,this.filters); |
|
|
|
|
var param = Object.assign(sqp, this.queryParam, this.isorter, this.filters); |
|
|
|
|
param.field = this.getQueryField(); |
|
|
|
|
param.pageNo = this.ipagination.current; |
|
|
|
|
param.pageSize = this.ipagination.pageSize; |
|
|
|
|
param.styleId=this.id |
|
|
|
|
param.styleId = this.id |
|
|
|
|
return filterObj(param); |
|
|
|
|
}, |
|
|
|
|
getSuperFieldList(){ |
|
|
|
|
let fieldList=[]; |
|
|
|
|
fieldList.push({type:'string',value:'styleId',text:'款式id',dictCode:''}) |
|
|
|
|
fieldList.push({type:'int',value:'isdefault',text:'是否默认尺码',dictCode:''}) |
|
|
|
|
fieldList.push({type:'int',value:'modelNumber',text:'型号编码',dictCode:''}) |
|
|
|
|
fieldList.push({type:'int',value:'size',text:'码数',dictCode:''}) |
|
|
|
|
fieldList.push({type:'string',value:'anumbers',text:'型',dictCode:''}) |
|
|
|
|
fieldList.push({type:'string',value:'bnumbers',text:'号',dictCode:''}) |
|
|
|
|
fieldList.push({type:'double',value:'collarLarge',text:'领大',dictCode:''}) |
|
|
|
|
fieldList.push({type:'double',value:'bust',text:'胸围',dictCode:''}) |
|
|
|
|
fieldList.push({type:'double',value:'sleeveLength',text:'袖长',dictCode:''}) |
|
|
|
|
fieldList.push({type:'double',value:'shslLength',text:'连肩袖长',dictCode:''}) |
|
|
|
|
fieldList.push({type:'double',value:'tsWidth',text:'总肩宽',dictCode:''}) |
|
|
|
|
fieldList.push({type:'double',value:'cuff',text:'袖口',dictCode:''}) |
|
|
|
|
fieldList.push({type:'double',value:'waistline',text:'腰围',dictCode:''}) |
|
|
|
|
fieldList.push({type:'double',value:'hem',text:'下摆',dictCode:''}) |
|
|
|
|
getSuperFieldList() { |
|
|
|
|
let fieldList = []; |
|
|
|
|
fieldList.push({type: 'string', value: 'styleId', text: '款式id', dictCode: ''}) |
|
|
|
|
fieldList.push({type: 'int', value: 'isdefault', text: '是否默认尺码', dictCode: ''}) |
|
|
|
|
fieldList.push({type: 'int', value: 'modelNumber', text: '型号编码', dictCode: ''}) |
|
|
|
|
fieldList.push({type: 'int', value: 'size', text: '码数', dictCode: ''}) |
|
|
|
|
fieldList.push({type: 'string', value: 'anumbers', text: '型', dictCode: ''}) |
|
|
|
|
fieldList.push({type: 'string', value: 'bnumbers', text: '号', dictCode: ''}) |
|
|
|
|
fieldList.push({type: 'double', value: 'collarLarge', text: '领大', dictCode: ''}) |
|
|
|
|
fieldList.push({type: 'double', value: 'bust', text: '胸围', dictCode: ''}) |
|
|
|
|
fieldList.push({type: 'double', value: 'sleeveLength', text: '袖长', dictCode: ''}) |
|
|
|
|
fieldList.push({type: 'double', value: 'shslLength', text: '连肩袖长', dictCode: ''}) |
|
|
|
|
fieldList.push({type: 'double', value: 'tsWidth', text: '总肩宽', dictCode: ''}) |
|
|
|
|
fieldList.push({type: 'double', value: 'cuff', text: '袖口', dictCode: ''}) |
|
|
|
|
fieldList.push({type: 'double', value: 'waistline', text: '腰围', dictCode: ''}) |
|
|
|
|
fieldList.push({type: 'double', value: 'hem', text: '下摆', dictCode: ''}) |
|
|
|
|
this.superFieldList = fieldList |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
<style scoped> |
|
|
|
|
@import '~@assets/less/common.less'; |
|
|
|
|