1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915 |
- // 编辑出入库任务
- <template>
- <div class="container">
- <el-row>
- <el-col :span="12">
- <h2 class="bg-left title">编辑出入库任务</h2>
- </el-col>
- <el-col :span="12" class="bg-right">
- <el-button class="bg-bottom" type="primary" size="small" @click="returnsales()">
- <img
- width="6"
- height="10"
- style="vertical-align: bottom; margin-right: 3px"
- src="../../../public/img/lujing.png"
- alt
- />返回
- </el-button>
- </el-col>
- </el-row>
- <div class="basicInformation">
- <div class="annu">
- <el-radio-group @change="tasktypechange" v-model="dataList.taskTypeKey"></el-radio-group>
- <div class="nav">
- <span class="ziti">
- 任务类型:
- <h1
- class="ziti1"
- v-show="dataList.inOutType == '移库入库'||dataList.inOutType == '移库出库'"
- >移库任务</h1>
- <h1
- class="ziti1"
- v-show="dataList.inOutType == '销售出库'||dataList.inOutType == '暂存出库'||dataList.inOutType == '贸易服务出库'||dataList.inOutType == '采购出库'"
- >出库任务</h1>
- <h1
- class="ziti1"
- v-show="dataList.inOutType == '采购入库'||dataList.inOutType == '暂存入库'||dataList.inOutType == '贸易服务入库'||dataList.inOutType == '退库'"
- >入库任务</h1>
- </span>
- </div>
- </div>
- <div class="ding"></div>
- <div
- v-if="dataList.taskTypeKey == 1||(dataList.taskTypeKey == 3&&inOutFlag ==1)"
- class="center1"
- >
- <img
- style="position: relative; top: 40px; left: 300px;"
- width="19"
- height="19"
- src="../../../public/img/cangku.png"
- alt
- />
- <!--出库=-->
- <div class="small-title">
- <h3>出库任务({{ dataList.inOutTaskNo }})</h3>
- </div>
- <el-form ref="dataList" :model="dataList" label-width="140px">
- <!-- 仓库名 -->
- <el-form-item label="仓库名">
- <el-select
- v-model="dataList.warehouseName"
- placeholder="请选择仓库名"
- class="typeselect"
- @change="selectwarehouseName"
- >
- <el-option
- v-for="item in warehouseNameList"
- :key="item.constKey"
- :label="item.warehouseName"
- :value="item.id"
- />
- </el-select>
- </el-form-item>
- <!-- 出库类型 -->
- <el-form-item label="出库类型">
- <el-select
- :disabled="dataList.taskTypeKey == 3||dataList.taskTypeKey == 4"
- v-model="dataList.inOutType"
- placeholder="请选择出库类型"
- class="typeselect"
- @change="selectstorageType"
- >
- <el-option
- v-for="item in storageType"
- :key="item.constKey"
- v-if="
- (dataList.taskTypeKey == 1 &&
- item.constValue != '移库出库') ||
- (dataList.taskTypeKey == 3 &&
- item.constValue == '移库出库') ||
- (dataList.taskTypeKey == 4 && item.constValue == '销售出库')
- "
- :label="item.constValue"
- :value="item.constValue"
- />
- </el-select>
- </el-form-item>
- <!-- 合同编号 -->
- <el-form-item v-if="dataList.taskTypeKey != 3" label="合同编号">
- <el-select
- @change="changecontract"
- v-model="dataList.contractNo"
- placeholder="请输入合同编号"
- class="typeselect"
- >
- <el-option
- v-for="item in moveTaskNo"
- :key="item.constKey"
- :label="item.contractNo"
- :value="item.contractNo"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item v-if="dataList.taskTypeKey == 3" label="移库任务编号">
- <el-select
- @change="selectTaskNo"
- v-model="dataList.moveTaskNo"
- placeholder="请输入移库任务编号"
- class="typeselect"
- >
- <el-option
- v-for="item in contractNoList"
- :key="item.constKey"
- :label="item.contractNo"
- :value="item.contractNo"
- ></el-option>
- </el-select>
- </el-form-item>
- <!-- 货名 -->
- <el-form-item label="货名" class="huom">
- <el-select
- :disabled="dataList.taskTypeKey != 3"
- v-model="dataList.goodsName"
- placeholder="货名"
- class="huom"
- @change="selectgoodsName"
- >
- <el-option
- v-for="item in goodnameList"
- :key="item.constKey"
- :label="item.constValue"
- :value="item.constValue"
- ></el-option>
- </el-select>
- </el-form-item>
- <!--重量(吨)-->
- <el-form-item label="重量(吨)" span="1" style=" margin-left: 350px; margin-top: -40px">
- <el-input
- v-model="dataList.weight"
- placeholder="请输入重量(吨)"
- maxlength="120"
- size="small"
- class="huom"
- />
- </el-form-item>
- <!-- 品级 -->
- <el-form-item label="品级">
- <el-select
- v-model="dataList.grade"
- placeholder
- class="typeselect"
- @change="selectpackingMethod"
- >
- <el-option
- v-for="item in gradeList"
- :key="item.constKey"
- :label="item.constValue"
- :value="item.constValue"
- />
- </el-select>
- </el-form-item>
- <!--容重(克/升)>=-->
- <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="容重(克/升)>=">
- <el-input
- @input="bulkDensitychange"
- v-model="dataList.bulkDensity"
- placeholder="请输入容重"
- maxlength="120"
- size="small"
- class="huom"
- />
- </el-form-item>
- <!--水分(%)<=-->
- <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="水分(%)<=" span="1" style=" margin-left: 350px; margin-top: -40px">
- <el-input
- @input="waterContentchange"
- v-model="dataList.waterContent"
- placeholder="请输入水分占比"
- maxlength="120"
- size="small"
- class="huom"
- />
- </el-form-item>
- <!--单价(元/吨)-->
- <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="单价(元/吨)" span="1" style=" margin-left: 650px; margin-top: -40px">
- <el-input
- @input="unitPricechange"
- v-model="dataList.unitPrice"
- placeholder="请输入单价"
- maxlength="120"
- size="small"
- class="huom"
- />
- </el-form-item>
- <!--预计出库日期-->
- <el-form-item label="预计出库日期" span="1" prop="predictDate" class="deliverydate">
- <el-date-picker
- v-model="dataList.predictDate"
- type="date"
- placeholder="请选择预计出库日期"
- value-format="yyyy-MM-dd"
- />
- </el-form-item>
- <!--预估运费(元/吨)-->
- <el-form-item label="预估运费(元/吨)" span="1" >
- <el-input v-model="dataList.estimatedFreight" placeholder="请输入预估运费"
- maxlength="20" size="small" />
- </el-form-item>
- <!--发货人-->
- <el-form-item label="发货人">
- <el-select
- v-model="dataList.agent"
- placeholder="请选择发货人"
- filterable
-
- @change="selectstaff"
- >
- <el-option
- v-for="item in options"
- :key="item.value"
- :label="item.staffName"
- :value="item.staffName"
- />
- </el-select>
- </el-form-item>
- <!--业务描述=-->
- <el-form-item v-if="dataList.taskTypeKey != 3" label="业务描述" span="1">
- <el-input
- v-model="dataList.businessDescribe"
- placeholder="请输入业务描述,不超过150字"
- maxlength="150"
- size="large"
- class="yewu"
- />
- </el-form-item>
- </el-form>
- </div>
- <div
- v-show="dataList.taskTypeKey == 2||dataList.taskTypeKey == 4||(dataList.taskTypeKey == 3&&inOutFlag == 2)"
- class="center1"
- >
- <img
- style="position: relative; top: 40px; left: 300px;"
- width="19"
- height="19"
- src="../../../public/img/cangku.png"
- alt
- />
- <div class="small-title">
- <h3>
- 入库任务({{ dataList1.inOutTaskNo }})
- <span v-if="deletetask" style="color:red;">已删除</span>
- </h3>
- </div>
- <el-form v-if="!deletetask" ref="form" :model="form" label-width="140px">
- <!-- 仓库名 -->
- <el-form-item label="仓库名">
- <el-select v-model="dataList1.warehouseName" placeholder="请选择仓库名" class="typeselect">
- <el-option
- v-for="item in warehouseNameList"
- :key="item.constKey"
- :label="item.warehouseName"
- :value="item.warehouseName"
- />
- </el-select>
- </el-form-item>
- <!-- 入库类型 -->
- <el-form-item label="入库类型">
- <el-select
- :disabled="dataList.taskTypeKey == 3||dataList.taskTypeKey == 4"
- v-model="dataList1.inOutType"
- placeholder="请选择入库类型"
- class="typeselect"
- @change="selectstorageType1"
- >
- <el-option
- v-for="item in storageType1"
- :key="item.constKey"
- v-if="
- (dataList1.taskTypeKey == 2 &&
- item.constValue != '移库入库') ||
- (dataList1.taskTypeKey == 3 &&
- item.constValue == '移库入库') ||
- (dataList1.taskTypeKey == 4 && item.constValue == '退库')
- "
- :label="item.constValue"
- :value="item.constValue"
- />
- </el-select>
- </el-form-item>
- <!-- 合同编号 -->
- <el-form-item v-if="dataList1.taskTypeKey != 3" label="合同编号">
- <el-select
- @change="changecontract1"
- v-model="dataList1.contractNo"
- placeholder="请输入合同编号"
- class="typeselect"
- >
- <el-option
- v-for="item in contractNoList"
- :key="item.constKey"
- :label="item.contractNo"
- :value="item.contractNo"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item v-if="dataList1.taskTypeKey == 3" label="移库任务编号">
- <el-select
- disabled
- v-model="dataList1.moveTaskNo"
- placeholder="请输入移库任务编号"
- class="typeselect"
- >
- <el-option
- v-for="item in contractNoList"
- :key="item.constKey"
- :label="item.contractNo"
- :value="item.contractNo"
- ></el-option>
- </el-select>
- </el-form-item>
- <!-- 货名 -->
- <el-form-item label="货名" class="huom">
- <el-select
- :disabled="dataList.taskTypeKey != 3"
- v-model="dataList1.goodsName"
- placeholder="货名"
- class="huom"
- @change="selectgoodsName1"
- >
- <el-option
- v-for="item in goodnameList"
- :key="item.constKey"
- :label="item.constValue"
- :value="item.constValue"
- ></el-option>
- </el-select>
- </el-form-item>
- <!--重量(吨)-->
- <el-form-item label="重量(吨)" span="1" style=" margin-left: 350px; margin-top: -40px">
- <el-input
- @input="weightchange"
- v-model="dataList1.weight"
- placeholder="请输入重量(吨)"
- maxlength="120"
- size="small"
- class="huom"
- />
- </el-form-item>
- <!-- 品级 -->
- <el-form-item label="品级">
- <el-select
- :disabled="dataList.taskTypeKey == 3"
- v-model="dataList1.grade"
- placeholder
- class="typeselect"
- @change="selectpackingMethod1"
- >
- <el-option
- v-for="item in gradeList"
- :key="item.constKey"
- :label="item.constValue"
- :value="item.constValue"
- />
- </el-select>
- </el-form-item>
- <!--容重(克/升)>=-->
- <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="容重(克/升)>=">
- <el-input
- @input="bulkDensitychange"
- :disabled="dataList.taskTypeKey == 3"
- v-model="dataList1.bulkDensity"
- placeholder="请输入容重"
- maxlength="120"
- size="small"
- class="huom"
- />
- </el-form-item>
- <!--水分(%)<=-->
- <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="水分(%)<=" span="1" style=" margin-left: 350px; margin-top: -40px">
- <el-input
- @input="waterContentchange"
- :disabled="dataList.taskTypeKey == 3"
- v-model="dataList1.waterContent"
- placeholder="请输入水分占比"
- maxlength="120"
- size="small"
- class="huom"
- />
- </el-form-item>
- <!--单价(元/吨)-->
- <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="单价(元/吨)" span="1" style=" margin-left: 650px; margin-top: -40px">
- <el-input
- @input="unitPricechange"
- :disabled="dataList.taskTypeKey == 3"
- v-model="dataList1.unitPrice"
- placeholder="请输入单价"
- maxlength="120"
- size="small"
- class="huom"
- />
- </el-form-item>
- <!--预计出库日期-->
- <el-form-item label="预计入库日期" span="1" prop="predictDate" class="deliverydate">
- <el-date-picker
- v-model="dataList1.predictDate"
- type="date"
- placeholder="请选择预计入库日期"
- value-format="yyyy-MM-dd"
- />
- </el-form-item>
- <!--预估运费(元/吨)-->
- <el-form-item label="预估运费(元/吨)" span="1" >
- <el-input v-model="dataList1.estimatedFreight" placeholder="请输入预估运费"
- maxlength="20" size="small" />
- </el-form-item>
- <!-- 经办人-->
- <el-form-item label="收货人">
- <el-select
- v-model="dataList1.agent"
- placeholder="请选择收货人"
- filterable
-
- @change="selectstaff1"
- >
- <el-option
- v-for="item in options"
- :key="item.value"
- :label="item.staffName"
- :value="item.staffName"
- />
- </el-select>
- </el-form-item>
- <!--业务描述=-->
- <el-form-item v-if="dataList.taskTypeKey != 4" label="业务描述">
- <el-input
- v-model="dataList1.businessDescribe"
- placeholder="请输入业务描述,不超过150字"
- maxlength="150"
- size="large"
- />
- </el-form-item>
- </el-form>
- </div>
- <div v-if="dataList.taskTypeKey == 4" class="center1">
- <!--出库=-->
- <div class="small-title">
- <img
- style="position: relative; top: 40px; left: -22px;"
- width="19"
- height="19"
- src="../../../public/img/cangku.png"
- alt
- />
- <h3>出库任务({{ inOutTaskNo }})</h3>
- </div>
- <el-form ref="dataList" :model="dataList" label-width="140px">
- <!-- 仓库名 -->
- <el-form-item label="仓库名">
- <el-select
- v-model="dataList.warehouseName"
- placeholder="请选择仓库名"
- class="typeselect"
- @change="selectwarehouseName"
- >
- <el-option
- v-for="item in warehouseNameList"
- :key="item.constKey"
- :label="item.warehouseName"
- :value="item.id"
- />
- </el-select>
- </el-form-item>
- <!-- 出库类型 -->
- <el-form-item label="出库类型">
- <el-select
- :disabled="dataList.taskTypeKey == 3||dataList.taskTypeKey == 4"
- v-model="dataList.inOutType"
- placeholder="请选择出库类型"
- class="typeselect"
- @change="selectstorageType"
- >
- <el-option
- v-for="item in storageType"
- :key="item.constKey"
- v-if="
- (dataList.taskTypeKey == 1 &&
- item.constValue != '移库出库') ||
- (dataList.taskTypeKey == 3 &&
- item.constValue == '移库出库') ||
- (dataList.taskTypeKey == 4 && item.constValue == '销售出库')
- "
- :label="item.constValue"
- :value="item.constValue"
- />
- </el-select>
- </el-form-item>
- <!-- 合同编号 -->
- <el-form-item v-if="dataList.taskTypeKey != 3" label="合同编号">
- <el-select
- @change="changecontract"
- v-model="dataList.contractNo"
- placeholder="请输入合同编号"
- class="typeselect"
- >
- <el-option
- v-for="item in contractNoList"
- :key="item.constKey"
- :label="item.contractNo"
- :value="item.contractNo"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item v-if="dataList.taskTypeKey == 3" label="移库任务编号">
- <el-select
- @change="selectTaskNo"
- v-model="dataList.moveTaskNo"
- placeholder="请输入移库任务编号"
- class="typeselect"
- >
- <el-option
- v-for="item in contractNoList"
- :key="item.constKey"
- :label="item.contractNo"
- :value="item.contractNo"
- ></el-option>
- </el-select>
- </el-form-item>
- <!-- 货名 -->
- <el-form-item label="货名" class="huom">
- <el-select
- :disabled="dataList.taskTypeKey != 3"
- v-model="dataList.goodsName"
- placeholder="货名"
- class="huom"
- @change="selectgoodsName"
- >
- <el-option
- v-for="item in goodnameList"
- :key="item.constKey"
- :label="item.constValue"
- :value="item.constValue"
- ></el-option>
- </el-select>
- </el-form-item>
- <!--重量(吨)-->
- <el-form-item label="重量(吨)" span="1" style=" margin-left: 350px; margin-top: -40px">
- <el-input
- :disabled="dataList.taskTypeKey == 4"
- v-model="dataList.weight"
- placeholder="请输入重量(吨)"
- maxlength="120"
- size="small"
- class="huom"
- />
- </el-form-item>
- <!-- 品级 -->
- <el-form-item label="品级">
- <el-select
- :disabled="dataList.taskTypeKey == 3||dataList.taskTypeKey == 4"
- v-model="dataList.grade"
- placeholder
- class="typeselect"
- @change="selectpackingMethod"
- >
- <el-option
- v-for="item in gradeList"
- :key="item.constKey"
- :label="item.constValue"
- :value="item.constValue"
- />
- </el-select>
- </el-form-item>
- <!--容重(克/升)>=-->
- <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="容重(克/升)>=">
- <el-input
- :disabled="dataList.taskTypeKey == 3||dataList.taskTypeKey == 4"
- v-model="dataList.bulkDensity"
- placeholder="请输入容重"
- maxlength="120"
- size="small"
- class="huom"
- />
- </el-form-item>
- <!--水分(%)<=-->
- <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="水分(%)<=" span="1" style=" margin-left: 350px; margin-top: -40px">
- <el-input
- :disabled="dataList.taskTypeKey == 3||dataList.taskTypeKey == 4"
- v-model="dataList.waterContent"
- placeholder="请输入水分占比"
- maxlength="120"
- size="small"
- class="huom"
- />
- </el-form-item>
- <!--单价(元/吨)-->
- <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="单价(元/吨)" span="1" style=" margin-left: 650px; margin-top: -40px">
- <el-input
- :disabled="dataList.taskTypeKey == 3||dataList.taskTypeKey == 4"
- v-model="dataList.unitPrice"
- placeholder="请输入单价"
- maxlength="120"
- size="small"
- class="huom"
- />
- </el-form-item>
- <!--预计出库日期-->
- <el-form-item label="预计出库日期" span="1" prop="predictDate" class="deliverydate">
- <el-date-picker
- v-model="dataList.predictDate"
- type="date"
- placeholder="请选择预计出库日期"
- value-format="yyyy-MM-dd"
- />
- </el-form-item>
- <!--预估运费(元/吨)-->
- <el-form-item label="预估运费(元/吨)" span="1" >
- <el-input v-model="dataList.estimatedFreight" placeholder="请输入预估运费"
- maxlength="20" size="small" />
- </el-form-item>
- <!--发货人-->
- <el-form-item label="出库发货人">
- <el-select
- v-model="dataList.agent"
- placeholder="请选择发货人"
- filterable
-
- @change="selectstaff"
- >
- <el-option
- v-for="item in options"
- :key="item.value"
- :label="item.staffName"
- :value="item.staffName"
- />
- </el-select>
- </el-form-item>
- <!--业务描述=-->
- <el-form-item label="业务描述">
- <el-input
- v-model="dataList.businessDescribe"
- placeholder="请输入业务描述,不超过150字"
- maxlength="150"
- size="large"
- />
- </el-form-item>
- </el-form>
- </div>
- </div>
- <!-- 提交 -->
- <div style="text-align: right; padding: 10px" class="center">
- <el-button class="bg-bottom" type="primary" size="small" @click="submit()">提交</el-button>
- </div>
- </div>
- </template>
- <script>
- import {
- getwarehousename,
- xialaNo,
- addoreditoutput,
- outexamine,
- getGoodsName
- } from '@/model/tasksport/index'
- import { pullDown, getstaff } from '@/model/warehouse/index'
- import { downloadFile } from '@/utils/batchDown'
- import Pagination from '@/components/Pagination'
- import { mapGetters } from 'vuex'
- import WsUpload from '@/components/WsUpload'
- // import { dayjs, fmoney, EventBus } from 'base-core-lib'
- import { dayjs, EventBus } from 'base-core-lib'
- export default {
- name: 'viewSpareMoney',
- components: {
- WsUpload,
- Pagination
- },
- watch: {
- // vesselId(val) {
- // this.getList()
- // },
- isShow(val) {
- this.showType = val
- }
- },
- computed: {
- ...mapGetters(['deptBudgetList'])
- },
- data() {
- return {
- //弹出框
- dialogViewSpareMoney: false,
- dialogApproveFormVisible: false,
- // 船舶类型
- monetaryKey: null,
- // 表格显示数据
- tableDate: [],
- // 是否显示
- showType: true,
- disabled: false,
- // 年
- year: '',
- contractNoList: [],
- deptBudgetTotal: 0,
- readonly: true,
- currentPage: 1,
- pageSize: 10,
- searchType: 1,
- searchKeyWord: '',
- radio: '1',
- contractType: 2,
- startDate: null,
- endDate: null,
- goodnameList: [],
- checked: true,
- form: {},
- staffList: [],
- options: [],
- storageType: [],
- storageType1: [],
- outContractNo: [],
- // 提交类型
- submitType: true,
- status: [],
- warehouseNameList: [],
- warehouseNameList1: [],
- appendixIdsAdd: '',
- uploadSuccess: {},
- warehouseInOutDetail: {},
- onChange: {},
- deptBudgetList1: [],
- gradeList: [],
- deletetask: false,
- rules: {
- netWeight: [
- {
- required: true,
- type: 'number',
- message: '请输入活动名称',
- trigger: 'blur'
- }
- ]
- },
- size: 10,
- compId: sessionStorage.getItem('ws-pf_compId'),
- deptCircularPage: {},
- packtypeList: {},
- date: {
- year: dayjs().format('YYYY'),
- month: dayjs().format('MM')
- },
- contractList: [],
- inOutTaskNo: '',
- inOutTaskNo1: '',
- dataList: { taskTypeKey: '1' },
- dataList1: { taskTypeKey: '1' },
- historyList: [],
- pickerBeginDateBefore: {
- disabledDate: time => {
- return time.getTime() > Date.now()
- }
- },
- accessoryTFs: false,
- inOutFlag: 1
- }
- },
- activated() {
- this.getList()
- },
- methods: {
- //返回按钮
- revert() {
- this.$router.go(-1)
- },
- returnsales() {
- this.$router.go(-1)
- this.$router.push({ path: 'tranManagementWarehouseInOuttask' })
- },
- // 获取当前年月日
- getdate() {
- var date = new Date()
- var year = date.getFullYear() //获取完整的年份(4位)
- var mouth = date.getMonth() + 1 //获取当前月份(0-11,0代表1月)
- var datetime = date.getDate() //获取当前日(1-31)
- if (mouth < 10) {
- mouth = '0' + mouth
- }
- if (datetime < 10) {
- datetime = '0' + datetime
- }
- return year + '' + mouth + datetime
- },
- // 随机验证码
- verifyinit() {
- var arr = []
- for (var i = 48; i < 123; i++) {
- if (i > 57 && i < 65) continue
- if (i > 90) continue
- arr.push(String.fromCharCode(i))
- }
- arr.sort(function() {
- return Math.random() - 0.5
- })
- arr.length = 4
- return arr.join('')
- },
- selectTaskNo(e) {
- if (this.dataList.taskTypeKey == 3) {
- this.dataList1.moveTaskNo = e
- }
- },
- dataFilter(val) {
- // console.log(val,"名")
- this.deptBudgetList.staffList = val
- if (val) {
- //val存在
- this.options = this.staffList.filter(item => {
- if (
- !!~item.staffName.indexOf(val) ||
- !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
- ) {
- return true
- }
- })
- } else {
- //val为空时,还原数组
- this.options = this.staffList
- }
- },
- weightchange(e) {
- if (this.dataList.taskTypeKey == 4) {
- this.$set(this.dataList, 'weight', e)
- }
- },
- bulkDensitychange(e) {
- if (this.dataList.taskTypeKey == 4) {
- this.$set(this.dataList, 'bulkDensity', e)
- } else if (this.dataList1.taskTypeKey == 3) {
- this.$set(this.dataList1, 'bulkDensity', e)
- }
- },
- waterContentchange(e) {
- if (this.dataList.taskTypeKey == 4) {
- this.$set(this.dataList, 'waterContent', e)
- } else if (this.dataList1.taskTypeKey == 3) {
- this.$set(this.dataList1, 'waterContent', e)
- }
- },
- unitPricechange(e) {
- if (this.dataList.taskTypeKey == 4) {
- this.$set(this.dataList, 'unitPrice', e)
- } else if (this.dataList1.taskTypeKey == 3) {
- this.$set(this.dataList1, 'unitPrice', e)
- }
- },
- changecontract(e) {
- if (this.dataList.taskTypeKey != 3) {
- for (let i = 0; i < this.contractNoList.length; i++) {
- if (this.contractNoList[i].contractNo == e) {
- getGoodsName({
- contractId: this.contractNoList[i].id,
- contractNo: this.contractNoList[i].contractNo
- })
- .toPromise()
- .then(response => {
- this.$set(this.dataList, 'goodsName', response.goodsName)
- this.$set(this.dataList, 'goodsNameKey', response.goodsNameKey)
- this.$set(this.dataList, 'grade', response.grade)
- this.$set(this.dataList, 'gradeKey', response.gradeKey)
- this.$set(this.dataList, 'waterContent', response.waterContent)
- this.$set(this.dataList, 'bulkDensity', response.bulkDensity)
- // this.$set(this.dataList, 'weight', response.weight)
- this.$set(
- this.dataList,
- 'unitPrice',
- response.unitContractPrice
- )
- })
- }
- }
- }
- },
- changecontract1(e) {
- if (this.dataList1.taskTypeKey != 3) {
- for (let i = 0; i < this.contractNoList.length; i++) {
- if (this.contractNoList[i].contractNo == e) {
- getGoodsName({
- contractId: this.contractNoList[i].id,
- contractNo: this.contractNoList[i].contractNo
- })
- .toPromise()
- .then(response => {
- this.$set(this.dataList1, 'goodsName', response.goodsName)
- this.$set(this.dataList1, 'goodsNameKey', response.goodsNameKey)
- this.$set(this.dataList1, 'grade', response.grade)
- this.$set(this.dataList1, 'gradeKey', response.gradeKey)
- this.$set(this.dataList1, 'waterContent', response.waterContent)
- this.$set(this.dataList1, 'bulkDensity', response.bulkDensity)
- this.$set(this.dataList1, 'weight', response.weight)
- this.$set(
- this.dataList1,
- 'unitPrice',
- response.unitContractPrice
- )
- })
- }
- }
- }
- },
- selectstaff(e) {
- for (var i = 0; i < this.staffList.length; i++) {
- if (this.staffList[i].staffName == e) {
- this.dataList.agentKey = this.staffList[i].staffId
- }
- }
- },
- selectstaff1(e) {
- for (var i = 0; i < this.staffList.length; i++) {
- if (this.staffList[i].staffName == e) {
- this.dataList1.agentKey = this.staffList[i].staffId
- }
- }
- },
- requestadd(list, status) {
- list.compId = sessionStorage.getItem('ws-pf_compId')
- list.publisher =
- sessionStorage.getItem('ws-pf_roleName') +
- sessionStorage.getItem('ws-pf_staffName')
- addoreditoutput(list)
- .toPromise()
- .then(response => {
- this.$message.success('编辑成功')
- // this.$router.go(-1)
- this.$router.push({ path: 'tranManagementWarehouseInOuttask' })
- })
- },
- //提交按钮
- submit() {
- this.dataList.inOutFlag = 1
- this.dataList1.inOutFlag = 2
- if (this.dataList.taskTypeKey == 1) {
- if (!this.dataList.warehouseName) {
- this.$message({
- message: '仓库名不能为空!',
- type: 'warning'
- })
- return
- }
- if (!this.dataList.contractNo) {
- this.$message({
- message: '合同编号不能为空!',
- type: 'warning'
- })
- return
- }
- if (!this.dataList.weight) {
- this.$message({
- message: '重量(吨)不能为空!',
- type: 'warning'
- })
- return
- }
- if (
- isNaN(this.dataList.weight) ||
- (String(this.dataList.weight).indexOf('.') != -1 &&
- String(this.dataList.weight).length -
- (String(this.dataList.weight).indexOf('.') + 1) >
- 2) ||
- this.dataList.weight < 0 ||
- this.dataList.weight > 200000
- ) {
- this.$message({
- message: '重量(吨)输入有误!',
- type: 'warning'
- })
- return
- }
- if (!this.dataList.bulkDensity) {
- this.$message({
- message: '容重不能为空!',
- type: 'warning'
- })
- return
- }
- if (
- this.dataList.bulkDensity < 500 ||
- this.dataList.bulkDensity > 1000
- ) {
- this.$message({
- message: '容重输入错误',
- type: 'warning'
- })
- return
- }
- if (
- String(this.dataList.bulkDensity).indexOf('.') != -1 &&
- String(this.dataList.bulkDensity).length -
- (String(this.dataList.bulkDensity).indexOf('.') + 1) >
- 0
- ) {
- this.$message({
- message: '容重需输入整数',
- type: 'warning'
- })
- return
- }
- if (!this.dataList.waterContent) {
- this.$message({
- message: '水分不能为空!',
- type: 'warning'
- })
- return
- }
- if (this.dataList.waterContent < 0 || this.dataList.waterContent > 40) {
- this.$message({
- message: '水分输入错误',
- type: 'warning'
- })
- return
- }
- if (
- String(this.dataList.waterContent).indexOf('.') != -1 &&
- String(this.dataList.waterContent).length -
- (String(this.dataList.waterContent).indexOf('.') + 1) >
- 1
- ) {
- this.$message({
- message: '水分输入错误',
- type: 'warning'
- })
- return
- }
- if (!this.dataList.unitPrice) {
- this.$message({
- message: '单价不能为空!',
- type: 'warning'
- })
- return
- }
- if (
- (this.dataList.unitPrice &&
- String(this.dataList.unitPrice).indexOf('.') != -1 &&
- String(this.dataList.unitPrice).length -
- (String(this.dataList.unitPrice).indexOf('.') + 1) >
- 2) ||
- this.dataList.unitPrice > 100000 ||
- this.dataList.unitPrice < 1
- ) {
- this.$message({
- message: '单价输入错误',
- type: 'warning'
- })
- return
- }
- if (!this.dataList.predictDate) {
- this.$message({
- message: '预计出库日期不能为空!',
- type: 'warning'
- })
- return
- }
- // if (!this.dataList.agent) {
- // this.$message({
- // message: '出库经办人不能为空!',
- // type: 'warning'
- // })
- // return
- // }
- if (!this.dataList.businessDescribe) {
- this.$message({
- message: '业务描述不能为空!',
- type: 'warning'
- })
- return
- }
- this.requestadd(this.dataList)
- } else if (this.dataList1.taskTypeKey == 2) {
- if (!this.dataList1.warehouseName) {
- this.$message({
- message: '仓库名不能为空!',
- type: 'warning'
- })
- return
- }
- if (!this.dataList1.contractNo) {
- this.$message({
- message: '合同编号不能为空!',
- type: 'warning'
- })
- return
- }
- if (!this.dataList1.weight) {
- this.$message({
- message: '重量(吨)不能为空!',
- type: 'warning'
- })
- return
- }
- if (
- isNaN(this.dataList1.weight) ||
- (String(this.dataList1.weight).indexOf('.') != -1 &&
- String(this.dataList1.weight).length -
- (String(this.dataList1.weight).indexOf('.') + 1) >
- 2) ||
- this.dataList1.weight < 0 ||
- this.dataList1.weight > 200000
- ) {
- this.$message({
- message: '重量(吨)输入有误!',
- type: 'warning'
- })
- return
- }
- if (!this.dataList1.bulkDensity) {
- this.$message({
- message: '容重不能为空!',
- type: 'warning'
- })
- return
- }
- if (
- this.dataList1.bulkDensity < 500 ||
- this.dataList1.bulkDensity > 1000
- ) {
- this.$message({
- message: '容重输入错误',
- type: 'warning'
- })
- return
- }
- if (
- String(this.dataList1.bulkDensity).indexOf('.') != -1 &&
- String(this.dataList1.bulkDensity).length -
- (String(this.dataList1.bulkDensity).indexOf('.') + 1) >
- 0
- ) {
- this.$message({
- message: '容重需输入整数',
- type: 'warning'
- })
- return
- }
- if (!this.dataList1.waterContent) {
- this.$message({
- message: '水分不能为空!',
- type: 'warning'
- })
- return
- }
- if (
- this.dataList1.waterContent < 0 ||
- this.dataList1.waterContent > 40
- ) {
- this.$message({
- message: '水分输入错误',
- type: 'warning'
- })
- return
- }
- if (
- String(this.dataList1.waterContent).indexOf('.') != -1 &&
- String(this.dataList1.waterContent).length -
- (String(this.dataList1.waterContent).indexOf('.') + 1) >
- 1
- ) {
- this.$message({
- message: '水分输入错误',
- type: 'warning'
- })
- return
- }
- if (!this.dataList1.unitPrice) {
- this.$message({
- message: '单价不能为空!',
- type: 'warning'
- })
- return
- }
- if (
- (this.dataList1.unitPrice &&
- String(this.dataList1.unitPrice).indexOf('.') != -1 &&
- String(this.dataList1.unitPrice).length -
- (String(this.dataList1.unitPrice).indexOf('.') + 1) >
- 2) ||
- this.dataList1.unitPrice > 100000 ||
- this.dataList1.unitPrice < 1
- ) {
- this.$message({
- message: '单价输入错误',
- type: 'warning'
- })
- return
- }
- if (!this.dataList1.predictDate) {
- this.$message({
- message: '预计入库日期不能为空!',
- type: 'warning'
- })
- return
- }
- // if (!this.dataList1.agent) {
- // this.$message({
- // message: '入库经办人不能为空!',
- // type: 'warning'
- // })
- // return
- // }
- if (!this.dataList1.businessDescribe) {
- this.$message({
- message: '业务描述不能为空!',
- type: 'warning'
- })
- return
- }
- this.requestadd(this.dataList1)
- } else if (
- this.dataList.taskTypeKey == 3 ||
- this.dataList.taskTypeKey == 4
- ) {
- if (!this.dataList.warehouseName) {
- this.$message({
- message: '出库仓库名不能为空!',
- type: 'warning'
- })
- return
- }
- if (!this.dataList1.warehouseName) {
- this.$message({
- message: '入库仓库名不能为空!',
- type: 'warning'
- })
- return
- }
- if (!this.dataList1.moveTaskNo) {
- this.$message({
- message: '移库任务编号不能为空!',
- type: 'warning'
- })
- return
- }
- if (!this.dataList1.weight) {
- this.$message({
- message: '重量(吨)不能为空!',
- type: 'warning'
- })
- return
- }
- if (
- isNaN(this.dataList1.weight) ||
- (String(this.dataList1.weight).indexOf('.') != -1 &&
- String(this.dataList1.weight).length -
- (String(this.dataList1.weight).indexOf('.') + 1) >
- 2) ||
- this.dataList1.weight < 0 ||
- this.dataList1.weight > 200000
- ) {
- this.$message({
- message: '重量(吨)输入有误!',
- type: 'warning'
- })
- return
- }
- if( this.dataList.taskTypeKey != 3||this.dataList1.taskTypeKey != 3){
- if (!this.dataList1.bulkDensity) {
- this.$message({
- message: '容重不能为空!',
- type: 'warning'
- })
- return
- }
- if (
- this.dataList1.bulkDensity < 500 ||
- this.dataList1.bulkDensity > 1000
- ) {
- this.$message({
- message: '容重输入错误',
- type: 'warning'
- })
- return
- }
- if (
- String(this.dataList1.bulkDensity).indexOf('.') != -1 &&
- String(this.dataList1.bulkDensity).length -
- (String(this.dataList1.bulkDensity).indexOf('.') + 1) >
- 0
- ) {
- this.$message({
- message: '容重需输入整数',
- type: 'warning'
- })
- return
- }
- if (!this.dataList1.waterContent) {
- this.$message({
- message: '水分不能为空!',
- type: 'warning'
- })
- return
- }
- if (
- this.dataList1.waterContent < 0 ||
- this.dataList1.waterContent > 40
- ) {
- this.$message({
- message: '水分输入错误',
- type: 'warning'
- })
- return
- }
- if (
- String(this.dataList1.waterContent).indexOf('.') != -1 &&
- String(this.dataList1.waterContent).length -
- (String(this.dataList1.waterContent).indexOf('.') + 1) >
- 1
- ) {
- this.$message({
- message: '水分输入错误',
- type: 'warning'
- })
- return
- }
- if (!this.dataList1.unitPrice) {
- this.$message({
- message: '单价不能为空!',
- type: 'warning'
- })
- return
- }
- if (
- (this.dataList1.unitPrice &&
- String(this.dataList1.unitPrice).indexOf('.') != -1 &&
- String(this.dataList1.unitPrice).length -
- (String(this.dataList1.unitPrice).indexOf('.') + 1) >
- 2) ||
- this.dataList1.unitPrice > 100000 ||
- this.dataList1.unitPrice < 1
- ) {
- this.$message({
- message: '单价输入错误',
- type: 'warning'
- })
- return
- }
- }
-
- if (!this.dataList.predictDate) {
- this.$message({
- message: '预计出库日期不能为空!',
- type: 'warning'
- })
- return
- }
- if (!this.dataList1.predictDate) {
- this.$message({
- message: '预计入库日期不能为空!',
- type: 'warning'
- })
- return
- }
- // if (!this.dataList.agent) {
- // this.$message({
- // message: '出库经办人不能为空!',
- // type: 'warning'
- // })
- // return
- // }
- // if (!this.dataList1.agent) {
- // this.$message({
- // message: '入库经办人不能为空!',
- // type: 'warning'
- // })
- // return
- // }
- if (!this.dataList1.businessDescribe) {
- this.$message({
- message: '业务描述不能为空!',
- type: 'warning'
- })
- return
- }
- this.dataList.relevanceId = this.GetRandomNum(100000, 999999)
- if (this.dataList.taskTypeKey == 3) {
- this.dataList.businessDescribe = this.dataList1.businessDescribe
- } else {
- this.dataList1.businessDescribe = this.dataList.businessDescribe
- }
- this.requestadd(this.dataList, 'repetition')
- this.dataList1.relevanceId = this.dataList.relevanceId
- if (!this.deletetask) {
- this.requestadd(this.dataList1, 'repetition')
- }
- }
- },
- selectwarehouseName(e) {
- //经办人
- getstaff({
- compId: sessionStorage.getItem('ws-pf_compId'),
- warehouseId: e
- })
- .toPromise()
- .then(response => {
- this.options = response
- this.staffList = response
- // this.agent = response
- })
- },
- tarechange(e) {
- if (this.dataList.grossWeight && this.dataList.tare) {
- this.dataList.netWeight = Number(
- this.dataList.grossWeight - this.dataList.tare
- )
- }
- },
- grossWeightchange(e) {
- if (this.dataList.grossWeight && this.dataList.tare) {
- this.dataList.netWeight = Number(
- this.dataList.grossWeight - this.dataList.tare
- )
- }
- },
- selectgoodsName(e) {
- for (var i = 0; i < this.goodnameList.length; i++) {
- if (this.goodnameList[i].constValue == e) {
- this.dataList.goodsNameKey = this.goodnameList[i].constKey
- }
- }
- },
- selectgoodsName1(e) {
- for (var i = 0; i < this.goodnameList.length; i++) {
- if (this.goodnameList[i].constValue == e) {
- this.dataList1.goodsNameKey = this.goodnameList[i].constKey
- }
- }
- },
- selectpackingMethod(e) {
- for (var i = 0; i < this.gradeList.length; i++) {
- if (this.gradeList[i].constValue == e) {
- this.dataList.gradeKey = this.gradeList[i].constKey
- if (this.dataList.taskTypeKey == 3) {
- this.$set(this.dataList1, 'grade', e)
- this.$set(this.dataList1, 'gradeKey', this.gradeList[i].constKey)
- }
- }
- }
- },
- selectpackingMethod1(e) {
- for (var i = 0; i < this.gradeList.length; i++) {
- if (this.gradeList[i].constValue == e) {
- this.dataList1.packingMethodKey = this.gradeList[i].constKey
- if (this.dataList1.taskTypeKey == 4) {
- this.$set(this.dataList, 'grade', e)
- this.$set(this.dataList, 'gradeKey', this.gradeList[i].constKey)
- }
- }
- }
- },
- selectstorageType(e) {
- for (var i = 0; i < this.storageType.length; i++) {
- if (this.storageType[i].constValue == e) {
- this.dataList.inOutTypeKey = this.storageType[i].constKey
- }
- }
- },
- selectstorageType1(e) {
- for (var i = 0; i < this.storageType1.length; i++) {
- if (this.storageType1[i].constValue == e) {
- this.dataList1.inOutTypeKey = this.storageType1[i].constKey
- }
- }
- },
- handleClose() {
- this.accessoryTFs = false
- },
- handleSizeChange(val) {
- console.log(`每页 ${val} 条`)
- this.pageSize = val
- this.getList()
- },
- businessDescriptionchange(e) {
- console.log(e)
- },
- handleCurrentChange(val) {
- this.currentPage = val
- console.log(`当前页: ${val}`)
- this.getList()
- },
- tasknumber() {
- if (this.dataList.taskTypeKey == 1) {
- this.inOutTaskNo = 'CK' + this.getdate() + this.verifyinit()
- } else if (this.dataList.taskTypeKey == 2) {
- this.inOutTaskNo1 = 'RK' + this.getdate() + this.verifyinit()
- } else if (this.dataList.taskTypeKey == 3) {
- var random = this.getdate() + this.verifyinit()
- this.inOutTaskNo = 'YKC' + random
- this.inOutTaskNo1 = 'YKR' + random
- } else if (this.dataList.taskTypeKey == 4) {
- var random = this.getdate() + this.verifyinit()
- this.inOutTaskNo = 'TCC' + random
- this.inOutTaskNo1 = 'TCR' + random
- }
- },
- tasktypechange(e) {
- if (!this.$route.query.relevanceId) {
- this.tasknumber()
- }
- this.dataList1.taskTypeKey = e
- if (this.dataList.taskTypeKey == 1) {
- this.dataList.inOutType = '销售出库'
- this.dataList.inOutTypeKey = '1'
- }
- if (this.dataList1.taskTypeKey == 2) {
- this.dataList1.inOutType = '采购入库'
- this.dataList1.inOutTypeKey = '1'
- } else if (this.dataList1.taskTypeKey == 3) {
- this.disabled = true
- this.dataList1.inOutType = '移库入库'
- this.dataList1.inOutTypeKey = '3'
- this.dataList.inOutType = '移库出库'
- this.dataList.inOutTypeKey = '3'
- } else if (this.dataList1.taskTypeKey == 4) {
- this.disabled = true
- this.dataList1.inOutType = '退库'
- this.dataList1.inOutTypeKey = '6'
- this.dataList.inOutType = '销售出库'
- this.dataList.inOutTypeKey = '1'
- }
- },
- GetRandomNum(Min, Max) {
- var Range = Max - Min
- var Rand = Math.random()
- return Min + Math.round(Rand * Range)
- },
- getList() {
- this.inOutFlag = this.$route.query.inOutFlag
- if (this.$route.query.relevanceId) {
- outexamine({ relevanceId: this.$route.query.relevanceId })
- .toPromise()
- .then(response => {
- if (response.length > 1) {
- this.dataList = response[0]
- this.dataList1 = response[1]
- console.log(this.dataList1.inOutTaskNo, '入库任务')
- } else {
- if (response[0].taskTypeKey == 3) {
- this.deletetask = true
- this.dataList1.inOutTaskNo =
- 'YKR' +
- response[0].inOutTaskNo.substr(
- response[0].inOutTaskNo.indexOf('C') + 1,
- response[0].inOutTaskNo.length
- )
- }
- this.dataList = response[0]
- if (response[0].taskTypeKey == 2) {
- this.dataList1 = response[0]
- } else {
- // this.dataList = response[0]
- }
- }
- })
- } else {
- this.tasknumber()
- this.$set(this.dataList, 'inOutType', '销售出库')
- this.$set(this.dataList, 'inOutTypeKey', '1')
- this.$set(this.dataList, 'goodsName', '玉米')
- this.$set(this.dataList, 'goodsNameKey', '1')
- this.$set(this.dataList, 'grade', '一等品')
- this.$set(this.dataList, 'gradeKey', '1')
- this.$set(this.dataList1, 'goodsName', '玉米')
- this.$set(this.dataList1, 'goodsNameKey', '1')
- this.$set(this.dataList1, 'grade', '一等品')
- this.$set(this.dataList1, 'gradeKey', '1')
- }
- // 货名
- pullDown({ constId: 'CON2' })
- .toPromise()
- .then(response => {
- this.goodnameList = response
- })
- // 品级
- pullDown({ constId: 'CON3' })
- .toPromise()
- .then(response => {
- this.gradeList = response
- })
- pullDown({ constId: 'CON6' })
- .toPromise()
- .then(response => {
- this.storageType = response
- })
- pullDown({ constId: 'CON5' })
- .toPromise()
- .then(response => {
- this.storageType1 = response
- })
- xialaNo({
- compId: this.compId
- })
- .toPromise()
- .then(response => {
- this.contractNoList = response
- })
- // //临时仓库入库类型
- // pullDown({ constId: 'WARE1' })
- // .toPromise()
- // .then((response) => {
- // this.storageType = respons
- // })
- // //临时仓库出库类型
- // pullDown({ constId: 'WARE2' })
- // .toPromise()
- // .then((response) => {
- // this.deliveryType = response
- // })
- //仓库名
- getwarehousename({
- compId: this.compId,
- warehouseType: 1
- })
- .toPromise()
- .then(response => {
- this.warehouseNameList = response
- })
- getwarehousename({
- compId: this.compId,
- warehouseType: 2
- })
- .toPromise()
- .then(response => {
- this.warehouseNameList1 = response
- })
- },
- selecttaskType(e) {
- for (var i = 0; i < this.taskTypeList.length; i++) {
- if (this.taskTypeList[i].value == e) {
- this.searchType = this.taskTypeList[i].type
- }
- }
- },
- fujian(row) {
- if (
- row.receiveAttachmentPath === null ||
- row.receiveAttachmentPath === ''
- ) {
- EventBus.$emit(
- 'warning',
- this.$t('system.noticeCircular.NoInformation')
- )
- } else {
- this.accessoryTFs = true
- }
- this.appendixIdss = row.receiveAttachmentPath
- },
- handleExamine(row) {
- this.$router.push({
- name: 'salesContractExamine',
- query: { id: row.id }
- })
- },
- // 关闭 dialog时 处理文件url 初始化upload组件
- handleCloe() {
- this.dialogViewSpareMoney = false
- },
- history(row) {
- billoperatehis({ id: row.id })
- .toPromise()
- .then(response => {
- this.historyList = response
- })
- },
- async exportlist() {
- const { data } = await export1(
- {
- compId: sessionStorage.getItem('ws-pf_compId'),
- contractType: this.contractType,
- currentPage: this.currentPage,
- pageSize: this.pageSize,
- searchType: this.searchType,
- searchKeyWord: this.searchKeyWord,
- startDate: this.startDate,
- endDate: this.endDate
- },
- {},
- { responseType: 'blob' }
- ).toPromise()
- downloadFile({
- res: data,
- fileName: `${this.date.year +
- (this.date.month ? `-${this.date.month}` : '')}_采购合同`,
- type: 'xls'
- })
- },
- // deletecontract(){},
- //删除
- approve() {},
- listQuery() {},
- total() {},
- clearfiltQuery() {},
- selectCrtDuty() {}
- }
- }
- </script>
- <style lang="scss" scoped>
- /deep/.basicInformation {
- .el-info-table {
- border: none;
- position: relative;
- }
- .el-form-item {
- width: 33.3333%;
- border: none;
- margin: 0;
- .el-form-item__label {
- text-align: left;
- font-size: 14px;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #8890b1;
- }
- .el-form-item__content {
- padding-left: 0px;
- padding-right: 10px;
- // background: #fff;
- white-space: nowrap;
- height: 40px;
- display: flex;
- -webkit-box-align: center;
- align-items: center;
- text-align: left;
- overflow: hidden;
- }
- }
- }
- /deep/.el-radio {
- color: #606266;
- font-weight: 500;
- line-height: 1;
- cursor: pointer;
- white-space: nowrap;
- outline: 0;
- margin-right: 30px;
- margin-top: 15px;
- }
- /deep/.el-radio__inner {
- border: 1px solid #dcdfe6;
- border-radius: 100%;
- width: 14px;
- height: 14px;
- background-color: #fff;
- cursor: pointer;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- margin-left: 100px;
- }
- /deep/.el-radio__input {
- white-space: nowrap;
- cursor: pointer;
- outline: 0;
- line-height: 1;
- vertical-align: middle;
- margin-top: -1px;
- }
- .title {
- position: relative;
- padding-left: 10px;
- }
- .title::before {
- content: '';
- display: inline-block;
- width: 5px;
- height: 30px;
- background: #5473e8;
- position: absolute;
- left: 0;
- }
- .el-form {
- padding: 0 15%;
- display: flex;
- flex-wrap: wrap;
- margin-left: -50px;
- margin-top: 15px;
- width: 110%;
- }
- .el-button--primary {
- background-color: #5878e8;
- border-color: #5878e8;
- }
- .el-col {
- background: #f6f7fc;
- }
- .bg-right {
- text-align: right;
- padding: 16px 20px;
- }
- .center {
- position: relative;
- top: 50px;
- width: 40%;
- height: 2000px;
- margin: 0 auto;
- margin-right: 180px;
- }
- /deep/.el-form-item__label {
- width: 160px;
- }
- .inspector {
- width: 50%;
- }
- /deep/.el-form-item--small .el-form-item__label,
- .el-form-item--small .el-form-item__content {
- text-align: left;
- }
- /deep/.el-input--small {
- font-size: 13px;
- position: relative;
- display: inline-block;
- }
- .center1 .small-title {
- margin-left: 323px;
- }
- .center1 {
- width: 90%;
- margin: 0 auto;
- margin-left: 10px;
- margin-top: 25px;
- }
- /deep/.el-input--small .el-input__inner {
- height: 32px;
- line-height: 32px;
- }
- /deep/.el-select {
- display: inline-block;
- position: relative;
- width: 100%;
- }
- .annu {
- height: 81px;
- background: #ffffff;
- border-radius: 4px;
- }
- .basicInformation .el-form-item {
- width: 50.3333%;
- border: none;
- margin: 0;
- }
- .huom {
- width: 100px;
- }
- .el-form {
- font-size: 14px;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #8890b1;
- line-height: 16px;
- margin-left: 130px;
- }
- .a {
- margin-left: -32px;
- }
- .el-radio-group {
- margin-left: 80px;
- }
- .ding {
- height: 23px;
- background: #e8ecf6;
- box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
- }
- .ziti {
- width: 72px;
- height: 20px;
- font-size: 14px;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #8890b1;
- line-height: 20px;
- margin-left: 310px;
- /* margin-top: 112px; */
- }
- .ziti1 {
- width: 100px;
- font-size: 16px;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 500;
- color: #262626;
- line-height: 22px;
- margin-left: 381px;
- margin-top: -21px;
- }
- .winseaview-view {
- padding: 0 0 20px;
- }
- .container {
- overflow: scroll;
- height: 93vh;
- }
- .nav {
- width: 380px;
- height: 20px;
- }
- </style>
|