warehouseManagementAdd.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868
  1. <template>
  2. <div class="container">
  3. <el-row>
  4. <el-col :span="12">
  5. <h2 class="bg-left title">创建仓库</h2>
  6. </el-col>
  7. <el-col :span="12" class="bg-right">
  8. <el-button
  9. class="bg-bottom"
  10. type="primary"
  11. size="small"
  12. @click="returnsales()"
  13. ><img
  14. width="6"
  15. height="10"
  16. style="vertical-align: bottom; margin-right: 3px"
  17. src="../../../public/img/lujing.png"
  18. alt=""
  19. />返回</el-button
  20. >
  21. </el-col>
  22. </el-row>
  23. <ws-form
  24. class="position"
  25. ref="deptBudgetList"
  26. :rules="rules"
  27. :model="deptBudgetList"
  28. ><div class="small-title">基本信息</div>
  29. <ws-info-table>
  30. <!--仓库名称-->
  31. <ws-form-item label="仓库名称" span="1" prop="warehouseName">
  32. <ws-input
  33. v-model="deptBudgetList.warehouseName"
  34. placeholder="请输入仓库名"
  35. maxlength="20"
  36. size="small"
  37. />
  38. </ws-form-item>
  39. <!--负责人-->
  40. <ws-form-item
  41. label="负责人"
  42. span="1"
  43. prop="personCharge"
  44. class="readonly"
  45. >
  46. <ws-input
  47. v-model="deptBudgetList.personCharge"
  48. placeholder="请输入负责人姓名"
  49. maxlength="100"
  50. size="small"
  51. />
  52. </ws-form-item>
  53. <!--负责人电话-->
  54. <ws-form-item label="负责人电话" span="1" prop="personPhone">
  55. <ws-input
  56. v-model="deptBudgetList.personPhone"
  57. placeholder="请输入负责人手机号码"
  58. maxlength="100"
  59. size="small"
  60. />
  61. </ws-form-item>
  62. <!--仓库所在地-->
  63. <ws-form-item label="仓库所在地" span="1" prop="acceptanceMethod">
  64. <el-cascader
  65. :options="options_"
  66. v-model="selectedOptions"
  67. clearable
  68. size="large"
  69. placeholder="请选择仓库所在地"
  70. style="width: 200%"
  71. @change="handleChange"
  72. />
  73. </ws-form-item>
  74. <!--详细地址-->
  75. <ws-form-item
  76. label="详细地址"
  77. span="1"
  78. prop="detailedAddress"
  79. class="readonly"
  80. >
  81. <ws-input
  82. v-model="deptBudgetList.detailedAddress"
  83. placeholder="请输入详细地址"
  84. maxlength="100"
  85. size="small"
  86. />
  87. </ws-form-item>
  88. <!--总吨量(吨)-->
  89. <ws-form-item label="总吨量(吨)" span="1" prop="settlementMethod">
  90. <ws-input
  91. class="totalStorage"
  92. :readonly="true"
  93. v-model="totalStorage"
  94. maxlength="100"
  95. size="small"
  96. />
  97. </ws-form-item>
  98. <div
  99. style="width: 100%"
  100. class="flex position"
  101. v-for="(item, index) in freightspace"
  102. >
  103. <ws-form-item
  104. label="仓位编号"
  105. span="1"
  106. prop="contractNo"
  107. class="readonly"
  108. >
  109. <ws-input
  110. v-model="item.binNumber"
  111. placeholder="请输入仓位编号"
  112. maxlength="20"
  113. size="small"
  114. />
  115. </ws-form-item>
  116. <ws-form-item label="仓位储量(吨)" span="1" prop="contractNo">
  117. <ws-input
  118. v-model="item.maxStorage"
  119. placeholder="请输入仓位最大容量"
  120. maxlength="100"
  121. size="small"
  122. />
  123. </ws-form-item>
  124. <!--备注(选项)-->
  125. <ws-form-item label="备注(选项)" span="1" prop="placeDelivery">
  126. <ws-input
  127. v-model="item.remark"
  128. placeholder="请输入交货地"
  129. maxlength="20"
  130. size="small"
  131. />
  132. </ws-form-item>
  133. <img
  134. width="22"
  135. height="22"
  136. class="add"
  137. @click="add"
  138. src="../../../public/img/add.png"
  139. alt=""
  140. />
  141. <img
  142. width="22"
  143. height="22"
  144. class="del"
  145. @click="del(index)"
  146. src="../../../public/img/del.png"
  147. alt=""
  148. />
  149. </div>
  150. </ws-info-table>
  151. </ws-form>
  152. <ws-form ref="deptBudgetList" :model="deptBudgetList">
  153. <div class="small-title">上传仓库照片</div>
  154. <ws-upload
  155. ref="upload"
  156. table-name="maintain_work_order"
  157. oss-key="mainPlan"
  158. :comp-id="compId"
  159. :appendix-ids="appendixIdsAdd"
  160. :vesselId="deptBudgetList.addressUrl"
  161. :size-limit="size"
  162. @uploadSuccess="uploadSuccess"
  163. @onChange="onChange"
  164. accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar"
  165. />
  166. <div style="margin-bottom: 5px" class="small-title">仓库定位</div>
  167. <map-drag @marker="marker" @selectedAddress="selectedAddress"></map-drag>
  168. </ws-form>
  169. <!-- 提交 -->
  170. <div style="text-align: right; padding: 10px" class="center">
  171. <el-button
  172. class="bg-bottom"
  173. type="primary"
  174. size="small"
  175. @click="submit(deptBudgetList)"
  176. >提交</el-button
  177. >
  178. </div>
  179. </div>
  180. </template>
  181. <script>
  182. // import { getVesselOne } from '@/model/procurement/basic'
  183. // import { dayjs } from 'base-core-lib'
  184. import { regionData, CodeToText, TextToCode } from 'element-china-area-data'
  185. import { addList, addxiala, editxiala, delxiala } from '@/model/warehouse/index'
  186. import WsUpload from '@/components/WsUpload'
  187. import mapDrag from '@/components/mapdrag/mapdrag'
  188. export default {
  189. name: 'viewSpareMoney',
  190. components: {
  191. WsUpload,
  192. mapDrag,
  193. },
  194. watch: {
  195. vesselId(val) {
  196. this.getVesselData()
  197. },
  198. isShow(val) {
  199. this.showType = val
  200. },
  201. },
  202. data() {
  203. let self = this
  204. return {
  205. deptBudgetList: {
  206. totalStorage: 0,
  207. },
  208. options_: regionData,
  209. heightData: '600px',
  210. zoom: 7,
  211. selectedOptions: [],
  212. center: [116.244694, 39.517344],
  213. window: '',
  214. polygons: [
  215. {
  216. pName: 'Geolocation', //定位
  217. events: {
  218. init(o) {
  219. // o 是高德地图定位插件实例
  220. o.getCurrentPosition((status, result) => {
  221. if (result && result.position) {
  222. self.lng = result.position.lng //设置经度
  223. self.lat = result.position.lat //设置维度
  224. self.center = [self.lng, self.lat] //设置坐标
  225. self.loaded = true //load
  226. self.$nextTick() //页面渲染好后
  227. }
  228. })
  229. },
  230. },
  231. },
  232. ],
  233. district: null,
  234. listDate: { country: '中国', level: 'country', city: '' },
  235. citylist: [],
  236. compId: sessionStorage.getItem('ws-pf_compId'),
  237. rules: {
  238. warehouseName: [
  239. {
  240. required: true,
  241. message: '请输入仓库名称',
  242. trigger: 'blur',
  243. },
  244. {
  245. min: 2,
  246. max: 20,
  247. message: '仓库名长度不符合要求,请输入2-20字符之内',
  248. trigger: 'blur',
  249. },
  250. ],
  251. },
  252. appendixIdsAdd: '',
  253. size: 10,
  254. value1: '',
  255. unitList: [],
  256. freightspace: [{ binNumber: '', maxStorage: '', remark: '' }],
  257. name: '',
  258. list: [],
  259. }
  260. },
  261. activated() {},
  262. computed: {
  263. totalStorage: function () {
  264. var maxStorage = 0
  265. for (var i = 0; i < this.freightspace.length; i++) {
  266. maxStorage += Number(this.freightspace[i].maxStorage)
  267. }
  268. return maxStorage
  269. },
  270. },
  271. methods: {
  272. marker: function (item) {
  273. this.deptBudgetList.warehousePositioning =
  274. item.lnglat.lat + ',' + item.lnglat.lng
  275. },
  276. selectedAddress(e) {
  277. this.deptBudgetList.warehousePositioning =
  278. e.center.lat + ',' + e.center.lng
  279. },
  280. confirmPositioncity() {
  281. this.listDate.level = 'city'
  282. this.listDate.country = this.name
  283. },
  284. // 关闭 dialog时 处理文件url 初始化upload组件
  285. handleClose() {
  286. this.dialogViewSpareMoney = false
  287. },
  288. add() {
  289. this.freightspace.push({
  290. binNumber: '',
  291. maxStorage: '',
  292. remark: '',
  293. })
  294. },
  295. del(index) {
  296. if (this.freightspace.length > 1) {
  297. this.freightspace.splice(index, 1)
  298. }
  299. },
  300. handleChange(value) {
  301. this.selectedOptions = value
  302. },
  303. returnsales() {
  304. this.$router.push({ path: 'warehouseManagementList' })
  305. },
  306. // confirmPosition() {
  307. // this.draggable = false
  308. // },
  309. // 上传附件
  310. uploadSuccess(data, files, url) {
  311. console.log(data, files, url)
  312. // this.deptBudgetList.
  313. // this.formData.append('files', files)
  314. // this.feedbackObj.uploadNameAttachment = data.appendixName
  315. // this.feedbackObj.pathUploadAttachment = data.appendixPath
  316. // // this.newAppendixs = files
  317. // this.onChangeFlag = true
  318. },
  319. onChange(files) {
  320. this.fileNum = files
  321. this.$refs.upload.handleSaveBill().then((res) => {
  322. console.log(files)
  323. })
  324. },
  325. submit() {
  326. console.log(this.deptBudgetList)
  327. if (!this.deptBudgetList.warehouseName) {
  328. this.$message({
  329. message: '仓库名称不能为空',
  330. type: 'warning',
  331. })
  332. return
  333. }
  334. if (
  335. this.deptBudgetList.warehouseName.length < 2 ||
  336. this.deptBudgetList.warehouseName.length > 20
  337. ) {
  338. this.$message({
  339. message: '仓库名称长度不符合要求,请控制在2-20字符之内',
  340. type: 'warning',
  341. })
  342. return
  343. }
  344. if (
  345. this.deptBudgetList.personCharge.length < 2 ||
  346. this.deptBudgetList.personCharge.length > 10
  347. ) {
  348. this.$message({
  349. message: '负责人长度不符合要求,请控制在2-10字符之内',
  350. type: 'warning',
  351. })
  352. return
  353. }
  354. if (this.deptBudgetList.personPhone.length > 11) {
  355. this.$message({
  356. message: '手机号输入有误',
  357. type: 'warning',
  358. })
  359. return
  360. }
  361. if (
  362. this.deptBudgetList.detailedAddress.length < 2 ||
  363. this.deptBudgetList.detailedAddress.length > 20
  364. ) {
  365. this.$message({
  366. message: '详细地址长度不符合要求,请控制在2-20字符之内',
  367. type: 'warning',
  368. })
  369. return
  370. }
  371. for (var i = 0; i < this.freightspace.length; i++) {
  372. for (var j = i + 1; j < this.freightspace.length; j++) {
  373. console.log(
  374. this.freightspace[i].binNumber,
  375. this.freightspace[j].binNumber
  376. )
  377. if (
  378. this.freightspace[i].binNumber == this.freightspace[j].binNumber
  379. ) {
  380. this.$message({
  381. message: '仓位编号重复',
  382. type: 'warning',
  383. })
  384. return
  385. }
  386. }
  387. }
  388. this.$confirm(`确定提交仓库信息?`, {
  389. confirmButtonText: '确定',
  390. cancelButtonText: '取消',
  391. type: 'warning',
  392. })
  393. .then(() => {
  394. this.$refs.deptBudgetList.validate((valid) => {
  395. if (valid) {
  396. this.deptBudgetList.compId = sessionStorage.getItem(
  397. 'ws-pf_compId'
  398. )
  399. this.deptBudgetList.warehousePrivate =
  400. CodeToText[this.selectedOptions[0]]
  401. this.deptBudgetList.warehouseCity =
  402. CodeToText[this.selectedOptions[1]]
  403. this.deptBudgetList.warehouseArea =
  404. CodeToText[this.selectedOptions[2]]
  405. this.deptBudgetList.warehousePositionInfoList = this.freightspace
  406. this.deptBudgetList.totalStorage = this.totalStorage
  407. addList(this.deptBudgetList)
  408. .toPromise()
  409. .then((response) => {
  410. this.$message.success('添加成功')
  411. this.$router.push({ path: 'warehouseManagementList' })
  412. })
  413. } else {
  414. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  415. return false
  416. }
  417. })
  418. })
  419. .catch(() => {
  420. return false
  421. })
  422. },
  423. resetForm(deptBudgetList) {
  424. this.$refs[deptBudgetList].resetFields()
  425. },
  426. saveClick(item, index) {
  427. console.log(item)
  428. if (Object.is(item.id, 1)) {
  429. return
  430. }
  431. if (Object.is(this.unitList[index].flag, 'delete')) {
  432. this.$set(this.unitList, index, { flag: 'check' })
  433. } else {
  434. this.$set(this.unitList, index, { flag: 'delete' })
  435. }
  436. if (!item.constValue) {
  437. this.unitList.splice(index, 1)
  438. return
  439. }
  440. if (item.flag == 'add') {
  441. item.constKey = Math.random() * 20
  442. this.trainingMethods.compId = sessionStorage.getItem('ws-pf_compId')
  443. this.trainingMethods.constKey = item.constKey
  444. this.trainingMethods.constCode = 'TYPEYAN'
  445. this.trainingMethods.constValue = item.constValue
  446. this.trainingMethods.id = item.id
  447. addxiala(this.trainingMethods)
  448. .toPromise()
  449. .then((response) => {
  450. this.getUnitList()
  451. })
  452. } else if (item.flag == 'check') {
  453. this.trainingMethods.compId = sessionStorage.getItem('ws-pf_compId')
  454. this.trainingMethods.constKey = item.constKey
  455. this.trainingMethods.constCode = 'TYPEYAN'
  456. this.trainingMethods.constValue = item.constValue
  457. this.trainingMethods.id = item.id
  458. editxiala(this.trainingMethods)
  459. .toPromise()
  460. .then((response) => {
  461. this.getUnitList()
  462. })
  463. }
  464. },
  465. // selectContract(val) {
  466. // let key = this.unitList.find((item) => item.constValue === val).constKey
  467. // this.pleaseChoose = val
  468. // },
  469. handleExamine() {},
  470. approve() {},
  471. // returnsales() {
  472. // this.$router.push({ path: 'purchaseContract' })
  473. // },
  474. selectChapterTwo(e) {
  475. for (var i = 0; i < this.ChapterTwoList.length; i++) {
  476. if (this.ChapterTwoList[i].constValue == e) {
  477. this.deptBudgetList.gradeKey = this.ChapterTwoList[i].constKey
  478. }
  479. }
  480. },
  481. selectunitList(e) {
  482. for (var i = 0; i < this.unitList.length; i++) {
  483. if (this.unitList[i].constValue == e) {
  484. this.deptBudgetList.acceptanceMethodKey = this.unitList[i].constKey
  485. }
  486. }
  487. },
  488. selectgrade(e) {
  489. for (var i = 0; i < this.gradeList.length; i++) {
  490. if (this.gradeList[i].constValue == e) {
  491. this.deptBudgetList.gradeKey = this.gradeList[i].constKey
  492. }
  493. }
  494. },
  495. selectgoodsName(e) {
  496. for (var i = 0; i < this.goodnameList.length; i++) {
  497. if (this.goodnameList[i].constValue == e) {
  498. this.deptBudgetList.goodsNameKey = this.goodnameList[i].constKey
  499. }
  500. }
  501. },
  502. selectpackingMethod(e) {
  503. for (var i = 0; i < this.packtypeList.length; i++) {
  504. if (this.packtypeList[i].constValue == e) {
  505. this.deptBudgetList.packingMethodKey = this.packtypeList[i].constKey
  506. }
  507. }
  508. },
  509. // 编辑
  510. editClick(item, index) {
  511. const map = JSON.parse(JSON.stringify(item))
  512. if (Object.is(item.id, 1)) {
  513. return
  514. }
  515. if (Object.is(this.unitList[index].flag, 'delete')) {
  516. map.flag = 'check'
  517. this.$set(this.unitList, index, map)
  518. } else {
  519. map.flag = 'delete'
  520. this.$set(this.unitList, index, map)
  521. }
  522. },
  523. // 删除
  524. deleteClick(item, index) {
  525. if (Object.is(item.constKey, 1)) {
  526. return
  527. }
  528. if (!item.constValue) {
  529. this.unitList.splice(index, 1)
  530. return
  531. }
  532. delxiala({ id: this.unitList[index].id })
  533. .toPromise()
  534. .then((response) => {
  535. this.getUnitList()
  536. this.pleaseChoose = ''
  537. })
  538. },
  539. },
  540. }
  541. </script>
  542. <style lang="scss" scoped>
  543. /deep/.totalStorage .el-input__inner {
  544. color: #afb5cb;
  545. background: #f5f7fa;
  546. }
  547. .small-title {
  548. position: relative;
  549. padding: 10px;
  550. font-weight: 600;
  551. }
  552. .small-title::before {
  553. position: absolute;
  554. content: '';
  555. display: block;
  556. background: #5473e8;
  557. width: 4px;
  558. height: 14px;
  559. left: 0px;
  560. top: 13px;
  561. }
  562. .position {
  563. position: relative;
  564. }
  565. .add,
  566. .del {
  567. position: absolute;
  568. right: -38px;
  569. top: 9px;
  570. cursor: pointer;
  571. }
  572. .del {
  573. right: -70px;
  574. }
  575. .amap-page-container {
  576. width: 300px;
  577. height: 300px;
  578. }
  579. .el-form {
  580. padding: 0 15%;
  581. }
  582. /deep/.ws-info-table .el-form-item {
  583. border-right: 1px solid transparent;
  584. border-bottom: 1px solid transparent;
  585. }
  586. .readonly {
  587. position: relative;
  588. }
  589. .readonly:after {
  590. content: '*';
  591. color: #ff2727;
  592. position: absolute;
  593. right: 8px;
  594. z-index: 10;
  595. top: 21%;
  596. font-size: 20px;
  597. }
  598. .title {
  599. position: relative;
  600. }
  601. .title::before {
  602. content: '';
  603. display: inline-block;
  604. width: 5px;
  605. height: 30px;
  606. background: #5473e8;
  607. position: absolute;
  608. left: 0;
  609. }
  610. .ws-info-table {
  611. border-left: 1px solid transparent;
  612. border-top: 1px solid transparent;
  613. }
  614. .el-button--primary {
  615. background-color: #5878e8;
  616. border-color: #5878e8;
  617. }
  618. .el-col {
  619. background: #f6f7fc;
  620. }
  621. /deep/.ws-info-table .el-form-item .el-form-item__content {
  622. padding: 0 25px;
  623. border-left: 1px solid transparent;
  624. background: #fff;
  625. }
  626. /deep/.ws-info-table .el-form-item .el-form-item__label {
  627. width: 100px;
  628. text-align: center;
  629. background: #fff;
  630. // border: 1px solid #cdd2dc;
  631. }
  632. .button-container {
  633. display: flex;
  634. flex-wrap: nowrap;
  635. justify-content: space-between;
  636. align-items: center;
  637. background-color: #fff;
  638. width: 100%;
  639. height: 50px;
  640. padding: 0 10px;
  641. & > div {
  642. margin-left: 10px;
  643. display: flex;
  644. flex-wrap: nowrap;
  645. flex-direction: row;
  646. & > span {
  647. line-height: 50px;
  648. }
  649. }
  650. /deep/.auditFlow-box {
  651. position: unset;
  652. margin-left: 10px;
  653. &/deep/.auditFlow-icon {
  654. width: auto;
  655. padding-right: 30px;
  656. }
  657. &/deep/.auditFlow-main {
  658. position: absolute;
  659. }
  660. }
  661. }
  662. .box-app {
  663. display: inline-block;
  664. float: left;
  665. margin-left: 30px;
  666. line-height: 50px;
  667. }
  668. /deep/.el-dialog {
  669. .el-form-item {
  670. margin-bottom: 0 !important;
  671. .el-input--medium {
  672. textarea {
  673. min-height: 100px !important;
  674. }
  675. }
  676. }
  677. }
  678. .collapse-bottom {
  679. margin-bottom: 20px;
  680. }
  681. .input-main .textarea .el-textarea__inner {
  682. width: 100%;
  683. z-index: 1;
  684. }
  685. .bg-left {
  686. padding-left: 30px;
  687. }
  688. .bg-right {
  689. padding-right: 10px;
  690. text-align: right;
  691. }
  692. .bg-bottom {
  693. margin: 15px 0px;
  694. }
  695. .wenzi {
  696. width: 900px;
  697. margin: 0 auto;
  698. }
  699. .wenzi h3 {
  700. display: inline-block;
  701. left: 10px;
  702. }
  703. .wenzi p {
  704. display: inline-block;
  705. }
  706. .center {
  707. width: 900px;
  708. margin: 0 auto;
  709. }
  710. .el-form-item {
  711. width: 50%;
  712. }
  713. .el-form-item__label {
  714. text-align: center;
  715. }
  716. .ce {
  717. width: 900px;
  718. margin: 0 auto;
  719. }
  720. /*.crt-main .textarea /deep/ .el-form-item__label {*/
  721. /* height: 82px;*/
  722. /*}*/
  723. // 控制select为只读的时候显示样式
  724. .hide-sel {
  725. .el-input__inner {
  726. border: 0px;
  727. }
  728. .el-icon-arrow-up {
  729. display: none;
  730. }
  731. .el-textarea__inner {
  732. background-color: #fff !important;
  733. border: 0;
  734. }
  735. .el-date-editor {
  736. i {
  737. display: none;
  738. }
  739. }
  740. .is-disabled {
  741. .el-input__inner:hover {
  742. background-color: #fff !important;
  743. border: 0;
  744. }
  745. color: #606266;
  746. .el-input__inner {
  747. background-color: #fff !important;
  748. border: 0;
  749. color: #606266;
  750. }
  751. .el-textarea__inner {
  752. background-color: #fff !important;
  753. border: 0;
  754. color: #606266;
  755. }
  756. }
  757. }
  758. // 控制select为只读的时候显示样式
  759. /deep/.ws-class-table-col {
  760. height: auto;
  761. padding: 0px 2px;
  762. /deep/.el-input__inner {
  763. padding: 0px 2px;
  764. }
  765. }
  766. /deep/.is-disabled {
  767. .el-input__prefix,
  768. .el-input__suffix {
  769. display: none;
  770. }
  771. .el-input__inner {
  772. background-color: #fff;
  773. border-color: #fff !important;
  774. color: #000 !important;
  775. font-size: 14px;
  776. cursor: text;
  777. padding: 0 !important;
  778. }
  779. }
  780. .winseaview-view {
  781. padding: 0 0 20px;
  782. }
  783. .container {
  784. overflow: scroll;
  785. height: 93vh;
  786. }
  787. .ws-info-table .el-form-item {
  788. width: 33.3333%;
  789. }
  790. .readonly:after {
  791. display: none;
  792. }
  793. .el-textarea__inner {
  794. display: none;
  795. }
  796. .el-form {
  797. margin-top: 50px;
  798. }
  799. .readonly {
  800. width: 16%;
  801. }
  802. .ws-info-table .el-form-item {
  803. width: 33.33%;
  804. }
  805. //去边框
  806. /deep/.el-form-item {
  807. border-right: 0px;
  808. border-bottom: 0px;
  809. }
  810. /deep/.ws-info-table {
  811. border-left: 0px;
  812. border-top: 0px;
  813. }
  814. .ws-info-table .el-form-item .el-form-item__content {
  815. border-right: 0px;
  816. border-bottom: 0px;
  817. border-left: 0px;
  818. border-top: 0px;
  819. }
  820. /deep/.ws-info-table .el-form-item {
  821. border-right: 0px;
  822. border-bottom: 0px;
  823. border-left: 0px;
  824. border-top: 0px;
  825. }
  826. /deep/.ws-info-table .el-form-item .el-form-item__content {
  827. background: #f5f7fa;
  828. border-radius: 4px;
  829. border: 1px solid #d8dce6;
  830. font-family: PingFangSC-Regular, PingFang SC;
  831. margin-bottom: 5px;
  832. background-color: #fff;
  833. font-size: 14px;
  834. font-weight: 400;
  835. color: #8890b1;
  836. line-height: 16px;
  837. }
  838. /deep/.ws-info-table .el-form-item .el-form-item__label {
  839. background-color: #fff;
  840. font-size: 14px;
  841. font-family: PingFangSC-Regular, PingFang SC;
  842. font-weight: 400;
  843. color: #8890b1;
  844. line-height: 16px;
  845. }
  846. /deep/.ws-info-table .el-form-item .el-form-item__content {
  847. border: 0px;
  848. }
  849. //地图
  850. // .position{
  851. // margin: 0 auto;
  852. // }
  853. </style>