{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\material\\components\\MaterialOutofWareHoseManageDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\material\\components\\MaterialOutofWareHoseManageDialog.vue","mtime":1686792516249},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.array.find\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport materialOutWarehouseManage from '@/api/manager/material/materialOutWarehouseManage.js';\nimport CommonApi from '@/views/Manage/CommonApi.js';\nexport default {\n name: 'materialOutWarehouseManageDialog',\n data: function data() {\n return {\n applicationStart: false,\n title: '新增',\n showFormDia: false,\n purchasingDetailList: [],\n params: {\n fortheOrg: '',\n // fortheOrgName: '',\n purchasingId: '',\n list: []\n },\n userSelectOptions: [],\n application: null\n };\n },\n created: function created() {\n this.commonApiData();\n },\n methods: {\n deleteDetail: function deleteDetail(index) {\n this.purchasingDetailList.splice(index, 1);\n },\n //领用人\n userChange: function userChange(v, s) {\n var vobj = this.userSelectOptions.find(function (u) {\n return u.id === v;\n });\n\n if (vobj) {\n this.params.applicantName = vobj.fullname;\n }\n },\n commonApiData: function commonApiData() {\n var _this = this;\n\n CommonApi.loadSelectOptions({\n name: 'manageCommonService.getAllUsers',\n query: '96240625-934F-490B-8AA6-0BC775B18468'\n }, function (res) {\n _this.userSelectOptions = res;\n });\n },\n edit: function edit() {},\n recipients: function recipients(application) {\n this.application = application;\n var userinfo = this.$store.state.user.currentUserDetail;\n this.params.fortheOrg = userinfo.org[0].orgId; // this.params.fortheOrgName = userinfo.org[0].orgName\n // this.params.fortheUser = userinfo.user.id\n\n this.params.purchasingId = this.application.id;\n this.showFormDia = true;\n this.loadDetail();\n },\n detail: function detail(application) {\n console.log(application, 'application'); // this.params.fortheUser = application.applicant\n // this.params.fortheOrgName = application.applicationDeptName\n\n this.application = application;\n\n if (application.status == '2') {\n this.applicationStart = true;\n }\n\n this.showFormDia = true;\n this.loadDetail();\n },\n loadDetail: function loadDetail() {\n var _this2 = this;\n\n materialOutWarehouseManage.loadMaterialDetail(this.application.id, function (res) {\n if (res && res.state) {\n _this2.purchasingDetailList = res.value;\n }\n });\n },\n handleSave: function handleSave() {\n var _this3 = this;\n\n var userinfo = this.$store.state.user.currentUserDetail;\n var list = [];\n this.purchasingDetailList.forEach(function (item) {\n list.push({\n materialId: item.materialInfoId,\n materialName: item.name,\n model: item.model,\n unit: item.unit,\n quantity: item.quantity,\n fortheOrg: userinfo.org[0].orgId // fortheUser: userinfo.user.id\n\n });\n });\n this.params.list = list;\n materialOutWarehouseManage.recipients(this.params, function (res) {\n if (res.state) {\n _this3.$notify({\n type: 'success',\n message: _this3.title + '成功',\n duration: 2000\n });\n\n _this3.$parent.loadData();\n\n _this3.handleClose();\n } else {\n _this3.$message.warning(response.message);\n }\n });\n },\n handleClose: function handleClose() {\n this.params = {\n fortheOrg: '',\n // fortheOrgName: '',\n purchasingId: '',\n list: []\n };\n this.$refs.formInfo.clearValidate();\n this.purchasingDetailList = [];\n this.title = '新增';\n this.showFormDia = false;\n this.applicationStart = false;\n }\n }\n};",null]}