2 lines
6.6 KiB
JavaScript
2 lines
6.6 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7c97c204"],{"0674":function(t,e,o){"use strict";o("b505")},b505:function(t,e,o){},e04c:function(t,e,o){"use strict";o.r(e);var r=function(){var t=this,e=t._self._c;return e("div",[e("el-row",[e("el-col",{attrs:{span:24}},[e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[e("span",[t._v("确定入库")]),e("div",{staticStyle:{float:"right"}},[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t._goBack}},[e("i",{staticClass:"el-icon-close"}),t._v("返回 ")])],1)]),e("div",[e("el-row",[e("el-col",{attrs:{span:6}},[e("el-form-item",{attrs:{label:"工单编码:"}},[e("span",[t._v(t._s(t.doAllocationOrderInfo.orderId))])])],1),e("el-col",{attrs:{span:6}},[e("el-form-item",{attrs:{label:"申请人:"}},[e("span",[t._v(t._s(t.doAllocationOrderInfo.staffName))])])],1),e("el-col",{attrs:{span:6}},[e("el-form-item",{attrs:{label:"申请时间:"}},[e("span",[t._v(t._s(t.doAllocationOrderInfo.createTime))])])],1),e("el-col",{attrs:{span:6}},[e("el-form-item",{attrs:{label:"订单状态:"}},[e("span",[t._v(t._s(t.doAllocationOrderInfo.stateName))])])],1)],1),e("el-row",[e("el-col",{attrs:{span:6}},[e("el-form-item",{attrs:{label:"源商铺:"}},[e("span",[t._v(t._s(t.doAllocationOrderInfo.shopName))])])],1),e("el-col",{attrs:{span:6}},[e("el-form-item",{attrs:{label:"源仓库:"}},[e("span",[t._v(t._s(t.doAllocationOrderInfo.srcShName))])])],1),e("el-col",{attrs:{span:6}},[e("el-form-item",{attrs:{label:"目标商铺:"}},[e("span",[t._v(t._s(t.doAllocationOrderInfo.targetShopName))])])],1),e("el-col",{attrs:{span:6}},[e("el-form-item",{attrs:{label:"目标仓库:"}},[e("span",[t._v(t._s(t.doAllocationOrderInfo.targetShName))])])],1)],1),e("el-row",[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"审核备注:"}},[e("span",[t._v(t._s(t.doAllocationOrderInfo.stateRemark))])])],1)],1)],1)])],1)],1),e("el-row",[e("el-col",{attrs:{span:24}},[e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[e("span",[t._v("商品信息")])]),e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.doAllocationOrderInfo.inoutOrderProducts,border:""}},[e("el-table-column",{attrs:{prop:"index",label:"序号",width:"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.$index+1)+" ")]}}])}),e("el-table-column",{attrs:{prop:"productId",label:"商品编号",align:"center"}}),e("el-table-column",{attrs:{prop:"prodName",label:"商品名称",align:"center"}}),e("el-table-column",{attrs:{prop:"specName",label:"规格",align:"center"}}),e("el-table-column",{attrs:{prop:"productCount",label:"申请单数量",align:"center"}}),e("el-table-column",{attrs:{label:"实际数量",align:"center"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("el-input",{attrs:{type:"number"},model:{value:o.row.actCount,callback:function(e){t.$set(o.row,"actCount",e)},expression:"scope.row.actCount"}})]}}])}),e("el-table-column",{attrs:{prop:"price",label:"金额",align:"center"}})],1),e("div",{staticStyle:{"margin-top":"20px","text-align":"right"}},[e("el-button",{staticStyle:{"margin-right":"20px"},attrs:{type:"warning"},on:{click:t._doCancelOrder}},[e("i",{staticClass:"el-icon-close"}),t._v("取消入库单 ")]),e("el-button",{attrs:{type:"primary"},on:{click:t.doInoutOrder}},[e("i",{staticClass:"el-icon-check"}),t._v("确定入库 ")])],1)],1)],1)],1)],1)},a=[],s=o("7323"),l=o("b775");function n(t){return new Promise((e,o)=>{Object(l["a"])({url:"/product.queryProduct",method:"get",params:t}).then(t=>{const o=t.data;e(o)}).catch(t=>{o(t)})})}function i(t){return new Promise((e,o)=>{Object(l["a"])({url:"/allocationOrder/warehousingAllocationOrder",method:"post",data:t}).then(t=>{const o=t.data;e(o)}).catch(t=>{o(t)})})}var c={data(){return{shopId:"",doAllocationOrderInfo:{orderId:"",stateName:"",state:"",staffId:"",staffName:"",createTime:"",remark:"",stateRemark:"",shopId:"",shopName:"",srcShId:"",srcShName:"",targetShId:"",targetShName:"",targetShopId:"",targetShopName:"",productCount:"",prodName:"",specName:"",specId:"",productId:"",actCount:"",inoutOrderProducts:[]}}},created(){this.shopId=Object(s["f"])(),console.log(s["e"]),this._initMethod()},methods:{_initMethod(){const t=this.$route.query.orderId;if(!t)return this.$message.error("非法操作"),void this._goBack();this.doAllocationOrderInfo.orderId=this.$route.query.orderId,this.doAllocationOrderInfo.staffName=this.$route.query.staffName,this.doAllocationOrderInfo.stateName=this.$route.query.stateName,this.doAllocationOrderInfo.createTime=this.$route.query.createTime,this.doAllocationOrderInfo.stateRemark=this.$route.query.stateRemark,this.doAllocationOrderInfo.shopName=this.$route.query.shopName,this.doAllocationOrderInfo.srcShName=this.$route.query.srcShName,this.doAllocationOrderInfo.targetShopName=this.$route.query.targetShopName,this.doAllocationOrderInfo.targetShName=this.$route.query.targetShName,this.doAllocationOrderInfo.shopId=this.$route.query.shopId,this.doAllocationOrderInfo.specId=this.$route.query.specId,this.doAllocationOrderInfo.productId=this.$route.query.productId,this.doAllocationOrderInfo.productCount=this.$route.query.productCount,this.doAllocationOrderInfo.actCount=this.$route.query.productCount,this.doAllocationOrderInfo.state=this.$route.query.state,this.doAllocationOrderInfo.targetShId=this.$route.query.targetShId,this.doAllocationOrderInfo.srcShId=this.$route.query.srcShId,this.doAllocationOrderInfo.targetShopId=this.$route.query.targetShopId,this.doAllocationOrderInfo.staffId=this.$route.query.staffId,this.doAllocationOrderInfo.prodName=this.$route.query.prodName,this._listInoutOrderProduct()},async _listInoutOrderProduct(){try{const t={page:1,row:50,specId:this.doAllocationOrderInfo.specId,productId:this.doAllocationOrderInfo.productId,shopId:this.doAllocationOrderInfo.shopId},e=await n(t);this.doAllocationOrderInfo.inoutOrderProducts=e.data}catch(t){console.error("请求失败:",t)}},async doInoutOrder(){try{this.doAllocationOrderInfo.state="4004";const t=await i(this.doAllocationOrderInfo);0===t.code&&(this.$message.success("入库成功"),this._goBack())}catch(t){this.$message.error(t.message||"操作失败")}},async _doCancelOrder(){try{this.doAllocationOrderInfo.state="3003";const t=await i(this.doAllocationOrderInfo);0===t.code?(this.$message.success(t.msg),this._goBack()):this.$message.error(t.msg)}catch(t){this.$message.error(t.message||"操作失败")}},_goBack(){this.$router.go(-1)}}},d=c,u=(o("0674"),o("2877")),h=Object(u["a"])(d,r,a,!1,null,"213e8b57",null);e["default"]=h.exports}}]);
|
|
//# sourceMappingURL=chunk-7c97c204.384f1a76.js.map
|