| 1 |
- {"code":"/*!\n * build: vue-admin-beautiful \n * copyright: chuzhixin 1204505056@qq.com \n * time: 2022-12-12 09:51:32\n */\n(window[\"webpackJsonp\"]=window[\"webpackJsonp\"]||[]).push([[\"chunk-69cb9dd2\"],{\"45d7\":function(t,e,r){\"use strict\";r(\"c801\")},c801:function(t,e,r){},c9a0:function(t,e,r){\"use strict\";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r(\"ContainerTit\",[r(\"div\",{attrs:{slot:\"headr\"},slot:\"headr\"},[r(\"el-button\",{attrs:{type:\"primary\"},on:{click:t.modifyPrice}},[t._v(\"生成调价单\")])],1),r(\"el-form\",{staticStyle:{padding:\"20px\",\"background-color\":\"#fff\"},attrs:{\"label-width\":\"120px\",size:\"small\"}},[r(\"el-row\",[r(\"el-col\",{attrs:{span:8}},[r(\"el-form-item\",{attrs:{label:\"供应商名称:\",prop:\"supplierName\"}},[t._v(\" \"+t._s(t.form.supplierName)+\" \")]),r(\"el-form-item\",{attrs:{label:\"报价单编码:\",prop:\"no\"}},[t._v(\" \"+t._s(t.form.no)+\" \")])],1),r(\"el-col\",{attrs:{span:8}},[r(\"el-form-item\",{attrs:{label:\"商品数量:\",prop:\"materielNum\"}},[t._v(\" \"+t._s(t.form.materielNum)+\" \")]),r(\"el-form-item\",{attrs:{label:\"审核状态:\",prop:\"auditStatus\"}},[1===t.form.auditStatus?r(\"span\",{staticClass:\"info-status\"},[t._v(\" 待审核 \")]):r(\"span\",{staticClass:\"success-status\"},[t._v(\"已审核\")])])],1),r(\"el-col\",{attrs:{span:8}},[r(\"el-form-item\",{attrs:{label:\"创建日期:\",prop:\"createTime\"}},[t._v(\" \"+t._s(t.$_common.formatDate(t.form.createTime))+\" \")])],1)],1),r(\"el-table\",{staticStyle:{width:\"100%\",\"margin-top\":\"20px\"},attrs:{data:t.details_list,\"span-method\":t.objectSpanMethod,border:\"\"}},[r(\"el-table-column\",{attrs:{prop:\"title\",label:\"商品\",\"min-width\":\"200px\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[r(\"div\",{staticClass:\"clearfix\"},[r(\"div\",{staticClass:\"float_left\",staticStyle:{width:\"10%\"}},[r(\"img\",{staticStyle:{width:\"50px\",height:\"50px\"},attrs:{src:e.row.img[0],alt:\"\"}})]),r(\"div\",{staticClass:\"float_left\",staticStyle:{\"margin-left\":\"20px\",width:\"80%\"}},[r(\"p\",[t._v(t._s(e.row.title))]),r(\"p\",[t._v(t._s(e.row.code))])])])]}}])}),r(\"el-table-column\",{attrs:{prop:\"unitName\",label:\"规格\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[r(\"span\",{staticStyle:{\"margin-right\":\"20px\"}},[t._v(t._s(e.row.unitName))]),t._l(e.row.specGroup,(function(e,a){return r(\"span\",{key:a},[a>0?r(\"span\",[t._v(\"_\")]):t._e(),t._v(\" \"+t._s(e.specValueName)+\" \")])}))]}}])}),r(\"el-table-column\",{attrs:{prop:\"costPrice\",label:\"成本价\"}})],1),r(\"div\")],1)],1)},i=[],l=(r(\"caad\"),r(\"fcf4\")),s={name:\"OfferSetInfo\",data(){return{details_list:[],form:{},price_id:0,spanArr:[]}},created(){this.price_id=this.$route.query.id,this.getSupplierOfferPrice()},methods:{objectSpanMethod({row:t,column:e,rowIndex:r,columnIndex:a}){if([\"商品\"].includes(e.label)){const t=this.spanArr[r],e=t>0?1:0;return{rowspan:t,colspan:e}}},async getSupplierOfferPrice(){const t=await Object(l[\"getSupplierOfferPrice\"])(this.price_id);this.form=t.data;let e=[];t.data.details.forEach(t=>{for(let r in t.offerPrice)e.push({title:t.materielName,code:t.materielCode,img:t.materielImages,id:t.materielId,skuId:r,...t.offerPrice[r]})}),this.details_list=e;const r=this.$_common.getSpanArr(this.details_list,\"id\");this.spanArr=r.spanArr},modifyPrice(){this.$router.push(\"/goods/sale/AddGoodsAdjustPrice?price_id=\"+this.price_id)}}},o=s,c=(r(\"45d7\"),r(\"2877\")),n=Object(c[\"a\"])(o,a,i,!1,null,\"36f83fd8\",null);e[\"default\"]=n.exports},fcf4:function(t,e,r){\"use strict\";r.r(e),r.d(e,\"getAllSupplierOfferPrice\",(function(){return i})),r.d(e,\"getSupplierOfferPrice\",(function(){return l})),r.d(e,\"auditSupplierOfferPrice\",(function(){return s})),r.d(e,\"getAllSupplierWithdrawal\",(function(){return o})),r.d(e,\"updateAuditStatus\",(function(){return c}));var a=r(\"b775\");function i(t){return Object(a[\"default\"])({url:\"/Price/SupplierOfferPrice/getAll\",method:\"post\",data:t})}function l(t,e){return Object(a[\"default\"])({url:\"/Price/SupplierOfferPrice/get/\"+t,method:\"get\",data:e})}function s(t,e){return Object(a[\"default\"])({url:\"/Price/SupplierOfferPrice/audit/\"+t,method:\"put\",data:e})}function o(t){return Object(a[\"default\"])({url:\"/Purchase/SupplierWithdrawal/getAll\",method:\"post\",data:t})}function c(t,e){return Object(a[\"default\"])({url:\"/Purchase/SupplierWithdrawal/updateAuditStatus/\"+t,method:\"put\",data:e})}}}]);","extractedComments":[]}
|