{"id":8597,"date":"2021-02-08T07:00:14","date_gmt":"2021-02-07T22:00:14","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=8597"},"modified":"2021-01-27T19:05:13","modified_gmt":"2021-01-27T10:05:13","slug":"%e3%82%a6%e3%82%a7%e3%83%96%e3%81%a7%e3%83%ac%e3%82%b8%e5%85%a5%e5%8a%9b%e6%a9%9f%e8%83%bd%e3%82%92%e3%81%a4%e3%81%8f%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=8597","title":{"rendered":"\u30a6\u30a7\u30d6\u3067\u30ec\u30b8\u5165\u529b\u6a5f\u80fd\u3092\u3064\u304f\u308b"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u9577\u304f\u30d6\u30ed\u30b0\u3092\u7d9a\u3051\u3066\u3044\u308b\u3068\u300c<strong>\u3046\u30fc\u3093\u3001\u305f\u307e\u306b\u306f\u5473\u5909\u3057\u305f\u8a18\u4e8b\u304c\u66f8\u304d\u305f\u3044<\/strong>\u300d\u306a\u3093\u3066\u601d\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u306e\u3082\u30012020\u5e741\u670827\u65e5\u73fe\u5728\u3001350 \u3092\u8d85\u3048\u308b\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u8a00\u3063\u3066\u3082\u6bce\u56de\u6bce\u56de\u307e\u3063\u305f\u304f\u9055\u3046\u5185\u5bb9\u3068\u3044\u3046\u308f\u3051\u3067\u306f\u306a\u3044\u304b\u3089\u306a\u3093\u3067\u3059\u306d\ud83d\ude02<\/p>\n<p>\u305d\u3057\u3066\u3001\u305d\u3093\u306a\u904e\u53bb\u306e\u8a18\u4e8b\u306e\u3053\u3068\u3092\u8003\u3048\u3066\u3044\u308b\u3068\u3001\u3075\u3068\u3042\u308b\u300c<strong>\u30e2\u30ce<\/strong>\u300d\u304c\u982d\u306b\u6d6e\u304b\u3073\u307e\u3057\u305f\u3002<\/p>\n<p>\u300c<strong>\u305d\u3046\u3044\u3048\u3070\u3001\u6614\u8cb7\u3063\u305fUSB\u30d0\u30fc\u30b3\u30fc\u30c9\u30fb\u30ea\u30fc\u30c0\u30fc\u306f\u3069\u3053\u3044\u3063\u305f\u3093\u3060\u308d\u3046\uff1f\uff1f<\/strong>\u300d<\/p>\n<p>\ud83d\udcdd\u53c2\u8003\u8a18\u4e8b\uff1a\u00a0<a href=\"https:\/\/blog.capilano-fw.com\/?p=4259\">\u3010Laravel\u3011\u30d0\u30fc\u30b3\u30fc\u30c9\u30fb\u30b9\u30ad\u30e3\u30ca\u30fc\u3067IBSN\u3092\u8aad\u307f\u53d6\u3063\u3066\u672c\u306e\u5165\u8377\u51e6\u7406\u3092\u3059\u308b<\/a><\/p>\n<p>\u3068\u3002<\/p>\n<p>\u305d\u3053\u3067\u2757<\/p>\n<p>\u4eca\u56de\u306f\u3001\u68da\u306e\u5965\u306e\u5965\u306b\u57cb\u307e\u3063\u3066\u3044\u305f\u30d0\u30fc\u30b3\u30fc\u30c9\u30fb\u30ea\u30fc\u30c0\u30fc\u3092\u4f7f\u3063\u3066\u3001\u3044\u3064\u3082\u3068\u306f\u9055\u3046\u30c6\u30fc\u30de\u3092\u304a\u5c4a\u3051\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u30c6\u30fc\u30de\u306f\u3053\u3061\u3089\u3002<\/p>\n<p><strong style=\"font-size: 35px;\">\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u3067\u30ec\u30b8\u5165\u529b\u6a5f\u80fd\u3092\u3064\u304f\u308b<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001\u305c\u3072\u81ea\u7531\u7814\u7a76\u7684\u306a\u611f\u899a\u3067\u8aad\u3093\u3067\u3044\u305f\u3060\u3051\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\ud83d\ude02<br \/>\n\uff08\u6700\u5f8c\u306b\u3001\u4eca\u56de\u958b\u767a\u3057\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4e00\u5f0f\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3088\ud83d\udc4d\uff09<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6068 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_12.png\" alt=\"\" width=\"226\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_12.png 226w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_12-212x300.png 212w\" sizes=\"auto, (max-width: 226px) 100vw, 226px\" \/>\u300cFlutter \u30922\u65e5\u304b\u304b\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\ud83d\ude2b<br \/>\nLinux\u306b\u306f\u53b3\u3057\u3044\u3067\u3059\u306d\u30fb\u30fb\u30fb\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 8.x\u3001Vue 3\u3001axios 0.19\u3001Lodash 4.17\u3001TailwindCSS 2<\/p>\n<h1>\u3084\u308a\u305f\u3044\u3053\u3068<\/h1>\n<p>\u3088\u304f\u30b9\u30fc\u30d1\u30fc\u306a\u3069\u3067\u898b\u304b\u3051\u308b\u30ec\u30b8\u6253\u3061\u3092USB\u30d0\u30fc\u30b3\u30fc\u30c9\u30fb\u30ea\u30fc\u30c0\u30fc\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u6d41\u308c\u306f\u3001\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u30d0\u30fc\u30b3\u30fc\u30c9\u3092\u8aad\u307f\u53d6\u308b<\/li>\n<li>Ajax\u3067\u81ea\u52d5\u7684\u306b\u5546\u54c1\u30c7\u30fc\u30bf\u3092\u53d6\u5f97<\/li>\n<li>\u305d\u306e\u5546\u54c1\u3092\u4e00\u89a7\u306b\u8868\u793a\u3059\u308b<\/li>\n<\/ol>\n<p>\u3053\u308c\u3060\u3051\u3067\u306f\u9762\u767d\u304f\u306a\u3044\u306e\u3067\u3001\u3055\u3089\u306b\u4ee5\u4e0b\u306e\u6a5f\u80fd\u3082\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u3059\u3067\u306b\u8aad\u307f\u53d6\u3063\u305f\u5546\u54c1\u306e\u5834\u5408\u306f\u500b\u6570\u3092\u30d7\u30e9\u30b9\uff11\u3059\u308b<\/li>\n<li>\u500b\u6570\u306f\u5909\u66f4\u3067\u304d\u308b<\/li>\n<li>\u524a\u9664\u3082\u3067\u304d\u308b<\/li>\n<li>\u5408\u8a08\u3092\u7a0e\u8fbc\u307f\u3067\u8a08\u7b97\u3059\u308b<\/li>\n<li>\u30d5\u30a9\u30fc\u30ab\u30b9\u304c\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u5916\u308c\u305f\u3089\u8b66\u544a\u3092\u3060\u3059<\/li>\n<\/ul>\n<p>\u3067\u306f\u697d\u3057\u304f\u3084\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u2757<\/p>\n<h1>\u30eb\u30fc\u30c8\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u307e\u305a\u30eb\u30fc\u30c8\u3067\u3059\u3002<br \/>\n\u5fc5\u8981\u3068\u306a\u308b\u306e\u306f\u4ee5\u4e0b\u306e\uff12\u3064\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u5b9f\u969b\u306e\u30d6\u30e9\u30a6\u30b6\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u30ec\u30b8\u5165\u529b\u30da\u30fc\u30b8<\/li>\n<li>Ajax\u3067\u5546\u54c1\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u30da\u30fc\u30b8<\/li>\n<\/ul>\n<p><strong>routes\/web.php<\/strong><\/p>\n<pre>&lt;?php\r\n\r\nuse Illuminate\\Support\\Facades\\Route;\r\n<strong>use App\\Http\\Controllers\\CashRegisterController;<\/strong>\r\n\r\n<strong>Route::get('cash_register', [CashRegisterController::class, 'index']);<\/strong>\r\n<strong>Route::get('cash_register\/{jan_code}', [CashRegisterController::class, 'show']);<\/strong><\/pre>\n<h1>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u7d9a\u3044\u3066\u3001\u30eb\u30fc\u30c8\u306e\u4e2d\u3067\u6307\u5b9a\u3057\u305f\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan make:controller CashRegisterController<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p><strong>app\/Http\/Controllers\/CashRegisterController.php<\/strong><\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Http\\Controllers;\r\n\r\nuse Illuminate\\Http\\Request;\r\n\r\nclass CashRegisterController extends Controller\r\n{\r\n    <strong>public function index() {<\/strong>\r\n\r\n<strong>        return view('cash_register.index');<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function show($jan_code) {<\/strong>\r\n\r\n<strong>        $items = [<\/strong>\r\n<strong>            [<\/strong>\r\n<strong>                'title' =&gt; 'UX\u30c7\u30b6\u30a4\u30f3\u3092\u306f\u3058\u3081\u308b\u672c',<\/strong>\r\n<strong>                'jan_code' =&gt; '9784798143330',<\/strong>\r\n<strong>                'price' =&gt; 2200,<\/strong>\r\n<strong>                'tax_percent' =&gt; 10<\/strong>\r\n<strong>            ],<\/strong>\r\n<strong>            [<\/strong>\r\n<strong>                'title' =&gt; '\u30ce\u30f3\u30c7\u30b6\u30a4\u30ca\u30fc\u30ba\u30fb\u30c7\u30b6\u30a4\u30f3\u30d6\u30c3\u30af',<\/strong>\r\n<strong>                'jan_code' =&gt; '9784839928407',<\/strong>\r\n<strong>                'price' =&gt; 2000,<\/strong>\r\n<strong>                'tax_percent' =&gt; 10<\/strong>\r\n<strong>            ],<\/strong>\r\n<strong>            [<\/strong>\r\n<strong>                'title' =&gt; '\u300c\u7d0d\u54c1\u300d\u3092\u306a\u304f\u305b\u3070\u3046\u307e\u304f\u3044\u304f',<\/strong>\r\n<strong>                'jan_code' =&gt; '9784534051943',<\/strong>\r\n<strong>                'price' =&gt; 1600,<\/strong>\r\n<strong>                'tax_percent' =&gt; 10<\/strong>\r\n<strong>            ]<\/strong>\r\n<strong>        ];<\/strong>\r\n<strong>        $item = collect($items)-&gt;first(function($item) use($jan_code){<\/strong>\r\n\r\n<strong>            return ($item['jan_code'] === $jan_code);<\/strong>\r\n\r\n<strong>        });<\/strong>\r\n\r\n<strong>        return [<\/strong>\r\n<strong>            'result' =&gt; !empty($item),<\/strong>\r\n<strong>            'item' =&gt; $item<\/strong>\r\n<strong>        ];<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\u898b\u3066\u3044\u305f\u3060\u3044\u3066\u3044\u308b\u3068\u304a\u308a\u3001\u4eca\u56de\u5546\u54c1\u30c7\u30fc\u30bf\u306f\u76f4\u63a5\u914d\u5217\u3068\u3057\u3066\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u672c\u756a\u74b0\u5883\u306e\u5834\u5408\u306fDB\u304b\u3089\u547c\u3073\u51fa\u3059\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u307e\u305f\u3001<code>first()<\/code>\u5185\u306e\u610f\u5473\u3068\u3057\u3066\u306f\u3001\u300c<strong>\u9001\u4fe1\u3055\u308c\u3066\u304d\u305fJAN\u30b3\u30fc\u30c9\u3092\u6301\u3063\u3066\u3044\u308b\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b<\/strong>\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u306f\u4ed6\u306b\u3082\u305f\u304f\u3055\u3093\u4fbf\u5229\u306a\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u8208\u5473\u304c\u3042\u308a\u307e\u3057\u305f\u3089\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\ud83d\udcdd\u00a0<a href=\"https:\/\/blog.capilano-fw.com\/?p=727\">\u5168117\u7a2e\u985e\uff01Laravel 5.6\u301c7.x\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u5b9f\u4f8b<\/a><\/p>\n<h1>\u30d3\u30e5\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u6700\u5f8c\u306b\u30e1\u30a4\u30f3\u306e\u30d3\u30e5\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>resources\/views\/cash_register\/index.blade.php<\/strong><\/p>\n<pre>&lt;html&gt;\r\n&lt;head&gt;\r\n    &lt;link href=\"https:\/\/unpkg.com\/tailwindcss@^2\/dist\/tailwind.min.css\" rel=\"stylesheet\"&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;div id=\"app\" class=\"p-5\"&gt;\r\n    &lt;h1 class=\"text-3xl font-bold text-yellow-800 mb-5\"&gt;\u30a6\u30a7\u30d6\u3067\u30ec\u30b8\u5165\u529b\u6a5f\u80fd\u30fb\u30b5\u30f3\u30d7\u30eb&lt;\/h1&gt;\r\n    &lt;div class=\"my-5\" v-if=\"!focusing\"&gt;\r\n        &lt;span class=\"bg-red-500 text-red-50 rounded p-3 font-bold\"&gt;&amp;#x26A0; JAN\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3067\u304d\u307e\u305b\u3093\u3002\u753b\u9762\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u3057\u3066\u304f\u3060\u3055\u3044\u3002&lt;\/span&gt;\r\n    &lt;\/div&gt;\r\n    &lt;table class=\"borer border-2 border-gray-200\"&gt;\r\n        &lt;thead class=\"bg-blue-200\"&gt;\r\n            &lt;tr&gt;\r\n                &lt;th class=\"p-2\"&gt;\u5546\u54c1\u540d&lt;\/th&gt;\r\n                &lt;th class=\"p-2\"&gt;\u4fa1\u683c&lt;\/th&gt;\r\n                &lt;th class=\"p-2\"&gt;\u6570\u91cf&lt;\/th&gt;\r\n                &lt;th class=\"p-2\"&gt;\u6570\u91cf\u5909\u66f4&lt;\/th&gt;\r\n                &lt;th class=\"p-2\"&gt;\u524a\u9664&lt;\/th&gt;\r\n            &lt;\/tr&gt;\r\n        &lt;\/thead&gt;\r\n        &lt;tbody class=\"bg-gray-50\"&gt;\r\n\r\n            <strong>&lt;!-- \u2460 \u8aad\u307f\u8fbc\u307e\u308c\u305f\u5546\u54c1\u306e\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b --&gt;<\/strong>\r\n<strong>            &lt;tr v-for=\"item in items\"&gt;<\/strong>\r\n<strong>                &lt;td class=\"p-2\" v-text=\"item.title\"&gt;&lt;\/td&gt;<\/strong>\r\n<strong>                &lt;td class=\"p-2\" v-text=\"item.price\"&gt;&lt;\/td&gt;<\/strong>\r\n<strong>                &lt;td class=\"p-2 text-center\" v-text=\"item.quantity\"&gt;&lt;\/td&gt;<\/strong>\r\n<strong>                &lt;td class=\"p-2 text-center\"&gt;<\/strong>\r\n<strong>                    &lt;button class=\"bg-blue-500 px-2 py-1 text-blue-50 rounded ml-4\" type=\"button\" @click=\"onEdit(item)\"&gt;\u5909\u66f4&lt;\/button&gt;<\/strong>\r\n<strong>                &lt;\/td&gt;<\/strong>\r\n<strong>                &lt;td class=\"p-2 text-center\"&gt;<\/strong>\r\n<strong>                    &lt;button class=\"bg-red-500 px-2 py-1 text-red-50 rounded\" type=\"button\" @click=\"onDelete(item)\"&gt;\u524a\u9664&lt;\/button&gt;<\/strong>\r\n<strong>                &lt;\/td&gt;<\/strong>\r\n<strong>            &lt;\/tr&gt;\r\n<\/strong>\r\n<strong>            &lt;!-- \u2461 \u4fa1\u683c\u306e\u5408\u8a08\u91d1\u984d\u3092\u8868\u793a\u3059\u308b --&gt;<\/strong>\r\n<strong>            &lt;tr&gt;<\/strong>\r\n<strong>                &lt;td class=\"p-3 font-bold text-3xl text-right\" colspan=\"5\"&gt;<\/strong>\r\n<strong>                    &lt;span v-text=\"totalPrice\"&gt;&lt;\/span&gt;\u5186<\/strong>\r\n<strong>                    &lt;span class=\"text-sm font-normal text-gray-500\"&gt;\uff08\u7a0e: &lt;span v-text=\"totalTax\"&gt;&lt;\/span&gt;\u5186\uff09&lt;\/span&gt;<\/strong>\r\n<strong>                &lt;\/td&gt;<\/strong>\r\n<strong>            &lt;\/tr&gt;\r\n<\/strong>\r\n        &lt;\/tbody&gt;\r\n    &lt;\/table&gt;\r\n\r\n    <strong>&lt;!-- \u2462 JAN\u30b3\u30fc\u30c9\u306e\u5165\u529b\u30dc\u30c3\u30af\u30b9 --&gt;<\/strong>\r\n<strong>    &lt;input<\/strong>\r\n<strong>        ref=\"janCodeInput\"<\/strong>\r\n<strong>        style=\"position:absolute;top:-100px;left:-100px;\"<\/strong>\r\n<strong>        type=\"text\"<\/strong>\r\n<strong>        v-model=\"janCode\"<\/strong>\r\n<strong>        @input=\"onInput\"<\/strong>\r\n<strong>        @focus=\"onFocus\"<\/strong>\r\n<strong>        @blur=\"onBlur\"&gt;\r\n<\/strong>\r\n&lt;\/div&gt;\r\n&lt;script src=\"https:\/\/unpkg.com\/vue@3.0.2\/dist\/vue.global.prod.js\"&gt;&lt;\/script&gt;\r\n&lt;script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/axios\/0.19.2\/axios.min.js\"&gt;&lt;\/script&gt;\r\n&lt;script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/lodash.js\/4.17.20\/lodash.min.js\"&gt;&lt;\/script&gt;\r\n&lt;script&gt;\r\n\r\n    Vue.createApp({\r\n        data() {\r\n            return {\r\n                focusing: false, \/\/ &lt;input&gt; \u304c\u5165\u529b\u72b6\u614b\u304b\u3069\u3046\u304b\r\n                submitting: false, \/\/ Ajax\u9001\u4fe1\u4e2d\u304b\u3069\u3046\u304b\r\n                janCode: '',\r\n                items: [], \/\/ \u8aad\u307f\u53d6\u308a\u6e08\u307f\u306eJAN\u30b3\u30fc\u30c9\r\n            }\r\n        },\r\n        <strong>methods: {<\/strong>\r\n<strong>            getItem(janCode) {  \/\/ \u2463 Ajax\u3067\u5546\u54c1\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b<\/strong>\r\n\r\n<strong>                this.submitting = true; \/\/ \u300c\u9001\u4fe1\u4e2d\u300d\u306b\u5909\u66f4<\/strong>\r\n<strong>                const url = `\/cash_register\/${janCode}`;<\/strong>\r\n<strong>                axios.get(url)<\/strong>\r\n<strong>                    .then(response =&gt; {<\/strong>\r\n\r\n<strong>                        if(response.data.result === true) {<\/strong>\r\n\r\n<strong>                            const item = response.data.item;<\/strong>\r\n<strong>                            this.addItem(item);<\/strong>\r\n\r\n<strong>                        } else {<\/strong>\r\n\r\n<strong>                            alert('\u3053\u306e\u5546\u54c1\u306f\u5b58\u5728\u3057\u307e\u305b\u3093...');<\/strong>\r\n\r\n<strong>                        }<\/strong>\r\n\r\n<strong>                    })<\/strong>\r\n<strong>                    .catch(error =&gt; {<\/strong>\r\n\r\n<strong>                        alert('\u4e88\u671f\u3057\u306a\u3044\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f...');<\/strong>\r\n\r\n<strong>                    })<\/strong>\r\n<strong>                    .finally(() =&gt; { \/\/ \u6210\u529f\u3057\u3088\u3046\u304c\u5931\u6557\u3057\u3088\u3046\u304c\u5fc5\u305a\u901a\u308b\u5834\u6240<\/strong>\r\n\r\n<strong>                        this.submitting = false; \/\/ \u9001\u4fe1\u72b6\u614b\u3092\u521d\u671f\u5316<\/strong>\r\n<strong>                        this.janCode = ''; \/\/ JAN\u30b3\u30fc\u30c9\u3092\u521d\u671f\u5316<\/strong>\r\n\r\n<strong>                    });<\/strong>\r\n\r\n<strong>            },<\/strong>\r\n<strong>            onInput() { \/\/ \u2464 \u8aad\u307f\u53d6\u3063\u305fJAN\u30b3\u30fc\u30c9\u304c\u5165\u529b\u3055\u308c\u305f\u3068\u304d\u306b\u5b9f\u884c<\/strong>\r\n\r\n<strong>                if(this.submitting === false) {<\/strong>\r\n\r\n<strong>                    const janCode = this.emToEn(this.janCode);<\/strong>\r\n\r\n<strong>                    if(janCode.match(\/^[0-9]{13}$\/)) { \/\/ \u534a\u89d2\u6570\u5b57\u304c13\u6587\u5b57\u306e\u5834\u5408\u3060\u3051\u5b9f\u884c\u3059\u308b<\/strong>\r\n\r\n<strong>                        this.getItem(janCode);<\/strong>\r\n\r\n<strong>                    }<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n\r\n<strong>            },<\/strong>\r\n<strong>            onFocus() { \/\/ \u2465-1 \u5165\u529b\u30dc\u30c3\u30af\u30b9\u304c\u5165\u529b\u72b6\u614b\u306b\u306a\u3063\u305f\u3068\u304d<\/strong>\r\n\r\n<strong>                this.focusing = true;<\/strong>\r\n\r\n<strong>            },<\/strong>\r\n<strong>            onBlur() { \/\/ \u2465-2 \u5165\u529b\u30dc\u30c3\u30af\u30b9\u304c\u5165\u529b\u72b6\u614b\u3067\u306f\u306a\u304f\u306a\u3063\u305f\u3068\u304d<\/strong>\r\n\r\n<strong>                this.focusing = false;<\/strong>\r\n<strong>                this.janCodeInput.focus(); \/\/ \u3059\u3050\u5165\u529b\u72b6\u614b\u3078\u623b\u3059<\/strong>\r\n\r\n<strong>            },<\/strong>\r\n<strong>            onDelete(item) { \/\/ \u2466 \u524a\u9664\u3059\u308b\u30dc\u30bf\u30f3\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u3068\u304d<\/strong>\r\n\r\n<strong>                const message = `\u300e${item.title}\u300f\u3092\u524a\u9664\u3057\u307e\u3059\u3002\u3088\u308d\u3057\u3044\u3067\u3059\u304b\uff1f`;<\/strong>\r\n\r\n<strong>                if(confirm(message)) {<\/strong>\r\n\r\n<strong>                    _.remove(this.items, {<\/strong>\r\n<strong>                        jan_code: item.jan_code<\/strong>\r\n<strong>                    })<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n\r\n<strong>            },<\/strong>\r\n<strong>            onEdit(item) { \/\/ \u2467 \u500b\u6570\u306e\u5909\u66f4\u30dc\u30bf\u30f3\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u3068\u304d<\/strong>\r\n\r\n<strong>                let newQuantity = prompt('\u4ef6\u6570\u3092\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002', item.quantity);<\/strong>\r\n<strong>                newQuantity = parseInt(<\/strong>\r\n<strong>                    this.emToEn(newQuantity)<\/strong>\r\n<strong>                );<\/strong>\r\n\r\n<strong>                if(newQuantity &gt; 0) {<\/strong>\r\n\r\n<strong>                    item.quantity = newQuantity;<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n\r\n<strong>            },<\/strong>\r\n<strong>            addItem(addingItem) {<\/strong>\r\n\r\n<strong>                const item = _.find(this.items, { \/\/ \u540c\u3058JAN\u30b3\u30fc\u30c9\u306e\u5546\u54c1\u3092\u63a2\u3059<\/strong>\r\n<strong>                   jan_code: addingItem.jan_code<\/strong>\r\n<strong>                });<\/strong>\r\n\r\n<strong>                if(item !== undefined) { \/\/ \u3059\u3067\u306b\u540c\u3058\u5546\u54c1\u304c\u8aad\u307f\u53d6\u3089\u308c\u3066\u3044\u308b\u5834\u5408<\/strong>\r\n\r\n<strong>                    item.quantity++;<\/strong>\r\n\r\n<strong>                } else { \/\/ \u65b0\u3057\u304f\u8aad\u307f\u53d6\u3089\u308c\u305f\u5834\u5408<\/strong>\r\n\r\n<strong>                    addingItem['quantity'] = 1;<\/strong>\r\n<strong>                    this.items.push(addingItem);<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n\r\n<strong>            },<\/strong>\r\n<strong>            emToEn(str) { \/\/ \u5168\u89d2\u6570\u5b57\u3092\u534a\u89d2\u3078\u5909\u63db<\/strong>\r\n\r\n<strong>                return str.replace(\/[\uff10-\uff19]\/g, s =&gt; {<\/strong>\r\n\r\n<strong>                    return String.fromCharCode(s.charCodeAt(0) - 0xFEE0);<\/strong>\r\n\r\n<strong>                });<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n<strong>        },<\/strong>\r\n<strong>        computed: {<\/strong>\r\n<strong>            \/\/ \u2468 \u5408\u8a08\u91d1\u984d\u3092\u8a08\u7b97\u3059\u308b<\/strong>\r\n<strong>            totalPrice() {<\/strong>\r\n\r\n<strong>                return _.sumBy(this.items, item =&gt; {<\/strong>\r\n\r\n<strong>                    return item.price * item.quantity;<\/strong>\r\n\r\n<strong>                }) + this.totalTax;<\/strong>\r\n\r\n<strong>            },<\/strong>\r\n<strong>            totalTax() {<\/strong>\r\n\r\n<strong>                return _.sumBy(this.items, item =&gt; {<\/strong>\r\n\r\n<strong>                    return Math.floor(item.price * item.tax_percent * item.quantity * 0.01);<\/strong>\r\n\r\n<strong>                });<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n<strong>        },<\/strong>\r\n<strong>        mounted() {<\/strong>\r\n\r\n<strong>            this.janCodeInput.focus(); \/\/ &lt;input&gt; \u3092\u5165\u529b\u72b6\u614b\u306b\u3059\u308b<\/strong>\r\n\r\n<strong>            \/\/ \u30c6\u30b9\u30c8\u306e\u3061\u3087\u3063\u3068\u3057\u305fTip<\/strong>\r\n<strong>            \/\/ this.getItem('9784534051943');<\/strong>\r\n<strong>            \/\/ this.getItem('9784839928407');<\/strong>\r\n\r\n<strong>        },<\/strong>\r\n<strong>        setup() {<\/strong>\r\n\r\n<strong>            return {<\/strong>\r\n<strong>                janCodeInput: Vue.ref(null) \/\/ \u2469 &lt;input ref=\"janCodeInput\"...&gt; \u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b<\/strong>\r\n<strong>            }<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n    }).mount('#app');\r\n\r\n&lt;\/script&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u3067\u306f\u3001\u30b3\u30fc\u30c9\u304c\u9577\u3044\u306e\u3067\u9806\u3092\u8ffd\u3063\u3066\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2>\u2460 \u8aad\u307f\u8fbc\u307e\u308c\u305f\u5546\u54c1\u306e\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b<\/h2>\n<p>USB\u30d0\u30fc\u30b3\u30fc\u30c9\u30ea\u30fc\u30c0\u30fc\u3067JAN\u30b3\u30fc\u30c9\u3092\u8aad\u307f\u53d6\u308b\u3068\u3001Ajax\u3067\u5546\u54c1\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u305d\u306e\u5168\u30c7\u30fc\u30bf\u304c\u3053\u3053\u306b\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\uff11\u884c\u3054\u3068\u306b\u300c\u5909\u66f4\u300d\u3068\u300c\u524a\u9664\u300d\u30dc\u30bf\u30f3\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u2461 \u4fa1\u683c\u306e\u5408\u8a08\u91d1\u984d\u3092\u8868\u793a\u3059\u308b<\/h2>\n<p>\u5546\u54c1\u30c7\u30fc\u30bf\u306e\u5024\u6bb5\u3068\u6d88\u8cbb\u7a0e\u306e\u5408\u8a08\u3092\u8868\u793a\u3059\u308b\u90e8\u5206\u3067\u3059\u3002<br \/>\n\u8a08\u7b97\u90e8\u5206\u306f\u3001\u300c\u2468 \u5408\u8a08\u91d1\u984d\u3092\u8a08\u7b97\u3059\u308b\u300d\u3067\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h2>\u2462 JAN\u30b3\u30fc\u30c9\u306e\u5165\u529b\u30dc\u30c3\u30af\u30b9<\/h2>\n<p>\u3053\u3053\u306f\u5c11\u3057\u5909\u5316\u7403\u306a\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p>\u306a\u305c\u306a\u3089\u3001\u3053\u306e\u5165\u529b\u30dc\u30c3\u30af\u30b9\u306f\u300c<strong>\u8868\u793a\u3059\u308b\u3051\u3069\u898b\u305b\u306a\u3044<\/strong>\u300d\u3082\u306e\u3060\u304b\u3089\u3067\u3059\u3002<br \/>\n\u305d\u306e\u305f\u3081\u3001\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><strong>style=\"position:absolute;top:-100px;left:-100px;\"<\/strong><\/pre>\n<p><span style=\"font-size: 1rem;\">\u306a\u305c\u306a\u3089\u3001\u3053\u306e\u5165\u529b\u30dc\u30c3\u30af\u30b9\u306f<strong>\u30d0\u30fc\u30b3\u30fc\u30c9\u30ea\u30fc\u30c0\u30fc\u306e\u305f\u3081\u306b\u3060\u3051\u7528\u610f\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u76f4\u63a5\u64cd\u4f5c\u3055\u308c\u308b\u3068\u90fd\u5408\u304c\u60aa\u3044<\/strong>\u304b\u3089\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u5f37\u5236\u7684\u306b\u753b\u9762\u5916\u3078\u79fb\u52d5\u3055\u305b\u3066\u3044\u308b\u3093\u3067\u3059\u306d\u3002<\/span><\/p>\n<p>\u3067\u306f\u3001\u306a\u305c<code>class\"hidden\"<\/code>\u3068\u3057\u3066\u8868\u793a\u81ea\u4f53\u3092\u6d88\u3057\u3066\u3057\u307e\u308f\u306a\u3044\u304b\u3068\u3044\u3046\u3068\u3001\u305d\u308c\u3067\u306f\u5165\u529b\u81ea\u4f53\u304c\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u3001\u3082\u3061\u308d\u3093<code>Vue<\/code>\u5074\u306b\u3082\u30c7\u30fc\u30bf\u304c\u4f1d\u308f\u3089\u306a\u3044\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u3053\u306e\u5165\u529b\u30dc\u30c3\u30af\u30b9\u306b\u306f\u4ee5\u4e0b\uff13\u3064\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u30a4\u30d9\u30f3\u30c8\u3068\u3057\u3066\u30bb\u30c3\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>onInput\uff1a \u5165\u529b\u3057\u305f\u6642<\/li>\n<li>onFocus\uff1a \u30d5\u30a9\u30fc\u30ab\u30b9\u304c\u5f53\u305f\u3063\u305f\u3068\u304d<\/li>\n<li>onBlur\uff1a \u30d5\u30a9\u30fc\u30ab\u30b9\u304c\u5916\u308c\u305f\u3068\u304d<\/li>\n<\/ul>\n<h2>\u2463 Ajax\u3067\u5546\u54c1\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b<\/h2>\n<p><code>getItem()<\/code>\u306e\u4e2d\u3067\u306f\u3001Ajax\u9001\u4fe1\u3067\u5546\u54c1\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3044\u308b\u306e\u306f\u3001<code>CashRegisterController<\/code>\u306e<code>show()<\/code>\u3067\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u9014\u4e2d\u3067<code>addItem()<\/code>\u304c\u547c\u3070\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306e\u4e2d\u3067\u306f\u4ee5\u4e0b\uff12\u3064\u306e\u6761\u4ef6\u3067\u51e6\u7406\u3092\u5909\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u307e\u3060\u4e00\u89a7\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u306a\u3044\u5546\u54c1\u306e\u5834\u5408\uff1a this.items \u3078\u65b0\u898f\u8ffd\u52a0<\/li>\n<li>\u3059\u3067\u306b\u4e00\u89a7\u306b\u3042\u308b\u5834\u5408\uff1a \u305d\u306e\u500b\u6570\u3060\u3051\u3092\u30d7\u30e9\u30b9\uff11\u3059\u308b<\/li>\n<\/ul>\n<p>\u306a\u304a\u3001<code>getItem()<\/code>\u3092\u547c\u3073\u51fa\u3057\u3066\u3044\u308b\u306e\u306f\u3001<code>onInput()<\/code>\u306e\u4e2d\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u76f4\u63a5\u305d\u306e\u4e2d\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u3042\u3048\u3066<code>getItem()<\/code>\u3068\u3057\u3066\u5206\u96e2\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u306a\u305c\u304b\u3068\u3044\u3046\u3068\u3001\u300c<strong>\u30c6\u30b9\u30c8\u304c\u3057\u3084\u3059\u3044\u304b\u3089<\/strong>\u300d\u3067\u3059\u3002<\/p>\n<p><code>mounted()<\/code>\u306e\u4e2d\u3092\u898b\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3055\u308c\u305f\u90e8\u5206\u304c\u3042\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<pre>\/\/ \u30c6\u30b9\u30c8\u306e\u3061\u3087\u3063\u3068\u3057\u305fTip\r\n\/\/ this.getItem('9784534051943');\r\n\/\/ this.getItem('9784839928407');<\/pre>\n<p>\u3064\u307e\u308a\u3001\u30c6\u30b9\u30c8\u306e\u3068\u304d\u306f<strong>\u3053\u3053\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3059\u308b\u3060\u3051\u3067\u3044\u3061\u3044\u3061\u30d0\u30fc\u30b3\u30fc\u30c9\u3092\u8aad\u307f\u8fbc\u307e\u306a\u304f\u3066\u3088\u304f\u306a\u308b<\/strong>\u3093\u3067\u3059\u306d\u3002\uff08\u6700\u521d\u306f\u30d4\u30c3\u30d4\u3068\u97f3\u3092\u306a\u3089\u3057\u306a\u304c\u3089\u8aad\u307f\u53d6\u3063\u3066\u307e\u3057\u305f\u304c\u3001\u9014\u4e2d\u3067\u3081\u3093\u3069\u3046\u306b\u306a\u3063\u3066\u3053\u306e\u5f62\u306b\u3057\u307e\u3057\u305f\uff09<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u958b\u767a\u3084\u4fdd\u5b88\u306e\u305f\u3081\u306b\u69cb\u9020\u3092\u5909\u5316\u3055\u305b\u3066\u304a\u304f\u3053\u3068\u3082\u300c\u30e9\u30af\u300d\u3067\u304d\u308b\u30c6\u30af\u30cb\u30c3\u30af\u306e\u3072\u3068\u3064\u3060\u3068\u601d\u3044\u307e\u3059\ud83d\udc4d<\/p>\n<h2>\u2464 \u8aad\u307f\u53d6\u3063\u305fJAN\u30b3\u30fc\u30c9\u304c\u5165\u529b\u3055\u308c\u305f\u3068\u304d\u306b\u5b9f\u884c<\/h2>\n<p>USB\u30d0\u30fc\u30b3\u30fc\u30c9\u30ea\u30fc\u30c0\u30fc\u306f\u3001\u5f62\u304c\u9055\u3046\u3060\u3051\u3067\u307b\u307c\u30ad\u30fc\u30dc\u30fc\u30c9\u3068\u540c\u3058\u52d5\u304d\u3092\u3057\u307e\u3059\u3002\u3064\u307e\u308a\u3001<code>onInput()<\/code>\u306f\u6587\u5b57\u5217\u306e\u6570\u3060\u3051\u547c\u3070\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u305d\u3046\u306a\u3063\u3066\u3057\u307e\u3046\u3068\u4e00\u6587\u5b57\u8ffd\u52a0\u3055\u308c\u308b\u3054\u3068\u306bAjax\u9001\u4fe1\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u3001\u6642\u9593\u304c\u304b\u304b\u3063\u3066\u3057\u307e\u3046\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u3063\u3066\u300c<strong>\u534a\u89d2\u6570\u5b57\u304c13\u6841\u306e\u5834\u5408\u3060\u3051\u9001\u4fe1<\/strong>\u300d\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>if(<strong>janCode.match(\/^[0-9]{13}$\/)<\/strong>) { \/\/ \u534a\u89d2\u6570\u5b57\u304c13\u6587\u5b57\u306e\u5834\u5408\u3060\u3051\u5b9f\u884c\u3059\u308b\r\n\r\n    this.getItem(janCode);\r\n\r\n}<\/pre>\n<h2>\u2465 \u5165\u529b\u30dc\u30c3\u30af\u30b9\u304c\u5165\u529b\u72b6\u614b\u306b\u306a\u3063\u305f\uff0f\u3067\u306f\u306a\u304f\u306a\u3063\u305f\u3068\u304d<\/h2>\n<p>\u307e\u305a<code>onBlur<\/code>\u306f<strong>JAN\u30b3\u30fc\u30c9\u306e\u5165\u529b\u30dc\u30c3\u30af\u30b9\u304b\u3089\u30d5\u30a9\u30fc\u30ab\u30b9\u304c\u5916\u308c\u305f<\/strong>\uff08\u5165\u529b\u72b6\u614b\u3067\u306f\u306a\u304f\u306a\u3063\u305f\uff09\u3068\u304d\u306b\u5b9f\u884c\u3055\u308c\u308b\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u5834\u5408\u3001\u81ea\u52d5\u7684\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u304c\u623b\u308b\uff08\u5165\u529b\u72b6\u614b\u306b\u623b\u3059\uff09\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001<code>onFocus<\/code>\u3001<code>onBlur<\/code>\u3068\u3082\u306b\u5b9f\u884c\u3055\u308c\u305f\u3068\u304d\u306b<code>focusing<\/code>\u3068\u3044\u3046\u5909\u6570\u306b<code>true<\/code> or <code>false<\/code>\u3092\u683c\u7d0d\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001\u3082\u3057\u30d5\u30a9\u30fc\u30ab\u30b9\u304c\u5916\u308c\u305f\uff08\u4f8b\u3048\u3070\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u51fa\u3066\u3001\u4ed6\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u304c\u5f53\u305f\u3063\u305f\u5834\u5408\u306a\u3069\uff09\u5834\u5408\u306b\u4ee5\u4e0b\u306e\u8b66\u544a\u3092\u51fa\u3059\u305f\u3081\u3067\u3059\u3002<\/p>\n<pre>&lt;div class=\"my-5\" <strong>v-if=\"!focusing\"<\/strong>&gt;\r\n    &lt;span class=\"bg-red-500 text-red-50 rounded p-3 font-bold\"&gt;&amp;#x26A0; JAN\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3067\u304d\u307e\u305b\u3093\u3002\u753b\u9762\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u3057\u3066\u304f\u3060\u3055\u3044\u3002&lt;\/span&gt;\r\n&lt;\/div&gt;<\/pre>\n<h2>\u2466 \u524a\u9664\u3059\u308b\u30dc\u30bf\u30f3\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u3068\u304d<\/h2>\n<p>\u5546\u54c1\u4e00\u89a7\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u300c<strong>\u524a\u9664<\/strong>\u300d\u30dc\u30bf\u30f3\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u3068\u304d\u306b\u5b9f\u884c\u3055\u308c\u308b\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b<code>Lodash.js<\/code>\u3092\u4f7f\u3048\u3070\u7c21\u5358\u306b\u8a72\u5f53\u3059\u308b\u30c7\u30fc\u30bf\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<code>_.***()<\/code>\u306f<code>lodash<\/code>\u3067\u3059\u3002<\/p>\n<pre><strong>_.remove(this.items, {<\/strong>\r\n<strong>    jan_code: item.jan_code<\/strong>\r\n<strong>})<\/strong><\/pre>\n<p>\u306a\u304a\u3001\u4eca\u56de\u306f<code>lodash<\/code>\u3092\u3044\u304f\u3064\u304b\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u4ed6\u306e\u30e1\u30bd\u30c3\u30c9\u306b\u3082\u8208\u5473\u306e\u3042\u308b\u65b9\u306f\u4ee5\u4e0b\u304b\u3089\u3069\u3046\u305e\ud83d\udc4d<\/p>\n<p>\ud83d\udcdd\u00a0<a href=\"https:\/\/blog.capilano-fw.com\/?p=7524\">Lodash\u306e\u4fbf\u5229\u306a\u30e1\u30bd\u30c3\u30c9\uff17\u9078\uff01<\/a><\/p>\n<h2>\u2467 \u500b\u6570\u306e\u5909\u66f4\u30dc\u30bf\u30f3\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u3068\u304d<\/h2>\n<p>\u5546\u54c1\u306e\u500b\u6570\u3092\u5909\u66f4\u3059\u308b\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p>\u672c\u6765\u306f\u30e2\u30fc\u30c0\u30eb\u306a\u3069\u3067\u96fb\u5353\u7528\u306e\u3088\u3046\u306a\u5165\u529b\u3092\u7528\u610f\u3059\u3079\u304d\u306a\u306e\u3067\u3057\u3087\u3046\u304c\u3001\u8907\u96d1\u306b\u306a\u308a\u3059\u304e\u3066\u3057\u307e\u3046\u305f\u3081<code>prompt()<\/code>\u3092\u4f7f\u3044\u307e\u3057\u305f\u3002\uff08\u30db\u30f3\u30c8\u3001\u4e45\u3057\u3076\u308a\u306b\u4f7f\u3044\u307e\u3057\u305f\ud83d\ude02\uff09<\/p>\n<h2>\u2468 \u5408\u8a08\u91d1\u984d\u3092\u8a08\u7b97\u3059\u308b<\/h2>\n<p><code>totalPrice()<\/code>\u3068<code>totalTax()<\/code>\u306f\u3001\u305d\u308c\u305e\u308c\u91d1\u984d\u3068\u7a0e\u984d\u306e\u5408\u8a08\u3092\u8a08\u7b97\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u3053\u3053\u306f<code>computed<\/code>\u306e\u4e2d\u306b\u5165\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u300c\u5909\u6570\u306e\u3088\u3046\u306b\u300d\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>&lt;span <strong>v-text=\"totalPrice\"<\/strong>&gt;&lt;\/span&gt;\u5186<\/pre>\n<h2>\u2469 &lt;input ref=&#8221;janCodeInput&#8221;&#8230;&gt; \u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b<\/h2>\n<p>\u3053\u3053\u306f\u3001<code>Vue 2<\/code>\u3067\u8a00\u3046\u3068\u3053\u308d\u306e<code>this.$refs<\/code>\u306b\u5f53\u305f\u308b\u90e8\u5206\u3067\u3059\u3002<br \/>\n<code>Vue 3<\/code>\u304b\u3089\u306f\u3053\u306e\u3088\u3046\u306a\u66f8\u304d\u65b9\u306b\u5909\u66f4\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3046\u3059\u308b\u3053\u3068\u3067\u3001\u7c21\u5358\u306b\u5165\u529b\u30dc\u30c3\u30af\u30b9\u306e\u8981\u7d20\u3092\u53d6\u5f97\u3067\u304d\u308b\u306e\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u4f7f\u3044\u65b9\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><strong>this.janCodeInput.focus(); \/\/ \u5165\u529b\u30dc\u30c3\u30af\u30b9\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u3092\u5f53\u3066\u308b<\/strong><\/pre>\n<p>\u306a\u304a\u3001<code>Vue 2<\/code> \u2192 <code>Vue 3<\/code>\u306e\u5909\u66f4\u70b9\u306f\u4ee5\u4e0b\u306b\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\ud83d\udcdd\u00a0<a href=\"https:\/\/blog.capilano-fw.com\/?p=6393\">Vue 3\u306e\u65b0\u3057\u3044\u6a5f\u80fd\u3068\u5909\u66f4\u70b9\u30fb\u516811\u4ef6<\/a><\/p>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u2757<\/p>\n<p>\u307e\u305a\u306f\u3001\u300c<strong>https:\/\/*******\/cash_register<\/strong>\u300d\u306b\u30d6\u30e9\u30a6\u30b6\u3067\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<br \/>\n\u3059\u308b\u3068\u3001\u307e\u3060\u5546\u54c1\u306f\u8aad\u307f\u8fbc\u307e\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8868\u793a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8614\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_1.png\" alt=\"\" width=\"482\" height=\"187\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_1.png 482w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_1-300x116.png 300w\" sizes=\"auto, (max-width: 482px) 100vw, 482px\" \/><\/p>\n<p>\u3067\u306f\u3001\u3053\u306e\u72b6\u614b\u3067\u30d0\u30fc\u30b3\u30fc\u30c9\u3092\u8aad\u307f\u53d6\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002\uff08\u3082\u3061\u308d\u3093\u3001<code>CashRegisterController<\/code>\u306b\u767b\u9332\u3057\u305fJAN\u30b3\u30fc\u30c9\u3067\u3059\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8613\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_2.png\" alt=\"\" width=\"524\" height=\"238\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_2.png 524w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_2-300x136.png 300w\" sizes=\"auto, (max-width: 524px) 100vw, 524px\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\u5546\u54c1\u3068\u5408\u8a08\u91d1\u984d\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\n\u3067\u306f\u3001\u6b21\u306b\u5225\u306e\u5546\u54c1\u3082\u8ffd\u52a0\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8612\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_3.png\" alt=\"\" width=\"556\" height=\"285\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_3.png 556w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_3-300x154.png 300w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u3046\u307e\u304f\u8ffd\u52a0\u3055\u308c\u3001\u5408\u8a08\u91d1\u984d\u3082\u5909\u66f4\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u306f\u3001\u3042\u3048\u3066\u3053\u306e\u72b6\u614b\u3067\u540c\u3058\u5546\u54c1\u3092\u8aad\u307f\u8fbc\u3093\u3067\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8611\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_4.png\" alt=\"\" width=\"555\" height=\"289\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_4.png 555w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_4-300x156.png 300w\" sizes=\"auto, (max-width: 555px) 100vw, 555px\" \/><\/p>\n<p>\u5546\u54c1\u304c\u306e\u6570\u91cf\u304c<code>2<\/code>\u306b\u5909\u66f4\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u3067\u306f\u3001\u4eca\u5ea6\u306f\u624b\u52d5\u3067\u3053\u306e\u6570\u91cf\u3092<code>5<\/code>\u306b\u5909\u66f4\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u300c<strong>\u5909\u66f4<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8610\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_5.png\" alt=\"\" width=\"554\" height=\"286\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_5.png 554w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_5-300x155.png 300w\" sizes=\"auto, (max-width: 554px) 100vw, 554px\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u3053\u306e\u6570\u5b57\u3092<code>5<\/code>\u306b\u3057\u3066\u300cOK\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8609\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_6.png\" alt=\"\" width=\"445\" height=\"186\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_6.png 445w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_6-300x125.png 300w\" sizes=\"auto, (max-width: 445px) 100vw, 445px\" \/><\/p>\n<p>\u3069\u3046\u306a\u308b\u3067\u3057\u3087\u3046\u304b\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8608\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_7.png\" alt=\"\" width=\"560\" height=\"288\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_7.png 560w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_7-300x154.png 300w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u6570\u91cf\u304c<code>5<\/code>\u306b\u5909\u66f4\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u306f\u7d9a\u3044\u3066\u5546\u54c1\u306e\u524a\u9664\u3067\u3059\u3002<br \/>\n\u300c\u7d0d\u54c1\u300d\u3092&#8230; \u306e\u884c\u306b\u3042\u308b\u300c<strong>\u524a\u9664<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8607\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_8.png\" alt=\"\" width=\"556\" height=\"286\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_8.png 556w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_8-300x154.png 300w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\u78ba\u8a8d\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u300cOK\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8606\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_9.png\" alt=\"\" width=\"442\" height=\"157\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_9.png 442w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_9-300x107.png 300w\" sizes=\"auto, (max-width: 442px) 100vw, 442px\" \/><\/p>\n<p>\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8605\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_10.png\" alt=\"\" width=\"553\" height=\"237\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_10.png 553w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_10-300x129.png 300w\" sizes=\"auto, (max-width: 553px) 100vw, 553px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u8a72\u5f53\u306e\u30c7\u30fc\u30bf\u304c\u524a\u9664\u3055\u308c\u307e\u3057\u305f\ud83d\ude0a\u2728<\/p>\n<p>\u3067\u306f\u3001\u6700\u5f8c\u306b\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30d5\u30a9\u30fc\u30ab\u30b9\u3092\u5916\u3057\u3066\u8b66\u544a\u304c\u3067\u308b\u306e\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8604\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_11.png\" alt=\"\" width=\"567\" height=\"284\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_11.png 567w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/cash_register_11-300x150.png 300w\" sizes=\"auto, (max-width: 567px) 100vw, 567px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u5168\u3066\u60f3\u5b9a\u901a\u308a\u306b\u52d5\u3044\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3084\u308a\u307e\u3057\u305f\ud83d\ude0a\ud83d\udc4d\u2728<\/p>\n<h1>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<\/h1>\n<p>\u4eca\u56de\u5b9f\u969b\u306b\u958b\u767a\u3057\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4e00\u5f0f\u3092\u4ee5\u4e0b\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002<\/p>\n<a  data-e-Disable-Page-Transition=\"true\" class=\"download-link\" title=\"\" href=\"https:\/\/blog.capilano-fw.com?download=8615&amp;tmstv=1777532672\" rel=\"nofollow\" id=\"download-link-8615\" data-redirect=\"false\" >\n\t\u30a6\u30a7\u30d6\u3067\u30ec\u30b8\u5165\u529b\u6a5f\u80fd\u3092\u3064\u304f\u308b<\/a>\n\n<p>\u203b CDN\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3001<code>Laravel<\/code>\u306b\u30bb\u30c3\u30c8\u3057\u305f\u3089\u3059\u3050\u4f7f\u3048\u307e\u3059\u3088\ud83d\udc4d<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u68da\u306e\u5965\u3067\u7720\u3063\u3066\u3044\u305fUSB\u30d0\u30fc\u30b3\u30fc\u30c9\u30fb\u30ea\u30fc\u30c0\u30fc\u3092\u4f7f\u3063\u3066\u30ec\u30b8\u5165\u529b\u3092\u3064\u304f\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u500b\u4eba\u7684\u306b\u300c<strong>\u30c7\u30b8\u30bf\u30eb\u3068\u30ea\u30a2\u30eb\u306e\u878d\u5408<\/strong>\u300d\u3057\u305f\u30b7\u30b9\u30c6\u30e0\u306f\u3068\u3066\u3082\u597d\u304d\u306a\u306e\u3067\u3001\u697d\u3057\u304f\u4f5c\u696d\u3092\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3046\u3044\u3048\u3070\u3001\u68da\u306e\u5965\u306b\u306f\u307e\u3060\u300c\u30e9\u30ba\u30d9\u30ea\u30fc\u30d1\u30a4\u300d\u304c\u7720\u3063\u3066\u307e\u3057\u305f\u30fb\u30fb\u30fb\u307e\u3060\u7bb1\u304b\u3089\u7a7a\u3051\u3066\u3082\u3044\u306a\u3044\ud83d\ude02<\/p>\n<p>\u3044\u3064\u304b\u4e00\u7dd2\u306b\u904a\u307c\u3046\u306d\ud83d\udc4d<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\u2757<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6069 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_20.png\" alt=\"\" width=\"326\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_20.png 326w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_20-300x294.png 300w\" sizes=\"auto, (max-width: 326px) 100vw, 326px\" \/>\u300c\u500b\u4eba\u958b\u767a\u306b\u3064\u3044\u3066<br \/>\n\u3044\u308d\u3044\u308d\u8003\u3048\u3066\u3044\u307e\u3059<br \/>\n\uff08\u4f01\u753b\u3001\u30d8\u30bf\u3060\u3051\u3069&#8230;\uff09\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u9577\u304f\u30d6\u30ed\u30b0\u3092\u7d9a\u3051\u3066\u3044\u308b\u3068\u300c\u3046\u30fc\u3093\u3001\u305f\u307e\u306b\u306f\u5473\u5909\u3057\u305f\u8a18\u4e8b\u304c\u66f8\u304d\u305f\u3044\u300d\u306a\u3093\u3066\u601d\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002 \u3068\u3044\u3046\u306e\u3082\u30012020\u5e741\u670827\u65e5\u73fe\u5728\u3001350 \u3092\u8d85\u3048\u308b\u8a18 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=8597\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u30a6\u30a7\u30d6\u3067\u30ec\u30b8\u5165\u529b\u6a5f\u80fd\u3092\u3064\u304f\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":8603,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,12],"tags":[108],"class_list":["post-8597","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","category-vue-js","tag-108"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/8597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8597"}],"version-history":[{"count":7,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/8597\/revisions"}],"predecessor-version":[{"id":8620,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/8597\/revisions\/8620"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/8603"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}