You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
4.6 KiB
JavaScript
1 line
4.6 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/outBound/superviseLoadingDetail"],{"05db":function(e,o,n){"use strict";n.d(o,"b",(function(){return r})),n.d(o,"c",(function(){return u})),n.d(o,"a",(function(){return t}));var t={uNavbar:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-navbar/u-navbar")]).then(n.bind(null,"84d1"))},uText:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-text/u-text")]).then(n.bind(null,"f7a2"))},uTabs:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-tabs/u-tabs")]).then(n.bind(null,"649f"))},uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(n.bind(null,"da7f"))},uToast:function(){return n.e("node-modules/uview-ui/components/u-toast/u-toast").then(n.bind(null,"b7df"))}},r=function(){var e=this.$createElement;this._self._c},u=[]},"10ac":function(e,o,n){},4363:function(e,o,n){"use strict";(function(e){var t=n("4ea4");Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=t(n("79eb")),u=t(n("3f96")),i={data:function(){return{ruleForm:{warehouseId:r.default.state.userInfo.branchId,orderNo:"",orderNos:[],workType:"8",location:"",number:"",userId:""},orderNoForm:{containerNo:"",outNo:"",verifyed:[],unVerify:[],outId:""},rules:{orderNos:{type:"array",required:!0,message:"请选择订单号",trigger:["blur"]}},unVerifyList:[],checked:!1,tabList:[{name:"选择监装订单"},{name:"已监装订单",badge:{value:0}}],tabIndex:0}},onLoad:function(e){if(e.data){var o,n=JSON.parse(e.data);if(Object.assign(this.orderNoForm,n),this.ruleForm.orderNo=n.orderNo,this.ruleForm.outNo=n.outNo,this.unVerifyList=(null===n||void 0===n?void 0:n.unVerify)||[],null!==n&&void 0!==n&&n.verifyed&&Array.isArray(null===n||void 0===n?void 0:n.verifyed))this.tabList[1].badge.value=(null===n||void 0===n||null===(o=n.verifyed)||void 0===o?void 0:o.length)||0}},methods:{moveVerifyed:function(o){var n=this;e.showModal({title:"移除监装订单",content:"是否将订单号为".concat(o,"转成未监装状态"),success:function(e){e.confirm&&u.default.storge.fallbackVerify({outNo:n.orderNoForm.outNo,orderNo:o}).then((function(e){var o,t,r,u;(Object.assign(n.orderNoForm,e.data),n.ruleForm.orderNos=[],n.unVerifyList=(null===e||void 0===e||null===(o=e.data)||void 0===o?void 0:o.unVerify)||[],null!==e&&void 0!==e&&null!==(t=e.data)&&void 0!==t&&t.verifyed&&Array.isArray(null===e||void 0===e||null===(r=e.data)||void 0===r?void 0:r.verifyed))&&(n.tabList[1].badge.value=null===e||void 0===e||null===(u=e.data)||void 0===u?void 0:u.verifyed.length);n.$refs.uToast.show({type:"success",message:"移除成功"})}))}})},clicktab:function(e){this.tabIndex=e.index},leftClick:function(){},goVerifyDetail:function(o){console.log(o,"val"),e.navigateTo({url:"/pages/outBound/superviseOrderDetail?orderNo=".concat(o,"&&outNo=").concat(this.ruleForm.outNo)})},submitData:function(){var o=this;this.unVerifyList.length?this.$refs.uToast.show({type:"warning",message:"请监装完所有订单号"}):(this.ruleForm.isSubmit=!0,u.default.storge.verify(this.ruleForm).then((function(n){var t,r,u,i,a;"1"==(null===n||void 0===n||null===(t=n.data)||void 0===t?void 0:t.outStatus)?e.navigateTo({url:"/pages/outBound/superviseLoadingImg?id=".concat(o.orderNoForm.outId)}):(Object.assign(o.orderNoForm,n.data),o.ruleForm.orderNos=[],o.unVerifyList=(null===n||void 0===n||null===(r=n.data)||void 0===r?void 0:r.unVerify)||[],null!==n&&void 0!==n&&null!==(u=n.data)&&void 0!==u&&u.verifyed&&Array.isArray(null===n||void 0===n||null===(i=n.data)||void 0===i?void 0:i.verifyed)&&(o.tabList[1].badge.value=null===n||void 0===n||null===(a=n.data)||void 0===a?void 0:a.verifyed.length))})))}}};o.default=i}).call(this,n("543d")["default"])},"69a9":function(e,o,n){"use strict";n.r(o);var t=n("4363"),r=n.n(t);for(var u in t)["default"].indexOf(u)<0&&function(e){n.d(o,e,(function(){return t[e]}))}(u);o["default"]=r.a},c526:function(e,o,n){"use strict";var t=n("10ac"),r=n.n(t);r.a},f59d:function(e,o,n){"use strict";n.r(o);var t=n("05db"),r=n("69a9");for(var u in r)["default"].indexOf(u)<0&&function(e){n.d(o,e,(function(){return r[e]}))}(u);n("c526");var i=n("f0c5"),a=Object(i["a"])(r["default"],t["b"],t["c"],!1,null,"35969363",null,!1,t["a"],void 0);o["default"]=a.exports},fa25:function(e,o,n){"use strict";(function(e,o){var t=n("4ea4");n("260f");t(n("66fd"));var r=t(n("f59d"));e.__webpack_require_UNI_MP_PLUGIN__=n,o(r.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])}},[["fa25","common/runtime","common/vendor"]]]); |