{"remainingRequest":"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\\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":["//\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\r\nimport materialOutWarehouseManage from '@/api/manager/material/materialOutWarehouseManage.js'\r\nimport CommonApi from '@/views/Manage/CommonApi.js'\r\nexport default {\r\n name: 'materialOutWarehouseManageDialog',\r\n data() {\r\n return {\r\n applicationStart: false,\r\n title: '新增',\r\n showFormDia: false,\r\n purchasingDetailList: [],\r\n params: {\r\n fortheOrg: '',\r\n // fortheOrgName: '',\r\n purchasingId: '',\r\n list: []\r\n },\r\n userSelectOptions: [],\r\n application: null\r\n }\r\n },\r\n created() {\r\n this.commonApiData()\r\n },\r\n methods: {\r\n deleteDetail(index) {\r\n this.purchasingDetailList.splice(index, 1)\r\n },\r\n //领用人\r\n userChange(v, s) {\r\n const vobj = this.userSelectOptions.find(u => {\r\n return u.id === v\r\n })\r\n if (vobj) {\r\n this.params.applicantName = vobj.fullname\r\n }\r\n },\r\n commonApiData() {\r\n CommonApi.loadSelectOptions(\r\n {\r\n name: 'manageCommonService.getAllUsers',\r\n query: '96240625-934F-490B-8AA6-0BC775B18468'\r\n },\r\n res => {\r\n this.userSelectOptions = res\r\n }\r\n )\r\n },\r\n edit() {},\r\n recipients(application) {\r\n this.application = application\r\n const userinfo = this.$store.state.user.currentUserDetail\r\n this.params.fortheOrg = userinfo.org[0].orgId\r\n // this.params.fortheOrgName = userinfo.org[0].orgName\r\n // this.params.fortheUser = userinfo.user.id\r\n this.params.purchasingId = this.application.id\r\n this.showFormDia = true\r\n this.loadDetail()\r\n },\r\n detail(application) {\r\n console.log(application, 'application')\r\n // this.params.fortheUser = application.applicant\r\n // this.params.fortheOrgName = application.applicationDeptName\r\n this.application = application\r\n if (application.status == '2') {\r\n this.applicationStart = true\r\n }\r\n\r\n this.showFormDia = true\r\n this.loadDetail()\r\n },\r\n loadDetail() {\r\n materialOutWarehouseManage.loadMaterialDetail(\r\n this.application.id,\r\n res => {\r\n if (res && res.state) {\r\n this.purchasingDetailList = res.value\r\n }\r\n }\r\n )\r\n },\r\n handleSave() {\r\n const userinfo = this.$store.state.user.currentUserDetail\r\n let list = []\r\n this.purchasingDetailList.forEach(item => {\r\n list.push({\r\n materialId: item.materialInfoId,\r\n materialName: item.name,\r\n model: item.model,\r\n unit: item.unit,\r\n quantity: item.quantity,\r\n fortheOrg: userinfo.org[0].orgId\r\n // fortheUser: userinfo.user.id\r\n })\r\n })\r\n this.params.list = list\r\n materialOutWarehouseManage.recipients(this.params, res => {\r\n if (res.state) {\r\n this.$notify({\r\n type: 'success',\r\n message: this.title + '成功',\r\n duration: 2000\r\n })\r\n this.$parent.loadData()\r\n this.handleClose()\r\n } else {\r\n this.$message.warning(response.message)\r\n }\r\n })\r\n },\r\n handleClose() {\r\n this.params = {\r\n fortheOrg: '',\r\n // fortheOrgName: '',\r\n purchasingId: '',\r\n list: []\r\n }\r\n this.$refs.formInfo.clearValidate()\r\n this.purchasingDetailList = []\r\n this.title = '新增'\r\n this.showFormDia = false\r\n this.applicationStart = false\r\n }\r\n }\r\n}\r\n",null]}