WangHan
2025-04-03 a1b85ef72062ca80db35546e4216dd564f3e0f57
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-053084f0"],{"2c72":function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return a})),r.d(e,"c",(function(){return i}));var n=r("b775");function o(t){return Object(n["a"])({url:"/pc/fin/sys/tenant/user/select/department",method:"get",params:t})}function a(t){return Object(n["a"])({url:"/pc/base/warehouse/manager/save",method:"post",data:t})}function i(t){return Object(n["a"])({url:"/pc/base/warehouse/manager/list",method:"get",params:t})}},"3ef9":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("win-sm",{attrs:{title:t.setting.title+"盘点",width:"800px"},on:{close:t.close}},[r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.formData,rules:t.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"盘点单名",prop:"businessFormName"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{clearable:"",maxlength:"20",placeholder:"请输入"},model:{value:t.formData.businessFormName,callback:function(e){t.$set(t.formData,"businessFormName",e)},expression:"formData.businessFormName"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"盘点仓库",prop:"warehouseId"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},on:{change:t.getPdr},model:{value:t.formData.warehouseId,callback:function(e){t.$set(t.formData,"warehouseId",e)},expression:"formData.warehouseId"}},t._l(t.warehouseOptions,(function(t){return r("el-option",{key:t.id,attrs:{label:t.warehouseName,value:t.id}})})),1)],1),t._v(" "),r("el-form-item",{attrs:{label:"盘点人",prop:"operatorUserId"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:t.formData.operatorUserId,callback:function(e){t.$set(t.formData,"operatorUserId",e)},expression:"formData.operatorUserId"}},t._l(t.operatorOptions,(function(t){return r("el-option",{key:t.id,attrs:{label:t.managerName,value:t.managerId}})})),1)],1),t._v(" "),r("el-form-item",{attrs:{label:"监盘人",prop:"monitorUserId"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:t.formData.monitorUserId,callback:function(e){t.$set(t.formData,"monitorUserId",e)},expression:"formData.monitorUserId"}},t._l(t.operatorOptions2,(function(t){return r("el-option",{key:t.id,attrs:{label:t.userName,value:t.id}})})),1)],1),t._v(" "),r("el-form-item",{attrs:{label:"备注",prop:"remark"}},[r("el-input",{attrs:{type:"textarea",placeholder:"请输入内容",resize:"none",maxlength:"100","show-word-limit":""},model:{value:t.formData.remark,callback:function(e){t.$set(t.formData,"remark",e)},expression:"formData.remark"}})],1)],1),t._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer",align:"center"},slot:"footer"},[r("my-button",{attrs:{name:"取消",site:"form"},on:{click:t.close}}),t._v(" "),r("my-button",{attrs:{name:"保存",site:"form"},on:{click:t.save}})],1)],1)},o=[],a=r("6ec5"),i=r("806c"),u=r("2c72"),s=r("e694"),c=r("f6e8"),l=r("6f7e"),d=r("2f62");function f(t){return f="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},f(t)}function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach((function(e){g(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function g(t,e,r){return(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t){var e=b(t,"string");return"symbol"==f(e)?e:e+""}function b(t,e){if("object"!=f(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var y={components:{winSm:s["a"],myButton:c["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){return{count:0,loading:!0,checkAll:!1,checkedList:[],warehouseOptions:[],operatorOptions:[],operatorOptions2:[],formData:{businessFormName:"",warehouseId:"",operatorUserId:"",monitorUserId:"",remark:""},rules:{businessFormName:[{required:!0,message:"请输入",trigger:"blur"}],warehouseId:[{required:!0,message:"请选择",trigger:"blur"}],operatorUserId:[{required:!0,message:"请选择",trigger:"blur"}],monitorUserId:[{required:!0,message:"请选择",trigger:"blur"}]}}},computed:p({},Object(d["b"])(["userInfo"])),created:function(){this.setting.id?(this.formData=Object.assign({},JSON.parse(this.setting.info)),this.$set(this.formData,"operatorUserId",this.formData.operatorId),this.$set(this.formData,"monitorUserId",this.formData.operatorId2),this.$set(this.formData,"remark",this.formData.beiz1)):this.formData.businessFormName=Object(l["formatDate"])(new Date,"yyyy年MM月份盘点"),this.handleSelectTenantWarehouse(),this.getJpr()},methods:{handleSelectTenantWarehouse:function(){var t=this;Object(a["p"])({agencyId:this.userInfo.tenantId}).then((function(e){t.count++,t.warehouseOptions=e,t.count>1&&(t.loading=!1)}))},getPdr:function(){var t=this;Object(u["c"])({warehouseId:this.formData.warehouseId}).then((function(e){t.count++,t.operatorOptions=e,t.count>1&&(t.loading=!1)}))},getJpr:function(){var t=this;Object(a["q"])({tenantId:this.userInfo.tenantId}).then((function(e){t.count++,t.operatorOptions2=e,t.count>1&&(t.loading=!1)}))},getEditInfo:function(t){},close:function(){this.$emit("close")},save:function(){var t=this;this.$refs.ruleForm.validate((function(e){if(e){var r=Object.assign({},t.formData);t.loading=!0,t.setting.id?Object(i["d"])(r).then((function(e){t.loading=!1,t.$message.success("保存成功!"),t.close(),t.$emit("search")})).catch((function(){t.loading=!1})):Object(i["a"])(r).then((function(e){t.loading=!1,t.$message.success("保存成功!"),t.close(),t.$emit("search")})).catch((function(){t.loading=!1}))}else t.$message.error("校验未通过,请检查。")}))}}},v=y,O=r("2877"),w=Object(O["a"])(v,n,o,!1,null,null,null);e["default"]=w.exports},"433d":function(t,e,r){"use strict";var n=r("c559"),o={ftpUrl:n["a"].ftpUrl,apiBaseURL:n["a"].apiBaseURL};e["a"]=o},"6ec5":function(t,e,r){"use strict";r.d(e,"l",(function(){return a})),r.d(e,"a",(function(){return i})),r.d(e,"g",(function(){return u})),r.d(e,"c",(function(){return s})),r.d(e,"j",(function(){return c})),r.d(e,"f",(function(){return l})),r.d(e,"d",(function(){return d})),r.d(e,"e",(function(){return f})),r.d(e,"p",(function(){return m})),r.d(e,"n",(function(){return p})),r.d(e,"m",(function(){return g})),r.d(e,"k",(function(){return h})),r.d(e,"s",(function(){return b})),r.d(e,"r",(function(){return y})),r.d(e,"q",(function(){return v})),r.d(e,"o",(function(){return O})),r.d(e,"b",(function(){return w})),r.d(e,"i",(function(){return j})),r.d(e,"h",(function(){return D}));var n=r("b775"),o=r("433d");function a(t){return n["a"].get(o["a"].apiBaseURL+"/pc/fin/sys/tenant/select/tree_fin_tenant",{params:t})}function i(t){return Object(n["a"])({url:"/pc/base/category/add",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/pc/base/category/edit",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/pc/base/warehouse/add",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/pc/base/warehouse/edit",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/pc/base/warehouse/del",method:"delete",data:t})}function d(){return Object(n["a"])({url:"/pc/base/goods/template/select/classificationCode",method:"get"})}function f(t){return Object(n["a"])({url:"/pc/base/category/del",method:"delete",data:t})}function m(t){return Object(n["a"])({url:"/pc/base/warehouse/select/tenant_warehouse",method:"get",params:t})}function p(t){return Object(n["a"])({url:"/pc/base/goods/template/query/goodsTemplate",method:"get",params:t})}function g(t){return Object(n["a"])({url:"/pc/base/goods/models/query/goodsModel",method:"get",params:t})}function h(t){return n["a"].get(o["a"].apiBaseURL+"/pc/base/category/select/tree",{params:t})}function b(t){return Object(n["a"])({url:"/pc/base/warehouse/select/number",method:"get",params:t})}function y(t){return Object(n["a"])({url:"/pc/base/warehouse/select/in/warehouse/num",method:"get",params:t})}function v(t){return Object(n["a"])({url:"/pc/fin/sys/tenant/user/query/user",method:"get",params:t})}function O(t){return Object(n["a"])({url:"/pc/base/goods/models/queryGoodsModelInfo",method:"get",params:t})}function w(t){return Object(n["a"])({url:"/pc/fin/sys/tenant/add",method:"post",data:t})}function j(t){return Object(n["a"])({url:"/pc/fin/sys/tenant/edit",method:"post",data:t})}function D(t){return Object(n["a"])({url:"/pc/fin/sys/tenant/editState",method:"post",data:t})}},"6f7e":function(t,e,r){"use strict";function n(t){if(null==t||void 0==t||""==t||"null"==t||"undefined"==t)return!0;var e=t.toString().replace(/\s/g,"").replace(/-/g,"").replace(/:/g,"");return e}function o(t){return("00"+t).substr(t.length)}function a(t){if(null==t||void 0==t||""==t||"null"==t||"undefined"==t)return!0;var e=t.toString(),r=e.slice(0,4),n=e.slice(4,6),o=e.slice(6,8),a=e.slice(8,10),i=e.slice(10,12),u=e.slice(12,14),s=r+"-"+n+"-"+o+" "+a+":"+i+":"+u;return s}function i(t){if(null==t||void 0==t||""==t||"null"==t||"undefined"==t)return!0;var e=t.toString(),r=e.slice(0,4),n=e.slice(4,6),o=e.slice(6,8),a=r+"-"+n+"-"+o;return a}function u(t,e){try{t instanceof Date||(t=new Date(t)),void 0!=e&&""!=e||(e="yyyy-MM-dd hh:mm:ss"),/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var r={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(var n in r)if(new RegExp("(".concat(n,")")).test(e)){var a=r[n]+"";e=e.replace(RegExp.$1,1===RegExp.$1.length?a:o(a))}return e}catch(i){return"-"}}function s(){var t=new Date,e=t.getFullYear(),r=(t.getMonth()+1).toString().padStart(2,"0"),n=t.getDate().toString().padStart(2,"0"),o=t.getHours().toString().padStart(2,"0"),a=t.getMinutes().toString().padStart(2,"0"),i=t.getSeconds().toString().padStart(2,"0");return"".concat(e,"-").concat(r,"-").concat(n," ").concat(o,":").concat(a,":").concat(i)}function c(){var t=new Date,e=t.getFullYear(),r=(t.getMonth()+1).toString().padStart(2,"0"),n=t.getDate().toString().padStart(2,"0");return"".concat(e,"-").concat(r,"-").concat(n)}function l(t){if(t){t instanceof Date||(t=new Date(t.replace(/-/g,"/")));var e=t.getTime(),r=6e4,n=60*r,o=24*n,a=7*o,i=30*o,u=(new Date).getTime(),s=u-e;if(!(s<0)){var c=s/r,l=s/n,d=s/o,f=s/a,m=s/i,p="";if(m>=1&&m<=3)p=" "+parseInt(m)+"月前";else if(f>=1&&f<=3)p=" "+parseInt(f)+"周前";else if(d>=1&&d<=6)p=" "+parseInt(d)+"天前";else if(l>=1&&l<=23)p=" "+parseInt(l)+"小时前";else if(c>=1&&c<=59)p=" "+parseInt(c)+"分钟前";else if(s>=0&&s<=r)p="刚刚";else{var g=new Date;g.setTime(e);var h=g.getFullYear(),b=g.getMonth()+1<10?"0"+(g.getMonth()+1):g.getMonth()+1,y=g.getDate()<10?"0"+g.getDate():g.getDate();g.getHours()<10?g.getHours():g.getHours(),g.getMinutes()<10?g.getMinutes():g.getMinutes(),g.getSeconds()<10?g.getSeconds():g.getSeconds();p=h+"-"+b+"-"+y}return p}}}r.r(e),r.d(e,"DateToLong",(function(){return n})),r.d(e,"LongToDateTime",(function(){return a})),r.d(e,"LongToDate",(function(){return i})),r.d(e,"formatDate",(function(){return u})),r.d(e,"formattedDate",(function(){return s})),r.d(e,"formattedDateDuan",(function(){return c})),r.d(e,"timeago",(function(){return l}))},"806c":function(t,e,r){"use strict";r.d(e,"f",(function(){return o})),r.d(e,"a",(function(){return a})),r.d(e,"d",(function(){return i})),r.d(e,"b",(function(){return u})),r.d(e,"c",(function(){return s})),r.d(e,"h",(function(){return c})),r.d(e,"e",(function(){return l})),r.d(e,"g",(function(){return d})),r.d(e,"i",(function(){return f}));var n=r("b775");function o(t){return"/pc/l/wh/form/inventory/list"}function a(t){return Object(n["a"])({url:"/pc/l/wh/form/inventory/add",method:"post",data:t})}function i(t){return Object(n["a"])({url:"/pc/l/wh/form/inventory/edit",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/pc/l/wh/form/inventory/del",method:"delete",params:t})}function s(t){return Object(n["a"])({url:"/pc/l/wh/form/inventory/detail",method:"get",params:t})}function c(t){return Object(n["a"])({url:"/pc/l/wh/form/inventory/temporary/storage",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/pc/l/wh/form/inventory/finish",method:"post",data:t})}function d(t){return Object(n["a"])({url:"/pc/l/wh/form/inventory/query",method:"get",params:t})}function f(t){return Object(n["a"])({url:"/pc/l/wh/form/inventory/isAddInventory",method:"get",params:t})}}}]);