priceConfirmationSheetAdd.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825
  1. <template>
  2. <div class="container">
  3. <el-row>
  4. <el-col :span="12">
  5. <h2 class="bg-left title">创建点价确认单(
  6. <template>
  7. <span v-if="this.$route.query.contractType == 1">期货销售合同</span>
  8. <span v-if="this.$route.query.contractType == 2">期货采购合同</span> </template>)
  9. </h2>
  10. </el-col>
  11. <el-col :span="12" class="bg-right">
  12. <el-button class="bg-bottom" type="primary" size="small" @click="returnsales()"><img width="6" height="10"
  13. style="vertion-align: bottom; margin-right: 3px" src="../../../public/img/lujing.png" alt="" />返回
  14. </el-button>
  15. </el-col>
  16. </el-row>
  17. <div class="wenzi">
  18. <h3>所属合同</h3>
  19. <p>
  20. &nbsp;&nbsp;<template>
  21. <span v-if="this.$route.query.contractType == '1'">销售合同</span>
  22. <span v-if="this.$route.query.contractType == '2'">采购合同</span>
  23. </template>(
  24. <template>{{ this.$route.query.contractNo }}</template>
  25. )
  26. </p>
  27. </div>
  28. <div class="center">
  29. <ws-form ref="deptBudgetList" :model="deptBudgetList">
  30. <!--基本信息-->
  31. <ws-info-table>
  32. <!--点价单编号-->
  33. <ws-form-item label="点价单编号" span="1" prop="priceListNo" class="readonly">
  34. <ws-input v-model="deptBudgetList.priceListNo" placeholder="请输入点价单编号" maxlength="20" size="small" />
  35. </ws-form-item>
  36. <!--品种合约及方向-->
  37. <ws-form-item label="品种合约及方向" span="1" prop="varietyContractDirection" class="readonly">
  38. <ws-input v-model="deptBudgetList.varietyContractDirection" placeholder="请输入品种合约及方向" maxlength="100"
  39. size="small" />
  40. </ws-form-item>
  41. <!--买方联络人-->
  42. <ws-form-item label="买方联络人" span="1" prop="buyer">
  43. <!-- <ws-input v-model="deptBudgetList.buyer" placeholder="请输入买方联络人" maxlength="120" size="small" /> -->
  44. <el-autocomplete class="inline-input" v-model="deptBudgetList.buyer" :fetch-suggestions="querySearch1"
  45. placeholder="请输入买方联络人" @select="handleSelect"></el-autocomplete>
  46. </ws-form-item>
  47. <!--成交数量-->
  48. <ws-form-item label="成交数量" span="1" prop="transactionsNumberHand" class="readonly">
  49. <ws-input @input="transactionsNumberHandChange" v-model="deptBudgetList.transactionsNumberHand"
  50. placeholder="请输入" maxlength="100" size="small" />
  51. &nbsp;&nbsp;&nbsp;手&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;即&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  52. <ws-input readonly="readonly" v-model="deptBudgetList.transactionsNumber" placeholder="自动计算" maxlength="100"
  53. size="small" />&nbsp;&nbsp;&nbsp;吨
  54. </ws-form-item>
  55. <!--买方联络人电话-->
  56. <ws-form-item label="买方联络人电话" span="1" prop="buyerPhone">
  57. <!-- <ws-input v-model="deptBudgetList.buyerPhone" placeholder="请输入买方联络人电话" maxlength="120" size="small" /> -->
  58. <el-autocomplete class="inline-input" v-model="deptBudgetList.buyerPhone" :fetch-suggestions="querySearch3"
  59. placeholder="买方联络人电话" @select="handleSelect"></el-autocomplete>
  60. </ws-form-item>
  61. <!--成交价格(元/吨)-->
  62. <ws-form-item label="成交价格(元/吨)" span="1" prop="transactionPrice">
  63. <ws-input v-model="deptBudgetList.transactionPrice" placeholder="请输入成交价格" maxlength="120" size="small" />
  64. </ws-form-item>
  65. <!--卖方联络人-->
  66. <ws-form-item label="卖方联络人" span="1" prop="seller">
  67. <!-- <ws-input v-model="deptBudgetList.seller" placeholder="请输入卖方联络人" maxlength="120" size="small" /> -->
  68. <el-autocomplete class="inline-input" v-model="deptBudgetList.seller" :fetch-suggestions="querySearch2"
  69. placeholder="请输入卖方名称" @select="handleSelect"></el-autocomplete>
  70. </ws-form-item>
  71. <!--成交日期-->
  72. <ws-form-item label="成交日期" span="1" prop="transactionDate">
  73. <ws-date-picker v-model="deptBudgetList.transactionDate" type="date" placeholder="请选择成交日期"
  74. value-format="yyyy-MM-dd" />
  75. </ws-form-item>
  76. <!--卖方联络人电话-->
  77. <ws-form-item label="卖方联络人电话" span="1" prop="sellerPhone">
  78. <!-- <ws-input v-model="deptBudgetList.sellerPhone" placeholder="请输入卖方联络人电话" maxlength="100" size="small" /> -->
  79. <el-autocomplete class="inline-input" v-model="deptBudgetList.sellerPhone" :fetch-suggestions="querySearch4"
  80. placeholder="请输入卖方电话" @select="handleSelect"></el-autocomplete>
  81. </ws-form-item>
  82. <!--备注-->
  83. <ws-form-item label="备注" span="1" prop="remarks">
  84. <ws-input v-model="deptBudgetList.remarks" placeholder="请输入备注,不超过200字" maxlength="120" size="small" />
  85. </ws-form-item>
  86. </ws-info-table>
  87. <ws-upload ref="upload" :comp-id="compId" :appendix-ids="deptBudgetList.addressUrl" @onChange="onChange"
  88. accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" />
  89. </ws-form>
  90. </div>
  91. <div style="text-align: right; padding: 10px" class="center">
  92. <el-button class="bg-bottom" type="primary" size="small" @click="submit()">提交</el-button>
  93. </div>
  94. </div>
  95. </template>
  96. <script>
  97. import {
  98. addPriceConfirmationSheet
  99. } from '@/model/contarct/index'
  100. import WsUpload from '@/components/WsUpload'
  101. import {
  102. regionData
  103. } from 'element-china-area-data'
  104. export default {
  105. name: 'viewSpareMoney',
  106. components: {
  107. WsUpload,
  108. },
  109. watch: {
  110. vesselId(val) {
  111. this.getVesselData()
  112. },
  113. isShow(val) {
  114. this.showType = val
  115. },
  116. },
  117. data() {
  118. return {
  119. restaurants1: [],
  120. restaurants2: [],
  121. restaurants3: [],
  122. restaurants4: [],
  123. //弹出框
  124. dialogViewSpareMoney: false,
  125. dialogApproveFormVisible: false,
  126. // 船舶类型
  127. monetaryKey: null,
  128. // 表格显示数据
  129. tableDate: [],
  130. // 是否显示
  131. showType: true,
  132. // 年
  133. year: '',
  134. options_: regionData,
  135. selectedOptions: [],
  136. appendixIdss: '',
  137. selectedOptions1: [],
  138. // 提交类型
  139. submitType: true,
  140. size: 10,
  141. unitList: [],
  142. enclosureTypeFlag: 0,
  143. priceConfirmationSheet: {
  144. contractNo: this.$route.query.contractNo,
  145. contractType: this.$route.query.contractType,
  146. varietyContractDirection: '',
  147. buyer: '',
  148. seller: '',
  149. sellerPhone: '',
  150. buyerPhone: '',
  151. // enclosureTypeFlag: 0,
  152. transactionsNumberHand: '',
  153. transactionsNumber: '',
  154. transactionPrice: '',
  155. transactionDate: '',
  156. remarks: '',
  157. priceListNo: '',
  158. addressUrl: '',
  159. },
  160. deptBudgetList: {},
  161. compId: localStorage.getItem('ws-pf_compId'),
  162. }
  163. },
  164. mounted() {
  165. this.restaurants1 = JSON.parse(localStorage.getItem('deptBudgetList_data1'));
  166. this.restaurants2 = JSON.parse(localStorage.getItem('deptBudgetList_data2'));
  167. this.restaurants3 = JSON.parse(localStorage.getItem('deptBudgetList_data3'));
  168. this.restaurants4 = JSON.parse(localStorage.getItem('deptBudgetList_data4'));
  169. if (!this.restaurants1) this.restaurants1 = [];
  170. if (!this.restaurants2) this.restaurants2 = [];
  171. if (!this.restaurants3) this.restaurants3 = [];
  172. if (!this.restaurants4) this.restaurants4 = [];
  173. },
  174. methods: {
  175. querySearch1(queryString, cb) {
  176. var restaurants1 = this.restaurants1;
  177. var results = queryString ? restaurants1.filter(this.createFilter(queryString)) : restaurants1;
  178. // 调用 callback 返回建议列表的数据
  179. cb(results);
  180. },
  181. querySearch2(queryString, cb) {
  182. var restaurants2 = this.restaurants2;
  183. var results = queryString ? restaurants2.filter(this.createFilter(queryString)) : restaurants2;
  184. // 调用 callback 返回建议列表的数据
  185. cb(results);
  186. },
  187. querySearch3(queryString, cb) {
  188. var restaurants3 = this.restaurants3;
  189. var results = queryString ? restaurants3.filter(this.createFilter(queryString)) : restaurants3;
  190. // 调用 callback 返回建议列表的数据
  191. cb(results);
  192. },
  193. querySearch4(queryString, cb) {
  194. var restaurants4 = this.restaurants4;
  195. var results = queryString ? restaurants4.filter(this.createFilter(queryString)) : restaurants4;
  196. // 调用 callback 返回建议列表的数据
  197. cb(results);
  198. },
  199. createFilter(queryString) {
  200. return (restaurant) => {
  201. return (restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
  202. };
  203. },
  204. handleSelect(item) {
  205. console.log(item);
  206. },
  207. // 关闭 dialog时 处理文件url 初始化upload组件
  208. handleClose() {
  209. this.dialogViewSpareMoney = false
  210. },
  211. handleChange(value) {
  212. this.selectedOptions = value
  213. },
  214. handleChange1(value) {
  215. this.selectedOptions1 = value
  216. },
  217. returnsales() {
  218. this.priceConfirmationSheet = {}
  219. this.deptBudgetList = {}
  220. this.$router.push({
  221. path: 'priceConfirmationSheet',
  222. query: {
  223. contractNo: this.$route.query.contractNo,
  224. contractType: this.$route.query.contractType
  225. }
  226. })
  227. },
  228. onChange() {
  229. this.$refs.upload
  230. .handleSaveBill()
  231. .then(async response => {
  232. this.deptBudgetList.addressUrl = response
  233. })
  234. .catch(res => {
  235. EventBus.$emit('error', (JSON.parse(res) || {}).message)
  236. this.$refs.upload.clearFiles()
  237. })
  238. },
  239. //计算成交数量(吨)
  240. transactionsNumberHandChange(e) {
  241. this.deptBudgetList.transactionsNumber = e * 10
  242. },
  243. submit() {
  244. if (!this.deptBudgetList.priceListNo) {
  245. this.$message({
  246. message: '点价单编号不能为空!',
  247. type: 'warning',
  248. })
  249. return
  250. }
  251. if (
  252. this.deptBudgetList.priceListNo.length < 1 ||
  253. this.deptBudgetList.priceListNo.length > 20
  254. ) {
  255. this.$message({
  256. message: '点价单编号输入错误!',
  257. type: 'warning',
  258. })
  259. return
  260. }
  261. if (!this.deptBudgetList.varietyContractDirection) {
  262. this.$message({
  263. message: '品种合约及方向不能为空!',
  264. type: 'warning',
  265. })
  266. return
  267. }
  268. if (
  269. this.deptBudgetList.varietyContractDirection.length < 1 ||
  270. this.deptBudgetList.varietyContractDirection.length > 20
  271. ) {
  272. this.$message({
  273. message: '品种合约及方向输入错误!',
  274. type: 'warning',
  275. })
  276. return
  277. }
  278. if (!this.deptBudgetList.buyer) {
  279. this.$message({
  280. message: '买方联络人不能为空!',
  281. type: 'warning',
  282. })
  283. return
  284. }
  285. if (
  286. this.deptBudgetList.buyer.length < 2 ||
  287. this.deptBudgetList.buyer.length > 20
  288. ) {
  289. this.$message({
  290. message: '买方联络人姓名输入错误!',
  291. type: 'warning',
  292. })
  293. return
  294. }
  295. if (!this.deptBudgetList.buyerPhone) {
  296. this.$message({
  297. message: '买方联络人电话不能为空!',
  298. type: 'warning',
  299. })
  300. return
  301. }
  302. if (isNaN(this.deptBudgetList.buyerPhone)) {
  303. this.$message({
  304. message: '卖方联络人电话输入有误!',
  305. type: 'warning',
  306. })
  307. return
  308. }
  309. if (!this.deptBudgetList.seller) {
  310. this.$message({
  311. message: '卖方联络人不能为空!',
  312. type: 'warning',
  313. })
  314. return
  315. }
  316. if (!this.deptBudgetList.sellerPhone) {
  317. this.$message({
  318. message: '卖方联络人电话不能为空!',
  319. type: 'warning',
  320. })
  321. return
  322. }
  323. if (isNaN(this.deptBudgetList.sellerPhone)) {
  324. this.$message({
  325. message: '卖方联络人电话输入有误!',
  326. type: 'warning',
  327. })
  328. return
  329. }
  330. if (!this.deptBudgetList.transactionsNumberHand) {
  331. this.$message({
  332. message: '成交数量不能为空!',
  333. type: 'warning',
  334. })
  335. return
  336. }
  337. if (
  338. isNaN(this.deptBudgetList.transactionsNumberHand) ||
  339. (String(this.deptBudgetList.transactionsNumberHand).indexOf('.') !=
  340. -1 &&
  341. String(this.deptBudgetList.transactionsNumberHand).length -
  342. (String(this.deptBudgetList.transactionsNumberHand).indexOf('.') +
  343. 1) >
  344. 2) ||
  345. this.deptBudgetList.transactionsNumberHand < 1 ||
  346. this.deptBudgetList.transactionsNumberHand > 10000
  347. ) {
  348. this.$message({
  349. message: '输入成交数量有误!',
  350. type: 'warning',
  351. })
  352. return
  353. }
  354. if (
  355. this.deptBudgetList.transactionPrice < 0 ||
  356. this.deptBudgetList.transactionPrice > 100000000 ||
  357. (String(this.deptBudgetList.transactionPrice).indexOf('.') != -1 &&
  358. String(this.deptBudgetList.transactionPrice).length -
  359. (String(this.deptBudgetList.transactionPrice).indexOf('.') + 1) >
  360. 2)
  361. ) {
  362. this.$message({
  363. message: '成交价格输入错误',
  364. type: 'warning',
  365. })
  366. return
  367. }
  368. if (this.deptBudgetList.transactionPrice) {
  369. if (isNaN(this.deptBudgetList.transactionPrice)) {
  370. this.$message({
  371. message: '成交价格输入错误!',
  372. type: 'warning',
  373. })
  374. return
  375. }
  376. }
  377. if (!this.deptBudgetList.transactionPrice) {
  378. this.$message({
  379. message: '成交价格不能为空!',
  380. type: 'warning',
  381. })
  382. return
  383. }
  384. if (!this.deptBudgetList.transactionDate) {
  385. this.$message({
  386. message: '成交日期不能为空!',
  387. type: 'warning',
  388. })
  389. return
  390. }
  391. this.deptBudgetList.contractType = this.$route.query.contractType,
  392. this.deptBudgetList.contractNo = this.$route.query.contractNo,
  393. this.priceConfirmationSheet = this.deptBudgetList
  394. this.$confirm(`确定提交确认单信息`, {
  395. cancelButtonText: '取消',
  396. confirmButtonText: '确定',
  397. type: 'warning',
  398. })
  399. .then(() => {
  400. addPriceConfirmationSheet(this.priceConfirmationSheet)
  401. .toPromise()
  402. .then((response) => {
  403. // 存储买方、卖方、买方电话、卖方电话
  404. let _data = {
  405. byer: this.deptBudgetList.buyer,
  406. seller: this.deptBudgetList.seller,
  407. buyerPhone: this.deptBudgetList.buyerPhone,
  408. sellerPhone: this.deptBudgetList.sellerPhone
  409. }
  410. if (this.restaurants1.length <= 20) {
  411. this.restaurants1 = this.restaurants1.filter(function(val) {
  412. if (val.value != _data.byer) {
  413. return val
  414. }
  415. })
  416. this.restaurants1.unshift({
  417. value: _data.byer
  418. })
  419. } else {
  420. this.restaurants1.unshift({
  421. value: _data.byer
  422. }).pop({
  423. value: _data.byer
  424. })
  425. }
  426. localStorage.setItem('deptBudgetList_data1', JSON.stringify(this.restaurants1));
  427. if (this.restaurants2.length <= 20) {
  428. this.restaurants2 = this.restaurants2.filter(function(val) {
  429. if (val.value != _data.seller) {
  430. return val
  431. }
  432. })
  433. this.restaurants2.unshift({
  434. value: _data.seller
  435. })
  436. } else {
  437. this.restaurants2.unshift({
  438. value: _data.seller
  439. }).pop({
  440. value: _data.seller
  441. })
  442. }
  443. localStorage.setItem('deptBudgetList_data2', JSON.stringify(this.restaurants2));
  444. if (this.restaurants2.length <= 20) {
  445. this.restaurants3 = this.restaurants3.filter(function(val) {
  446. if (val.value != _data.buyerPhone) {
  447. return val
  448. }
  449. })
  450. this.restaurants3.unshift({
  451. value: _data.buyerPhone
  452. })
  453. } else {
  454. this.restaurants3.unshift({
  455. value: _data.buyerPhone
  456. }).pop({
  457. value: _data.buyerPhone
  458. })
  459. }
  460. localStorage.setItem('deptBudgetList_data3', JSON.stringify(this.restaurants3));
  461. if (this.restaurants4.length <= 20) {
  462. this.restaurants4 = this.restaurants3.filter(function(val) {
  463. if (val.value != _data.sellerPhone) {
  464. return val
  465. }
  466. })
  467. this.restaurants4.unshift({
  468. value: _data.sellerPhone
  469. })
  470. } else {
  471. this.restaurants4.unshift({
  472. value: _data.sellerPhone
  473. }).pop({
  474. value: _data.sellerPhone
  475. })
  476. }
  477. localStorage.setItem('deptBudgetList_data4', JSON.stringify(this.restaurants4));
  478. this.$message.success('添加成功')
  479. this.deptBudgetList = {}
  480. this.priceConfirmationSheet = {}
  481. this.$router.push({
  482. path: 'priceConfirmationSheet',
  483. query: {
  484. contractNo: this.$route.query.contractNo,
  485. contractType: this.$route.query.contractType
  486. }
  487. })
  488. })
  489. })
  490. .catch(() => {
  491. return false
  492. })
  493. },
  494. resetForm(deptBudgetList) {
  495. this.$refs[deptBudgetList].resetFields()
  496. },
  497. },
  498. }
  499. </script>
  500. <style lang="scss" scoped>
  501. /deep/.ws-info-table .el-form-item .el-form-item__content {
  502. padding: 0 25px;
  503. }
  504. /deep/.ws-info-table .el-form-item {
  505. border-right: 1px solid #cdd2dc;
  506. border-bottom: 1px solid #cdd2dc;
  507. }
  508. .title {
  509. position: relative;
  510. }
  511. .title::before {
  512. content: '';
  513. display: inline-block;
  514. width: 5px;
  515. height: 30px;
  516. background: #5473e8;
  517. position: absolute;
  518. left: 0;
  519. }
  520. .el-button--primary {
  521. background-color: #5878e8;
  522. border-color: #5878e8;
  523. }
  524. .el-col {
  525. background: #f6f7fc;
  526. }
  527. .readonly {
  528. position: relative;
  529. }
  530. /deep/.ws-info-table .el-form-item .el-form-item__content {
  531. padding: 0 25px;
  532. border-left: 1px solid #cdd2dc;
  533. background: #fafbfc;
  534. }
  535. /deep/.ws-info-table .el-form-item .el-form-item__label {
  536. width: 140px;
  537. text-align: center;
  538. background: #f0f2f6;
  539. // border: 1px solid #cdd2dc;
  540. }
  541. .button-container {
  542. display: flex;
  543. flex-wrap: nowrap;
  544. justify-content: space-between;
  545. align-items: center;
  546. background-color: #fff;
  547. width: 100%;
  548. height: 50px;
  549. padding: 0 10px;
  550. &>div {
  551. margin-left: 10px;
  552. display: flex;
  553. flex-wrap: nowrap;
  554. flex-direction: row;
  555. &>span {
  556. line-height: 50px;
  557. }
  558. }
  559. /deep/.auditFlow-box {
  560. position: unset;
  561. margin-left: 10px;
  562. &/deep/.auditFlow-icon {
  563. width: auto;
  564. padding-right: 30px;
  565. }
  566. &/deep/.auditFlow-main {
  567. position: absolute;
  568. }
  569. }
  570. }
  571. .box-app {
  572. display: inline-block;
  573. float: left;
  574. margin-left: 30px;
  575. line-height: 50px;
  576. }
  577. /deep/.el-dialog {
  578. .el-form-item {
  579. margin-bottom: 0 !important;
  580. .el-input--medium {
  581. textarea {
  582. min-height: 100px !important;
  583. }
  584. }
  585. }
  586. }
  587. .collapse-bottom {
  588. margin-bottom: 20px;
  589. }
  590. .shangchuan {
  591. margin-left: 22px;
  592. }
  593. .input-main .textarea .el-textarea__inner {
  594. width: 100%;
  595. z-index: 1;
  596. }
  597. .bg-left {
  598. padding-left: 30px;
  599. }
  600. .bg-right {
  601. padding-right: 10px;
  602. text-align: right;
  603. }
  604. .bg-bottom {
  605. margin: 16px 0px;
  606. }
  607. .wenzi {
  608. width: 70%;
  609. margin: 0 auto;
  610. }
  611. .wenzi h3 {
  612. display: inline-block;
  613. left: 10px;
  614. }
  615. .wenzi p {
  616. display: inline-block;
  617. }
  618. .center {
  619. width: 70%;
  620. margin: 0 auto;
  621. }
  622. .el-form-item {
  623. width: 50%;
  624. }
  625. .el-form-item__label {
  626. text-align: center;
  627. }
  628. .ce {
  629. width: 70%;
  630. margin: 0 auto;
  631. }
  632. /*.crt-main .textarea /deep/ .el-form-item__label {*/
  633. /* height: 82px;*/
  634. /*}*/
  635. // 控制select为只读的时候显示样式
  636. .hide-sel {
  637. .el-input__inner {
  638. border: 0px;
  639. }
  640. .el-icon-arrow-up {
  641. display: none;
  642. }
  643. .el-textarea__inner {
  644. background-color: #fff !important;
  645. border: 0;
  646. }
  647. .el-date-editor {
  648. i {
  649. display: none;
  650. }
  651. }
  652. .is-disabled {
  653. .el-input__inner:hover {
  654. background-color: #fff !important;
  655. border: 0;
  656. }
  657. color: #606266;
  658. .el-input__inner {
  659. background-color: #fff !important;
  660. border: 0;
  661. color: #606266;
  662. }
  663. .el-textarea__inner {
  664. background-color: #fff !important;
  665. border: 0;
  666. color: #606266;
  667. }
  668. }
  669. }
  670. /deep/.ws-info-table .el-form-item .el-form-item__label {
  671. width: 130px;
  672. }
  673. /deep/.el-date-editor {
  674. font-size: 13px;
  675. }
  676. /deep/.el-textarea {
  677. width: 101%;
  678. margin: 0px;
  679. }
  680. /deep/el-date-editor--date {
  681. width: 200px;
  682. }
  683. .unchanged {
  684. position: absolute;
  685. left: 37px;
  686. width: 102px;
  687. height: 14px;
  688. font-size: 14px;
  689. font-family: PingFangSC-Regular, PingFang SC;
  690. font-weight: 400;
  691. color: #afb5cb;
  692. line-height: 14px;
  693. }
  694. /deep/.el-input--small .el-input__inner {
  695. height: 32px;
  696. line-height: 32px;
  697. }
  698. // 控制select为只读的时候显示样式
  699. /deep/.ws-class-table-col {
  700. height: auto;
  701. padding: 0px 2px;
  702. /deep/.el-input__inner {
  703. padding: 0px 2px;
  704. }
  705. }
  706. /deep/.is-disabled {
  707. .el-input__prefix,
  708. .el-input__suffix {
  709. display: none;
  710. }
  711. .el-input__inner {
  712. background-color: #fff;
  713. border-color: #fff !important;
  714. color: #000 !important;
  715. font-size: 14px;
  716. cursor: text;
  717. padding: 0 !important;
  718. }
  719. }
  720. .winseaview-view {
  721. padding: 0 0 20px;
  722. }
  723. .container {
  724. overflow: scroll;
  725. height: 93vh;
  726. }
  727. .addressUrls {
  728. width: 100%;
  729. display: flex;
  730. margin-top: 10px;
  731. }
  732. .addressUrls-item {
  733. position: relative;
  734. display: flex;
  735. }
  736. .icon-guanbi {
  737. position: absolute;
  738. right: 8px;
  739. }
  740. .addressUrl {
  741. margin: 0px 10px;
  742. border-radius: 3px;
  743. }
  744. //上传文件成功标识
  745. /deep/.el-upload-list__item-status-label {
  746. position: absolute;
  747. right: 22px;
  748. top: -1px;
  749. line-height: inherit;
  750. display: none;
  751. }
  752. .inline-input {
  753. width: 100%;
  754. }
  755. </style>