tranManagementVehicleDispatching.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909
  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. 任务编号
  28. </h2>
  29. <ws-info-table>
  30. <!-- 任务编号 -->
  31. <ws-form-item label="任务编号" span="1" prop="grossWeight">
  32. <ws-input
  33. @input="grossWeightchange"
  34. v-model="deptBudgetList.grossWeight"
  35. placeholder="请输入任务编号"
  36. maxlength="20"
  37. size="small"
  38. />
  39. </ws-form-item>
  40. <!-- 货名 -->
  41. <ws-form-item label="货名" span="1">
  42. <ws-input
  43. @input="grossWeightchange"
  44. v-model="deptBudgetList.grossWeight"
  45. placeholder="请输入货名"
  46. maxlength="20"
  47. size="small"
  48. />
  49. </ws-form-item>
  50. <!--重量(吨)-->
  51. <ws-form-item
  52. label="重量(吨)"
  53. span="1"
  54. prop="tare"
  55. class="readonly"
  56. >
  57. <ws-input
  58. @input="tarechange"
  59. v-model="deptBudgetList.tare"
  60. placeholder="请输入重重"
  61. maxlength="100"
  62. size="small"
  63. />
  64. </ws-form-item>
  65. <!--发货地址-->
  66. <ws-form-item label="发货地址" span="1" prop="netWeight">
  67. <ws-input
  68. readonly="readonly"
  69. v-model="deptBudgetList.netWeight"
  70. placeholder="不可编辑,自动计算"
  71. maxlength="120"
  72. size="small"
  73. />
  74. </ws-form-item>
  75. <!--发货人-->
  76. <ws-form-item label="发货人" span="1" prop="agent">
  77. <ws-input
  78. v-model="deptBudgetList.agent"
  79. placeholder="请输入发货人姓名"
  80. maxlength="100"
  81. size="small"
  82. />
  83. </ws-form-item>
  84. <!--发货人电话-->
  85. <ws-form-item label="发货人电话" span="1" prop="agent">
  86. <ws-input
  87. v-model="deptBudgetList.agent"
  88. placeholder="请输入发货人电话"
  89. maxlength="100"
  90. size="small"
  91. />
  92. </ws-form-item>
  93. <!--收货地址-->
  94. <ws-form-item label="收货地址" span="1" prop="netWeight">
  95. <ws-input
  96. readonly="readonly"
  97. v-model="deptBudgetList.netWeight"
  98. placeholder="不可编辑,自动计算"
  99. maxlength="120"
  100. size="small"
  101. />
  102. </ws-form-item>
  103. <!--收货人-->
  104. <ws-form-item label="收货人" span="1" prop="agent">
  105. <ws-input
  106. v-model="deptBudgetList.agent"
  107. placeholder="请输入发货人"
  108. maxlength="100"
  109. size="small"
  110. />
  111. </ws-form-item>
  112. <!--收货人电话-->
  113. <ws-form-item label="收货人电话" span="1" prop="agent">
  114. <ws-input
  115. v-model="deptBudgetList.agent"
  116. placeholder="请输入收货人电话"
  117. maxlength="100"
  118. size="small"
  119. />
  120. </ws-form-item>
  121. <!--发货日期-->
  122. <ws-form-item
  123. label="发货日期"
  124. span="1"
  125. prop="inOutDate"
  126. class="deliverydate"
  127. >
  128. <ws-date-picker
  129. v-model="deptBudgetList.inOutDate"
  130. type="date"
  131. placeholder="请选择发货日期"
  132. value-format="yyyy-MM-dd"
  133. />
  134. </ws-form-item>
  135. <!--最晚发货日期-->
  136. <ws-form-item
  137. label="最晚发货日期"
  138. span="1"
  139. prop="inOutDate"
  140. class="deliverydate"
  141. >
  142. <ws-date-picker
  143. v-model="deptBudgetList.inOutDate"
  144. type="date"
  145. placeholder="请选择最晚发货日期"
  146. value-format="yyyy-MM-dd"
  147. />
  148. </ws-form-item>
  149. <!--合同编号-->
  150. <ws-form-item label="合同编号" span="1" prop="contractNo">
  151. <ws-input
  152. v-model="deptBudgetList.contractNo"
  153. placeholder="请输入合同编号"
  154. maxlength="100"
  155. size="small"
  156. />
  157. </ws-form-item>
  158. </ws-info-table>
  159. </div>
  160. <div class="small-title"><h2>派车</h2></div>
  161. <!-- <div class="inspector">
  162. <!--自检员-->
  163. <!-- <ws-form-item label="质检员" span="1" prop="qualityInspector">
  164. <ws-input
  165. v-model="deptBudgetList.warehouseInOutDetail.qualityInspector"
  166. placeholder="请输入质检员姓名"
  167. maxlength="120"
  168. size="small"
  169. />
  170. </ws-form-item>
  171. </div> -->
  172. <div class="neifor">
  173. <ws-info-table>
  174. <!--司机-->
  175. <ws-form-item label="司机" span="1" prop="waterContent">
  176. <ws-select
  177. v-model="deptBudgetList.waterContent"
  178. placeholder="请选择司机"
  179. @class="typeselect"
  180. @change="selectwaterContent"
  181. ></ws-select>
  182. </ws-form-item>
  183. <!--司机电话-->
  184. <ws-form-item label="司机电话" span="1" prop="impurity">
  185. <ws-select
  186. v-model="deptBudgetList.impurity"
  187. placeholder="请选择司机司机电话"
  188. ></ws-select>
  189. </ws-form-item>
  190. <!--车牌号-->
  191. <ws-form-item label="车牌号" span="1" prop="bulkDensity">
  192. <ws-input
  193. v-model="deptBudgetList.bulkDensity"
  194. placeholder=""
  195. maxlength="120"
  196. size="small"
  197. />
  198. </ws-form-item>
  199. <!--车型-->
  200. <ws-form-item label="车型" span="1" prop="mildewGrain">
  201. <ws-input
  202. v-model="deptBudgetList.mildewGrain"
  203. placeholder="请输入高栏"
  204. maxlength="120"
  205. size="small"
  206. />
  207. </ws-form-item>
  208. <!--车长-->
  209. <ws-form-item label="车长" span="1" prop="jiaorenli">
  210. <ws-input
  211. v-model="deptBudgetList.jiaorenli"
  212. placeholder="请输入车长"
  213. maxlength="120"
  214. size="small"
  215. />
  216. </ws-form-item>
  217. <!--载重吨-->
  218. <ws-form-item label="载重(吨)" span="1" prop="imperfectGrain">
  219. <ws-input
  220. v-model="deptBudgetList.warehouseInOutDetail.imperfectGrain"
  221. placeholder="请输入载重(吨)"
  222. maxlength="120"
  223. size="small"
  224. />
  225. </ws-form-item>
  226. </ws-info-table>
  227. <img
  228. width="22"
  229. height="22"
  230. class="del"
  231. @click="del(index)"
  232. src="../../../public/img/del.png"
  233. alt=""
  234. />
  235. </div>
  236. <el-button
  237. class="add"
  238. type="primary"
  239. size="small"
  240. @click="add1"
  241. >添加司机</el-button
  242. >
  243. <div style="text-align: right; padding: 10px">
  244. <el-button
  245. class="bg-bottom-up"
  246. type="primary"
  247. size="small"
  248. @click="submit()"
  249. >提交</el-button
  250. >
  251. </div>
  252. </ws-form>
  253. </div>
  254. </template>
  255. <script>
  256. import { pullDown, addstorageputList } from '@/model/warehouse/index'
  257. import Pagination from '@/components/Pagination'
  258. import WsUpload from '@/components/WsUpload'
  259. // import { dayjs, fmoney, EventBus } from 'base-core-lib'
  260. import { dayjs, EventBus } from 'base-core-lib'
  261. export default {
  262. name: 'viewSpareMoney',
  263. components: {
  264. WsUpload,
  265. Pagination,
  266. },
  267. watch: {
  268. // vesselId(val) {
  269. // this.getList()
  270. // },
  271. isShow(val) {
  272. this.showType = val
  273. },
  274. },
  275. data() {
  276. return {
  277. //弹出框
  278. dialogViewSpareMoney: false,
  279. dialogApproveFormVisible: false,
  280. // 船舶类型
  281. monetaryKey: null,
  282. // 表格显示数据
  283. tableDate: [],
  284. // 是否显示
  285. showType: true,
  286. // 年
  287. year: '',
  288. deptBudgetTotal: 0,
  289. currentPage: 1,
  290. pageSize: 10,
  291. searchType: 1,
  292. searchKeyWord: '',
  293. contractType: 2,
  294. startDate: null,
  295. endDate: null,
  296. goodnameList: {},
  297. // 提交类型
  298. submitType: true,
  299. storageType: [],
  300. readonly: true,
  301. appendixIdsAdd: '',
  302. uploadSuccess: {},
  303. onChange: {},
  304. gradeList: [],
  305. rules: {
  306. netWeight: [
  307. {
  308. required: true,
  309. type: 'number',
  310. message: '请输入活动名称',
  311. trigger: 'blur',
  312. },
  313. ],
  314. },
  315. size: 10,
  316. compId: sessionStorage.getItem('ws-pf_compId'),
  317. deptCircularPage: {},
  318. packtypeList: {},
  319. date: {
  320. year: dayjs().format('YYYY'),
  321. month: dayjs().format('MM'),
  322. },
  323. contractList: [],
  324. deptBudgetList: {
  325. warehouseInOutDetail: {},
  326. },
  327. historyList: [],
  328. pickerBeginDateBefore: {
  329. disabledDate: (time) => {
  330. return time.getTime() > Date.now()
  331. },
  332. },
  333. accessoryTFs: false,
  334. }
  335. },
  336. mounted() {
  337. this.deptBudgetList.baseId = this.$route.query.baseId
  338. this.deptBudgetList.positionId = this.$route.query.positionId
  339. this.deptBudgetList.warehouseName = this.$route.query.warehouseName
  340. this.deptBudgetList.binNumber = this.$route.query.binNumber
  341. this.getList()
  342. this.deptBudgetList.goodsName = '玉米'
  343. this.deptBudgetList.goodsNameKey = '1'
  344. this.deptBudgetList.grade = '一等品'
  345. this.deptBudgetList.gradeKey = '1'
  346. this.deptBudgetList.inOutType = '采购入库'
  347. this.deptBudgetList.inOutTypeKey = '1'
  348. },
  349. activated() {
  350. // //cg.viewBudget
  351. // //cg.viewSpareMoney
  352. // // this.getVesselData();
  353. // console.log(2222)
  354. // this.getList()
  355. // console.log(1111)
  356. // this.showType = this.isShow
  357. // this.getList(this.$route.query.baseId,)
  358. },
  359. methods: {
  360. //返回按钮
  361. revert() {
  362. this.$router.push({ path: 'tranManagementVehicle' })
  363. },
  364. del(index){
  365. if(this.freightspace.length > 1 ){
  366. this.freightspace.splice(index,1)
  367. }
  368. },
  369. //提交按钮
  370. submit() {
  371. if (!this.deptBudgetList.goodsName) {
  372. this.$message({
  373. message: '货名不能为空',
  374. type: 'warning',
  375. })
  376. return
  377. }
  378. if(!this.deptBudgetList.grossWeight){
  379. this.$message({
  380. message: '毛重不能为空',
  381. type: 'warning',
  382. })
  383. return
  384. }
  385. if (
  386. this.deptBudgetList.grossWeight < 0 ||
  387. this.deptBudgetList.grossWeight > 10000 ||
  388. (String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
  389. String(this.deptBudgetList.grossWeight).length -
  390. (String(this.deptBudgetList.grossWeight).indexOf('.') + 1) >
  391. 3)
  392. ) {
  393. this.$message({
  394. message: '毛重输入错误',
  395. type: 'warning',
  396. })
  397. return
  398. }
  399. if(!this.deptBudgetList.tare){
  400. this.$message({
  401. message: '皮重不能为空',
  402. type: 'warning',
  403. })
  404. return
  405. }
  406. if (
  407. this.deptBudgetList.tare < 0 ||
  408. this.deptBudgetList.tare > 10000 ||
  409. (String(this.deptBudgetList.tare).indexOf('.') != -1 &&
  410. String(this.deptBudgetList.tare).length -
  411. (String(this.deptBudgetList.tare).indexOf('.') + 1) >
  412. 3)
  413. ) {
  414. this.$message({
  415. message: '皮重输入错误',
  416. type: 'warning',
  417. })
  418. return
  419. }
  420. if(!this.deptBudgetList.agent){
  421. this.$message({
  422. message: '经办人不能为空',
  423. type: 'warning',
  424. })
  425. return
  426. }
  427. if (
  428. this.deptBudgetList.agent.length < 2 ||
  429. this.deptBudgetList.agent.length > 10
  430. ) {
  431. this.$message({
  432. message: '经办人输入有误',
  433. type: 'warning',
  434. })
  435. return
  436. }
  437. if(!this.deptBudgetList.carNo){
  438. this.$message({
  439. message: '车牌号不能为空',
  440. type: 'warning',
  441. })
  442. return
  443. }
  444. if (this.deptBudgetList.carNo.length > 7) {
  445. this.$message({
  446. message: '车牌号输入错误,请输入7个字符之内',
  447. type: 'warning',
  448. })
  449. return
  450. }
  451. if(!this.deptBudgetList.contractNo){
  452. this.$message({
  453. message: '合同编号不能为空',
  454. type: 'warning',
  455. })
  456. return
  457. }
  458. if (
  459. this.deptBudgetList.contractNo.length < 6 ||
  460. this.deptBudgetList.contractNo.length > 20
  461. ) {
  462. this.$message({
  463. message: '合同编号长度不符合要求,请输入6-20个字符之内',
  464. type: 'warning',
  465. })
  466. return
  467. }
  468. if(this.deptBudgetList.netWeight > this.$route.query.capacity){
  469. this.$message({
  470. message: '入库量大于该仓库容量!',
  471. type: 'warning',
  472. })
  473. return
  474. }
  475. this.$confirm(`确定提交入库信息`, {
  476. cancelButtonText: '取消',
  477. confirmButtonText: '确定',
  478. type: 'warning',
  479. })
  480. .then(() => {
  481. this.$refs.deptBudgetList.validate((valid) => {
  482. if (valid) {
  483. this.deptBudgetList.compId = sessionStorage.getItem(
  484. 'ws-pf_compId'
  485. )
  486. this.deptBudgetList.inOutFlag = 2
  487. this.deptBudgetList.statusFlag = 3
  488. addstorageputList(this.deptBudgetList)
  489. .toPromise()
  490. .then((response) => {
  491. this.$message.success('添加成功')
  492. this.$router.push({ path: 'warehouseManagementList' })
  493. })
  494. } else {
  495. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  496. return false
  497. }
  498. })
  499. })
  500. .catch(() => {
  501. return false
  502. })
  503. },
  504. temporaryStorage() {
  505. if (!this.deptBudgetList.goodsName) {
  506. this.$message({
  507. message: '货名不能为空',
  508. type: 'warning',
  509. })
  510. return
  511. }
  512. if(!this.deptBudgetList.grossWeight){
  513. this.$message({
  514. message: '毛重不能为空',
  515. type: 'warning',
  516. })
  517. return
  518. }
  519. if (
  520. this.deptBudgetList.grossWeight < 0 ||
  521. this.deptBudgetList.grossWeight > 10000 ||
  522. (String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
  523. String(this.deptBudgetList.grossWeight).length -
  524. (String(this.deptBudgetList.grossWeight).indexOf('.') + 1) >
  525. 3)
  526. ) {
  527. this.$message({
  528. message: '毛重输入错误',
  529. type: 'warning',
  530. })
  531. return
  532. }
  533. if(!this.deptBudgetList.tare){
  534. this.$message({
  535. message: '皮重不能为空',
  536. type: 'warning',
  537. })
  538. return
  539. }
  540. if (
  541. this.deptBudgetList.tare < 0 ||
  542. this.deptBudgetList.tare > 10000 ||
  543. (String(this.deptBudgetList.tare).indexOf('.') != -1 &&
  544. String(this.deptBudgetList.tare).length -
  545. (String(this.deptBudgetList.tare).indexOf('.') + 1) >
  546. 3)
  547. ) {
  548. this.$message({
  549. message: '皮重输入错误',
  550. type: 'warning',
  551. })
  552. return
  553. }
  554. if(!this.deptBudgetList.agent){
  555. this.$message({
  556. message: '经办人不能为空',
  557. type: 'warning',
  558. })
  559. return
  560. }
  561. if (
  562. this.deptBudgetList.agent.length < 2 ||
  563. this.deptBudgetList.agent.length > 10
  564. ) {
  565. this.$message({
  566. message: '经办人输入有误',
  567. type: 'warning',
  568. })
  569. return
  570. }
  571. if(!this.deptBudgetList.carNo){
  572. this.$message({
  573. message: '车牌号不能为空',
  574. type: 'warning',
  575. })
  576. return
  577. }
  578. if (this.deptBudgetList.carNo.length > 7) {
  579. this.$message({
  580. message: '车牌号输入错误,请输入7个字符之内',
  581. type: 'warning',
  582. })
  583. return
  584. }
  585. if(!this.deptBudgetList.contractNo){
  586. this.$message({
  587. message: '合同编号不能为空',
  588. type: 'warning',
  589. })
  590. return
  591. }
  592. if (
  593. this.deptBudgetList.contractNo.length < 6 ||
  594. this.deptBudgetList.contractNo.length > 20
  595. ) {
  596. this.$message({
  597. message: '合同编号长度不符合要求,请输入6-20个字符之内',
  598. type: 'warning',
  599. })
  600. return
  601. }
  602. if(this.deptBudgetList.netWeight > this.$route.query.capacity){
  603. this.$message({
  604. message: '入库量大于该仓库容量!',
  605. type: 'warning',
  606. })
  607. return
  608. }
  609. this.$confirm(`暂存后可在待完成页面查看,确定暂存`, {
  610. cancelButtonText: '取消',
  611. confirmButtonText: '确定',
  612. type: 'warning',
  613. })
  614. .then(() => {
  615. this.$refs.deptBudgetList.validate((valid) => {
  616. if (valid) {
  617. this.deptBudgetList.compId = sessionStorage.getItem(
  618. 'ws-pf_compId'
  619. )
  620. this.deptBudgetList.inOutFlag = 2
  621. this.deptBudgetList.statusFlag = 1
  622. addstorageputList(this.deptBudgetList)
  623. .toPromise()
  624. .then((response) => {
  625. this.$message.success('暂存成功')
  626. this.$router.push({ path: 'warehouseManagementList' })
  627. })
  628. } else {
  629. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  630. return false
  631. }
  632. })
  633. })
  634. .catch(() => {
  635. return false
  636. })
  637. },
  638. tarechange(e) {
  639. if (this.deptBudgetList.grossWeight && this.deptBudgetList.tare) {
  640. this.deptBudgetList.netWeight = Number(
  641. this.deptBudgetList.grossWeight - this.deptBudgetList.tare
  642. )
  643. }
  644. },
  645. grossWeightchange(e) {
  646. if (this.deptBudgetList.grossWeight && this.deptBudgetList.tare) {
  647. this.deptBudgetList.netWeight = Number(
  648. this.deptBudgetList.grossWeight - this.deptBudgetList.tare
  649. )
  650. }
  651. },
  652. selectgoodsName(e) {
  653. for (var i = 0; i < this.goodnameList.length; i++) {
  654. if (this.goodnameList[i].constValue == e) {
  655. this.deptBudgetList.goodsNameKey = this.goodnameList[i].constKey
  656. }
  657. }
  658. },
  659. selectpackingMethod(e) {
  660. for (var i = 0; i < this.packtypeList.length; i++) {
  661. if (this.packtypeList[i].constValue == e) {
  662. this.deptBudgetList.packingMethodKey = this.packtypeList[i].constKey
  663. }
  664. }
  665. },
  666. selectstorageType(e) {
  667. for (var i = 0; i < this.storageType.length; i++) {
  668. if (this.storageType[i].constValue == e) {
  669. this.deptBudgetList.inOutTypeKey = this.storageType[i].constKey
  670. }
  671. }
  672. },
  673. handleClose() {
  674. this.accessoryTFs = false
  675. },
  676. handleSizeChange(val) {
  677. console.log(`每页 ${val} 条`)
  678. this.pageSize = val
  679. this.getList()
  680. },
  681. handleCurrentChange(val) {
  682. this.currentPage = val
  683. console.log(`当前页: ${val}`)
  684. this.getList()
  685. },
  686. getList() {
  687. // 货名
  688. pullDown({ constId: 'CON2' })
  689. .toPromise()
  690. .then((response) => {
  691. this.goodnameList = response
  692. })
  693. // 品级
  694. pullDown({ constId: 'CON3' })
  695. .toPromise()
  696. .then((response) => {
  697. this.gradeList = response
  698. })
  699. // 类型
  700. pullDown({ constId: 'CON5' })
  701. .toPromise()
  702. .then((response) => {
  703. this.storageType = response
  704. })
  705. },
  706. selecttaskType(e) {
  707. for (var i = 0; i < this.taskTypeList.length; i++) {
  708. if (this.taskTypeList[i].value == e) {
  709. this.searchType = this.taskTypeList[i].type
  710. }
  711. }
  712. },
  713. fujian(row) {
  714. if (
  715. row.receiveAttachmentPath === null ||
  716. row.receiveAttachmentPath === ''
  717. ) {
  718. EventBus.$emit(
  719. 'warning',
  720. this.$t('system.noticeCircular.NoInformation')
  721. )
  722. } else {
  723. this.accessoryTFs = true
  724. }
  725. this.appendixIdss = row.receiveAttachmentPath
  726. },
  727. handleExamine(row) {
  728. this.$router.push({
  729. name: 'salesContractExamine',
  730. query: { id: row.id },
  731. })
  732. },
  733. // 关闭 dialog时 处理文件url 初始化upload组件
  734. // handleCloe() {
  735. // this.dialogViewSpareMoney = false
  736. // },
  737. // history(row) {
  738. // billoperatehis({ id: row.id })
  739. // .toPromise()
  740. // .then((response) => {
  741. // this.historyList = response
  742. // })
  743. // },
  744. // deletecontract(){},
  745. //删除
  746. approve() {},
  747. listQuery() {},
  748. },
  749. }
  750. </script>
  751. <style lang="scss" scoped>
  752. /deep/.basicInformation {
  753. .ws-info-table {
  754. border: none;
  755. }
  756. .el-form-item {
  757. width: 33.3333%;
  758. border: none;
  759. .el-form-item__label {
  760. background: transparent;
  761. border: none;
  762. }
  763. .el-form-item__content {
  764. border: none;
  765. }
  766. }
  767. }
  768. .title {
  769. position: relative;
  770. padding-left: 10px;
  771. }
  772. .title::before {
  773. content: '';
  774. display: inline-block;
  775. width: 5px;
  776. height: 30px;
  777. background: #5473e8;
  778. position: absolute;
  779. left: 0;
  780. }
  781. .el-form {
  782. padding: 0 10%;
  783. }
  784. .el-button--primary {
  785. background-color: #5878e8;
  786. border-color: #5878e8;
  787. }
  788. .el-col {
  789. background: #f6f7fc;
  790. }
  791. .bg-right {
  792. text-align: right;
  793. padding: 16px 20px;
  794. }
  795. .center {
  796. position: relative;
  797. top: 50px;
  798. width: 40%;
  799. height: 2000px;
  800. margin: 0 auto;
  801. }
  802. /deep/.el-form-item__label {
  803. width: 160px;
  804. }
  805. //选填
  806. /deep/.el-form-item {
  807. width: 50%;
  808. }
  809. .container {
  810. overflow: scroll;
  811. height: 120vh;
  812. }
  813. /deep/.ws-info-table .el-form-item .el-form-item__label {
  814. text-align: center;
  815. }
  816. .deliverydate {
  817. display: inline-block;
  818. width: 10%;
  819. }
  820. .center {
  821. margin-top: -60px;
  822. width: 80%;
  823. }
  824. //仓位
  825. .position{
  826. background: #AFB5CB;
  827. border-radius: 2px;
  828. font-size: 12px;
  829. color: #FFFFFF;
  830. line-height: 20px;
  831. display: inline-grid;
  832. padding: 2px 4px;
  833. }
  834. // .position {
  835. // width: 52px;
  836. // height: 20px;
  837. // background: #afb5cb;
  838. // border-radius: 2px;
  839. // font-size: 12px;
  840. // font-family: PingFangSC-Medium, PingFang SC;
  841. // color: #ffffff;
  842. // line-height: 20px;
  843. // }
  844. //表格文字
  845. /deep/.ws-info-table .el-form-item .el-form-item__label {
  846. text-align: left;
  847. font-size: 14px;
  848. font-family: PingFangSC-Regular, PingFang SC;
  849. font-weight: 400;
  850. color: #8890b1;
  851. line-height: 16px;
  852. }
  853. //质检员
  854. .inspector .el-form-item__content {
  855. text-align: left;
  856. margin-left: 0px;
  857. }
  858. .small-title {
  859. position: relative;
  860. padding: 10px;
  861. font-weight: 600;
  862. }
  863. .small-title::before {
  864. position: absolute;
  865. content: '';
  866. display: block;
  867. background: #5473e8;
  868. width: 4px;
  869. height: 14px;
  870. left: 0px;
  871. top: 13px;
  872. padding: 4px 2px;
  873. }
  874. //下面列表
  875. .neifor {
  876. width: 80%;
  877. background-color: #f6f7fc;
  878. }
  879. /deep/.neifor .ws-info-table .el-form-item .el-form-item__label {
  880. width: 35%;
  881. text-align: center;
  882. }
  883. /deep/.neifor .ws-info-table .el-form-item .el-form-item__content {
  884. width: 60%;
  885. background-color: #f6f7fc;
  886. }
  887. /deep/.neifor .el-input--small .el-input__inner{
  888. width: 100%;
  889. }
  890. .ws-info-table[data-v-850a44a6] .el-form-item {
  891. width: 16.66%;
  892. }
  893. </style>