|
|
@@ -23,11 +23,19 @@ Page({
|
|
|
unitService: app.globalData['unitService'],
|
|
|
// 路由
|
|
|
routeObjName: 'product-attribute',
|
|
|
+ // 查询条件
|
|
|
+ searchContent: [{
|
|
|
+ code: 'flgValid', title: mixins.$t('allValidInvalid'), searchType: Constants.searchType.switch,
|
|
|
+
|
|
|
+ list: [
|
|
|
+ { code: 1, title: mixins.$t('valid'), value: true },
|
|
|
+ { code: 2, title: mixins.$t('invalid'), value: false }]
|
|
|
+ }],
|
|
|
// 列表区(内容)商品品牌
|
|
|
contentList: [
|
|
|
{ name: 'brandCode', title: mixins.$t('brandCode') },
|
|
|
{ name: 'brandName', title: mixins.$t('brandName') },
|
|
|
- { name: 'supplierName', title: mixins.$t('supplier') }
|
|
|
+ { name: 'supplierNames', title: mixins.$t('supplier') }
|
|
|
],
|
|
|
sidebarList: [
|
|
|
{ id: 0, name: mixins.$t('goodsBrand') },
|
|
|
@@ -40,7 +48,7 @@ Page({
|
|
|
[
|
|
|
{ code: 'brandCode', type: 'str', title: mixins.$t('brandCode'), required: false, readonly: true, },
|
|
|
{ code: 'brandName', type: 'str', title: mixins.$t('brandName'), required: true },
|
|
|
- { code: 'supplierIds', name: 'supplierNames', title: 'supplier', type: 'choose', required: true, dropType: 'supplier', required: true, },
|
|
|
+ { code: 'supplierIds',formMode: 'index', idKey: 'roleId', chooseType:true, name: 'supplierNames', title: 'supplier', type: 'choose', required: true, dropType: 'supplier', required: true, },
|
|
|
{ code: 'remarks', type: 'str', title: mixins.$t('remarks'), required: false }
|
|
|
],
|
|
|
sideKey: 0,
|
|
|
@@ -187,7 +195,9 @@ Page({
|
|
|
dataItem: JSON.stringify(item)
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+ toClickName(e){
|
|
|
+ console.log(e)
|
|
|
+ },
|
|
|
/**
|
|
|
* @desc : 新建
|
|
|
* @author : 于继渤
|
|
|
@@ -226,6 +236,12 @@ Page({
|
|
|
* @date : 2024/1/23 9:16
|
|
|
*/
|
|
|
setSearchParams(params) {
|
|
|
+ //有效标识
|
|
|
+ if (params.flgValidList && params.flgValidList.indexOf("true") != -1 && params.flgValidList.indexOf("false") == -1) {
|
|
|
+ params.flgValid = true
|
|
|
+ } else if (params.flgValidList && params.flgValidList.indexOf("true") == -1 && params.flgValidList.indexOf("false") != -1) {
|
|
|
+ params.flgValid = false
|
|
|
+ }
|
|
|
if (this.data.formDataName == mixins.$t('goodsCategory')) {
|
|
|
params.pageSize = 100000
|
|
|
params.currentPage = 1
|
|
|
@@ -264,7 +280,8 @@ Page({
|
|
|
[
|
|
|
{ code: 'brandCode', type: 'str', title: mixins.$t('brandCode'), required: false, readonly: true, },
|
|
|
{ code: 'brandName', type: 'str', title: mixins.$t('brandName'), required: true },
|
|
|
- { code: 'supplierIds', name: 'supplierNames', title: 'supplier', type: 'choose', required: true, dropType: 'supplier', required: true, urlKey: 'selectProductAttributeSuppliers', },
|
|
|
+ { code: 'supplierIds', name: 'supplierNames', title: 'supplier', type: 'choose', required: true, dropType: 'supplier', required: true, urlKey: 'selectProductAttributeSuppliers', code: 'supplierIds',formMode: 'index', idKey: 'roleId', },
|
|
|
+
|
|
|
{ code: 'remarks', type: 'str', title: mixins.$t('remarks'), required: false }
|
|
|
]
|
|
|
routeObjNameGoTo = 'goodsBrand'
|