warehouseManagementNoWeightOut.vue 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439
  1. // 完善出库信息
  2. <template>
  3. <div class="container">
  4. <el-row>
  5. <el-col :span="20">
  6. <h2 class="bg-left title">出库毛重检斤</h2>
  7. </el-col>
  8. <el-col :span="4" class="bg-right">
  9. <el-button
  10. class="bg-bottom"
  11. type="primary"
  12. size="small"
  13. @click="revert()"
  14. ><img
  15. width="6"
  16. height="10"
  17. style="vertical-align: bottom; margin-right: 3px"
  18. src="../../../public/img/lujing.png"
  19. alt=""
  20. />返回</el-button
  21. >
  22. </el-col>
  23. </el-row>
  24. <ws-form ref="dataList" :model="dataList" :rules="rules">
  25. <div class="basicInformation">
  26. <h2>
  27. {{ this.deptBudgetList1.warehouseName }}库
  28. <span class="position" v-show="this.$route.query.warehouseType == 1">
  29. {{ this.deptBudgetList1.binNumber }}仓位
  30. </span>
  31. <span v-show="this.$route.query.warehouseType == 2"> (临) </span>
  32. </h2>
  33. <div class="small-title">基本信息</div>
  34. <ws-info-table>
  35. <!--任务编号-->
  36. <ws-form-item label="任务编号" span="1" prop="inOutTaskNo">
  37. <el-select
  38. filterable
  39. clearable
  40. v-model="dataList.inOutTaskNo"
  41. placeholder="请选择任务编号"
  42. class="typeselect"
  43. @change="contractNoChange"
  44. >
  45. <el-option
  46. v-for="item in deptBudgetList2"
  47. :key="item.inOutTaskNo"
  48. :label="item.inOutTaskNo"
  49. :value="item.inOutTaskNo"
  50. />
  51. </el-select>
  52. </ws-form-item>
  53. <ws-form-item label="合同编号" span="1" prop="contractNo">
  54. <ws-select
  55. v-model="dataList.contractNo"
  56. placeholder="请选择合同编号或移库任务编号"
  57. class="typeselect"
  58. @change='contractNoChange'
  59. >
  60. <ws-option
  61. v-for="item in outContractNo"
  62. :key="item.constKey"
  63. :label="item.contractNo"
  64. :value="item.contractNo"
  65. />
  66. </ws-select>
  67. </ws-form-item>
  68. <!-- 货名 -->
  69. <ws-form-item label="货名" span="1">
  70. <ws-select
  71. disabled
  72. v-model="dataList.goodsName"
  73. placeholder
  74. class="typeselect"
  75. @change="selectgoodsName"
  76. >
  77. <ws-option
  78. v-for="item in goodnameList"
  79. :key="item.constKey"
  80. :label="item.constValue"
  81. :value="item.constValue"
  82. />
  83. </ws-select>
  84. </ws-form-item>
  85. <ws-form-item label="类型" span="1" prop="type">
  86. <ws-select v-model="dataList.type" @change="typeChange">
  87. <ws-option v-for="item in typeList" :key="item" :label="item" :value="item" />
  88. </ws-select>
  89. </ws-form-item>
  90. <!--毛重(公斤)-->
  91. <ws-form-item label="毛重(公斤)" span="1" prop="grossWeight">
  92. <ws-input
  93. :disabled="allowEdit"
  94. @input="grossWeightchange"
  95. v-model="dataList.grossWeight"
  96. placeholder="请输入毛重"
  97. maxlength="20"
  98. size="small"
  99. />
  100. <el-button type="primary" @click="openPort">重新获取</el-button>
  101. </ws-form-item>
  102. <!--皮重(公斤)-->
  103. <ws-form-item label="皮重(公斤)" span="1" prop="tare" class="readonly">
  104. <ws-input
  105. :disabled="allowEdit"
  106. @input="tarechange"
  107. v-model="dataList.tare"
  108. placeholder="请输入皮重"
  109. maxlength="100"
  110. size="small"
  111. />
  112. </ws-form-item>
  113. <!--净重(公斤)-->
  114. <ws-form-item label="净重(公斤)" span="1" prop="netWeight">
  115. <ws-input
  116. readonly="readonly"
  117. v-model="dataList.netWeight"
  118. placeholder="不可编辑,自动计算"
  119. maxlength="120"
  120. size="small"
  121. />
  122. </ws-form-item>
  123. <ws-form-item v-if='dataList.type=="潮粮"' label="扣重比" span="1" prop="buckleWeightRatio" class="readonly">
  124. <ws-input
  125. @input='pureweight'
  126. v-model="dataList.buckleWeightRatio"
  127. placeholder="请输入扣重比"
  128. maxlength="100"
  129. size="small"
  130. />
  131. </ws-form-item>
  132. <ws-form-item v-if='dataList.type=="潮粮"' label="干粮水分占比" span="1" prop="solidGrainWater" class="readonly">
  133. <ws-input
  134. @input='pureweight'
  135. v-model="dataList.solidGrainWater"
  136. placeholder="请输入干粮水分占比"
  137. maxlength="100"
  138. size="small"
  139. />
  140. </ws-form-item>
  141. <ws-form-item v-if='dataList.type=="潮粮"' label="潮粮水分占比" span="1" prop="tidalGrainWater" class="readonly">
  142. <ws-input
  143. @input='pureweight'
  144. v-model="dataList.tidalGrainWater"
  145. placeholder="请输入潮粮水分占比"
  146. maxlength="100"
  147. size="small"
  148. />
  149. </ws-form-item>
  150. <ws-form-item v-if='dataList.type=="潮粮"' label="纯重" span="1" prop="pureWeight" class="readonly">
  151. <ws-input
  152. disabled
  153. v-model="dataList.pureWeight"
  154. placeholder="不可编辑,自动计算"
  155. maxlength="100"
  156. size="small"
  157. />
  158. </ws-form-item>
  159. <!-- 品级 -->
  160. <ws-form-item label="品级" span="1" class="readonly">
  161. <ws-select
  162. v-model="dataList.grade"
  163. placeholder=""
  164. class="typeselect"
  165. @change="selectpackingMethod"
  166. >
  167. <ws-option
  168. v-for="item in gradeList"
  169. :key="item.constKey"
  170. :label="item.constValue"
  171. :value="item.constValue"
  172. />
  173. </ws-select>
  174. </ws-form-item>
  175. <!--经办人-->
  176. <ws-form-item label="经办人" span="1" prop="agent">
  177. <el-select
  178. v-model="dataList.agent"
  179. placeholder="请选择经办人"
  180. filterable
  181. clearable
  182. @change="selectstaff"
  183. >
  184. <el-option
  185. v-for="item in options"
  186. :key="item.value"
  187. :label="item.staffName"
  188. :value="item.staffName"
  189. />
  190. </el-select>
  191. </ws-form-item>
  192. <!--出库日期-->
  193. <ws-form-item
  194. label="出库日期"
  195. span="1"
  196. prop="inOutDate"
  197. class="deliverydate"
  198. >
  199. <ws-date-picker
  200. v-model="dataList.inOutDate"
  201. type="date"
  202. placeholder="请选择出库日期"
  203. value-format="yyyy-MM-dd"
  204. />
  205. </ws-form-item>
  206. <!-- 出库类型 -->
  207. <ws-form-item label="出库类型" span="1">
  208. <ws-select
  209. v-model="dataList.inOutType"
  210. placeholder=""
  211. class="typeselect"
  212. @change="selectstorageType"
  213. >
  214. <ws-option
  215. v-for="item in deliveryType"
  216. :key="item.constKey"
  217. :label="item.constValue"
  218. :value="item.constValue"
  219. />
  220. </ws-select>
  221. </ws-form-item>
  222. <!--车牌号-->
  223. <ws-form-item label="车牌号" span="1" prop="carNo">
  224. <ws-input
  225. v-if="!carstatus"
  226. v-model="dataList.carNo"
  227. placeholder="请输入车牌号"
  228. maxlength="20"
  229. size="small"
  230. />
  231. <el-select
  232. v-if="carstatus"
  233. filterable
  234. clearable
  235. :filter-method="dataFilter2"
  236. v-model="deptBudgetList.carNo"
  237. placeholder="请选择车牌号"
  238. class="typeselect"
  239. @change="carChange"
  240. >
  241. <el-option
  242. v-for="item in options2"
  243. :key="item.constKey"
  244. :label="item.carNo + '(' + item.tranCarNo + ')'"
  245. :value="item.carNo"
  246. />
  247. </el-select>
  248. </ws-form-item>
  249. </ws-info-table>
  250. </div>
  251. <!-- <div class="small-title">上传磅单照片</div>
  252. <el-upload
  253. action="https://www.zthymaoyi.com/upload/admin"
  254. :show-file-list="false"
  255. :on-success="
  256. (res) => {
  257. uploadSuccessHandle1(res)
  258. }
  259. "
  260. class="avatar-uploader"
  261. accept=".jpg, .jpeg, .png, .gif"
  262. ><el-button size="small" type="primary">点击上传</el-button>
  263. </el-upload>
  264. <div v-if='dataList.addressUrl!=""'>
  265. <img style='width:100px;height:100px;' :src="dataList.addressUrl" alt="">
  266. </div> -->
  267. <div class="small-title">化验数据(选填)</div>
  268. <div class="inspector">
  269. <!--质检员-->
  270. <!-- <ws-form-item label="质检员" span="1" prop="qualityInspector">
  271. <ws-input
  272. v-model="dataList.warehouseInOutDetail.qualityInspector"
  273. placeholder="请输入质检员姓名"
  274. maxlength="120"
  275. size="small"
  276. />
  277. </ws-form-item> -->
  278. <ws-form-item label="质检员" span="1" prop="qualityInspector">
  279. <el-select
  280. v-model="dataList.warehouseInOutDetail.qualityInspector"
  281. placeholder="请选择质检员"
  282. filterable
  283. clearable
  284. >
  285. <el-option
  286. v-for="item in qualityInspectorList"
  287. :key="item.value"
  288. :label="item.staffName"
  289. :value="item.staffName"
  290. />
  291. </el-select>
  292. </ws-form-item>
  293. </div>
  294. <div class="neifor">
  295. <ws-info-table>
  296. <!--水分(%)<=-->
  297. <ws-form-item label="水分(%)<=" span="1" prop="waterContent">
  298. <ws-input
  299. v-model="dataList.warehouseInOutDetail.waterContent"
  300. placeholder="请输入水分占比"
  301. maxlength="120"
  302. size="small"
  303. />
  304. </ws-form-item>
  305. <!--杂质(%)<=-->
  306. <ws-form-item label="杂质(%)<=" span="1" prop="impurity">
  307. <ws-input
  308. v-model="dataList.warehouseInOutDetail.impurity"
  309. placeholder="请输入杂质占比"
  310. maxlength="120"
  311. size="small"
  312. />
  313. </ws-form-item>
  314. <!--容重(克/升)>=-->
  315. <ws-form-item label="容重(克/升)>=" span="1" prop="bulkDensity">
  316. <ws-input
  317. v-model="dataList.warehouseInOutDetail.bulkDensity"
  318. placeholder="请输入容重"
  319. maxlength="120"
  320. size="small"
  321. />
  322. </ws-form-item>
  323. <!--霉变粒(%)<=-->
  324. <ws-form-item label="霉变粒(%)<=" span="1" prop="mildewGrain">
  325. <ws-input
  326. v-model="dataList.warehouseInOutDetail.mildewGrain"
  327. placeholder="请输入霉变粒占比"
  328. maxlength="120"
  329. size="small"
  330. />
  331. </ws-form-item>
  332. <!--热损伤(%)<=-->
  333. <ws-form-item label="热损伤(%)<=" span="1" prop="jiaorenli">
  334. <ws-input
  335. v-model="dataList.warehouseInOutDetail.jiaorenli"
  336. placeholder="请输入热损伤占比"
  337. maxlength="120"
  338. size="small"
  339. />
  340. </ws-form-item>
  341. <!--不完善粒(%)<=-->
  342. <ws-form-item label="不完善粒(%)<=" span="1" prop="imperfectGrain">
  343. <ws-input
  344. v-model="dataList.warehouseInOutDetail.imperfectGrain"
  345. placeholder="请输入不完善粒占比"
  346. maxlength="120"
  347. size="small"
  348. />
  349. </ws-form-item>
  350. </ws-info-table>
  351. </div>
  352. <div style="text-align: right; padding: 10px">
  353. <!-- <el-button
  354. class="bg-bottom-up"
  355. type="primary"
  356. size="small"
  357. @click="temporaryStorage()"
  358. >暂存</el-button
  359. > -->
  360. <el-button
  361. class="bg-bottom-up"
  362. type="primary"
  363. size="small"
  364. @click="submit()"
  365. >提交</el-button
  366. >
  367. </div>
  368. </ws-form>
  369. </div>
  370. </template>
  371. <script>
  372. import {
  373. pullDown,
  374. addstorageputList,
  375. xialaNo,
  376. getstaff,
  377. getPrintInfo,
  378. getReceiptTaskNo
  379. } from '@/model/warehouse/index'
  380. import { downloadFile } from '@/utils/batchDown'
  381. import Pagination from '@/components/Pagination'
  382. import WsUpload from '@/components/WsUpload'
  383. import { mapActions, mapGetters, mapState } from 'vuex'
  384. // import { dayjs, fmoney, EventBus } from 'base-core-lib'
  385. import { dayjs, EventBus } from 'base-core-lib'
  386. export default {
  387. name: 'viewSpareMoney',
  388. components: {
  389. WsUpload,
  390. Pagination,
  391. },
  392. watch: {
  393. isShow(val) {
  394. this.showType = val
  395. },
  396. dataList:{//深度监听,可监听到对象、数组的变化
  397. handler(val, oldVal){
  398. if(val.grossWeight){
  399. this.dataList.netWeight = val.grossWeight - this.dataList.tare
  400. }
  401. },
  402. deep:true //true 深度监听
  403. }
  404. },
  405. computed: {
  406. ...mapGetters(['deptBudgetList']),
  407. },
  408. data() {
  409. return {
  410. deptBudgetList2:[],
  411. //弹出框
  412. dialogViewSpareMoney: false,
  413. dialogApproveFormVisible: false,
  414. // 船舶类型
  415. monetaryKey: null,
  416. // 表格显示数据
  417. tableDate: [],
  418. // 是否显示
  419. showType: true,
  420. // 年
  421. year: '',
  422. readonly: true,
  423. typeList:['干粮','潮粮'],
  424. qualityInspectorList:[],
  425. deptBudgetTotal: 0,
  426. currentPage: 1,
  427. pageSize: 10,
  428. searchType: 1,
  429. searchKeyWord: '',
  430. contractType: 2,
  431. startDate: null,
  432. endDate: null,
  433. goodnameList: {},
  434. tranCarInfoList:[],
  435. staffList: [],
  436. options: [],
  437. options1: [],
  438. options2: [],
  439. carstatus:false,
  440. storageType: [],
  441. deliveryType: [],
  442. outContractNo: [],
  443. // 提交类型
  444. submitType: true,
  445. storageType: [],
  446. appendixIdsAdd: '',
  447. uploadSuccess: {},
  448. onChange: {},
  449. deptBudgetList1: [],
  450. gradeList: [],
  451. rules: {
  452. netWeight: [
  453. {
  454. required: true,
  455. type: 'number',
  456. message: '请输入活动名称',
  457. trigger: 'blur',
  458. },
  459. ],
  460. },
  461. size: 10,
  462. compId: sessionStorage.getItem('ws-pf_compId'),
  463. secretaryWeigher: sessionStorage.getItem('ws-pf_staffName'),
  464. deptCircularPage: {},
  465. packtypeList: {},
  466. date: {
  467. year: dayjs().format('YYYY'),
  468. month: dayjs().format('MM'),
  469. },
  470. contractList: [],
  471. dataList: {
  472. id: '',
  473. grossWeight: '',
  474. contractNo: '',
  475. tare: '',
  476. netWeight: '',
  477. grade: '',
  478. agent: '',
  479. carNo: '',
  480. inOutDate: '',
  481. inOutType: '',
  482. goodsName: '',
  483. warehouseInOutDetail: {
  484. qualityInspector:''
  485. },
  486. cost:'',
  487. freight:0,
  488. type:'',
  489. addressUrl:'',
  490. buckleWeightRatio:'',
  491. tidalGrainWater:'',
  492. solidGrainWater:'',
  493. pureWeight:'',
  494. deductionAmount:'',
  495. deductionWeigh:'',
  496. },
  497. historyList: [],
  498. pickerBeginDateBefore: {
  499. disabledDate: (time) => {
  500. return time.getTime() > Date.now()
  501. },
  502. },
  503. accessoryTFs: false,
  504. param: 9600,
  505. allowEdit:true,
  506. result1:'00'
  507. }
  508. },
  509. activated() {
  510. if(this.$route.query.allowEdit == 1){
  511. this.allowEdit = false
  512. }
  513. else{
  514. this.allowEdit = true
  515. }
  516. this.deptBudgetList1.warehouseName = this.$route.query.warehouseName
  517. this.deptBudgetList1.binNumber = this.$route.query.binNumber
  518. this.getList()
  519. this.dataList.id = this.$route.query.id
  520. this.dataList.grossWeight = Math.round(this.$route.query.grossWeight*1000)
  521. this.dataList.contractNo = this.$route.query.contractNo
  522. this.dataList.baseId = this.$route.query.baseId
  523. this.dataList.positionId = this.$route.query.positionId
  524. this.dataList.warehouseName = this.$route.query.warehouseName
  525. this.dataList.binNumber = this.$route.query.binNumber
  526. this.dataList.tare = Math.round(this.$route.query.tare*1000)
  527. this.dataList.netWeight = Math.round(this.$route.query.netWeight*1000)
  528. this.dataList.grade = this.$route.query.grade
  529. this.dataList.agent = this.$route.query.agent
  530. this.dataList.carNo = this.$route.query.carNo
  531. this.dataList.inOutDate = this.$route.query.inOutDate
  532. this.dataList.contractNo = this.$route.query.contractNo
  533. this.dataList.inOutType = this.$route.query.inOutType
  534. this.dataList.compId = this.$route.query.compId
  535. this.dataList.goodsName = this.$route.query.goodsName
  536. this.dataList.goodsNameKey = Number(this.$route.query.goodsNameKey)
  537. this.dataList.inOutFlag = this.$route.inOutFlag
  538. this.dataList.inOutTypeKey = Number(this.$route.query.inOutTypeKey)
  539. this.dataList.statusFlag = this.$route.statusFlag
  540. this.dataList.warehouseInOutDetail = this.$route.query.warehouseInOutDetail
  541. console.log(this.dataList)
  542. getReceiptTaskNo().toPromise()
  543. .then((response) => {
  544. console.log(response)
  545. this.deptBudgetList2 = response
  546. })
  547. },
  548. methods: {
  549. async closePort() {
  550. console.log('closePort');
  551. this.reader.cancel()
  552. },
  553. async openPort() {
  554. console.log('openPort', navigator);
  555. if ('serial' in navigator) {
  556. // The Web Serial API is supported.
  557. console.log('the Web Serial API is supported.');
  558. console.log(this.param);
  559. const port = await navigator.serial.requestPort();
  560. await port.open({
  561. baudRate: this.param
  562. }); // set baud rate
  563. this.reader = port.readable.getReader();
  564. // 监听来自串行设备的数据
  565. while (true) {
  566. const {
  567. value,
  568. done
  569. } = await this.reader.read();
  570. // console.log("value",value);
  571. if (done) {
  572. // 允许稍后关闭串口。
  573. this.reader.releaseLock();
  574. break;
  575. }
  576. var result = '';
  577. //2。获取16进制字符串
  578. // var receData = HexConvert.ByteToString(value);
  579. // console.log("receData",receData);
  580. var flag = false;
  581. var flag1 = false;
  582. // for (var i = 0; i < value.length; i++) {
  583. // var tmp = String.fromCharCode(value[i])
  584. // if (tmp == '+') {
  585. // flag = true
  586. // }
  587. // if (flag && result.length < 6 && tmp != '+') {
  588. // result += tmp
  589. // }
  590. // }
  591. // if(parseInt(result)){
  592. // this.dataList.grossWeight = parseInt(result)
  593. // }
  594. if(this.deptBudgetList1.warehouseName&&(this.deptBudgetList.warehouseName == '山东诸城迈饶库'||this.deptBudgetList.warehouseName == '克东千红库')){
  595. for (var i = 0; i < value.length; i++) {
  596. var tmp = String.fromCharCode(value[i])
  597. if (tmp == '+') {
  598. flag = true
  599. }
  600. if (flag && result.length < 6 && tmp != '+') {
  601. result += tmp
  602. }
  603. }
  604. if(parseInt(result)|| parseInt(result) == 0){
  605. this.dataList.grossWeight = parseInt(result)
  606. }
  607. }
  608. else{
  609. for(var i=0;i<value.length;i++){
  610. var tmp = String.fromCharCode(value[i])
  611. if((value[0] != 49 && value[0] != 2)){
  612. if((value[value.length-1] == 48&&value[value.length-2] == 48)){
  613. flag1 = true
  614. }
  615. else{
  616. break
  617. }
  618. }
  619. if (tmp == String.fromCharCode(32) ) {
  620. flag = true
  621. }
  622. if (flag && result.length < 7 && tmp != String.fromCharCode(32)&&!(value[value.length-1] == 48&&value[value.length-2] == 48)) {
  623. result += tmp
  624. }
  625. if (flag1 && tmp != String.fromCharCode(32)) {
  626. if((value[value.length-1] == 48&&value[value.length-2] == 48)){
  627. if(i == 0 ){
  628. this.result1 = tmp + '0'
  629. }
  630. }
  631. }
  632. }
  633. if(parseInt(result)|| parseInt(result) == 0){
  634. this.dataList.grossWeight = parseInt(result+this.result1)
  635. }
  636. }
  637. setTimeout(1000)
  638. // value 是一个 Uint8Array
  639. }
  640. await port.close();
  641. } else {
  642. console.log('the Web Serial API is not supported.', navigator);
  643. }
  644. },
  645. pureweight(status){
  646. console.log(this.deptBudgetList)
  647. if(this.deptBudgetList.netWeight&&this.deptBudgetList.tidalGrainWater&&this.deptBudgetList.solidGrainWater&&this.deptBudgetList.buckleWeightRatio){
  648. this.deptBudgetList.pureWeight=(this.deptBudgetList.netWeight*(100-(this.deptBudgetList.tidalGrainWater-this.deptBudgetList.solidGrainWater)*this.deptBudgetList.buckleWeightRatio))/100
  649. }
  650. },
  651. uploadSuccessHandle1(res){
  652. this.dataList.addressUrl=res.url
  653. },
  654. //返回按钮
  655. revert() {
  656. this.$router.go(-1)
  657. },
  658. dataFilter(val) {
  659. // console.log(val,"名")
  660. this.deptBudgetList.staffList = val
  661. if (val) {
  662. //val存在
  663. this.options = this.staffList.filter((item) => {
  664. if (
  665. !!~item.staffName.indexOf(val) ||
  666. !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
  667. ) {
  668. return true
  669. }
  670. })
  671. } else {
  672. //val为空时,还原数组
  673. this.options = this.staffList
  674. }
  675. },
  676. selectstaff(e) {
  677. for (var i = 0; i < this.staffList.length; i++) {
  678. if (this.staffList[i].staffName == e) {
  679. this.deptBudgetList.personChargeKey = this.staffList[i].staffId
  680. }
  681. }
  682. },
  683. //暂存按钮
  684. temporaryStorage() {
  685. this.$confirm(`暂存后可在待完成页面查看,确定暂存`, {
  686. cancelButtonText: '取消',
  687. confirmButtonText: '确定',
  688. type: 'warning',
  689. })
  690. .then(() => {
  691. this.$refs.dataList.validate((valid) => {
  692. if (valid) {
  693. this.dataList.compId = sessionStorage.getItem('ws-pf_compId')
  694. this.dataList.inOutFlag = 1
  695. this.dataList.statusFlag = 1
  696. addstorageputList(this.dataList)
  697. .toPromise()
  698. .then((response) => {
  699. this.$message.success('暂存成功')
  700. this.$router.push({ path: 'warehouseManagementList' })
  701. })
  702. } else {
  703. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  704. return false
  705. }
  706. })
  707. })
  708. .catch(() => {
  709. return false
  710. })
  711. },
  712. contractNoChange(e){
  713. for (var i = 0; i < this.outContractNo.length; i++) {
  714. if (this.outContractNo[i].contractNo == e) {
  715. if (this.outContractNo[i].inOutType == '销售出库') {
  716. this.deptBudgetList.inOutTypeKey = 1
  717. } else if (this.outContractNo[i].inOutType == '移库出库') {
  718. this.deptBudgetList.inOutTypeKey = 3
  719. } else if (this.outContractNo[i].inOutType == '暂存入库') {
  720. this.deptBudgetList.inOutTypeKey = 4
  721. } else if (this.outContractNo[i].inOutType == '贸易服务出库') {
  722. this.deptBudgetList.inOutTypeKey = 5
  723. } else if (this.detailData.inOutType == '采购出库') {
  724. this.deptBudgetList.inOutTypeKey = 6
  725. }
  726. this.dataList.goodsName = this.outContractNo[i].goodsName
  727. this.dataList.goodsNameKey = this.outContractNo[i].goodsNameKey
  728. if(this.outContractNo[i].tranCarInfoList){
  729. this.options2=this.outContractNo[i].tranCarInfoList
  730. this.tranCarInfoList=this.outContractNo[i].tranCarInfoList
  731. this.carstatus=true
  732. }
  733. }
  734. }
  735. },
  736. typeChange(e){
  737. },
  738. //提交按钮
  739. submit() {
  740. if (!this.dataList.goodsName) {
  741. this.$message({
  742. message: '货名不能为空',
  743. type: 'warning',
  744. })
  745. return
  746. }
  747. if (!this.dataList.grossWeight) {
  748. this.$message({
  749. message: '毛重不能为空',
  750. type: 'warning',
  751. })
  752. return
  753. }
  754. if (
  755. this.dataList.grossWeight <= 0 ||
  756. this.dataList.grossWeight > 200000 ||
  757. (String(this.dataList.grossWeight).indexOf('.') != -1 &&
  758. String(this.dataList.grossWeight).length -
  759. (String(this.dataList.grossWeight).indexOf('.') + 1) >
  760. 3)
  761. ) {
  762. this.$message({
  763. message: '毛重输入错误',
  764. type: 'warning',
  765. })
  766. return
  767. }
  768. if (
  769. this.dataList.tare < 0 ||
  770. this.dataList.tare > 200000 ||
  771. (String(this.dataList.tare).indexOf('.') != -1 &&
  772. String(this.dataList.tare).length -
  773. (String(this.dataList.tare).indexOf('.') + 1) >
  774. 3)
  775. ) {
  776. this.$message({
  777. message: '皮重输入错误',
  778. type: 'warning',
  779. })
  780. return
  781. }
  782. if (this.dataList.type=='潮粮'&&!this.dataList.buckleWeightRatio) {
  783. this.$message({
  784. message: '扣重比不能为空',
  785. type: 'warning'
  786. })
  787. return
  788. }
  789. if (
  790. this.dataList.type=='潮粮'&&this.dataList.buckleWeightRatio < 0 ||
  791. this.dataList.type=='潮粮'&&this.dataList.buckleWeightRatio > 3 ||
  792. (this.dataList.type=='潮粮'&&String(this.dataList.buckleWeightRatio).indexOf('.') != -1 &&
  793. String(this.dataList.buckleWeightRatio).length -
  794. (String(this.dataList.buckleWeightRatio).indexOf('.') + 1) >
  795. 2)
  796. ) {
  797. this.$message({
  798. message: '扣重比输入错误',
  799. type: 'warning'
  800. })
  801. return
  802. }
  803. if (this.dataList.type=='潮粮'&&!this.dataList.tidalGrainWater) {
  804. this.$message({
  805. message: '潮粮水分不能为空',
  806. type: 'warning'
  807. })
  808. return
  809. }
  810. if (
  811. this.dataList.type=='潮粮'&&this.dataList.tidalGrainWater < 1 ||
  812. this.dataList.type=='潮粮'&&this.dataList.tidalGrainWater > 40 ||
  813. (this.dataList.type=='潮粮'&&String(this.dataList.tidalGrainWater).indexOf('.') != -1 &&
  814. String(this.dataList.tidalGrainWater).length -
  815. (String(this.dataList.tidalGrainWater).indexOf('.') + 1) >
  816. 2)
  817. ) {
  818. this.$message({
  819. message: '潮粮水分输入错误',
  820. type: 'warning'
  821. })
  822. return
  823. }
  824. if (this.dataList.type=='潮粮'&&!this.dataList.solidGrainWater) {
  825. this.$message({
  826. message: '干粮水分不能为空',
  827. type: 'warning'
  828. })
  829. return
  830. }
  831. if (
  832. this.dataList.type=='潮粮'&&this.dataList.solidGrainWater < 1 ||
  833. this.dataList.type=='潮粮'&&this.dataList.solidGrainWater > 40 ||
  834. (this.dataList.type=='潮粮'&&String(this.dataList.solidGrainWater).indexOf('.') != -1 &&
  835. String(this.dataList.solidGrainWater).length -
  836. (String(this.dataList.solidGrainWater).indexOf('.') + 1) >
  837. 1)
  838. ) {
  839. this.$message({
  840. message: '干粮水分输入错误',
  841. type: 'warning'
  842. })
  843. return
  844. }
  845. if (!this.dataList.agent) {
  846. this.$message({
  847. message: '经办人不能为空',
  848. type: 'warning',
  849. })
  850. return
  851. }
  852. if (this.dataList.agent.length < 2 || this.dataList.agent.length > 10) {
  853. this.$message({
  854. message: '经办人输入有误',
  855. type: 'warning',
  856. })
  857. return
  858. }
  859. if (!this.dataList.grade) {
  860. this.$message({
  861. message: '品级不能为空!',
  862. type: 'warning',
  863. })
  864. return
  865. }
  866. if (!this.dataList.inOutDate) {
  867. this.$message({
  868. message: '入库日期不能为空!',
  869. type: 'warning',
  870. })
  871. return
  872. }
  873. if (!this.dataList.inOutType) {
  874. this.$message({
  875. message: '出库类型不能为空!',
  876. type: 'warning',
  877. })
  878. return
  879. }
  880. if (!this.dataList.carNo) {
  881. this.$message({
  882. message: '车牌号不能为空',
  883. type: 'warning',
  884. })
  885. return
  886. }
  887. if (this.dataList.carNo.length > 7) {
  888. this.$message({
  889. message: '车牌号输入错误,请输入7个字符之内',
  890. type: 'warning',
  891. })
  892. return
  893. }
  894. if (!this.dataList.contractNo) {
  895. this.$message({
  896. message: '合同编号不能为空',
  897. type: 'warning',
  898. })
  899. return
  900. }
  901. // if (
  902. // this.dataList.contractNo.length < 6 ||
  903. // this.dataList.contractNo.length > 20
  904. // ) {
  905. // this.$message({
  906. // message: '合同编号长度不符合要求,请输入6-20个字符之内',
  907. // type: 'warning',
  908. // })
  909. // return
  910. // }
  911. if (this.dataList.netWeight > this.$route.query.capacity) {
  912. this.$message({
  913. message: '入库量大于该仓库容量!',
  914. type: 'warning',
  915. })
  916. return
  917. }
  918. //自检员
  919. if (this.dataList.warehouseInOutDetail.qualityInspector) {
  920. if (
  921. this.dataList.warehouseInOutDetail.qualityInspector.length < 2 ||
  922. this.dataList.warehouseInOutDetail.qualityInspector.length > 10
  923. ) {
  924. this.$message({
  925. message: '质检员姓名长度错误!',
  926. type: 'warning',
  927. })
  928. return
  929. }
  930. }
  931. if (this.dataList.warehouseInOutDetail.waterContent) {
  932. if (isNaN(this.dataList.warehouseInOutDetail.waterContent)) {
  933. this.$message({
  934. message: '水分(%)非数字!',
  935. type: 'warning',
  936. })
  937. return
  938. }
  939. if (
  940. this.dataList.warehouseInOutDetail.waterContent < 1 ||
  941. this.dataList.warehouseInOutDetail.waterContent > 40 ||
  942. (String(this.dataList.warehouseInOutDetail.waterContent).indexOf(
  943. '.'
  944. ) != -1 &&
  945. String(this.dataList.warehouseInOutDetail.waterContent).length -
  946. (String(this.dataList.warehouseInOutDetail.waterContent).indexOf(
  947. '.'
  948. ) +
  949. 1) >
  950. 2)
  951. ) {
  952. this.$message({
  953. message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
  954. type: 'warning',
  955. })
  956. return
  957. }
  958. }
  959. //杂质
  960. if (this.dataList.warehouseInOutDetail.impurity) {
  961. if (isNaN(this.dataList.warehouseInOutDetail.impurity)) {
  962. this.$message({
  963. message: '杂质(%)非数字!',
  964. type: 'warning',
  965. })
  966. return
  967. }
  968. if (
  969. this.dataList.warehouseInOutDetail.impurity < 1 ||
  970. this.dataList.warehouseInOutDetail.impurity > 40 ||
  971. (String(this.dataList.warehouseInOutDetail.impurity).indexOf('.') !=
  972. -1 &&
  973. String(this.dataList.warehouseInOutDetail.impurity).length -
  974. (String(this.dataList.warehouseInOutDetail.impurity).indexOf(
  975. '.'
  976. ) +
  977. 1) >
  978. 2)
  979. ) {
  980. this.$message({
  981. message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
  982. type: 'warning',
  983. })
  984. return
  985. }
  986. }
  987. //霉变
  988. if (this.dataList.warehouseInOutDetail.mildewGrain) {
  989. if (isNaN(this.dataList.warehouseInOutDetail.mildewGrain)) {
  990. this.$message({
  991. message: '霉变粒(%)非数字!',
  992. type: 'warning',
  993. })
  994. return
  995. }
  996. if (
  997. this.dataList.warehouseInOutDetail.mildewGrain < 1 ||
  998. this.dataList.warehouseInOutDetail.mildewGrain > 40 ||
  999. (String(this.dataList.warehouseInOutDetail.mildewGrain).indexOf(
  1000. '.'
  1001. ) != -1 &&
  1002. String(this.dataList.warehouseInOutDetail.mildewGrain).length -
  1003. (String(this.dataList.warehouseInOutDetail.mildewGrain).indexOf(
  1004. '.'
  1005. ) +
  1006. 1) >
  1007. 2)
  1008. ) {
  1009. this.$message({
  1010. message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1011. type: 'warning',
  1012. })
  1013. return
  1014. }
  1015. }
  1016. //热损伤
  1017. if (this.dataList.warehouseInOutDetail.jiaorenli) {
  1018. if (isNaN(this.dataList.warehouseInOutDetail.jiaorenli)) {
  1019. this.$message({
  1020. message: '热损伤(%)非数字!',
  1021. type: 'warning',
  1022. })
  1023. return
  1024. }
  1025. if (
  1026. this.dataList.warehouseInOutDetail.jiaorenli < 1 ||
  1027. this.dataList.warehouseInOutDetail.jiaorenli > 40 ||
  1028. (String(this.dataList.warehouseInOutDetail.jiaorenli).indexOf('.') !=
  1029. -1 &&
  1030. String(this.dataList.warehouseInOutDetail.jiaorenli).length -
  1031. (String(this.dataList.warehouseInOutDetail.jiaorenli).indexOf(
  1032. '.'
  1033. ) +
  1034. 1) >
  1035. 2)
  1036. ) {
  1037. this.$message({
  1038. message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1039. type: 'warning',
  1040. })
  1041. return
  1042. }
  1043. }
  1044. //不完善粒(%)
  1045. if (this.dataList.warehouseInOutDetail.imperfectGrain) {
  1046. if (isNaN(this.dataList.warehouseInOutDetail.imperfectGrain)) {
  1047. this.$message({
  1048. message: '不完善粒(%)非数字!',
  1049. type: 'warning',
  1050. })
  1051. return
  1052. }
  1053. if (
  1054. this.dataList.warehouseInOutDetail.imperfectGrain < 1 ||
  1055. this.dataList.warehouseInOutDetail.imperfectGrain > 40 ||
  1056. (String(this.dataList.warehouseInOutDetail.imperfectGrain).indexOf(
  1057. '.'
  1058. ) != -1 &&
  1059. String(this.dataList.warehouseInOutDetail.imperfectGrain).length -
  1060. (String(
  1061. this.dataList.warehouseInOutDetail.imperfectGrain
  1062. ).indexOf('.') +
  1063. 1) >
  1064. 2)
  1065. ) {
  1066. this.$message({
  1067. message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1068. type: 'warning',
  1069. })
  1070. return
  1071. }
  1072. }
  1073. //容重
  1074. if (this.dataList.warehouseInOutDetail.bulkDensity) {
  1075. if (isNaN(this.dataList.warehouseInOutDetail.bulkDensity)) {
  1076. this.$message({
  1077. message: '容重(克/升)非数字!',
  1078. type: 'warning',
  1079. })
  1080. return
  1081. }
  1082. if (
  1083. (this.dataList.warehouseInOutDetail.bulkDensity &&
  1084. String(this.dataList.warehouseInOutDetail.bulkDensity).indexOf('.') != -1 &&
  1085. String(this.dataList.warehouseInOutDetail.bulkDensity).length -
  1086. (String(this.dataList.warehouseInOutDetail.bulkDensity).indexOf('.') + 1) >
  1087. 2) || this.dataList.warehouseInOutDetail.bulkDensity > 1000 || this.dataList.warehouseInOutDetail.bulkDensity < 0
  1088. ) {
  1089. this.$message({
  1090. message: '容重输入错误',
  1091. type: 'warning',
  1092. })
  1093. return
  1094. }
  1095. }
  1096. this.$confirm(`确定提交毛重检斤`, {
  1097. cancelButtonText: '取消',
  1098. confirmButtonText: '确定',
  1099. type: 'warning',
  1100. })
  1101. .then(() => {
  1102. this.$refs.dataList.validate((valid) => {
  1103. if (valid) {
  1104. this.dataList.compId = sessionStorage.getItem('ws-pf_compId')
  1105. this.dataList.secretaryWeigher = sessionStorage.getItem('ws-pf_staffName')
  1106. this.dataList.inOutFlag = 1
  1107. this.dataList.statusFlag = 3
  1108. this.dataList.grossWeight /= 1000
  1109. this.dataList.tare /= 1000
  1110. this.dataList.netWeight /= 1000
  1111. this.dataList.pureWeight /= 1000
  1112. this.dataList.deductionAmount *= 1000
  1113. this.dataList.deductionWeight /= 1000
  1114. addstorageputList(this.dataList)
  1115. .toPromise()
  1116. .then((response) => {
  1117. this.$message.success('提交成功')
  1118. this.$confirm(`是否打印磅单`, {
  1119. cancelButtonText: '取消',
  1120. confirmButtonText: '确定',
  1121. type: 'warning',
  1122. })
  1123. .then(() => {
  1124. getPrintInfo({
  1125. id: this.dataList.id
  1126. })
  1127. .toPromise()
  1128. .then((response) => {
  1129. window.open( '../../../../static/weightCheckInOut.html?type=2&tableData=' +JSON.stringify(response))
  1130. })
  1131. this.$router.push({ path: 'warehouseManagementList' })
  1132. })
  1133. .catch(() => {
  1134. return false
  1135. })
  1136. })
  1137. } else {
  1138. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1139. return false
  1140. }
  1141. })
  1142. })
  1143. .catch(() => {
  1144. return false
  1145. })
  1146. },
  1147. tarechange(e) {
  1148. if (this.dataList.grossWeight && this.dataList.tare) {
  1149. this.dataList.netWeight = Number(
  1150. this.dataList.grossWeight - this.dataList.tare
  1151. )
  1152. }
  1153. },
  1154. grossWeightchange(e) {
  1155. if (this.dataList.grossWeight && this.dataList.tare) {
  1156. this.dataList.netWeight = Number(
  1157. this.dataList.grossWeight - this.dataList.tare
  1158. )
  1159. }
  1160. },
  1161. selectgoodsName(e) {
  1162. for (var i = 0; i < this.goodnameList.length; i++) {
  1163. if (this.goodnameList[i].constValue == e) {
  1164. this.dataList.goodsNameKey = this.goodnameList[i].constKey
  1165. }
  1166. }
  1167. },
  1168. selectpackingMethod(e) {
  1169. for (var i = 0; i < this.packtypeList.length; i++) {
  1170. if (this.packtypeList[i].constValue == e) {
  1171. this.dataList.packingMethodKey = this.packtypeList[i].constKey
  1172. }
  1173. }
  1174. },
  1175. selectstorageType(e) {
  1176. for (var i = 0; i < this.deliveryType.length; i++) {
  1177. if (this.deliveryType[i].constValue == e) {
  1178. this.dataList.inOutTypeKey = this.deliveryType[i].constKey
  1179. }
  1180. }
  1181. },
  1182. handleClose() {
  1183. this.accessoryTFs = false
  1184. },
  1185. handleSizeChange(val) {
  1186. console.log(`每页 ${val} 条`)
  1187. this.pageSize = val
  1188. this.getList()
  1189. },
  1190. handleCurrentChange(val) {
  1191. this.currentPage = val
  1192. console.log(`当前页: ${val}`)
  1193. this.getList()
  1194. },
  1195. getList() {
  1196. // 货名
  1197. pullDown({ constId: 'CON2' })
  1198. .toPromise()
  1199. .then((response) => {
  1200. this.goodnameList = response
  1201. })
  1202. // 品级
  1203. pullDown({ constId: 'CON3' })
  1204. .toPromise()
  1205. .then((response) => {
  1206. this.gradeList = response
  1207. })
  1208. // 类型
  1209. if (this.$route.query.warehouseType == '1') {
  1210. pullDown({ constId: 'CON6' })
  1211. .toPromise()
  1212. .then((response) => {
  1213. this.deliveryType = response
  1214. })
  1215. } else if (this.$route.query.warehouseType == '2') {
  1216. //临时仓库出库类型
  1217. pullDown({ constId: 'WARE2' })
  1218. .toPromise()
  1219. .then((response) => {
  1220. this.deliveryType = response
  1221. })
  1222. }
  1223. //合同编号
  1224. xialaNo({ compId: sessionStorage.getItem('ws-pf_compId'),flag:5 })
  1225. .toPromise()
  1226. .then((response) => {
  1227. this.outContractNo = response
  1228. })
  1229. //经办人
  1230. getstaff({ compId: sessionStorage.getItem('ws-pf_compId'),warehouseId:this.dataList.baseId })
  1231. .toPromise()
  1232. .then((response) => {
  1233. this.options = response
  1234. this.qualityInspectorList = response
  1235. this.staffList = response
  1236. // this.agent = response
  1237. })
  1238. },
  1239. selecttaskType(e) {
  1240. for (var i = 0; i < this.taskTypeList.length; i++) {
  1241. if (this.taskTypeList[i].value == e) {
  1242. this.searchType = this.taskTypeList[i].type
  1243. }
  1244. }
  1245. },
  1246. fujian(row) {
  1247. if (
  1248. row.receiveAttachmentPath === null ||
  1249. row.receiveAttachmentPath === ''
  1250. ) {
  1251. EventBus.$emit(
  1252. 'warning',
  1253. this.$t('system.noticeCircular.NoInformation')
  1254. )
  1255. } else {
  1256. this.accessoryTFs = true
  1257. }
  1258. this.appendixIdss = row.receiveAttachmentPath
  1259. },
  1260. handleExamine(row) {
  1261. this.$router.push({
  1262. name: 'salesContractExamine',
  1263. query: { id: row.id },
  1264. })
  1265. },
  1266. // 关闭 dialog时 处理文件url 初始化upload组件
  1267. handleCloe() {
  1268. this.dialogViewSpareMoney = false
  1269. },
  1270. history(row) {
  1271. console.log(row)
  1272. billoperatehis({ id: row.id })
  1273. .toPromise()
  1274. .then((response) => {
  1275. this.historyList = response
  1276. })
  1277. },
  1278. //删除
  1279. approve() {},
  1280. listQuery() {},
  1281. total() {},
  1282. clearfiltQuery() {},
  1283. selectCrtDuty() {},
  1284. },
  1285. }
  1286. </script>
  1287. <style lang="scss" scoped>
  1288. /deep/.basicInformation {
  1289. .ws-info-table {
  1290. border: none;
  1291. }
  1292. .el-form-item {
  1293. width: 33.3333%;
  1294. border: none;
  1295. .el-form-item__label {
  1296. background: transparent;
  1297. border: none;
  1298. }
  1299. .el-form-item__content {
  1300. border: none;
  1301. }
  1302. }
  1303. }
  1304. .title {
  1305. position: relative;
  1306. padding-left: 10px;
  1307. }
  1308. .title::before {
  1309. content: '';
  1310. display: inline-block;
  1311. width: 5px;
  1312. height: 30px;
  1313. background: #5473e8;
  1314. position: absolute;
  1315. left: 0;
  1316. }
  1317. .el-form {
  1318. padding: 0 10%;
  1319. }
  1320. .el-button--primary {
  1321. background-color: #5878e8;
  1322. border-color: #5878e8;
  1323. }
  1324. .el-col {
  1325. background: #f6f7fc;
  1326. }
  1327. .bg-right {
  1328. text-align: right;
  1329. padding: 16px 20px;
  1330. }
  1331. .center {
  1332. position: relative;
  1333. top: 50px;
  1334. width: 40%;
  1335. height: 2000px;
  1336. margin: 0 auto;
  1337. }
  1338. /deep/.el-form-item__label {
  1339. width: 160px;
  1340. }
  1341. //选填
  1342. /deep/.el-form-item {
  1343. width: 50%;
  1344. }
  1345. .container {
  1346. overflow: scroll;
  1347. height: 120vh;
  1348. }
  1349. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1350. text-align: center;
  1351. }
  1352. .deliverydate {
  1353. display: inline-block;
  1354. width: 10%;
  1355. }
  1356. .center {
  1357. margin-top: -60px;
  1358. width: 80%;
  1359. }
  1360. //仓位
  1361. .position {
  1362. width: 52px;
  1363. height: 20px;
  1364. background: #afb5cb;
  1365. border-radius: 2px;
  1366. font-size: 12px;
  1367. font-family: PingFangSC-Medium, PingFang SC;
  1368. color: #ffffff;
  1369. line-height: 20px;
  1370. }
  1371. //表格文字
  1372. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1373. text-align: left;
  1374. font-size: 14px;
  1375. font-family: PingFangSC-Regular, PingFang SC;
  1376. font-weight: 400;
  1377. color: #8890b1;
  1378. line-height: 16px;
  1379. }
  1380. .inspector {
  1381. width: 50%;
  1382. }
  1383. //质检员
  1384. .inspector .el-form-item__content {
  1385. text-align: left;
  1386. margin-left: 0px;
  1387. }
  1388. /deep/[data-v-d228e17e] .el-form-item__label {
  1389. width: 60px;
  1390. }
  1391. .small-title {
  1392. position: relative;
  1393. padding: 10px;
  1394. font-weight: 600;
  1395. }
  1396. .small-title::before {
  1397. position: absolute;
  1398. content: '';
  1399. display: block;
  1400. background: #5473e8;
  1401. width: 4px;
  1402. height: 14px;
  1403. left: 0px;
  1404. top: 13px;
  1405. }
  1406. //下面列表
  1407. .neifor {
  1408. width: 80%;
  1409. background-color: #f6f7fc;
  1410. }
  1411. /deep/.neifor .ws-info-table .el-form-item .el-form-item__label {
  1412. width: 35%;
  1413. text-align: center;
  1414. }
  1415. /deep/.neifor .ws-info-table .el-form-item .el-form-item__content {
  1416. width: 60%;
  1417. background-color: #f6f7fc;
  1418. }
  1419. /deep/.neifor .el-input--small .el-input__inner {
  1420. width: 100%;
  1421. }
  1422. .el-input__inner {
  1423. width: 150px;
  1424. }
  1425. </style>