1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116 |
- // 入库登记
- <template>
- <div class="container">
- <el-row>
- <el-col :span="20">
- <h2 class="bg-left title">{{information}}</h2>
- </el-col>
- <el-col :span="4" class="bg-right">
- <el-button class="bg-bottom" type="primary" size="small" @click="revert()">
- <img width="6" height="10" style="vertical-align: bottom; margin-right: 3px"
- src="../../../public/img/lujing.png" alt />返回
- </el-button>
- </el-col>
- </el-row>
- <ws-form ref="deptBudgetList" :model="deptBudgetList" :rules="rules">
- <div class="basicInformation">
- <h2>
- <img style="position: relative; top: 2px" width="19" height="19" src="../../../public/img/cangku.png" alt />
- {{ deptBudgetList.warehouseName }}
- <span class="position" v-show="this.$route.query.warehouseType == 1">{{ deptBudgetList.binNumber }}仓位</span>
- <span v-show="this.$route.query.warehouseType == 2">(临)</span>
- </h2>
- <ws-info-table>
- <!--任务编号-->
- <ws-form-item label="任务编号" span="1" prop="inOutTaskNo">
- <el-select filterable clearable v-model="deptBudgetList.inOutTaskNo" placeholder="请选择任务编号"
- class="typeselect" @change="contractNoChange">
- <el-option v-for="item in deptBudgetList1" :key="item.inOutTaskNo" :label="item.inOutTaskNo"
- :value="item.inOutTaskNo" />
- </el-select>
- </ws-form-item>
- <!--合同编号-->
- <ws-form-item label="合同编号" span="1" prop="contractNo">
- <el-select filterable clearable v-model="deptBudgetList.contractNo" placeholder="请选择合同编号或移库任务编号"
- class="typeselect" @change="contractNoChange1">
- <el-option v-for="item in options1" :key="item.constKey" :label="item.contractNo"
- :value="item.contractNo" />
- </el-select>
- </ws-form-item>
- <!-- 货名 -->
- <ws-form-item label="货名" span="1">
- <ws-select disabled v-model="deptBudgetList.goodsName" placeholder class="typeselect"
- @change="selectgoodsName">
- <ws-option v-for="item in goodnameList" :key="item.constKey" :label="item.constValue"
- :value="item.constValue" />
- </ws-select>
- </ws-form-item>
- <ws-form-item label="类型" span="1" prop="type">
- <ws-select v-model="deptBudgetList.type" @change="typeChange">
- <ws-option v-for="item in typeList" :key="item" :label="item" :value="item" />
- </ws-select>
- </ws-form-item>
- <!--毛重(公斤)-->
- <ws-form-item label="毛重(公斤)" span="1" prop="grossWeight">
- <ws-input :disabled="allowEdit" @input="grossWeightchange" v-model="deptBudgetList.grossWeight"
- placeholder="请输入毛重" maxlength="20" type="number" @mousewheel.native.prevent size="small" />
- <el-button type="primary" v-if="information == '毛重检斤'" @click="openPort">重新获取</el-button>
- </ws-form-item>
- <!--皮重(公斤)-->
- <ws-form-item label="皮重(公斤)" span="1" prop="tare" class="readonly">
- <ws-input :disabled="allowEdit" @input="tarechange" v-model="deptBudgetList.tare" placeholder="请输入皮重"
- type="number" @mousewheel.native.prevent maxlength="100" size="small" />
- <el-button type="primary" v-if="information == '皮重检斤'" @click="openPort">重新获取</el-button>
- </ws-form-item>
- <ws-form-item label="扣重(公斤)" span="1" prop="deductionWeight" class="readonly">
- <ws-input @input="tarechange" v-model="deptBudgetList.deductionWeight" placeholder="请输入扣重" type="number"
- @mousewheel.native.prevent maxlength="100" size="small" />
- </ws-form-item>
- <!--净重(公斤)-->
- <ws-form-item label="净重(公斤)" span="1" prop="netWeight">
- <ws-input disabled v-model="deptBudgetList.netWeight" placeholder="不可编辑,自动计算" maxlength="120"
- size="small" />
- </ws-form-item>
- <ws-form-item v-if="deptBudgetList.type == '潮粮'" label="扣重比" span="1" prop="buckleWeightRatio"
- class="readonly">
- <ws-input @input="pureweight" v-model="deptBudgetList.buckleWeightRatio" placeholder="请输入扣重比" type="number"
- @mousewheel.native.prevent maxlength="100" size="small" />
- </ws-form-item>
- <ws-form-item v-if="deptBudgetList.type == '潮粮'" label="干粮水分占比" span="1" prop="solidGrainWater"
- class="readonly">
- <ws-input @input="pureweight" v-model="deptBudgetList.solidGrainWater" placeholder="请输入干粮水分占比"
- maxlength="100" type="number" @mousewheel.native.prevent size="small" />
- </ws-form-item>
- <ws-form-item v-if="deptBudgetList.type == '潮粮'" label="潮粮水分占比" span="1" prop="tidalGrainWater"
- class="readonly">
- <ws-input @input="pureweight(1)" v-model="deptBudgetList.tidalGrainWater" placeholder="请输入潮粮水分占比"
- maxlength="100" type="number" @mousewheel.native.prevent size="small" />
- </ws-form-item>
- <ws-form-item v-if="deptBudgetList.type == '潮粮'" label="纯重" span="1" prop="pureWeight" class="readonly">
- <ws-input disabled v-model="deptBudgetList.pureWeight" placeholder="不可编辑,自动计算" maxlength="100"
- size="small" />
- </ws-form-item>
- <!--净重(公斤)-->
- <ws-form-item label="扣款(元/公斤)" span="1" prop="deductionAmount">
- <ws-input @input="kkInput(deptBudgetList.deductionAmount)" v-model="deptBudgetList.deductionAmount"
- placeholder="请输入扣款金额" maxlength="120" size="small" />
- </ws-form-item>
- <!-- 品级 -->
- <ws-form-item label="品级" span="1" class="readonly">
- <ws-select v-model="deptBudgetList.grade" placeholder class="typeselect" @change="selectpackingMethod">
- <ws-option v-for="item in gradeList" :key="item.constKey" :label="item.constValue"
- :value="item.constValue" />
- </ws-select>
- </ws-form-item>
- <!--经办人-->
- <ws-form-item label="经办人" span="1" prop="agent">
- <el-select v-model="deptBudgetList.agent" placeholder="请选择经办人" filterable clearable @change="selectstaff">
- <el-option v-for="item in options" :key="item.value" :label="item.staffName" :value="item.staffName" />
- </el-select>
- </ws-form-item>
- <!--出库日期-->
- <ws-form-item label="入库日期" span="1" prop="inOutDate" class="deliverydate">
- <el-date-picker v-model="deptBudgetList.inOutDate" placeholder="请选择入库日期" type="date"
- value-format="yyyy-MM-dd"></el-date-picker>
- </ws-form-item>
- <!-- 入库类型 -->
- <ws-form-item label="入库类型" span="1">
- <ws-select v-model="deptBudgetList.inOutType" placeholder class="typeselect" @change="selectstorageType"
- :disabled="isSelectType">
- <ws-option v-for="item in storageType" :key="item.constKey" :label="item.constValue"
- :value="item.constValue" />
- </ws-select>
- </ws-form-item>
- <!--车牌号 -->
- <ws-form-item label="车牌号" span="1" prop="carNo">
- <ws-input v-if="!carstatus" v-model="deptBudgetList.carNo" placeholder="请输入车牌号" maxlength="7"
- size="small" />
- <el-select v-if="carstatus" filterable :filter-method="dataFilter2" v-model="deptBudgetList.carNo"
- placeholder="请选择车牌号" class="typeselect" @change="carChange">
- <el-option v-for="item in options2" :key="item.constKey" :label="item.carNo + '(' + item.tranCarNo + ')'"
- :value="item.carNo" />
- </el-select>
- </ws-form-item>
- <ws-form-item label="成本" span="1" prop="cost">
- <ws-input :disabled="disabled1" v-model="deptBudgetList.cost" placeholder="请输入成本" size="small" type="number"
- @mousewheel.native.prevent />
- <img width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
- src="../../../public/img/edit.png" @click="editClick(1)" alt="" />
- </ws-form-item>
- <ws-form-item label="运费" span="1" prop="freight">
- <ws-input :disabled="disabled2" v-model="deptBudgetList.freight" placeholder="请输入运费" size="small"
- type="number" @mousewheel.native.prevent />
- <img width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
- src="../../../public/img/edit.png" @click="editClick(2)" alt="" />
- </ws-form-item>
- <!-- onkeyup="value=value.replace(/[^\A-\Z0-9\u4E00-\u9FA5\.]/g,'')" -->
- </ws-info-table>
- <div v-show="
- this.$route.query.warehouseType == 2 &&
- this.deptBudgetList.createType == 2
- ">
- <el-checkbox v-model="checked" checked>退库并出库</el-checkbox>
- <ws-info-table v-show="checked == true && this.deptBudgetList.createType == 2">
- <!-- 出库类型 -->
- <ws-form-item label="出库类型" span="1" prop="temporaryOutType">
- <!-- v-model="deptBudgetList.deliveryType" -->
- <ws-select v-model="deptBudgetList.temporaryOutType" placeholder class="typeselect">
- <ws-option v-for="item in deliveryType" :key="item.constKey" :label="item.constValue"
- :value="item.constValue" />
- </ws-select>
- </ws-form-item>
- <!-- 出库合同编号 -->
- <ws-form-item label="出库合同编号" span="1">
- <ws-select v-model="deptBudgetList.outContractNo" placeholder="请选择合同编号或移库任务编号" class="typeselect">
- <ws-option v-for="item in outContractNo" :key="item.constKey" :label="item.contractNo"
- :value="item.contractNo" />
- </ws-select>
- </ws-form-item>
- </ws-info-table>
- </div>
- </div>
- <!-- <div class="small-title">上传磅单照片</div>
- <el-upload
- action="https://www.zthymaoyi.com/upload/admin"
- :show-file-list="false"
- :on-success="
- (res) => {
- uploadSuccessHandle1(res)
- }
- "
- class="avatar-uploader"
- accept=".jpg, .jpeg, .png, .gif"
- >
- <el-button size="small" type="primary">点击上传</el-button>
- </el-upload> -->
- <div v-if='deptBudgetList.addressUrl!=""'>
- <img style="width: 100px; height: 100px" :src="deptBudgetList.addressUrl" alt="" />
- </div>
- <div class="small-title">化验数据(选填)</div>
- <div class="inspector">
- <!--自检员-->
- <!-- <ws-form-item label="质检员" span="1" prop="qualityInspector">
- <ws-input
- v-model="deptBudgetList.warehouseInOutDetail.qualityInspector"
- placeholder="请输入质检员姓名"
- maxlength="10"
- size="small"
- />
- </ws-form-item> -->
- <ws-form-item label="质检员" span="1" prop="qualityInspector">
- <el-select v-model="deptBudgetList.warehouseInOutDetail.qualityInspector" placeholder="请选择质检员" filterable
- clearable @change="qualityInspectorChange">
- <el-option v-for="item in qualityInspectorList" :key="item.value" :label="item.staffName"
- :value="item.staffName" />
- </el-select>
- </ws-form-item>
- </div>
- <div class="neifor">
- <ws-info-table>
- <!--水分(%)<=-->
- <ws-form-item label="水分(%)" span="1" prop="waterContent">
- <ws-input v-model="deptBudgetList.warehouseInOutDetail.waterContent" type="number"
- @mousewheel.native.prevent placeholder="请输入水分占比" maxlength="40" size="small" />
- </ws-form-item>
- <!--杂质(%)<=-->
- <ws-form-item label="杂质(%)" span="1" prop="impurity">
- <ws-input v-model="deptBudgetList.warehouseInOutDetail.impurity" type="number" @mousewheel.native.prevent
- placeholder="请输入杂质占比" maxlength="40" size="small" />
- </ws-form-item>
- <!--容重(克/升)-->
- <ws-form-item label="容重(克/升)" span="1" prop="bulkDensity">
- <ws-input v-model="deptBudgetList.warehouseInOutDetail.bulkDensity" type="number" @mousewheel.native.prevent
- placeholder="请输入容重" maxlength="40" size="small" />
- </ws-form-item>
- <!--霉变粒(%)<=-->
- <ws-form-item label="霉变粒(%)" span="1" prop="mildewGrain">
- <ws-input v-model="deptBudgetList.warehouseInOutDetail.mildewGrain" type="number" @mousewheel.native.prevent
- placeholder="请输入霉变粒占比" maxlength="40" size="small" />
- </ws-form-item>
- <!--热损伤(%)<=-->
- <ws-form-item label="热损伤(%)" span="1" prop="jiaorenli">
- <ws-input v-model="deptBudgetList.warehouseInOutDetail.jiaorenli" type="number" @mousewheel.native.prevent
- placeholder="请输入热损伤占比" maxlength="40" size="small" />
- </ws-form-item>
- <!--不完善粒(%)<=-->
- <ws-form-item label="不完善粒(%)" span="1" prop="imperfectGrain">
- <ws-input v-model="deptBudgetList.warehouseInOutDetail.imperfectGrain" type="number"
- @mousewheel.native.prevent placeholder="请输入不完善粒占比" maxlength="40" size="small" />
- </ws-form-item>
- </ws-info-table>
- </div>
- <div style="text-align: right; padding: 10px">
- <el-button v-if="information == '毛重检斤'" class="bg-bottom-up" type="primary" size="small"
- @click="temporaryStorage()">保存</el-button>
- <el-button v-if="!allowEdit" class="bg-bottom-up" type="primary" size="small" @click="submit()">提交</el-button>
- </div>
- </ws-form>
- </div>
- </template>
- <script>
- import {
- pullDown,
- addstorageputList,
- xialaNo,
- getstaff,
- getReceiptTaskNo
- } from '@/model/warehouse/index'
- import Pagination from '@/components/Pagination'
- 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
- },
- },
- data() {
- return {
- deptBudgetList1: [],
- qualityInspectorList: [],
- isGetCost: false,
- isSelectType: true,
- //弹出框
- dialogViewSpareMoney: false,
- dialogApproveFormVisible: false,
- // 船舶类型
- monetaryKey: null,
- // 表格显示数据
- tableDate: [],
- // 是否显示
- showType: true,
- typeList: ['干粮', '潮粮'],
- // 年
- year: '',
- carstatus: false,
- deptBudgetTotal: 0,
- currentPage: 1,
- pageSize: 10,
- searchType: 1,
- searchKeyWord: '',
- contractType: 2,
- startDate: null,
- endDate: null,
- goodnameList: {},
- checked: true,
- agent: [],
- staffList: [],
- options: [],
- options1: [],
- options2: [],
- outContractNo1: [],
- outContractNo: [],
- // 提交类型
- submitType: true,
- storageType: [],
- deliveryType: [],
- readonly: true,
- appendixIdsAdd: '',
- uploadSuccess: {},
- onChange: {},
- gradeList: [],
- rules: {
- },
- size: 10,
- disabled1: true,
- disabled2: true,
- tranCarInfoList: [],
- compId: sessionStorage.getItem('ws-pf_compId'),
- secretaryWeigher: sessionStorage.getItem('ws-pf_staffName'),
- deptCircularPage: {},
- packtypeList: {},
- date: {
- year: dayjs().format('YYYY'),
- month: dayjs().format('MM'),
- },
- contractList: [],
- deptBudgetList: {
- type: '干粮',
- freight: 0,
- cost: '',
- addressUrl: '',
- warehouseInOutDetail: {},
- deductionAmount: 0,
- deductionWeight: 0,
- grossWeight: "",
- tare: "",
- },
- historyList: [],
- cost: '',
- pickerBeginDateBefore: {
- disabledDate: (time) => {
- return time.getTime() > Date.now()
- },
- },
- accessoryTFs: false,
- allowEdit: true,
- param: 9600,
- information: '',
- result1: '00'
- }
- },
- mounted() {
- this.information = this.$route.query.information
- if (this.$route.query.allowEdit == 1) {
- this.allowEdit = false
- } else {
- this.allowEdit = true
- }
- this.deptBudgetList.baseId = this.$route.query.baseId
- this.deptBudgetList.positionId = this.$route.query.positionId
- this.deptBudgetList.warehouseName = this.$route.query.warehouseName
- this.deptBudgetList.binNumber = this.$route.query.binNumber
- this.deptBudgetList.warehouseType = this.$route.query.warehouseType
- this.deptBudgetList.createType = this.$route.query.createType
- this.getList()
- this.deptBudgetList.grade = '一等品'
- this.deptBudgetList.gradeKey = '1'
- this.deptBudgetList.inOutTypeFlag = 1
- if (this.deptBudgetList.cost) {
- if (this.deptBudgetList.cost > this.deptBudgetList.deductionAmount) {
- this.deptBudgetList.cost = this.cost - this.deptBudgetList.deductionAmount
- } else {
- }
- }
- getReceiptTaskNo().toPromise()
- .then((response) => {
- console.log(response)
- this.deptBudgetList1 = response
- })
- // if (this.deptBudgetList.warehouseType == 1) {
- // // this.deptBudgetList.inOutType = '采购入库'
- // this.deptBudgetList.inOutTypeKey = '1'
- // } else {
- // // this.deptBudgetList.inOutType = '退库'
- // this.deptBudgetList.inOutTypeKey = '1'
- // }
- },
- methods: {
- async closePort() {
- console.log('closePort');
- this.reader.cancel()
- },
- async openPort() {
- console.log('openPort', navigator);
- if ('serial' in navigator) {
- // The Web Serial API is supported.
- console.log('the Web Serial API is supported.');
- console.log(this.param);
- const port = await navigator.serial.requestPort();
- await port.open({
- baudRate: this.param
- }); // set baud rate
- this.reader = port.readable.getReader();
- // 监听来自串行设备的数据
- while (true) {
- const {
- value,
- done
- } = await this.reader.read();
- // console.log("value",value);
- if (done) {
- // 允许稍后关闭串口。
- this.reader.releaseLock();
- break;
- }
- var result = '';
- //2。获取16进制字符串
- // var receData = HexConvert.ByteToString(value);
- // console.log("receData",receData);
- var flag = false;
- var flag1 = false;
- // for (var i = 0; i < value.length; i++) {
- // var tmp = String.fromCharCode(value[i])
- // if (tmp == '+') {
- // flag = true
- // }
- // if (flag && result.length < 6 && tmp != '+') {
- // result += tmp
- // }
- // }
- // if (this.information != '毛重检斤') {
- // if(parseInt(result)){
- // this.deptBudgetList.grossWeight = parseInt(result)
- // }
- // } else {
- // if(parseInt(result)){
- // this.deptBudgetList.tare = parseInt(result)
- // }
- // }
- console.log('value:', value);
- if (this.deptBudgetList.warehouseName && (this.deptBudgetList.warehouseName == '山东诸城迈饶库' || this
- .deptBudgetList.warehouseName == '克东千红库' || this.warehouseName == '鲅鱼圈祥腾库')) {
- for (var i = 0; i < value.length; i++) {
- var tmp = String.fromCharCode(value[i])
- if (tmp == '+') {
- flag = true
- }
- if (flag && result.length < 6 && tmp != '+') {
- result += tmp
- }
- }
- if (this.information == '毛重检斤') {
- if (parseInt(result) || parseInt(result) == 0) {
- this.deptBudgetList.grossWeight = parseInt(result)
- }
- } else {
- if (parseInt(result) || parseInt(result) == 0) {
- this.deptBudgetList.tare = parseInt(result)
- }
- }
- } else {
- for (var i = 0; i < value.length; i++) {
- var tmp = String.fromCharCode(value[i])
- if ((value[0] != 49 && value[0] != 2)) {
- if ((value[value.length - 1] == 48 && value[value.length - 2] == 48)) {
- flag1 = true
- } else {
- break
- }
- }
- if (tmp == String.fromCharCode(32)) {
- flag = true
- }
- if (flag && result.length < 7 && tmp != String.fromCharCode(32) && !(value[value.length - 1] == 48 &&
- value[value.length - 2] == 48)) {
- result += tmp
- }
- if (flag1 && tmp != String.fromCharCode(32)) {
- if ((value[value.length - 1] == 48 && value[value.length - 2] == 48)) {
- if (i == 0) {
- this.result1 = tmp + '0'
- }
- }
- }
- }
- if (this.information == '毛重检斤') {
- if (parseInt(result) || parseInt(result) == 0) {
- this.deptBudgetList.grossWeight = parseInt(result + this.result1)
- }
- } else {
- if (parseInt(result) || parseInt(result) == 0) {
- this.deptBudgetList.tare = parseInt(result + this.result1)
- }
- }
- }
- setTimeout(1000)
- // value 是一个 Uint8Array
- }
- await port.close();
- } else {
- console.log('the Web Serial API is not supported.', navigator);
- }
- },
- qualityInspectorChange(e) {
- console.log(e)
- },
- kkInput(val) {
- console.log(val)
- if (this.isGetCost) {
- if (this.deptBudgetList.cost > val) {
- this.deptBudgetList.cost = this.cost - this.deptBudgetList.deductionAmount
- }
- }
- },
- uploadSuccessHandle1(res) {
- this.deptBudgetList.addressUrl = res.url
- console.log(this.deptBudgetList.addressUrl)
- },
- dataFilter1(val) {
- console.log(val)
- this.deptBudgetList.contractNo = val
- if (val) {
- //val存在
- this.options1 = this.outContractNo1.filter((item) => {
- if (
- !!~item.contractNo.indexOf(val) ||
- !!~item.contractNo.toUpperCase().indexOf(val.toUpperCase())
- ) {
- return true
- }
- })
- } else {
- //val为空时,还原数组
- this.options1 = this.outContractNo
- }
- },
- dataFilter2(val) {
- this.deptBudgetList.carNo = val
- if (val) {
- //val存在
- this.options1 = this.outContractNo1.filter((item) => {
- if (
- !!~item.carNo.indexOf(val) ||
- !!~item.carNo.toUpperCase().indexOf(val.toUpperCase())
- ) {
- return true
- }
- })
- } else {
- //val为空时,还原数组
- this.options2 = this.tranCarInfoList
- }
- },
- editClick(status) {
- this.isGetCost = false
- if (status == 1) {
- this.disabled1 = !this.disabled1
- } else {
- this.disabled2 = !this.disabled2
- }
- },
- //返回按钮
- revert() {
- this.$router.push({
- path: 'warehouseManagementList'
- })
- },
- carChange(e) {
- for (let i = 0; i < this.tranCarInfoList.length; i++) {
- if (this.tranCarInfoList[i].carNo == this.deptBudgetList.carNo) {
- this.deptBudgetList.tranCarNo = this.tranCarInfoList[i].tranCarNo
- this.deptBudgetList.freight = Math.round(this.tranCarInfoList[i].tranPrice)
- }
- }
- },
- 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
- }
- },
- selectstaff(e) {
- for (var i = 0; i < this.staffList.length; i++) {
- if (this.staffList[i].staffName == e) {
- this.deptBudgetList.personChargeKey = this.staffList[i].staffId
- }
- }
- },
- //提交按钮
- submit() {
- if (!this.deptBudgetList.goodsName) {
- this.$message({
- message: '货名不能为空',
- type: 'warning',
- })
- return
- }
- if (!this.deptBudgetList.grossWeight) {
- this.$message({
- message: '毛重不能为空',
- type: 'warning',
- })
- return
- }
- if (
- this.deptBudgetList.grossWeight < 0 ||
- this.deptBudgetList.grossWeight > 500000 ||
- (String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
- String(this.deptBudgetList.grossWeight).length -
- (String(this.deptBudgetList.grossWeight).indexOf('.') + 1) >
- 3)
- ) {
- this.$message({
- message: '毛重输入错误',
- type: 'warning',
- })
- return
- }
- if (!String(this.deptBudgetList.tare)) {
- this.$message({
- message: '皮重不能为空',
- type: 'warning',
- })
- return
- }
- if (
- this.deptBudgetList.tare < 0 ||
- this.deptBudgetList.tare > 5000000 ||
- (String(this.deptBudgetList.tare).indexOf('.') != -1 &&
- String(this.deptBudgetList.tare).length -
- (String(this.deptBudgetList.tare).indexOf('.') + 1) >
- 3)
- ) {
- this.$message({
- message: '皮重输入错误',
- type: 'warning',
- })
- return
- }
- if (!String(this.deptBudgetList.deductionWeight)) {
- this.$message({
- message: '扣重不能为空',
- type: 'warning',
- })
- return
- }
- if (
- this.deptBudgetList.deductionWeight < 0 ||
- this.deptBudgetList.deductionWeight > 10 ||
- (String(this.deptBudgetList.deductionWeight).indexOf('.') != -1 &&
- String(this.deptBudgetList.deductionWeight).length -
- (String(this.deptBudgetList.deductionWeight).indexOf('.') + 1) >
- 3)
- ) {
- this.$message({
- message: '扣重输入错误',
- type: 'warning',
- })
- return
- }
- if (
- this.deptBudgetList.type == '潮粮' &&
- !this.deptBudgetList.buckleWeightRatio
- ) {
- this.$message({
- message: '扣重比不能为空',
- type: 'warning',
- })
- return
- }
- if (
- (this.deptBudgetList.type == '潮粮' &&
- this.deptBudgetList.buckleWeightRatio < 0) ||
- (this.deptBudgetList.type == '潮粮' &&
- this.deptBudgetList.buckleWeightRatio > 3) ||
- (this.deptBudgetList.type == '潮粮' &&
- String(this.deptBudgetList.buckleWeightRatio).indexOf('.') != -1 &&
- String(this.deptBudgetList.buckleWeightRatio).length -
- (String(this.deptBudgetList.buckleWeightRatio).indexOf('.') + 1) >
- 2)
- ) {
- this.$message({
- message: '扣重比输入错误',
- type: 'warning',
- })
- return
- }
- if (
- this.deptBudgetList.type == '潮粮' &&
- !this.deptBudgetList.tidalGrainWater
- ) {
- this.$message({
- message: '潮粮水分不能为空',
- type: 'warning',
- })
- return
- }
- if (
- (this.deptBudgetList.type == '潮粮' &&
- this.deptBudgetList.tidalGrainWater < 1) ||
- (this.deptBudgetList.type == '潮粮' &&
- this.deptBudgetList.tidalGrainWater > 40) ||
- (this.deptBudgetList.type == '潮粮' &&
- String(this.deptBudgetList.tidalGrainWater).indexOf('.') != -1 &&
- String(this.deptBudgetList.tidalGrainWater).length -
- (String(this.deptBudgetList.tidalGrainWater).indexOf('.') + 1) >
- 2)
- ) {
- this.$message({
- message: '潮粮水分输入错误',
- type: 'warning',
- })
- return
- }
- if (
- this.deptBudgetList.type == '潮粮' &&
- !this.deptBudgetList.solidGrainWater
- ) {
- this.$message({
- message: '干粮水分不能为空',
- type: 'warning',
- })
- return
- }
- if (
- (this.deptBudgetList.type == '潮粮' &&
- this.deptBudgetList.solidGrainWater < 1) ||
- (this.deptBudgetList.type == '潮粮' &&
- this.deptBudgetList.solidGrainWater > 40) ||
- (this.deptBudgetList.type == '潮粮' &&
- String(this.deptBudgetList.solidGrainWater).indexOf('.') != -1 &&
- String(this.deptBudgetList.solidGrainWater).length -
- (String(this.deptBudgetList.solidGrainWater).indexOf('.') + 1) >
- 1)
- ) {
- this.$message({
- message: '干粮水分输入错误',
- type: 'warning',
- })
- return
- }
- if (!String(this.deptBudgetList.deductionAmount)) {
- this.$message({
- message: '扣款不能为空',
- type: 'warning',
- })
- return
- }
- if (
- this.deptBudgetList.deductionAmount < 0 ||
- this.deptBudgetList.deductionAmount > 10000 ||
- (String(this.deptBudgetList.deductionAmount).indexOf('.') != -1 &&
- String(this.deptBudgetList.deductionAmount).length -
- (String(this.deptBudgetList.deductionAmount).indexOf('.') + 1) >
- 2)
- ) {
- this.$message({
- message: '扣款输入错误',
- type: 'warning',
- })
- return
- }
- if (!this.deptBudgetList.cost) {
- this.$message({
- message: '未获取到成本,请编辑后提交',
- type: 'warning',
- })
- return
- }
- if (
- this.deptBudgetList.cost < 0 ||
- this.deptBudgetList.cost > 20000 ||
- (String(this.deptBudgetList.cost).indexOf('.') != -1 &&
- String(this.deptBudgetList.cost).length -
- (String(this.deptBudgetList.cost).indexOf('.') + 1) >
- 2)
- ) {
- this.$message({
- message: '成本输入错误',
- type: 'warning',
- })
- return
- }
- if (!String(this.deptBudgetList.freight)) {
- this.$message({
- message: '运费不能为空',
- type: 'warning',
- })
- return
- }
- if (
- this.deptBudgetList.freight < 0 ||
- this.deptBudgetList.freight > 100000 ||
- (String(this.deptBudgetList.freight).indexOf('.') != -1 &&
- String(this.deptBudgetList.freight).length -
- (String(this.deptBudgetList.freight).indexOf('.') + 1) >
- 2)
- ) {
- this.$message({
- message: '运费输入错误',
- type: 'warning',
- })
- return
- }
- if (!this.deptBudgetList.agent) {
- this.$message({
- message: '经办人不能为空',
- type: 'warning',
- })
- return
- }
- if (
- this.deptBudgetList.agent.length < 2 ||
- this.deptBudgetList.agent.length > 10
- ) {
- this.$message({
- message: '经办人输入有误',
- type: 'warning',
- })
- return
- }
- if (!this.deptBudgetList.grade) {
- this.$message({
- message: '品级不能为空!',
- type: 'warning',
- })
- return
- }
- if (!this.deptBudgetList.inOutDate) {
- this.$message({
- message: '入库日期不能为空!',
- type: 'warning',
- })
- return
- }
- if (!this.deptBudgetList.inOutType) {
- this.$message({
- message: '入库类型不能为空!',
- type: 'warning',
- })
- return
- }
- if (!this.deptBudgetList.carNo) {
- this.$message({
- message: '车牌号不能为空',
- type: 'warning',
- })
- return
- }
- if (this.deptBudgetList.carNo.length > 7) {
- this.$message({
- message: '车牌号输入错误,请输入7个字符之内',
- type: 'warning',
- })
- return
- }
- if (!this.deptBudgetList.contractNo) {
- this.$message({
- message: '合同编号不能为空',
- type: 'warning',
- })
- return
- }
- // if (
- // this.deptBudgetList.contractNo.length < 6 ||
- // this.deptBudgetList.contractNo.length > 20
- // ) {
- // this.$message({
- // message: '合同编号长度不符合要求,请输入6-20个字符之内',
- // type: 'warning',
- // })
- // return
- // }
- // if (!this.deptBudgetList.addressUrl) {
- // this.$message({
- // message: '附件不能为空',
- // type: 'warning',
- // })
- // return
- // }
- //自检员
- if (this.deptBudgetList.warehouseInOutDetail.qualityInspector) {
- if (
- this.deptBudgetList.warehouseInOutDetail.qualityInspector.length <
- 2 ||
- this.deptBudgetList.warehouseInOutDetail.qualityInspector.length > 10
- ) {
- this.$message({
- message: '质检员姓名长度错误!',
- type: 'warning',
- })
- return
- }
- }
- if (this.deptBudgetList.warehouseInOutDetail.waterContent) {
- if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
- this.$message({
- message: '水分(%)非数字!',
- type: 'warning',
- })
- return
- }
- if (
- this.deptBudgetList.warehouseInOutDetail.waterContent < 1 ||
- this.deptBudgetList.warehouseInOutDetail.waterContent > 40 ||
- (String(
- this.deptBudgetList.warehouseInOutDetail.waterContent
- ).indexOf('.') != -1 &&
- String(this.deptBudgetList.warehouseInOutDetail.waterContent)
- .length -
- (String(
- this.deptBudgetList.warehouseInOutDetail.waterContent
- ).indexOf('.') +
- 1) >
- 2)
- ) {
- this.$message({
- message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
- type: 'warning',
- })
- return
- }
- }
- //杂质
- if (this.deptBudgetList.warehouseInOutDetail.impurity) {
- if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
- this.$message({
- message: '杂质(%)非数字!',
- type: 'warning',
- })
- return
- }
- if (
- this.deptBudgetList.warehouseInOutDetail.impurity < 1 ||
- this.deptBudgetList.warehouseInOutDetail.impurity > 40 ||
- (String(this.deptBudgetList.warehouseInOutDetail.impurity).indexOf(
- '.'
- ) != -1 &&
- String(this.deptBudgetList.warehouseInOutDetail.impurity).length -
- (String(
- this.deptBudgetList.warehouseInOutDetail.impurity
- ).indexOf('.') +
- 1) >
- 2)
- ) {
- this.$message({
- message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
- type: 'warning',
- })
- return
- }
- }
- //霉变
- if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
- if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
- this.$message({
- message: '霉变粒(%)非数字!',
- type: 'warning',
- })
- return
- }
- if (
- this.deptBudgetList.warehouseInOutDetail.mildewGrain < 1 ||
- this.deptBudgetList.warehouseInOutDetail.mildewGrain > 40 ||
- (String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).indexOf(
- '.'
- ) != -1 &&
- String(this.deptBudgetList.warehouseInOutDetail.mildewGrain)
- .length -
- (String(
- this.deptBudgetList.warehouseInOutDetail.mildewGrain
- ).indexOf('.') +
- 1) >
- 2)
- ) {
- this.$message({
- message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
- type: 'warning',
- })
- return
- }
- }
- //热损伤
- if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
- if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
- this.$message({
- message: '热损伤(%)非数字!',
- type: 'warning',
- })
- return
- }
- if (
- this.deptBudgetList.warehouseInOutDetail.jiaorenli < 1 ||
- this.deptBudgetList.warehouseInOutDetail.jiaorenli > 40 ||
- (String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).indexOf(
- '.'
- ) != -1 &&
- String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).length -
- (String(
- this.deptBudgetList.warehouseInOutDetail.jiaorenli
- ).indexOf('.') +
- 1) >
- 2)
- ) {
- this.$message({
- message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
- type: 'warning',
- })
- return
- }
- }
- //不完善粒(%)
- if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
- if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
- this.$message({
- message: '不完善粒(%)非数字!',
- type: 'warning',
- })
- return
- }
- if (
- this.deptBudgetList.warehouseInOutDetail.imperfectGrain < 1 ||
- this.deptBudgetList.warehouseInOutDetail.imperfectGrain > 40 ||
- (String(
- this.deptBudgetList.warehouseInOutDetail.imperfectGrain
- ).indexOf('.') != -1 &&
- String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)
- .length -
- (String(
- this.deptBudgetList.warehouseInOutDetail.imperfectGrain
- ).indexOf('.') +
- 1) >
- 2)
- ) {
- this.$message({
- message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
- type: 'warning',
- })
- return
- }
- }
- //容重
- if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
- if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
- this.$message({
- message: '容重(克/升)非数字!',
- type: 'warning',
- })
- return
- }
- if (
- (this.deptBudgetList.warehouseInOutDetail.bulkDensity &&
- String(
- this.deptBudgetList.warehouseInOutDetail.bulkDensity
- ).indexOf('.') != -1 &&
- String(this.deptBudgetList.warehouseInOutDetail.bulkDensity)
- .length -
- (String(
- this.deptBudgetList.warehouseInOutDetail.bulkDensity
- ).indexOf('.') +
- 1) >
- 2) ||
- this.deptBudgetList.warehouseInOutDetail.bulkDensity > 1000 ||
- this.deptBudgetList.warehouseInOutDetail.bulkDensity < 0
- ) {
- this.$message({
- message: '容重输入错误',
- type: 'warning',
- })
- return
- }
- }
- console.log(this.deptBudgetList, '入库对象')
- this.$confirm(`确定提交入库信息`, {
- cancelButtonText: '取消',
- confirmButtonText: '确定',
- type: 'warning',
- })
- .then(() => {
- this.$refs.deptBudgetList.validate((valid) => {
- if (valid) {
- this.deptBudgetList.compId = sessionStorage.getItem('ws-pf_compId')
- this.deptBudgetList.secretaryWeigher = sessionStorage.getItem('ws-pf_staffName')
- this.deptBudgetList.inOutFlag = 2
- this.deptBudgetList.pcFlag = 1
- this.deptBudgetList.statusFlag = 3
- this.deptBudgetList.grossWeight = (this.deptBudgetList.grossWeight / 1000).toFixed(2)
- this.deptBudgetList.tare = (this.deptBudgetList.tare / 1000).toFixed(2)
- this.deptBudgetList.netWeight = (this.deptBudgetList.netWeight / 1000).toFixed(2)
- if (!this.deptBudgetList.pureWeight) {
- this.deptBudgetList.pureWeight = 0
- }
- this.deptBudgetList.pureWeight = (this.deptBudgetList.pureWeight / 1000).toFixed(2)
- if (!this.deptBudgetList.deductionWeight) {
- this.deptBudgetList.deductionWeight = 0
- }
- if (!this.deptBudgetList.deductionAmount) {
- this.deptBudgetList.deductionAmount = 0
- }
- this.deptBudgetList.deductionWeight = (this.deptBudgetList.deductionWeight / 1000).toFixed(2)
- this.deptBudgetList.deductionAmount = Math.round(this.deptBudgetList.deductionAmount * 1000)
- // this.deptBudgetList.grossWeight /= 1000
- // this.deptBudgetList.tare /= 1000
- // this.deptBudgetList.netWeight /= 1000
- // this.deptBudgetList.pureWeight /= 1000
- // this.deptBudgetList.deductionAmount *= 1000
- // this.deptBudgetList.deductionWeight /= 1000
- addstorageputList(this.deptBudgetList)
- .toPromise()
- .then((response) => {
- // this.deptBudgetList.grossWeight = Math.round(this.dataList.grossWeight*1000)
- // this.deptBudgetList.tare = Math.round(this.dataList.tare*1000)
- // this.deptBudgetList.netWeight = Math.round(this.dataList.netWeight*1000)
- // this.deptBudgetList.pureWeight = Math.round(this.dataList.pureWeight*1000)
- // this.deptBudgetList.deductionWeight = Math.round(this.dataList.deductionWeight*1000)
- this.$message.success('添加成功')
- this.$router.push({
- path: 'warehouseManagementList'
- })
- }).catch((response) => {
- this.deptBudgetList.grossWeight = Math.round(this.deptBudgetList.grossWeight*1000)
- this.deptBudgetList.tare = Math.round(this.deptBudgetList.tare*1000)
- this.deptBudgetList.netWeight = Math.round(this.deptBudgetList.netWeight*1000)
- this.deptBudgetList.pureWeight = Math.round(this.deptBudgetList.pureWeight*1000)
- this.deptBudgetList.deductionWeight = Math.round(this.deptBudgetList.deductionWeight*1000)
- })
- } else {
- EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
- return false
- }
- })
- })
- .catch(() => {
- return false
- })
- },
- temporaryStorage() {
- if (!this.deptBudgetList.goodsName) {
- this.$message({
- message: '货名不能为空',
- type: 'warning',
- })
- return
- }
- if (this.information == '毛重检斤' && !this.deptBudgetList.grossWeight) {
- this.$message({
- message: '毛重不能为空',
- type: 'warning',
- })
- return
- }
- if (
- this.information == '毛重检斤' && (
- this.deptBudgetList.grossWeight < 0 ||
- this.deptBudgetList.grossWeight > 2000000 ||
- (String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
- String(this.deptBudgetList.grossWeight).length -
- (String(this.deptBudgetList.grossWeight).indexOf('.') + 1) >
- 3))
- ) {
- this.$message({
- message: '毛重输入错误',
- type: 'warning',
- })
- return
- }
- if (this.information == '皮重检斤' && !this.deptBudgetList.tare) {
- this.$message({
- message: '皮重不能为空',
- type: 'warning',
- })
- return
- }
- if (
- this.information == '皮重检斤' && (
- this.deptBudgetList.tare < 0 ||
- this.deptBudgetList.tare > 1000000 ||
- (String(this.deptBudgetList.tare).indexOf('.') != -1 &&
- String(this.deptBudgetList.tare).length -
- (String(this.deptBudgetList.tare).indexOf('.') + 1) >
- 3))
- ) {
- this.$message({
- message: '皮重输入错误',
- type: 'warning',
- })
- return
- }
- // if (!this.deptBudgetList.deductionWeight) {
- // this.$message({
- // message: '扣重不能为空',
- // type: 'warning',
- // })
- // return
- // }
- // if (
- // this.deptBudgetList.deductionWeight < 0 ||
- // this.deptBudgetList.deductionWeight > 10 ||
- // (String(this.deptBudgetList.deductionWeight).indexOf('.') != -1 &&
- // String(this.deptBudgetList.deductionWeight).length -
- // (String(this.deptBudgetList.deductionWeight).indexOf('.') + 1) >
- // 3)
- // ) {
- // this.$message({
- // message: '扣重输入错误',
- // type: 'warning',
- // })
- // return
- // }
- // if (
- // this.deptBudgetList.type == '潮粮' &&
- // !this.deptBudgetList.buckleWeightRatio
- // ) {
- // this.$message({
- // message: '扣重比不能为空',
- // type: 'warning',
- // })
- // return
- // }
- // if (
- // (this.deptBudgetList.type == '潮粮' &&
- // this.deptBudgetList.buckleWeightRatio < 0) ||
- // (this.deptBudgetList.type == '潮粮' &&
- // this.deptBudgetList.buckleWeightRatio > 3) ||
- // (this.deptBudgetList.type == '潮粮' &&
- // String(this.deptBudgetList.buckleWeightRatio).indexOf('.') != -1 &&
- // String(this.deptBudgetList.buckleWeightRatio).length -
- // (String(this.deptBudgetList.buckleWeightRatio).indexOf('.') + 1) >
- // 2)
- // ) {
- // this.$message({
- // message: '扣重比输入错误',
- // type: 'warning',
- // })
- // return
- // }
- // if (
- // this.deptBudgetList.type == '潮粮' &&
- // !this.deptBudgetList.tidalGrainWater
- // ) {
- // this.$message({
- // message: '潮粮水分不能为空',
- // type: 'warning',
- // })
- // return
- // }
- // if (
- // (this.deptBudgetList.type == '潮粮' &&
- // this.deptBudgetList.tidalGrainWater < 1) ||
- // (this.deptBudgetList.type == '潮粮' &&
- // this.deptBudgetList.tidalGrainWater > 40) ||
- // (this.deptBudgetList.type == '潮粮' &&
- // String(this.deptBudgetList.tidalGrainWater).indexOf('.') != -1 &&
- // String(this.deptBudgetList.tidalGrainWater).length -
- // (String(this.deptBudgetList.tidalGrainWater).indexOf('.') + 1) >
- // 2)
- // ) {
- // this.$message({
- // message: '潮粮水分输入错误',
- // type: 'warning',
- // })
- // return
- // }
- // if (
- // this.deptBudgetList.type == '潮粮' &&
- // !this.deptBudgetList.solidGrainWater
- // ) {
- // this.$message({
- // message: '干粮水分不能为空',
- // type: 'warning',
- // })
- // return
- // }
- // if (
- // (this.deptBudgetList.type == '潮粮' &&
- // this.deptBudgetList.solidGrainWater < 1) ||
- // (this.deptBudgetList.type == '潮粮' &&
- // this.deptBudgetList.solidGrainWater > 40) ||
- // (this.deptBudgetList.type == '潮粮' &&
- // String(this.deptBudgetList.solidGrainWater).indexOf('.') != -1 &&
- // String(this.deptBudgetList.solidGrainWater).length -
- // (String(this.deptBudgetList.solidGrainWater).indexOf('.') + 1) >
- // 1)
- // ) {
- // this.$message({
- // message: '干粮水分输入错误',
- // type: 'warning',
- // })
- // return
- // }
- // if (!this.deptBudgetList.deductionAmount) {
- // this.$message({
- // message: '扣款不能为空',
- // type: 'warning',
- // })
- // return
- // }
- // if (
- // this.deptBudgetList.deductionAmount < 0 ||
- // this.deptBudgetList.deductionAmount > 10000 ||
- // (String(this.deptBudgetList.deductionAmount).indexOf('.') != -1 &&
- // String(this.deptBudgetList.deductionAmount).length -
- // (String(this.deptBudgetList.deductionAmount).indexOf('.') + 1) >
- // 2)
- // ) {
- // this.$message({
- // message: '扣款输入错误',
- // type: 'warning',
- // })
- // return
- // }
- // if (!this.deptBudgetList.cost) {
- // this.$message({
- // message: '未获取到成本,请编辑后提交',
- // type: 'warning',
- // })
- // return
- // }
- // if (
- // this.deptBudgetList.cost < 0 ||
- // this.deptBudgetList.cost > 20000 ||
- // (String(this.deptBudgetList.cost).indexOf('.') != -1 &&
- // String(this.deptBudgetList.cost).length -
- // (String(this.deptBudgetList.cost).indexOf('.') + 1) >
- // 2)
- // ) {
- // this.$message({
- // message: '成本输入错误',
- // type: 'warning',
- // })
- // return
- // }
- // if (!this.deptBudgetList.freight) {
- // this.$message({
- // message: '运费不能为空',
- // type: 'warning',
- // })
- // return
- // }
- // if (
- // this.deptBudgetList.freight < 0 ||
- // this.deptBudgetList.freight > 100000 ||
- // (String(this.deptBudgetList.freight).indexOf('.') != -1 &&
- // String(this.deptBudgetList.freight).length -
- // (String(this.deptBudgetList.freight).indexOf('.') + 1) >
- // 2)
- // ) {
- // this.$message({
- // message: '运费输入错误',
- // type: 'warning',
- // })
- // return
- // }
- // if (!this.deptBudgetList.agent) {
- // this.$message({
- // message: '经办人不能为空',
- // type: 'warning',
- // })
- // return
- // }
- // if (
- // this.deptBudgetList.agent.length < 2 ||
- // this.deptBudgetList.agent.length > 10
- // ) {
- // this.$message({
- // message: '经办人输入有误',
- // type: 'warning',
- // })
- // return
- // }
- // if (!this.deptBudgetList.carNo) {
- // this.$message({
- // message: '车牌号不能为空',
- // type: 'warning'
- // })
- // return
- // }
- // if (this.deptBudgetList.carNo.length > 7) {
- // this.$message({
- // message: '车牌号输入错误,请输入7个字符之内',
- // type: 'warning'
- // })
- // return
- // }
- if (!this.deptBudgetList.contractNo) {
- this.$message({
- message: '合同编号不能为空',
- type: 'warning',
- })
- return
- }
- // if (
- // this.deptBudgetList.contractNo.length < 6 ||
- // this.deptBudgetList.contractNo.length > 20
- // ) {
- // this.$message({
- // message: '合同编号长度不符合要求,请输入6-20个字符之内',
- // type: 'warning',
- // })
- // return
- // }
- // if (this.deptBudgetList.netWeight > this.$route.query.capacity) {
- // this.$message({
- // message: '入库量大于该仓库容量!',
- // type: 'warning',
- // })
- // return
- // }
- //自检员
- if (this.deptBudgetList.warehouseInOutDetail.qualityInspector) {
- if (
- this.deptBudgetList.warehouseInOutDetail.qualityInspector.length <
- 2 ||
- this.deptBudgetList.warehouseInOutDetail.qualityInspector.length > 10
- ) {
- this.$message({
- message: '质检员姓名长度错误!',
- type: 'warning',
- })
- return
- }
- }
- if (this.deptBudgetList.warehouseInOutDetail.waterContent) {
- if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
- this.$message({
- message: '水分(%)非数字!',
- type: 'warning',
- })
- return
- }
- if (
- this.deptBudgetList.warehouseInOutDetail.waterContent < 1 ||
- this.deptBudgetList.warehouseInOutDetail.waterContent > 40 ||
- (String(
- this.deptBudgetList.warehouseInOutDetail.waterContent
- ).indexOf('.') != -1 &&
- String(this.deptBudgetList.warehouseInOutDetail.waterContent)
- .length -
- (String(
- this.deptBudgetList.warehouseInOutDetail.waterContent
- ).indexOf('.') +
- 1) >
- 2)
- ) {
- this.$message({
- message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
- type: 'warning',
- })
- return
- }
- }
- //杂质
- if (this.deptBudgetList.warehouseInOutDetail.impurity) {
- if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
- this.$message({
- message: '杂质(%)非数字!',
- type: 'warning',
- })
- return
- }
- if (
- this.deptBudgetList.warehouseInOutDetail.impurity < 1 ||
- this.deptBudgetList.warehouseInOutDetail.impurity > 40 ||
- (String(this.deptBudgetList.warehouseInOutDetail.impurity).indexOf(
- '.'
- ) != -1 &&
- String(this.deptBudgetList.warehouseInOutDetail.impurity).length -
- (String(
- this.deptBudgetList.warehouseInOutDetail.impurity
- ).indexOf('.') +
- 1) >
- 2)
- ) {
- this.$message({
- message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
- type: 'warning',
- })
- return
- }
- }
- //霉变
- if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
- if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
- this.$message({
- message: '霉变粒(%)非数字!',
- type: 'warning',
- })
- return
- }
- if (
- this.deptBudgetList.warehouseInOutDetail.mildewGrain < 1 ||
- this.deptBudgetList.warehouseInOutDetail.mildewGrain > 40 ||
- (String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).indexOf(
- '.'
- ) != -1 &&
- String(this.deptBudgetList.warehouseInOutDetail.mildewGrain)
- .length -
- (String(
- this.deptBudgetList.warehouseInOutDetail.mildewGrain
- ).indexOf('.') +
- 1) >
- 2)
- ) {
- this.$message({
- message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
- type: 'warning',
- })
- return
- }
- }
- //热损伤
- if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
- if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
- this.$message({
- message: '热损伤(%)非数字!',
- type: 'warning',
- })
- return
- }
- if (
- this.deptBudgetList.warehouseInOutDetail.jiaorenli < 1 ||
- this.deptBudgetList.warehouseInOutDetail.jiaorenli > 40 ||
- (String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).indexOf(
- '.'
- ) != -1 &&
- String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).length -
- (String(
- this.deptBudgetList.warehouseInOutDetail.jiaorenli
- ).indexOf('.') +
- 1) >
- 2)
- ) {
- this.$message({
- message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
- type: 'warning',
- })
- return
- }
- }
- //不完善粒(%)
- if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
- if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
- this.$message({
- message: '不完善粒(%)非数字!',
- type: 'warning',
- })
- return
- }
- if (
- this.deptBudgetList.warehouseInOutDetail.imperfectGrain < 1 ||
- this.deptBudgetList.warehouseInOutDetail.imperfectGrain > 40 ||
- (String(
- this.deptBudgetList.warehouseInOutDetail.imperfectGrain
- ).indexOf('.') != -1 &&
- String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)
- .length -
- (String(
- this.deptBudgetList.warehouseInOutDetail.imperfectGrain
- ).indexOf('.') +
- 1) >
- 2)
- ) {
- this.$message({
- message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
- type: 'warning',
- })
- return
- }
- }
- //容重
- if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
- if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
- this.$message({
- message: '容重(克/升)非数字!',
- type: 'warning',
- })
- return
- }
- if (
- (this.deptBudgetList.warehouseInOutDetail.bulkDensity &&
- String(
- this.deptBudgetList.warehouseInOutDetail.bulkDensity
- ).indexOf('.') != -1 &&
- String(this.deptBudgetList.warehouseInOutDetail.bulkDensity)
- .length -
- (String(
- this.deptBudgetList.warehouseInOutDetail.bulkDensity
- ).indexOf('.') +
- 1) >
- 2) ||
- this.deptBudgetList.warehouseInOutDetail.bulkDensity > 1000 ||
- this.deptBudgetList.warehouseInOutDetail.bulkDensity < 0
- ) {
- this.$message({
- message: '容重输入错误',
- type: 'warning',
- })
- return
- }
- }
- this.$confirm(`是否保存毛重检斤`, {
- cancelButtonText: '取消',
- confirmButtonText: '确定',
- type: 'warning',
- })
- .then(() => {
- this.$refs.deptBudgetList.validate((valid) => {
- if (valid) {
- this.deptBudgetList.compId = sessionStorage.getItem('ws-pf_compId')
- this.deptBudgetList.secretaryWeigher = sessionStorage.getItem('ws-pf_staffName')
- this.deptBudgetList.inOutFlag = 2
- this.deptBudgetList.statusFlag = 1
- let _data = JSON.parse(sessionStorage.getItem('winseaview-userInfo'))
- this.deptBudgetList.backOffice = _data.content.showCompName + '-' + _data.content.staffName
- this.deptBudgetList.grossWeight /= 1000
- this.deptBudgetList.tare /= 1000
- this.deptBudgetList.netWeight /= 1000
- this.deptBudgetList.pureWeight /= 1000
- this.deptBudgetList.deductionAmount *= 1000
- this.deptBudgetList.deductionWeight /= 1000
- addstorageputList(this.deptBudgetList)
- .toPromise()
- .then((response) => {
- this.$message.success('保存成功')
- this.$router.push({
- path: 'warehouseManagementList'
- })
- })
- } else {
- EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
- return false
- }
- })
- })
- .catch(() => {
- return false
- })
- },
- tarechange(e) {
- if (
- this.deptBudgetList.grossWeight &&
- this.deptBudgetList.tare &&
- this.deptBudgetList.deductionWeight
- ) {
- this.deptBudgetList.netWeight = Number(
- this.deptBudgetList.grossWeight -
- this.deptBudgetList.tare -
- this.deptBudgetList.deductionWeight
- ).toFixed(2)
- }
- },
- grossWeightchange(e) {
- if (
- this.deptBudgetList.grossWeight &&
- this.deptBudgetList.tare &&
- this.deptBudgetList.deductionWeight
- ) {
- this.deptBudgetList.netWeight = Number(
- this.deptBudgetList.grossWeight -
- this.deptBudgetList.tare -
- this.deptBudgetList.deductionWeight
- ).toFixed(2)
- }
- },
- contractNoChange(e) {
- console.log(e)
- for (let i = 0; i < this.deptBudgetList1.length; i++) {
- if (this.deptBudgetList1[i].inOutTaskNo == e) {
- this.deptBudgetList.contractNo = this.deptBudgetList1[i].contractNo
- }
- }
- for (var i = 0; i < this.outContractNo.length; i++) {
- if (this.outContractNo[i].contractNo == this.deptBudgetList.contractNo) {
- if (this.outContractNo[i].inOutType == '采购入库') {
- this.deptBudgetList.inOutTypeKey = 1
- } else if (this.outContractNo[i].inOutType == '移库入库') {
- this.deptBudgetList.inOutTypeKey = 3
- } else if (this.outContractNo[i].inOutType == '暂存入库') {
- this.deptBudgetList.inOutTypeKey = 4
- } else if (this.outContractNo[i].inOutType == '贸易服务入库') {
- this.deptBudgetList.inOutTypeKey = 5
- } else if (this.outContractNo[i].inOutType == '退库') {
- this.deptBudgetList.inOutTypeKey = 6
- }
- console.log(this.outContractNo[i])
- this.deptBudgetList.goodsName = this.outContractNo[i].goodsName
- this.deptBudgetList.goodsNameKey = this.outContractNo[i].goodsNameKey
- // this.deptBudgetList.cost = this.outContractNo[i].contractPrice
- this.cost = this.outContractNo[i].contractPrice
- if (this.cost) {
- this.isGetCost = true
- this.deptBudgetList.cost = this.cost - this.deptBudgetList.deductionAmount
- } else {
- this.isGetCost = false
- this.deptBudgetList.cost = this.deptBudgetList.cost
- }
- this.deptBudgetList.inOutType = this.outContractNo[i].inOutType
- if (this.outContractNo[i].inOutType == '移库入库') {
- this.isSelectType = false
- } else {
- this.isSelectType = true
- }
- if (this.outContractNo[i].deliverType == '1') {
- this.carstatus = true
- } else {
- this.carstatus = false
- }
- if (this.outContractNo[i].tranCarInfoList) {
- this.options2 = this.outContractNo[i].tranCarInfoList
- this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
- // this.carstatus = true
- }
- }
- }
- },
- contractNoChange1(e) {
- for (var i = 0; i < this.outContractNo.length; i++) {
- if (this.outContractNo[i].contractNo == e) {
- console.log(this.outContractNo[i])
- if (this.outContractNo[i].inOutType == '采购入库') {
- this.deptBudgetList.inOutTypeKey = 1
- } else if (this.outContractNo[i].inOutType == '移库入库') {
- this.deptBudgetList.inOutTypeKey = 3
- } else if (this.outContractNo[i].inOutType == '暂存入库') {
- this.deptBudgetList.inOutTypeKey = 4
- } else if (this.outContractNo[i].inOutType == '贸易服务入库') {
- this.deptBudgetList.inOutTypeKey = 5
- } else if (this.outContractNo[i].inOutType == '退库') {
- this.deptBudgetList.inOutTypeKey = 6
- }
- this.deptBudgetList.goodsName = this.outContractNo[i].goodsName
- this.deptBudgetList.goodsNameKey = this.outContractNo[i].goodsNameKey
- // this.deptBudgetList.cost = this.outContractNo[i].contractPrice
- this.cost = this.outContractNo[i].contractPrice
- if (this.cost) {
- this.isGetCost = true
- this.deptBudgetList.cost = this.cost - this.deptBudgetList.deductionAmount
- } else {
- this.isGetCost = false
- this.deptBudgetList.cost = this.deptBudgetList.cost
- }
- this.deptBudgetList.inOutType = this.outContractNo[i].inOutType
- if (this.outContractNo[i].inOutType == '移库入库') {
- this.isSelectType = false
- } else {
- this.isSelectType = true
- }
- if (this.outContractNo[i].deliverType == '1') {
- this.carstatus = true
- } else {
- this.carstatus = false
- }
- if (this.outContractNo[i].tranCarInfoList) {
- this.options2 = this.outContractNo[i].tranCarInfoList
- this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
- this.carstatus = true
- }
- }
- }
- },
- typeChange(e) {},
- pureweight(status) {
- console.log(this.deptBudgetList)
- if (
- this.deptBudgetList.netWeight &&
- this.deptBudgetList.tidalGrainWater &&
- this.deptBudgetList.solidGrainWater &&
- this.deptBudgetList.buckleWeightRatio
- ) {
- this.deptBudgetList.pureWeight =
- (this.deptBudgetList.netWeight *
- (100 -
- (this.deptBudgetList.tidalGrainWater -
- this.deptBudgetList.solidGrainWater) *
- this.deptBudgetList.buckleWeightRatio)) /
- 100
- }
- },
- selectgoodsName(e) {
- for (var i = 0; i < this.goodnameList.length; i++) {
- if (this.goodnameList[i].constValue == e) {
- this.deptBudgetList.goodsNameKey = this.goodnameList[i].constKey
- }
- }
- },
- selectpackingMethod(e) {
- for (var i = 0; i < this.packtypeList.length; i++) {
- if (this.packtypeList[i].constValue == e) {
- this.deptBudgetList.packingMethodKey = this.packtypeList[i].constKey
- }
- }
- },
- selectstorageType(e) {
- for (var i = 0; i < this.storageType.length; i++) {
- if (this.storageType[i].constValue == e) {
- this.deptBudgetList.inOutTypeKey = this.storageType[i].constKey
- }
- }
- },
- handleClose() {
- this.accessoryTFs = false
- },
- handleSizeChange(val) {
- console.log(`每页 ${val} 条`)
- this.pageSize = val
- this.getList()
- },
- handleCurrentChange(val) {
- this.currentPage = val
- console.log(`当前页: ${val}`)
- this.getList()
- },
- getList() {
- // 货名
- pullDown({
- constId: 'CON2'
- })
- .toPromise()
- .then((response) => {
- this.goodnameList = response
- })
- // 品级
- pullDown({
- constId: 'CON3'
- })
- .toPromise()
- .then((response) => {
- this.gradeList = response
- })
- // 类型
- if (this.deptBudgetList.warehouseType == '1') {
- this.storageType = []
- pullDown({
- constId: 'CON5'
- })
- .toPromise()
- .then((response) => {
- // this.storageType = response
- for (let i = 0; i < response.length; i++) {
- if (response[i].constValue == '移库入库' || response[i].constValue == '退库') {
- this.storageType.push(response[i])
- }
- }
- })
- } else if (this.deptBudgetList.warehouseType == '2') {
- pullDown({
- constId: 'WARE1'
- })
- .toPromise()
- .then((response) => {
- this.storageType = response
- })
- pullDown({
- constId: 'WARE2'
- })
- .toPromise()
- .then((response) => {
- this.deliveryType = response
- })
- }
- //合同编号
- xialaNo({
- compId: sessionStorage.getItem('ws-pf_compId'),
- flag: 7
- })
- .toPromise()
- .then((response) => {
- this.options1 = response
- this.outContractNo = response
- })
- //经办人
- getstaff({
- compId: sessionStorage.getItem('ws-pf_compId'),
- warehouseId: this.deptBudgetList.baseId,
- })
- .toPromise()
- .then((response) => {
- this.options = response
- this.qualityInspectorList = response
- this.staffList = response
- // this.agent = 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
- },
- })
- },
- },
- }
- </script>
- <style lang="scss" scoped>
- /deep/.basicInformation {
- .ws-info-table {
- border: none;
- }
- .el-form-item {
- width: 33.3333%;
- border: none;
- .el-form-item__label {
- background: transparent;
- border: none;
- }
- .el-form-item__content {
- border: none;
- }
- }
- }
- .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 10%;
- }
- .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;
- }
- //选填
- /deep/.el-form-item {
- width: 50%;
- }
- .container {
- overflow: scroll;
- height: 120vh;
- }
- /deep/.ws-info-table .el-form-item .el-form-item__label {
- text-align: center;
- }
- .deliverydate {
- display: inline-block;
- width: 10%;
- }
- .center {
- margin-top: -60px;
- width: 80%;
- }
- //仓位
- .position {
- background: #afb5cb;
- border-radius: 2px;
- font-size: 12px;
- color: #ffffff;
- line-height: 20px;
- display: inline-grid;
- padding: 2px 4px;
- }
- //表格文字
- /deep/.ws-info-table .el-form-item .el-form-item__label {
- text-align: left;
- font-size: 14px;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #8890b1;
- line-height: 16px;
- }
- .inspector {
- width: 50%;
- }
- //质检员
- .inspector .el-form-item__content {
- text-align: left;
- margin-left: 0px;
- }
- .small-title {
- position: relative;
- padding: 10px;
- font-weight: 600;
- }
- .small-title::before {
- position: absolute;
- content: '';
- display: block;
- background: #5473e8;
- width: 4px;
- height: 14px;
- left: 0px;
- top: 13px;
- padding: 4px 2px;
- }
- //下面列表
- .neifor {
- width: 80%;
- background-color: #f6f7fc;
- }
- /deep/.neifor .ws-info-table .el-form-item .el-form-item__label {
- width: 35%;
- text-align: center;
- }
- /deep/.neifor .ws-info-table .el-form-item .el-form-item__content {
- width: 60%;
- background-color: #f6f7fc;
- }
- /deep/.neifor .el-input--small .el-input__inner {
- width: 100%;
- }
- </style>
|