diff --git a/wms/mkt/assets/js/alpine.js b/wms/mkt/assets/js/alpine.js index fec7d4de..cb4ea010 100644 --- a/wms/mkt/assets/js/alpine.js +++ b/wms/mkt/assets/js/alpine.js @@ -190,4 +190,63 @@ const priceOptionSelect = ()=>{ this.renderPagination() } } +} + +const pricereviewOptionSelect = ()=>{ + return { + init(){ + console.log(options); + this.optionCategory = 0 + this.initButtons(); + }, + options: options, + optionalArr: { + 1:'標配', + 2:'選配', + 3:'加價', + }, + kind:0, + subkind:0, + buttons:[], + initButtons(kind){ + if(kind == 'A'){ + this.buttons = [ + {name: '車廂意匠', type: 'A1'} + ] + }else if(kind == 'B'){ + this.buttons = [ + {name: '天井', type: 'B1'}, + {name: '地板', type: 'B2'}, + {name: '操縱盤', type: 'B3'}, + {name: '扶手', type: 'B4'}, + {name: '車廂門與層門(轎門/層門)', type: 'B5'}, + {name: '轎壁(車廂側板)', type: 'B6'}, + {name: '其他車廂內裝配件', type: 'B7'}, + ] + }else if(kind == 'C'){ + this.buttons = [ + {name: '框', type: 'C1'}, + {name: '乘場指示器', type: 'C2'}, + {name: '燈', type: 'C3'}, + {name: '方式與門', type: 'C4'}, + ] + }else if(kind == 'D'){ + this.buttons = [ + {name: '功能與配置', type: 'D1'}, + {name: 'OH與樓高', type: 'D2'}, + ] + }else if(kind == 'E'){ + this.buttons = [ + {name: '平台梯', type: 'E1'}, + ] + } + }, + kind:0, + optionSubCategory:1, + changeCategory(category){ + this.kind = category + this.initButtons(category) + }, + + } } \ No newline at end of file diff --git a/wms/mkt/pricereview-create.php b/wms/mkt/pricereview-create.php index 9523d306..f9d11c0a 100644 --- a/wms/mkt/pricereview-create.php +++ b/wms/mkt/pricereview-create.php @@ -1,6 +1,6 @@ '; +$option_str = '
名稱 | @@ -195,6 +195,8 @@ foreach ($opt_data_arr as $k => $v) { */ } $option_str .= "
---|