You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
28 KiB
2 lines
28 KiB
|
3 years ago
|
import{_ as _export_sfc,r as ref,y as layer,o as openBlock,c as createBlock,w as withCtx,d as createVNode,e as createBaseVNode,f as createElementBlock,z as createTextVNode,C as component,G as component$1,I as component$2,H as component$3,q as component$4,j as component$5,m as component$6,R as component$7,l as component$8,J as resolveComponent,F as Fragment,h as renderList,i as createCommentVNode,D as component$9,E as component$a,T as component$b,Q as _sfc_main$5,A as pushScopeId,B as popScopeId}from"./index.58a4812e.js";/* empty css *//* empty css */import{g as getPageList,b as getDataCode,h as deleteDataById}from"./common.a907f978.js";import{b as deletePackageChild,a as getPackageChildList,u as updatePackageData}from"./package.a040d70a.js";/* empty css *//* empty css */var ViewPackage_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$4={setup(){let a=[{type:"number",title:"\u5E8F\u53F7",width:"56"},{title:"\u5B50\u9879\u4EE3\u7801",key:"FCode",width:"170px"},{title:"\u540D\u79F0",key:"FName"},{title:"\u5305\u6750\u5916\u5F62\u5C3A\u5BF8(\u957F*\u5BBD*\u9AD8)(mm)",key:"FOutSize"},{title:"\u5305\u6750\u91CD\u91CF(kg)",key:"FWeight",width:"130px"},{title:"\u6570\u91CF",key:"FCount",width:"100px"},{title:"\u5355\u4F4D",key:"FUnit",width:"100px"},{title:"\u7269\u6599\u72B6\u6001",key:"FMaterialID",width:"120px",customSlot:"FMaterialID"}];a.forEach(f=>{f.align="center"});const e=ref([]),o=ref({}),t=ref(!0);return{editDataInfo:o,dataColumn:a,dataList:e,isDisabled:t}},props:{dataInfoObj:{type:Object,default:()=>{}}},mounted(){this.editDataInfo=JSON.parse(JSON.stringify(this.dataInfoObj)),this._getChildList()},methods:{cancelClick(a){this.$emit("cancelClick",a!=null?a:!1)},_deleteData(a){let e=this;layer.confirm("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u6B64\u5B50\u9879\u5417\uFF1F",{btn:[{text:"\u786E\u5B9A",callback:function(o){e.__deleteData(o,a)}},{text:"\u53D6\u6D88",callback:function(o){layer.close(o)}}]})},async __deleteData(a,e){let o=await deletePackageChild(e);layer.close(a),o&&o>0?layer.msg("\u64CD\u4F5C\u6210\u529F",{time:1e3,icon:1}):layer.msg("\u64CD\u4F5C\u5931\u8D25",{time:1e3,icon:2}),this._getChildList()},async _getChildList(){let a=await getPackageChildList({FPageIndex:1,FPageSize:999,FPageOrderBy:"FID",FPackageID:this.editDataInfo.FID});this.dataList=a.Data.List||[]}}},_hoisted_1$3={class:"empty-small2"},_hoisted_2$2={key:0,style:{color:"#1E9FFF"}},_hoisted_3$1={key:1,style:{color:"#FF5722"}};function _sfc_render$4(a,e,o,t,f,l){const d=component,s=component$1,r=component$2,c=component$3,p=component$4,_=component$5;return openBlock(),createBlock(_,null,{default:withCtx(()=>[createVNode(r,{model:t.editDataInfo,class:"search-box edit-info color999"},{default:withCtx(()=>[createVNode(s,{"label-width":"140",label:"\u7CFB\u5217",prop:"FFactoryCode"},{default:withCtx(()=>[createVNode(d,{modelValue:t.editDataInfo.FFactoryCode,"onUpdate:modelValue":e[0]||(e[0]=n=>t.editDataInfo.FFactoryCode=n),disabled:t.isDisabled},null,8,["modelValue","disabled"])]),_:1}),createVNode(s,{"label-width":"140",label:"\u5305\u89C4\u4EE3\u7801",prop:"FCode"},{default:withCtx(()=>[createVNode(d,{modelValue:t.editDataInfo.FCode,"onUpdate:modelValue":e[1]||(e[1]=n=>t.editDataInfo.FCode=n),disabled:t.isDisabled},null,8,["modelValue","disabled"])]),_:1}),createVNode(s,{"label-width":"140",label:"\u6807\u51C6BOM\u6570\u91CF(KG)",prop:"FBomUnit"},{default:withCtx(()=>[createVNode(d,{modelValue:t.editDataInfo.FBomUnit,"onUpdate:modelValue":e[2]||(e[2]=n=>t.editDataInfo.FBomUnit=n),disabled:t.isDisabled},null,8,["modelValue","disabled"])]),_:1}),createVNode(s,{"label-width":"140",label:"\u5305\u88C5\u89C4\u683C",prop:"FSpecs"},{default:withCtx(()=>[createVNode(d,{modelValue:t.editDataInfo.FSpecs,"onUpdate:modelValue":e[3]||(e[3]=n=>t.editDataInfo.FSpecs=n),disabled:t.isDisabled},null,8,["modelValue","disabled"])]),_:1}),createVNode(s,{"label-width":"140",label:"\u51C0\u91CD(KG)",prop:"FNetWeight"},{default:withCtx(()=>[createVNode(d,{modelValue:t.editDataInfo.FNetWeight,"onUpdate:mode
|