1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-resource-allocationEnterDo"],{"1ecc":function(t,n,e){"use strict";var o=e("228d"),i=e.n(o);i.a},"228d":function(t,n,e){var o=e("4bc0");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=e("967d").default;i("1aafb779",o,!0,{sourceMap:!1,shadowMode:!1})},"288a":function(t,n,e){"use strict";e.r(n);var o=e("3e78"),i=e("9219");for(var s in i)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(s);e("1ecc");var a=e("828b"),u=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,"2d075459",null,!1,o["a"],void 0);n["default"]=u.exports},"3e78":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){}));var o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",{staticClass:"select-single-resource"},[e("v-uni-view",{staticClass:"margin-top"},[e("v-uni-view",{staticClass:"resource-header flex justify-between bg-white"},[e("v-uni-view",{staticClass:"text-bold"},[t._v("调拨物品")]),e("v-uni-view")],1),e("v-uni-view",{staticClass:" "},t._l(t.resourceStores,(function(n,o){return e("v-uni-view",{key:o,staticClass:"resource-item bg-white"},[e("v-uni-view",{staticClass:" "},[e("v-uni-view",{staticClass:" flex-around"},[e("v-uni-label",{staticClass:"text-df"},[t._v("物品:")]),e("v-uni-text",{staticClass:"ellip text-df"},[t._v(t._s(n.resName)+"-"+t._s(n.rstName))])],1),e("v-uni-view",{staticClass:" flex-around"},[e("v-uni-label",{staticClass:"text-df"},[t._v("库存:")]),e("v-uni-text",{staticClass:"text-df"},[t._v(t._s(n.originalStock))])],1),e("v-uni-view",{staticClass:" flex-around"},[e("v-uni-label",{staticClass:"text-df"},[t._v("原仓库:")]),e("v-uni-text",{staticClass:"text-df"},[t._v(t._s(n.shaName))])],1),e("v-uni-view",{staticClass:" flex-around"},[e("v-uni-label",{staticClass:"text-df"},[t._v("目标仓库:")]),e("v-uni-text",{staticClass:"text-df"},[t._v(t._s(n.shzName))])],1),e("v-uni-view",{staticClass:" flex-around"},[e("v-uni-label",{staticClass:"text-df"},[t._v("调拨数量:")]),e("v-uni-text",{staticClass:"text-df"},[t._v(t._s(n.stock))])],1),e("v-uni-view",{staticClass:" flex-around"},[e("v-uni-label",{staticClass:"text-df"},[t._v("实际数量:")]),e("v-uni-input",{staticClass:" text-right",attrs:{type:"number",placeholder:"请输入数量","placeholder-class":"text-grey text-df",value:""},model:{value:n.quantity,callback:function(e){t.$set(n,"quantity",e)},expression:"item.quantity"}})],1)],1)],1)})),1),e("v-uni-view",{staticClass:"margin-top text-right"},[e("v-uni-button",{staticClass:"cu-btn bg-blue round",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.save()}}},[t._v("提交")])],1)],1)],1)},i=[]},"4bc0":function(t,n,e){var o=e("c86c");n=o(!1),n.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-2d075459]{border-radius:%?15?%;padding:%?2?% %?10?%}.resource-header[data-v-2d075459]{margin-top:%?30?%;padding:%?20?%}.resource-item[data-v-2d075459]{margin-top:%?2?%;padding:%?20?%}.resource-item .flex-around[data-v-2d075459]{display:flex;justify-content:space-between;margin-top:%?15?%}',""]),t.exports=n},9219:function(t,n,e){"use strict";e.r(n);var o=e("d848"),i=e.n(o);for(var s in o)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(s);n["default"]=i.a},a98f:function(t,n,e){"use strict";e("6a54"),Object.defineProperty(n,"__esModule",{value:!0}),n.preventClick=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=this;e.onoff?(e.onoff=!1,t(n)):uni.showToast({title:"操作过于频繁",icon:"none"})}},d848:function(t,n,e){"use strict";e("6a54");var o=e("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("bf0f"),e("2797"),e("e966");var i=e("f37f"),s=e("a98f"),a=o(e("9b8e"));a.default.prototype.$preventClick=s.preventClick;var u={components:{},data:function(){return{onoff:!0,itemEnterOrderInfo:"",applyId:"",taskId:"",resourceStores:[]}},onLoad:function(t){this.java110Context.onLoad(),this.applyId=t.applyId,this.taskId=t.taskId,this._loadAllocationResources()},onShow:function(){},methods:{_loadAllocationResources:function(){var t=this,n={page:1,row:100,applyId:this.applyId};(0,i.listAllocationStorehouses)(this,n).then((function(n){t.resourceStores=n.data}))},save:function(){var t="";if(this.resourceStores.forEach((function(n){!n.hasOwnProperty("quantity")||!n.quantity||parseInt(n.quantity)<0?t="数量未填写":n.quantity=parseInt(n.quantity)})),""==t){var n={applyId:this.applyId,taskId:this.taskId,resourceStores:this.resourceStores,communityId:this.getCommunityId()};(0,i.allocationStoreEnter)(this,n).then((function(t){uni.showToast({title:t.msg,icon:"none"}),0==t.code&&uni.navigateBack({delta:1})}))}else uni.showToast({title:t,icon:"none"})}}};n.default=u},f37f:function(t,n,e){"use strict";e("6a54");var o=e("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.allocationStoreEnter=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.allocationStoreEnter,data:n,success:function(t){e(t.data)},fail:function(n){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.deleteAllocationStorehouse=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.deleteAllocationStorehouse,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.deletePurchaseApply=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.deletePurchaseApply,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.getAllocationHisAudit=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listAllocationStoreHisAuditOrders,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listAllocationStorehouseApplys=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listAllocationStorehouseApplys,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listAllocationStorehouses=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listAllocationStorehouses,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listAuditHistoryOrders=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listAuditHistoryOrders,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listItemOutAuditHistoryOrders=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listItemOutAuditHistoryOrders,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listMyAllocationStoreAuditOrders=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listMyAllocationStoreAuditOrders,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listMyAuditOrders=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listMyAuditOrders,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listMyItemOutOrders=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listMyItemOutOrders,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listResourceStoreTypes=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listResourceStoreTypes,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listStoreHouses=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listStoreHouses,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listWorkflowAuditInfo=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listWorkflowAuditInfo,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listWorkflowStepStaffs=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listWorkflowStepStaffs,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.queryFirstAuditStaff=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.queryFirstAuditStaff,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.queryFirstStaff=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.queryFirstStaff,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.queryMyResourceStoreInfo=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.queryResourceStoreResName,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.queryPurchaseApplyList=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.queryPurchaseApplyList,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.queryResourceStoreAndTimes=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listResourceStoresAndTimes,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.queryResourceStoreList=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.queryResourceStoreList,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.queryResourceSupplier=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.queryResourceSupplier,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.saveAllocationStorehouse=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.saveAllocationStorehouse,data:n,success:function(n){t.onoff=!0,e(n.data)},fail:function(n){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.saveAuditAllocationStoreOrder=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.saveAuditAllocationStoreOrder,data:n,success:function(t){e(t.data)},fail:function(n){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.saveItemOutApply=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.saveItemOutApply,data:n,success:function(t){e(t.data)},fail:function(n){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3}),t.onoff=!0}})}))},n.saveMyAuditOrders=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.saveMyAuditOrders,data:n,success:function(t){e(t.data)},fail:function(n){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.savePurchaseApply=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.savePurchaseApply,data:n,success:function(t){e(t.data)},fail:function(n){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3}),t.onoff=!0}})}))},n.saveResourceEnter=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.saveResourceEnter,data:n,success:function(t){e(t.data)},fail:function(n){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.saveResourceOut=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.saveResourceOut,data:n,success:function(t){e(t.data)},fail:function(n){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.saveResourceStoreTransfer=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.saveResourceStoreTransfer,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.saveUrgentPurchaseApply=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.saveUrgentPurchaseApply,data:n,success:function(t){e(t.data)},fail:function(n){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.updatePurchaseApply=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.updatePurchaseApply,data:n,success:function(t){e(t.data)},fail:function(n){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e("bf0f");var i=o(e("9494"))}}]); |