PageSourceSearch

https://www.payuni.com.tw/js/7edf306efa73a9c3.js

js payuni.com.tw collected 2026-09-24 08:53:20 UTC 35,467 bytes, 2 lines download raw bytes

1/*! For license information please see 7edf306efa73a9c3.js.LICENSE.txt */
2!function(){"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9421],{19364:function(t,e,n){var r=n(37360),a=n.n(r)()((function(t){return t[1]}));a.push([t.id,".main-table[data-v-7cdb798d]{font-size:20px!important}",""]),e.A=a},25031:function(t,e,n){n.d(e,{A:function(){return i}});function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!=r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i={data:function(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},{sizeSm:600,sizeMd:960,sizeLg:1264,sizeXl:1904})},computed:{isMobileSize:function(){return this.$vuetify.breakpoint.width<this.sizeMd},isTabletSize:function(){return this.$vuetify.breakpoint.width<this.sizeLg}}}},39742:function(t,e,n){var r=n(37360),a=n.n(r)()((function(t){return t[1]}));a.push([t.id,".page-control[data-v-2f677ad8]{border:1px solid #5f5f5f;border-radius:3px;height:24px;margin:-2px 5px;padding:3px;text-align:center;width:70px}.enter-btn[data-v-2f677ad8]{background-color:#fff!important;border:1px solid #5c3a93;box-shadow:1px 3px 5px 0 hsla(312,9%,89%,.5);color:#5c3a93!important;font-size:14px!important;padding:4px 24px!important}",""]),e.A=a},43885:function(t,e,n){var r=n(37360),a=n.n(r)()((function(t){return t[1]}));a.push([t.id,".fix-right-btn{position:absolute;right:0;top:0}",""]),e.A=a},49421:function(t,e,n){n.r(e),n.d(e,{default:function(){return G}});var r=n(33389),a=n(67787),o=n(81207),i=n(1136),s=n(78037),u=n(53615),l=n(79987),c=n(20019),d=n(61169),f=n(93579),p=n(97218),h=n(79534),m=n(77658),g=n(25031),v=n(95258),y=n(2541),b=n(29841),w=n(47449);function x(t){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x(t)}function P(){P=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(t,e,n,r){return Object.defineProperty(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(e,n,r,a){var o=n&&n.prototype instanceof f?n:f,i=Object.create(o.prototype);return u(i,"_invoke",function(e,n,r){var a=1;return function(o,i){if(3===a)throw Error("Generator is already running");if(4===a){if("throw"===o)throw i;return{value:t,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var u=_(s,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===a)throw a=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=3;var l=c(e,n,r);if("normal"===l.type){if(a=r.done?4:2,l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a=4,r.method="throw",r.arg=l.arg)}}}(e,r,new k(a||[])),!0),i}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d={};function f(){}function p(){}function h(){}var m={};u(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(C([])));v&&v!==n&&r.call(v,o)&&(m=v);var y=h.prototype=f.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function n(a,o,i,s){var u=c(t[a],t,o);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==x(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,i,s)}),(function(t){n("throw",t,i,s)})):e.resolve(d).then((function(t){l.value=t,i(l)}),(function(t){return n("throw",t,i,s)}))}s(u.arg)}var a;u(this,"_invoke",(function(t,r){function o(){return new e((function(e,a){n(t,r,e,a)}))}return a=a?a.then(o,o):o()}),!0)}function _(e,n){var r=n.method,a=e.i[r];
2if(a===t)return n.delegate=null,"throw"===r&&e.i.return&&(n.method="return",n.arg=t,_(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=c(a,e.i,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,d;var i=o.arg;return i?i.done?(n[e.r]=i.value,n.next=e.n,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,d):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function A(t){this.tryEntries.push(t)}function S(e){var n=e[4]||{};n.type="normal",n.arg=t,e[4]=n}function k(t){this.tryEntries=[[-1]],t.forEach(A,this),this.reset(!0)}function C(e){if(null!=e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function n(){for(;++a<e.length;)if(r.call(e,a))return n.value=e[a],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(x(e)+" is not iterable")}return p.prototype=h,u(y,"constructor",h),u(h,"constructor",p),p.displayName=u(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,u(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},e.awrap=function(t){return{__await:t}},b(w.prototype),u(w.prototype,i,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(l(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(y),u(y,s,"Generator"),u(y,o,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.unshift(r);return function t(){for(;n.length;)if((r=n.pop())in e)return t.value=r,t.done=!1,t;return t.done=!0,t}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0][4];if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(t){i.type="throw",i.arg=e,n.next=t}for(var a=n.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o[4],s=this.prev,u=o[1],l=o[2];if(-1===o[0])return r("end"),!1;if(!u&&!l)throw Error("try statement without catch or finally");if(null!=o[0]&&o[0]<=s){if(s<u)return this.method="next",this.arg=t,r(u),!0;if(s<l)return r(l),!1}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var a=r;break}}a&&("break"===t||"continue"===t)&&a[0]<=e&&e<=a[2]&&(a=null);var o=a?a[4]:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a[2],d):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n[2]===t)return this.complete(n[4],n[3]),S(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n[0]===t){var r=n[4];if("throw"===r.type){var a=r.arg;S(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={i:C(e),r:n,n:r},"next"===this.method&&(this.arg=t),d}},e}function _(t,e,n,r,a,o,i){try{var s=t[o](i),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,a)}function A(t){return function(t){if(Array.isArray(t))return S(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return S(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var k={name:"ProductListTable",mixins:[g.A],props:{dtLoading:{type:Boolean,default:function(){return!1}}
2,dtDeserts:{type:Array,default:function(){return[]}},dtPerPage:{type:Number,default:function(){return 10}},dtPagination:{type:Object,default:function(){return{pageCount:0,totalItems:0}}},dtOptions:{type:Object,default:function(){return{sortBy:["TdCreateTime"],sortDesc:[!1]}}},dtPage:{type:Number,default:function(){return 0}},selected:{type:Array,default:function(){return[]}},isSelectAll:{type:Boolean,default:!1}},data:function(){return{colorVariables:w.A,updateLoading:!1,headers:[{text:"選擇",value:"data-table-select",width:"70px",class:"pl-6",cellClass:"pl-6"},{text:"項次",value:"slot_id",sortable:!1,align:"left",width:"60"},{text:"圖片",value:"slot_ImageImainUrl",sortable:!1,align:"left",width:"100"},{text:"商品編號",value:"slot_ProductNo",sortable:!1,align:"left",width:"100"},{text:"商品名稱",align:"left",sortable:!1,value:"slot_Name",width:"200"},{text:"上架時間",value:"slot_PtCreateAt",sortable:!1,align:"left",width:"120"},{text:"商品內容",align:"center",sortable:!1,value:"slot_Edit",width:"80"},{text:"庫存與定價",align:"center",sortable:!1,value:"slot_Storage",width:"120"}],options:{sortBy:["TdCreateTime"],sortDesc:[!1]},expanded:[],expandTempType:0,actionParams:{Amt:null}}},filters:{},computed:{selectedItem:{get:function(){return this.selected},set:function(t){this.$emit("update:selected",t)}},isAll:{get:function(){return this.isSelectAll},set:function(t){this.$emit("update:isSelectAll",t)}}},watch:{dtPage:function(){this.isAll=!1},dtOptions:function(t){},isSelectAll:function(t){this.selectedItem=t?A(this.dtDeserts):[]}},methods:{gotoEdit:function(t,e){this.$router.push({name:"product.edit",params:{PtSysID:t.PtSysID,mode:e}})},checkDate:function(t,e){var n=!0,r=!0;return t.includes("0000-00-00")&&(n=!1),e.includes("0000-00-00")&&(r=!1),[n,r]},updateStatus:function(t,e){var n,r=this;return(n=P().mark((function n(){var a,o;return P().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r.updateLoading=!0,n.next=3,h.A.post("/api/receive/single_page/update_status",{SysId:t.CsysID,MerSysID:t.CmerSysid,Status:e});case 3:a=n.sent,(o=a.data).success?(r.$toast.success(o.message),r.$emit("update")):r.$toast.error(o.message),r.updateLoading=!1;case 7:case"end":return n.stop()}}),n)})),function(){var t=this,e=arguments;return new Promise((function(r,a){var o=n.apply(t,e);function i(t){_(o,r,a,i,s,"next",t)}function s(t){_(o,r,a,i,s,"throw",t)}i(void 0)}))})()},copyLink:function(t){var e=document.createElement("INPUT");document.body.appendChild(e),e.setAttribute("value",t.SinglePageUrl),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.$toast.success("連結複製成功",{closeButton:!1,timeout:2e3})}}},C=k,E=n(56058),O=n.n(E),j=n(19364),T={insert:"head",singleton:!1};O()(j.A,T),j.A.locals;var I=n(98851),N=(0,I.A)(C,(function(){var t=this,e=t._self._c;return e("div",[e(b.A,{staticClass:"main-table style rounded-box font-weight-medium elevation-1",attrs:{headers:t.headers,loading:t.dtLoading,items:t.dtDeserts,"items-per-page":t.dtPerPage,"server-items-length":t.dtPagination.totalItems,options:t.options,page:t.dtPage,"show-select":"","item-key":"id","no-data-text":"尚無資料","hide-default-footer":""},on:{"update:options":function(e){t.options=e},"update:page":function(e){t.dtPage=e},"page-count":function(e){t.dtPagination.pageCount=e}},scopedSlots:t._u([{key:"header.data-table-select",fn:function(){return[e("div",{staticClass:"my-3"},[t._v("\n        選擇\n      ")])]},proxy:!0},{key:"item.slot_id",fn:function(n){var r=n.item;return[e("div",{staticClass:"my-3"}
2,[t._v("\n        "+t._s(r.id)+"\n      ")])]}},{key:"item.slot_ImageImainUrl",fn:function(n){var r=n.item;return[e("div",{class:t.isMobileSize?"height: 80px":"my-3"},[e("div",{staticStyle:{width:"60px"}},[e("div",{staticClass:"default-image"},[r.ImageImainUrl?e("div",{staticClass:"default-image-inner white"},[e("img",{attrs:{src:r.ImageImainUrl,alt:""}})]):e("div",{staticClass:"default-image-inner"},[e(l.A,[t._v(" mdi-image ")])],1)])])])]}},{key:"item.slot_ProductNo",fn:function(n){var r=n.item;return[e("div",{staticClass:"my-3"},[t._v("\n        "+t._s(r.ProductNo)+"\n      ")])]}},{key:"item.slot_PtCreateAt",fn:function(n){var r=n.item;return[e("div",{staticClass:"my-3"},[t._v("\n        "+t._s(r.PtCreateAt)+"\n      ")])]}},{key:"item.slot_Name",fn:function(n){var r=n.item;return[e("div",{staticClass:"my-3"},[t._v("\n        "+t._s(r.Name)+"\n      ")])]}},{key:"item.slot_Edit",fn:function(n){var a=n.item;return[e("div",{staticClass:"my-3"},[e(r.A,{attrs:{text:"",color:"info600",title:"編輯設定"},on:{click:function(e){return t.gotoEdit(a,"P")}}},[e(l.A,{attrs:{small:""}},[t._v("\n            $edit\n          ")]),t._v("編輯\n        ")],1)],1)]}},{key:"item.slot_Storage",fn:function(n){var a=n.item;return[e("div",{staticClass:"my-3"},[e(r.A,{attrs:{text:"",color:"info600",title:"設定"},on:{click:function(e){return t.gotoEdit(a,"S")}}},[e(l.A,{attrs:{small:""}},[t._v("\n            mdi-cog-outline\n          ")]),t._v("編輯\n        ")],1)],1)]}}]),model:{value:t.selectedItem,callback:function(e){t.selectedItem=e},expression:"selectedItem"}}),t._v(" "),e("page-loading",{attrs:{"show-loading":t.updateLoading,"show-title":"更新中,請稍後"}})],1)}),[],!1,null,"7cdb798d",null).exports;function L(t){return L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L(t)}function D(){D=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(t,e,n,r){return Object.defineProperty(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(e,n,r,a){var o=n&&n.prototype instanceof f?n:f,i=Object.create(o.prototype);return u(i,"_invoke",function(e,n,r){var a=1;return function(o,i){if(3===a)throw Error("Generator is already running");if(4===a){if("throw"===o)throw i;return{value:t,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var u=x(s,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===a)throw a=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=3;var l=c(e,n,r);if("normal"===l.type){if(a=r.done?4:2,l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a=4,r.method="throw",r.arg=l.arg)}}}(e,r,new A(a||[])),!0),i}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d={};function f(){}function p(){}function h(){}var m={};u(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==n&&r.call(v,o)&&(m=v);var y=h.prototype=f.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function n(a,o,i,s){var u=c(t[a],t,o);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==L(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,i,s)}),(function(t){n("throw",t,i,s)})):e.resolve(d).then((function(t){l.value=t,i(l)}),(function(t){return n("throw",t,i,s)}))}s(u.arg)}var a;u(this,"_invoke",(function(t,r){function o(){return new e((function(e,a){n(t,r,e,a)}))}return a=a?a.then(o,o):o()}),!0)}function x(e,n){var r=n.method,a=e.i[r];if(a===t)return n.delegate=null,"throw"===r&&e.i.return&&(n.method="return",n.arg=t,x(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=c(a,e.i,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,d;var i=o.arg;
2return i?i.done?(n[e.r]=i.value,n.next=e.n,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,d):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function P(t){this.tryEntries.push(t)}function _(e){var n=e[4]||{};n.type="normal",n.arg=t,e[4]=n}function A(t){this.tryEntries=[[-1]],t.forEach(P,this),this.reset(!0)}function S(e){if(null!=e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function n(){for(;++a<e.length;)if(r.call(e,a))return n.value=e[a],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(L(e)+" is not iterable")}return p.prototype=h,u(y,"constructor",h),u(h,"constructor",p),p.displayName=u(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,u(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},e.awrap=function(t){return{__await:t}},b(w.prototype),u(w.prototype,i,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(l(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(y),u(y,s,"Generator"),u(y,o,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.unshift(r);return function t(){for(;n.length;)if((r=n.pop())in e)return t.value=r,t.done=!1,t;return t.done=!0,t}},e.values=S,A.prototype={constructor:A,reset:function(e){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0][4];if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(t){i.type="throw",i.arg=e,n.next=t}for(var a=n.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o[4],s=this.prev,u=o[1],l=o[2];if(-1===o[0])return r("end"),!1;if(!u&&!l)throw Error("try statement without catch or finally");if(null!=o[0]&&o[0]<=s){if(s<u)return this.method="next",this.arg=t,r(u),!0;if(s<l)return r(l),!1}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var a=r;break}}a&&("break"===t||"continue"===t)&&a[0]<=e&&e<=a[2]&&(a=null);var o=a?a[4]:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a[2],d):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n[2]===t)return this.complete(n[4],n[3]),_(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n[0]===t){var r=n[4];if("throw"===r.type){var a=r.arg;_(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={i:S(e),r:n,n:r},"next"===this.method&&(this.arg=t),d}},e}function M(t,e,n,r,a,o,i){try{var s=t[o](i),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,a)}function $(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var o=t.apply(e,n);function i(t){M(o,r,a,i,s,"next",t)}function s(t){M(o,r,a,i,s,"throw",t)}i(void 0)}))}}var U={name:"ProductListIndex",mixins:[g.A],components:{iconExportReport:v.A,ProductList:N,tableLayout:m.A},data:function(){return{isSelectAll:!1,resetCount:0,allShopItem:[],conditionShow:!1,multipleDeleteModal:!1,dtLoading:!1,exportLoading:!1,sendLoader:!1,dtDesert
2s:[],dtParams:{length:10,ProductNo:null,Name:null,goPage:1},dtPagination:{pageCount:0,totalItems:0},dtOptions:{sortBy:["TdCreateTime"],sortDesc:[!1]},dtPage:0,maxPage:0,UrlValidityType:[],UrlType:[],linkList:[],StatusList:[{text:"使用中",value:1},{text:"已到期",value:2},{text:"已關閉",value:3}],dateInit:[y.A.inquiryDateInit(90,"day"),y.A.getFormattedDay()],selected:[]}},watch:{dtPage:{handler:function(t){t>0&&!this.dtLoading&&this.beforeRenderTable()},deep:!0},"dtPagination.pageCount":function(t){}},computed:{deleteProductList:function(){return this.selected.map((function(t){return t.Name})).join(",")}},created:function(){this.dtPage=1},methods:{exportCsv:function(){var t=this;return $(D().mark((function e(){var n,r,a,o,i,s;return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.exportLoading){e.next=2;break}return e.abrupt("return");case 2:return t.exportLoading=!0,n={},t.dtParams.Name&&(n.Name=t.dtParams.Name),t.dtParams.ProductNo&&(n.ProductNo=t.dtParams.ProductNo),e.next=8,h.A.post("/api/store/product/export",n);case 8:r=e.sent,a=r.data,o=new Blob(["\ufeff",a],{type:"text/csv;charset=utf-8;"}),i=window.URL.createObjectURL(o),(s=document.createElement("a")).download="商品匯出資料.csv",s.href=i,s.click(),window.URL.revokeObjectURL(i),t.exportLoading=!1;case 18:case"end":return e.stop()}}),e)})))()},getLinkList:function(){var t=this;return $(D().mark((function e(){var n,r,a,o,i;return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.dtParams.UrlType,r=t.dtParams.ExpType,a="",n&&r?a="UrlType=".concat(n,"&ExpType=").concat(r):n?a="UrlType=".concat(n):r&&(a="ExpType=".concat(r)),e.next=6,h.A.get("/api/receive/single_page/link_list",a);case 6:o=e.sent,(i=o.data).success?t.linkList=i.data:t.linkList=[];case 9:case"end":return e.stop()}}),e)})))()},setSearchSetting:function(){var t=[];for(var e in this.UrlValidityTypeMap)t.push({text:this.UrlValidityTypeMap[e].text,value:Number(e)});this.UrlValidityType=t;var n=[];for(var r in this.UrlTypeMap)n.push({text:this.UrlTypeMap[r].text,value:Number(r)});this.UrlType=n},resetSearch:function(){this.conditionShow=!1,this.dtParams=this.$options.data().dtParams,this.beforeRenderTable()},getAllMerchant:function(){var t=this;return $(D().mark((function e(){var n;return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.A.post("/api/merchant/get_list_merchant",{Status:1});case 2:(n=e.sent).data.success?t.allShopItem=n.data.data.map((function(t){return{text:"".concat(t.MerID," - ").concat(t.MerName," ").concat(t.MerEName),value:t.MerSysID}})):t.$toast.error(n.data.message);case 4:case"end":return e.stop()}}),e)})))()},validCondition:function(){return""},buttonQuery:function(){""===this.validCondition()?(this.dtParams.goPage=1,this.dtPage=1,this.beforeRenderTable()):this.$toast.error("請確認查詢條件正常")},beforeRenderTable:function(){this.dtParams.goPage=this.dtPage,this.queryDt()},queryDt:function(){var t=this;return $(D().mark((function e(){var n,r,a,o,i,s;return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(a in n={ProductNo:t.dtParams.ProductNo,Name:t.dtParams.Name,Page:t.dtParams.goPage},r=[],n)n[a]&&r.push("".concat(a,"=").concat(n[a]));if(o=r.join("&"),i="/api/store/product/item_list",s={},t.dtLoading=!0,t.dtDeserts=[],!o){e.next=14;break}return e.next=11,h.A.get(i,o);case 11:s=e.sent,e.next=17;break;case 14:return e.next=16,h.A.get(i);case 16:s=e.sent;case 17:s.data.success?(t.dtPagination.totalItems=s.data.data.TotalCount,t.maxPage=s.data.data.TotalPage,t.dtDeserts=s.data.data.Data.map((function(t,e){return t.id=e+1,t}))):(t.$toast.error(s.data.message),t.dtDeserts=[]),t.dtLoading=!1;case 19:case"end":return e.stop()}}),e)})))()},enterPage:function(t){var e=parseInt(t,10);isNaN(e)?this.$toast.error("請輸入正常頁數"):e>0&&e<=this.maxPage?this.dtPage=e:this.$toast.error("請輸入範圍內頁數")},changeDtPage:function(t){this.dtPage=t},updateTableOption:function(t){this.dtOptions=t},updateStatus:function(t){return $(D().mark((function t(){return D().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()},datePickAction:function(t){this.dtParams.StartDate=t[0],this.dtParams.EndDate=t[1]},multipleDelete:function(t){this.multipleDeleteModal=!0},sendDelete:function(){var t=this;return $(D().mark((function e(){var n,r;return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.sendLoader=!0,e.next=3,h.A.post("/api/store/product/delete_items",{PdSysIds:t.selected.map((function(t){return t.PtSysID}))});case 3:n=e.sent,(r=n.data).success?(t.$toast.success("商品刪除成功"),t.multipleDeleteModal=!1,t.selected=[],t.queryDt()):t.$toast.error(r.message),t.sendLoader=!1;case 7:case"end":return e.stop()}}),e)})))()}}},R=n(43885),B={insert:"head",singleton:!1};O()(R.A,B),R.A.locals;var G=(0,I.A)(U,(function(){var t=this,e=t._self._c;return e("div",[e("PageTitle"),t._v(" "),e("div",{staticClass:"ma-6"},[e(d.A,{staticClass:"pa-6 rounded-box mb-6 elevation-1"}
2,[e(c.A,[e(s.A,{attrs:{cols:"12",lg:"6",xl:"6"}},[e("RowInput",{attrs:{label:"商品編號","no-detail":""}},[e(p.A,{attrs:{placeholder:"",clearable:"",outlined:"",dense:"","hide-details":""},model:{value:t.dtParams.ProductNo,callback:function(e){t.$set(t.dtParams,"ProductNo","string"==typeof e?e.trim():e)},expression:"dtParams.ProductNo"}})],1)],1),t._v(" "),e(s.A,{attrs:{cols:"12",lg:"6",xl:"6"}},[e("RowInput",{attrs:{label:"商品名稱","no-detail":""}},[e(p.A,{attrs:{placeholder:"",clearable:"",outlined:"",dense:"","hide-details":""},model:{value:t.dtParams.Name,callback:function(e){t.$set(t.dtParams,"Name","string"==typeof e?e.trim():e)},expression:"dtParams.Name"}})],1)],1)],1),t._v(" "),e("div",{staticClass:"d-flex mt-5 btn-line",staticStyle:{position:"relative"}},[t.isMobileSize?t._e():e(f.A),t._v(" "),e(r.A,{staticClass:"mr-4 header-btn",attrs:{color:"info",loading:t.dtLoading},on:{click:t.buttonQuery}},[t._v("\n          查詢\n        ")]),t._v(" "),e(r.A,{staticClass:"header-btn",attrs:{color:"info",outlined:""},on:{click:t.resetSearch}},[t._v("\n          清除條件\n        ")])],1)],1),t._v(" "),e("div",{staticClass:"d-flex align-center mb-4 full-width"},[e(i.A,{staticClass:"pt-0 mt-0 mr-4 ml-6",attrs:{label:"全選","hide-details":""},model:{value:t.isSelectAll,callback:function(e){t.isSelectAll=e},expression:"isSelectAll"}}),t._v(" "),e(r.A,{staticClass:"outLined-white-bg",attrs:{loading:!1,outlined:"",color:"info",disabled:0===t.selected.length},on:{click:t.multipleDelete}},[e(l.A,{attrs:{size:"18px"}},[t._v("\n          $delete\n        ")]),t._v(" 全部刪除\n      ")],1),t._v(" "),e("div",{staticStyle:{"margin-left":"auto","margin-right":"0"}},[e(r.A,{staticClass:"outLined-white-bg mr-md-6",attrs:{loading:t.exportLoading,outlined:"",color:"tips"},on:{click:t.exportCsv}},[e("iconExportReport",{staticClass:"mr-2"}),t._v(" 匯出報表\n        ")],1)],1)],1),t._v(" "),e("ProductList",{attrs:{selected:t.selected,"dt-loading":t.dtLoading,"dt-deserts":t.dtDeserts,"dt-per-page":t.dtParams.length,"dt-pagination":t.dtPagination,"dt-options":t.dtOptions,"dt-page":t.dtPage,"is-select-all":t.isSelectAll},on:{"update:selected":function(e){t.selected=e},"update:isSelectAll":function(e){t.isSelectAll=e},"update:is-select-all":function(e){t.isSelectAll=e},syncDtOptions:t.updateTableOption,updateStatusByBtn:t.updateStatus,update:t.beforeRenderTable}}),t._v(" "),t.dtDeserts.length>0?e("div",{staticClass:"ma-3"},[e("table-layout",{key:2,attrs:{pagination:t.dtPagination,page:t.dtPage,"per-page":t.dtParams.length,"max-page":t.maxPage,"is-footer":!0,loading:t.dtLoading},on:{goPageByInput:t.enterPage,goPageByClick:t.changeDtPage}})],1):t._e()],1),t._v(" "),e(u.A,{attrs:{scrollable:"","max-width":"400"},model:{value:t.multipleDeleteModal,callback:function(e){t.multipleDeleteModal=e},expression:"multipleDeleteModal"}},[e(a.A,[e(o.ri,{staticClass:"text-h6 font-weight-bold justify-center"},[t._v("\n        刪除商品\n      ")]),t._v(" "),e(o.OQ,{staticClass:"text-center"},[t._v("\n        確定要刪除 "+t._s(t.deleteProductList)+" 嗎?\n      ")]),t._v(" "),e(o.SL,{staticClass:"pb-6"},[e(f.A),t._v(" "),e(r.A,{attrs:{color:"primary"},on:{click:function(e){t.multipleDeleteModal=!1}}},[t._v("\n          取消\n        ")]),t._v(" "),e(r.A,{attrs:{color:"green darken-1",dark:"",loading:t.sendLoader},on:{click:t.sendDelete}},[t._v("\n          確定\n        ")]),t._v(" "),e(f.A)],1)],1)],1)],1)}),[],!1,null,null,null).exports},77658:function(t,e,n){n.d(e,{A:function(){return p}});var r=n(33389),a=n(78037),o=n(79987),i=n(57132),s=n(20019),u={name:"TableLayout",props:{pagination:{type:Object,default:function(){return{pageCount:0,totalItems:0}}},page:{type:Number,default:0},perPage:{type:Number,default:0},maxPage:{type:Number,default:0},isHeader:{type:Boolean,default:!1},isFooter:{type:Boolean,default:!1},isSlot:{type:Boolean,default:!1},otherField:{type:String,default:""},showExport:{type:Boolean,default:!0},loading:{type:Boolean,default:!1}},data:function(){return{pagin:{pageCount:0,totalItems:0},inputPage:0,clickPage:0}},computed:{startRow:function(){return this.page*this.perPage-this.perPage+1},endRow:function(){var t=this.page*this.perPage;return t>this.pagin.totalItems?this.pagin.totalItems:t}},watch:{page:{handler:function(t,e){this.inputPage=t,this.clickPage=t},deep:!0},pagination:{handler:function(t,e){this.pagin=t},deep:!0},clickPage:function(t){this.$emit("goPageByClick",t)}},methods:{enterToPage:function(){this.$emit("goPageByInput",this.inputPage)},exportQuery:function(){this.$emit("doExport")}},created:function(){this.pagin=this.pagination,this.clickPage=this.page,this.inputPage=this.page}},l=n(56058),c=n.n(l),d=n(39742),f={insert:"head",singleton:!1};c()(d.A,f),d.A.locals;var p=(0,n(98851).A)(u,(function(){var t=this,e=t._self._c;return e("div",[t.isHeader?[e(s.A,{staticClass:"my-3",attrs:{"no-gutters":""}},[t.isSlot?[e(a.A,{attrs:{cols:"12",md:"10"}},[t._t("default")],2)]:e(a.A,{staticClass:"py-2",attrs:{cols:"12",md:"10"}},[e("div",{staticClass:"primary--text font-weight-bold d-flex flex-wrap justify-center justify-md-start"},[e("div",[t._v("\n            顯示 "+t._s(t.startRow)+" - "+t._s(t.endRow)+" 筆,共\n            "+t._s(t.pagination.totalItems)+" 筆,\n          ")]),t._v(" "),""!==t.otherField?e("div",{domProps:{innerHTML:t._s(t.otherField)}}):e("div",[t._v("\n            跳至\n            "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.inputPage,expression:"inputPage"}],staticClass:"page-control",attrs:{type:"number",min:"1"},domProps:{value:t.inputPage},on:{input:function(e){e.target.composing||(t.inputPage=e.target.value)}}}),t._v("\n            頁 / "+t._s(t.maxPage)+" 頁\n            "),e(r.A,{staticClass:"ml-2 enter-btn",attrs:{small:""},on:{click:t.enterToPage}},[t._v("\n              GO\n            ")])],1)])]),t._v(" "),e(a.A,{staticClass:"d-flex justify-end",attrs:{cols:"12",md:"2"}},[t.showExport?e(r.A,{staticClass:"outLined-white-bg",attrs:{color:"tips",outlined:""},on:{click:t.exportQuery}},[e(o.A,{attrs:{small:""}},[t._v("\n            mdi-export-variant\n          ")]),t._v(" 匯出報表\n        ")],1):t._e()],1)],2)]:t._e(),t._v(" "),t.isFooter?[e(s.A,{staticClass:"my-3",attrs:{"no-gutters":""}},[e(a.A,{staticClass:"py-2",attrs:{cols:"12",md:"7"}},[e("div",{staticClass:"primary--text font-weight-bold d-flex flex-wrap justify-center justify-md-start"},[e("div",[t._v("\n            顯示 "+t._s(t.startRow)+" - "+t._s(t.endRow)+" 筆,共\n            "+t._s(t.pagination.totalItems)+" 筆\n          ")]),t._v(" "),e("div",[e("span",{staticClass:"d-none d-sm-inline"},[t._v(",")]),t._v("\n            跳至\n            "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.inputPage,expression:"inputPage"}],staticClass:"page-control",attrs:{type:"number",min:"1"},domProps:{value:t.inputPage},on:{input:function(e){e.target.composing||(t.inputPage=e.target.value)}}}),t._v("\n            頁 / "+t._s(t.maxPage)+" 頁\n            "),e(r.A,{staticClass:"ml-2 enter-btn",attrs:{small:"",disabled:t.loading},on:{click:t.enterToPage}},[t._v("\n              GO\n            ")])],1)])]),t._v(" "),e(a.A,{attrs:{cols:"12",md:"5"}},[e("div",{staticClass:"d-sm-flex justify-center justify-md-end pt-0"},[e(i.A,{attrs:{color:"info",disabled:t.loading,"total-visible":8,length:t.pagination.pageCount},model:{value:t.clickPage,callback:function(e){t.clickPage=e},expression:"clickPage"}})],1)])],1)]:t._e()],2)}),[],!1,null,"2f677ad8",null).exports},95258:function(t,e,n){n.d(e,{A:function(){return a}});
2var r={name:"IconExportReport",props:{size:{type:Array,default:function(){return[18,18]}},color:{type:String,default:"#EA5504"}}},a=(0,n(98851).A)(r,(function(){var t=this,e=t._self._c;return e("svg",{attrs:{width:t.size[0],height:t.size[1],viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{"clip-path":"url(#2qefdoetya)",stroke:t.color,"stroke-width":"1.4","stroke-linecap":"round"}},[e("path",{attrs:{d:"M9 1.5v6m0 0 2.25-2.25M9 7.5 6.75 5.25","stroke-linejoin":"round"}}),t._v(" "),e("path",{attrs:{d:"M1.5 9.75h2.37c.68 0 1.019 0 1.317.137.298.137.52.395.961.91l.454.53c.442.516.663.774.961.91.298.138.638.138 1.317.138h.24c.68 0 1.019 0 1.317-.137.298-.137.52-.395.961-.91l.454-.53c.442-.516.663-.774.961-.91.298-.138.638-.138 1.317-.138h2.37"}}),t._v(" "),e("path",{attrs:{d:"M12.75 1.595c1.219.12 2.04.391 2.652 1.003C16.5 3.697 16.5 5.465 16.5 9c0 3.536 0 5.303-1.098 6.402C14.303 16.5 12.536 16.5 9 16.5s-5.303 0-6.402-1.098C1.5 14.303 1.5 12.536 1.5 9c0-3.535 0-5.303 1.098-6.402.613-.612 1.433-.883 2.652-1.003"}})]),t._v(" "),e("defs",[e("clipPath",{attrs:{id:"2qefdoetya"}},[e("path",{attrs:{fill:"#fff",d:"M0 0h18v18H0z"}})])])])}),[],!1,null,null,null).exports}}])}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.