warehouseManagementDelivery.vue 45 KB

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