(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-resource-itemEnterDo"],{"481f":function(t,e,n){var o=n("b4d6");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var s=n("967d").default;s("275befbe",o,!0,{sourceMap:!1,shadowMode:!1})},"5a99":function(t,e,n){"use strict";n.r(e);var o=n("dad0"),s=n("871c");for(var i in s)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return s[t]}))}(i);n("79e0");var a=n("828b"),r=Object(a["a"])(s["default"],o["b"],o["c"],!1,null,"b8e4d808",null,!1,o["a"],void 0);e["default"]=r.exports},"79e0":function(t,e,n){"use strict";var o=n("481f"),s=n.n(o);s.a},"871c":function(t,e,n){"use strict";n.r(e);var o=n("d710"),s=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=s.a},a98f:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.preventClick=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=this;n.onoff?(n.onoff=!1,t(e)):uni.showToast({title:"操作过于频繁",icon:"none"})}},b4d6:function(t,e,n){var o=n("c86c");e=o(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.item-remove[data-v-b8e4d808]{border-radius:%?15?%;padding:%?2?% %?10?%}.resource-header[data-v-b8e4d808]{margin-top:%?30?%;padding:%?20?%}.resource-item[data-v-b8e4d808]{margin-top:%?2?%;padding:%?20?%}.resource-item .flex-around[data-v-b8e4d808]{display:flex;justify-content:space-between;margin-top:%?15?%}',""]),t.exports=e},d710:function(t,e,n){"use strict";n("6a54");var o=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("bf0f"),n("2797"),n("aa9c"),n("c223"),n("e966"),n("e838");var s=n("f37f"),i=n("a98f"),a=o(n("9b8e"));a.default.prototype.$preventClick=i.preventClick;var r={components:{},data:function(){return{onoff:!0,itemEnterOrderInfo:"",applyOrderId:"",resOrderType:"",taskId:"",supplierIndex:0,resourceSuppliers:[{supplierName:this.$t("pages.resource.itemEnterDo.请选择")}],suppliersList:[]}},onLoad:function(t){this.java110Context.onLoad(),this.applyOrderId=t.applyOrderId,this.resOrderType=t.resOrderType,this.taskId=t.taskId,this._loadItemOutResources(),this._loadResourceSuppliers()},onShow:function(){},methods:{_loadItemOutResources:function(){var t=this,e={page:1,row:100,applyOrderId:this.applyOrderId,resOrderType:this.resOrderType};(0,s.queryPurchaseApplyList)(this,e).then((function(e){t.itemEnterOrderInfo=e.purchaseApplys[0],t.itemEnterOrderInfo.purchaseApplyDetailVo.forEach((function(e){e.purchaseQuantity="",e.price="",e.purchaseRemark="",e.rsId="",t.suppliersList.push(0)}))}))},_loadResourceSuppliers:function(){var t=this;(0,s.queryResourceSupplier)(this,{page:1,row:100}).then((function(e){t.resourceSuppliers=t.resourceSuppliers.concat(e.data)}))},_resourceSuppliersChange:function(t,e){this.$set(this.suppliersList,t,e.target.value),this.itemEnterOrderInfo.purchaseApplyDetailVo[t].rsId=this.resourceSuppliers[this.suppliersList[t]].rsId},save:function(){var t=this,e="";if(this.itemEnterOrderInfo.purchaseApplyDetailVo.forEach((function(n){!n.hasOwnProperty("purchaseQuantity")||""==n.purchaseQuantity||parseInt(n.purchaseQuantity)<1?e=t.$t("pages.resource.itemEnterDo.请填写采购数量"):(n.purchaseQuantity=parseInt(n.purchaseQuantity),!n.hasOwnProperty("price")||""==n.price||parseFloat(n.price)<=0?e=t.$t("pages.resource.itemEnterDo.请填写单价"):n.price=parseFloat(n.price))})),""!=e)return uni.showToast({title:e,icon:"none"}),void(t.onoff=!0);this.itemEnterOrderInfo.taskId=this.taskId,(0,s.saveResourceEnter)(this,this.itemEnterOrderInfo).then((function(t){uni.showToast({title:t.msg,icon:"none"}),0==t.code&&uni.navigateBack({delta:1})}))}}};e.default=r},dad0:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"select-single-resource"},[n("v-uni-view",{staticClass:"margin-top"},[n("v-uni-view",{staticClass:"resource-header flex justify-between bg-white"},[n("v-uni-view",{staticClass:"text-bold"},[t._v(t._s(t.$t("pages.resource.itemEnterDo.采购物品")))]),n("v-uni-view")],1),n("v-uni-view",{staticClass:" "},t._l(t.itemEnterOrderInfo.purchaseApplyDetailVo,(function(e,o){return n("v-uni-view",{key:o,staticClass:"resource-item bg-white"},[n("v-uni-view",{staticClass:" "},[n("v-uni-view",{staticClass:" flex-around"},[n("v-uni-label",{staticClass:"text-df"},[t._v(t._s(t.$t("pages.resource.itemEnterDo.物品:")))]),n("v-uni-text",{staticClass:"ellip text-df"},[t._v(t._s(e.resName)+"-"+t._s(e.rstName))])],1),n("v-uni-view",{staticClass:" flex-around"},[n("v-uni-label",{staticClass:"text-df"},[t._v(t._s(t.$t("pages.resource.itemEnterDo.库存:")))]),n("v-uni-text",{staticClass:"text-df"},[t._v(t._s(e.stock))])],1),n("v-uni-view",{staticClass:" flex-around"},[n("v-uni-label",{staticClass:"text-df"},[t._v(t._s(t.$t("pages.resource.itemEnterDo.申请数量:")))]),n("v-uni-text",{staticClass:"text-df"},[t._v(t._s(e.quantity))])],1),n("v-uni-view",{staticClass:" flex-around"},[n("v-uni-label",{staticClass:"text-df"},[t._v(t._s(t.$t("pages.resource.itemEnterDo.参考价格:")))]),n("v-uni-text",{staticClass:"text-df"},[t._v(t._s(e.standardPrice))])],1),n("v-uni-view",{staticClass:" flex-around"},[n("v-uni-label",{staticClass:"text-df"},[t._v(t._s(t.$t("pages.resource.itemEnterDo.价格:")))]),n("v-uni-input",{staticClass:" text-right",attrs:{type:"number",value:"",placeholder:t.$t("pages.resource.itemEnterDo.请输入价格"),"placeholder-class":"text-grey text-df"},model:{value:e.price,callback:function(n){t.$set(e,"price",n)},expression:"item.price"}})],1),n("v-uni-view",{staticClass:" flex-around"},[n("v-uni-label",{staticClass:"text-df"},[t._v(t._s(t.$t("pages.resource.itemEnterDo.数量:")))]),n("v-uni-input",{staticClass:" text-right",attrs:{type:"number",placeholder:t.$t("pages.resource.itemEnterDo.请输入数量"),"placeholder-class":"text-grey text-df",value:""},model:{value:e.purchaseQuantity,callback:function(n){t.$set(e,"purchaseQuantity",n)},expression:"item.purchaseQuantity"}})],1),n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:"10000"==t.resOrderType,expression:"resOrderType == '10000'"}],staticClass:" flex-around"},[n("v-uni-label",{staticClass:"text-df"},[t._v(t._s(t.$t("pages.resource.itemEnterDo.供应商:")))]),n("v-uni-picker",{attrs:{value:t.suppliersList[o],range:t.resourceSuppliers,"range-key":"supplierName"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t._resourceSuppliersChange(o,e)}}},[n("v-uni-view",{staticClass:"picker"},[t._v(" "+t._s(t.resourceSuppliers[t.suppliersList[o]].supplierName)+" ")])],1)],1),n("v-uni-view",{staticClass:" flex-around"},[n("v-uni-label",{staticClass:"text-df"},[t._v(t._s(t.$t("pages.resource.itemEnterDo.备注:")))]),n("v-uni-input",{staticClass:" text-right",attrs:{type:"text",placeholder:t.$t("pages.resource.itemEnterDo.选填,请输入备注"),"placeholder-class":"text-grey text-df",value:""},model:{value:e.remark,callback:function(n){t.$set(e,"remark",n)},expression:"item.remark"}})],1)],1)],1)})),1),n("v-uni-view",{staticClass:"margin-top text-right"},[n("v-uni-button",{staticClass:"cu-btn bg-blue round",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.save()}}},[t._v(t._s(t.$t("pages.resource.itemEnterDo.提交")))])],1)],1)],1)},s=[]},f37f:function(t,e,n){"use strict";n("6a54");var o=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.allocationStoreEnter=function(t,e){return new Promise((function(n,o){t.context.post({url:s.default.allocationStoreEnter,data:e,success:function(t){n(t.data)},fail:function(e){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.deleteAllocationStorehouse=function(t,e){return new Promise((function(n,o){t.context.post({url:s.default.deleteAllocationStorehouse,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.deletePurchaseApply=function(t,e){return new Promise((function(n,o){t.context.post({url:s.default.deletePurchaseApply,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.getAllocationHisAudit=function(t,e){return new Promise((function(n,o){t.context.get({url:s.default.listAllocationStoreHisAuditOrders,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.listAllocationStorehouseApplys=function(t,e){return new Promise((function(n,o){t.context.get({url:s.default.listAllocationStorehouseApplys,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.listAllocationStorehouses=function(t,e){return new Promise((function(n,o){t.context.get({url:s.default.listAllocationStorehouses,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.listAuditHistoryOrders=function(t,e){return new Promise((function(n,o){t.context.get({url:s.default.listAuditHistoryOrders,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.listItemOutAuditHistoryOrders=function(t,e){return new Promise((function(n,o){t.context.get({url:s.default.listItemOutAuditHistoryOrders,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.listMyAllocationStoreAuditOrders=function(t,e){return new Promise((function(n,o){t.context.get({url:s.default.listMyAllocationStoreAuditOrders,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.listMyAuditOrders=function(t,e){return new Promise((function(n,o){t.context.get({url:s.default.listMyAuditOrders,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.listMyItemOutOrders=function(t,e){return new Promise((function(n,o){t.context.get({url:s.default.listMyItemOutOrders,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.listResourceStoreTypes=function(t,e){return new Promise((function(n,o){t.context.get({url:s.default.listResourceStoreTypes,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.listStoreHouses=function(t,e){return new Promise((function(n,o){t.context.get({url:s.default.listStoreHouses,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.listWorkflowAuditInfo=function(t,e){return new Promise((function(n,o){t.context.get({url:s.default.listWorkflowAuditInfo,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.listWorkflowStepStaffs=function(t,e){return new Promise((function(n,o){t.context.get({url:s.default.listWorkflowStepStaffs,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.queryFirstAuditStaff=function(t,e){return new Promise((function(n,o){t.context.get({url:s.default.queryFirstAuditStaff,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.queryFirstStaff=function(t,e){return new Promise((function(n,o){t.context.get({url:s.default.queryFirstStaff,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.queryMyResourceStoreInfo=function(t,e){return new Promise((function(n,o){t.context.get({url:s.default.queryResourceStoreResName,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.queryPurchaseApplyList=function(t,e){return new Promise((function(n,o){t.context.get({url:s.default.queryPurchaseApplyList,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.queryResourceStoreAndTimes=function(t,e){return new Promise((function(n,o){t.context.get({url:s.default.listResourceStoresAndTimes,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.queryResourceStoreList=function(t,e){return new Promise((function(n,o){t.context.get({url:s.default.queryResourceStoreList,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.queryResourceSupplier=function(t,e){return new Promise((function(n,o){t.context.get({url:s.default.queryResourceSupplier,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.saveAllocationStorehouse=function(t,e){return new Promise((function(n,o){t.context.post({url:s.default.saveAllocationStorehouse,data:e,success:function(e){t.onoff=!0,n(e.data)},fail:function(e){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.saveAuditAllocationStoreOrder=function(t,e){return new Promise((function(n,o){t.context.post({url:s.default.saveAuditAllocationStoreOrder,data:e,success:function(t){n(t.data)},fail:function(e){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.saveItemOutApply=function(t,e){return new Promise((function(n,o){t.context.post({url:s.default.saveItemOutApply,data:e,success:function(t){n(t.data)},fail:function(e){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3}),t.onoff=!0}})}))},e.saveMyAuditOrders=function(t,e){return new Promise((function(n,o){t.context.post({url:s.default.saveMyAuditOrders,data:e,success:function(t){n(t.data)},fail:function(e){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.savePurchaseApply=function(t,e){return new Promise((function(n,o){t.context.post({url:s.default.savePurchaseApply,data:e,success:function(t){n(t.data)},fail:function(e){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3}),t.onoff=!0}})}))},e.saveResourceEnter=function(t,e){return new Promise((function(n,o){t.context.post({url:s.default.saveResourceEnter,data:e,success:function(t){n(t.data)},fail:function(e){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.saveResourceOut=function(t,e){return new Promise((function(n,o){t.context.post({url:s.default.saveResourceOut,data:e,success:function(t){n(t.data)},fail:function(e){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.saveResourceStoreTransfer=function(t,e){return new Promise((function(n,o){t.context.post({url:s.default.saveResourceStoreTransfer,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.saveUrgentPurchaseApply=function(t,e){return new Promise((function(n,o){t.context.post({url:s.default.saveUrgentPurchaseApply,data:e,success:function(t){n(t.data)},fail:function(e){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.updatePurchaseApply=function(t,e){return new Promise((function(n,o){t.context.post({url:s.default.updatePurchaseApply,data:e,success:function(t){n(t.data)},fail:function(e){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n("bf0f");var s=o(n("9494"))}}]);