purchaseContractAdd.vue 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490
  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. ref="deptBudgetList"
  25. :rules="mainReportAdd"
  26. :model="deptBudgetList"
  27. >
  28. <div class="remark">
  29. <h3>基本信息</h3>
  30. <p style="color: #8890b1">
  31. 注:基本信息和货物信息均为必填项,“*” 标记的条目提交后不可修改。
  32. </p>
  33. </div>
  34. <ws-info-table>
  35. <!--合同编号-->
  36. <ws-form-item
  37. label="合同编号"
  38. span="1"
  39. prop="contractNo"
  40. class="readonly"
  41. >
  42. <ws-input
  43. v-model="deptBudgetList.contractNo"
  44. placeholder="请输入合同编号"
  45. maxlength="20"
  46. size="small"
  47. :rules="ruleDeptBudget"
  48. />
  49. </ws-form-item>
  50. <!--运输方式-->
  51. <ws-form-item label="运输方式" span="1" prop="shippingType">
  52. <ws-input
  53. v-model="deptBudgetList.shippingType"
  54. placeholder="请输入运输方式"
  55. maxlength="100"
  56. size="small"
  57. />
  58. </ws-form-item>
  59. <!--买方-->
  60. <ws-form-item label="买方" span="1" prop="buyer" class="readonly">
  61. <ws-input
  62. v-model="deptBudgetList.buyer"
  63. placeholder="请输入买方名称"
  64. maxlength="100"
  65. size="small"
  66. />
  67. </ws-form-item>
  68. <!--结算方式-->
  69. <ws-form-item label="结算方式" span="1" prop="settlementMethod">
  70. <ws-input
  71. v-model="deptBudgetList.settlementMethod"
  72. placeholder="请输入结算方式"
  73. maxlength="100"
  74. size="small"
  75. />
  76. </ws-form-item>
  77. <!--卖方-->
  78. <ws-form-item label="卖方" span="1" prop="seller" class="readonly">
  79. <ws-input
  80. v-model="deptBudgetList.seller"
  81. placeholder="请输入卖方名称"
  82. maxlength="100"
  83. size="small"
  84. />
  85. </ws-form-item>
  86. <!--货源地-->
  87. <ws-form-item label="货源地" span="1" prop="sourceGoods">
  88. <ws-input
  89. v-model="deptBudgetList.sourceGoods"
  90. placeholder="请输入货源地"
  91. maxlength="100"
  92. size="small"
  93. />
  94. </ws-form-item>
  95. <!--买方电话-->
  96. <ws-form-item label="买方电话" span="1" prop="contractNo">
  97. <ws-input
  98. v-model.number="deptBudgetList.buyerPhone"
  99. maxlength="100"
  100. size="small"
  101. />
  102. </ws-form-item>
  103. <!--交货地-->
  104. <ws-form-item label="交货地" span="1" prop="placeDelivery">
  105. <ws-input
  106. v-model="deptBudgetList.placeDelivery"
  107. placeholder="请输入交货地"
  108. maxlength="100"
  109. size="small"
  110. />
  111. </ws-form-item>
  112. <!--卖方电话-->
  113. <ws-form-item label="卖方电话" span="1" prop="sellerPhone">
  114. <ws-input
  115. v-model="deptBudgetList.sellerPhone"
  116. placeholder="请输入卖方电话"
  117. maxlength="100"
  118. size="small"
  119. />
  120. </ws-form-item>
  121. <!--包装方式-->
  122. <ws-form-item label="包装方式" span="1" prop="packingMethod">
  123. <ws-select
  124. v-model="deptBudgetList.packingMethod"
  125. placeholder=""
  126. class="typeselect"
  127. :value="value1"
  128. @change="selectpackingMethod"
  129. >
  130. <ws-option
  131. v-for="item in packtypeList"
  132. :key="item.constKey"
  133. :label="item.constValue"
  134. :value="item.constValue"
  135. />
  136. </ws-select>
  137. </ws-form-item>
  138. <!--重量(吨)-->
  139. <ws-form-item label="重量(吨)" span="1" prop="weight">
  140. <ws-input
  141. v-model="deptBudgetList.weight"
  142. placeholder="请输入重量(吨)"
  143. maxlength="100"
  144. size="small"
  145. />
  146. </ws-form-item>
  147. <!--验收方式-->
  148. <ws-form-item label="验收方式" span="1" prop="acceptanceMethod">
  149. <el-select
  150. v-model="deptBudgetList.acceptanceMethod"
  151. placeholder="请选择验收方式"
  152. style="width: 100%"
  153. filterable
  154. @change="selectunitList"
  155. >
  156. <el-option
  157. v-for="(item, index) in unitList"
  158. :key="item.constValue"
  159. :label="item.constValue"
  160. :value="item.constValue"
  161. >
  162. <span class="unit-left" style="float: left">
  163. <span v-if="item.flag == 'delete'"> {{ item.constValue }}</span>
  164. <!-- 新增文本框 -->
  165. <div
  166. style="width: 160px"
  167. v-if="item.flag !== 'delete'"
  168. @click.stop
  169. >
  170. <ws-input
  171. v-model="item.constValue"
  172. clearable
  173. maxlength="10"
  174. style="width: 100%"
  175. ></ws-input>
  176. </div>
  177. </span>
  178. <span style="float: right; color: #8492a6; font-size: 13px">
  179. <!-- 对号 -->
  180. <i
  181. class="el-icon-check"
  182. style="line-height: 29px; margin-left: 10px"
  183. v-if="item.flag !== 'delete'"
  184. @click.stop="saveClick(item, index)"
  185. ></i>
  186. <!-- 编辑 -->
  187. <i
  188. class="el-icon-edit"
  189. style="line-height: 29px; margin-left: 10px"
  190. v-if="item.flag == 'delete'"
  191. @click.stop="editClick(item, index)"
  192. ></i>
  193. <!-- 删除 -->
  194. <i
  195. class="el-icon-delete"
  196. style="line-height: 29px"
  197. @click.stop="deleteClick(item, index)"
  198. ></i>
  199. </span>
  200. </el-option>
  201. <!-- 新增按钮 -->
  202. <el-option value="" label="">
  203. <div
  204. style="
  205. text-align: right;
  206. border-top: 1px solid #dcdfe6;
  207. padding: 5px;
  208. "
  209. >
  210. <ws-button type="primary" @click.stop="addClick">{{
  211. $t('button.add')
  212. }}</ws-button>
  213. </div>
  214. </el-option>
  215. </el-select>
  216. </ws-form-item>
  217. <!--溢短装(%)-->
  218. <ws-form-item label="溢短装(%)" span="1" prop="overShort">
  219. <ws-input
  220. v-model="deptBudgetList.overShort"
  221. placeholder="请输入溢短装比例(%)"
  222. maxlength="100"
  223. size="small"
  224. />
  225. </ws-form-item>
  226. <!--交货日期(起)-->
  227. <ws-form-item label="交货日期(起)" span="1" prop="deliveryDateStart">
  228. <ws-date-picker
  229. v-model="deptBudgetList.deliveryDateStart"
  230. type="date"
  231. placeholder="请选择交货日期(起)"
  232. value-format="yyyy-MM-dd"
  233. />
  234. </ws-form-item>
  235. <!--合同单价(元/吨)-->
  236. <ws-form-item
  237. class="readonly"
  238. label="合同单价(元/吨)"
  239. span="1"
  240. prop="unitContractPrice"
  241. >
  242. <ws-input
  243. v-model="deptBudgetList.unitContractPrice"
  244. placeholder="请输入合同单价"
  245. maxlength="100"
  246. size="small"
  247. />
  248. </ws-form-item>
  249. <!--交货日期(止)-->
  250. <ws-form-item label="交货日期(止)" span="1" prop="deliveryDateEnd">
  251. <ws-date-picker
  252. v-model="deptBudgetList.deliveryDateEnd"
  253. type="date"
  254. placeholder="请选择交货日期(止)"
  255. value-format="yyyy-MM-dd"
  256. />
  257. </ws-form-item>
  258. <!--合同总价-->
  259. <ws-form-item label="合同总价" span="1" prop="totalContractPrice">
  260. <ws-input
  261. v-model="deptBudgetList.totalContractPrice"
  262. placeholder="请输入合同总价"
  263. maxlength="100"
  264. size="small"
  265. />
  266. </ws-form-item>
  267. <!--签订日期-->
  268. <ws-form-item label="签订日期" span="1" prop="signingDate">
  269. <ws-date-picker
  270. v-model="deptBudgetList.signingDate"
  271. type="date"
  272. placeholder="请选择合同签订日期"
  273. value-format="yyyy-MM-dd"
  274. />
  275. </ws-form-item>
  276. </ws-info-table>
  277. </ws-form>
  278. <div class="wenzi">
  279. <h3>货物信息</h3>
  280. </div>
  281. <ws-form
  282. ref="deptBudgetList"
  283. :rules="ruleDeptBudget"
  284. :model="deptBudgetList"
  285. >
  286. <!--货物信息-->
  287. <ws-info-table>
  288. <!--货名-->
  289. <ws-form-item label="货名" span="1" prop="goodsName" class="readonly">
  290. <ws-select
  291. v-model="deptBudgetList.contractGoodsInfo.goodsName"
  292. placeholder=""
  293. class="typeselect"
  294. @change="selectgoodsName"
  295. >
  296. <ws-option
  297. v-for="item in goodnameList"
  298. :key="item.constKey"
  299. :label="item.constValue"
  300. :value="item.constValue"
  301. />
  302. </ws-select>
  303. </ws-form-item>
  304. <!--水分(%)<=-->
  305. <ws-form-item label="水分(%)" span="1" prop="waterContent">
  306. <ws-input
  307. v-model="deptBudgetList.contractGoodsInfo.waterContent"
  308. placeholder="请输入水分占比"
  309. maxlength="100"
  310. size="small"
  311. />
  312. </ws-form-item>
  313. <!--品级-->
  314. <ws-form-item label="品级" span="1" prop="grade">
  315. <ws-select
  316. v-model="deptBudgetList.contractGoodsInfo.grade"
  317. placeholder=""
  318. class="typeselect"
  319. @change="selectgrade"
  320. >
  321. <ws-option
  322. v-for="item in gradeList"
  323. :key="item.constKey"
  324. :label="item.constValue"
  325. :value="item.constValue"
  326. />
  327. </ws-select>
  328. </ws-form-item>
  329. <!--杂质(%)<=-->
  330. <ws-form-item label="杂质(%)" span="1" prop="impurity">
  331. <ws-input
  332. v-model="deptBudgetList.contractGoodsInfo.impurity"
  333. placeholder="请输入杂质占比(%)"
  334. maxlength="100"
  335. size="small"
  336. />
  337. </ws-form-item>
  338. <!--容量(克/升)>=-->
  339. <ws-form-item label="容量(克/升)" span="1" prop="bulkDensity">
  340. <ws-input
  341. v-model="deptBudgetList.contractGoodsInfo.bulkDensity"
  342. placeholder="请输入容重"
  343. maxlength="100"
  344. size="small"
  345. />
  346. </ws-form-item>
  347. <!--霉变粒(%)<=-->
  348. <ws-form-item label="霉变粒(%)" span="1" prop="mildewGrain">
  349. <ws-input
  350. v-model="deptBudgetList.contractGoodsInfo.mildewGrain"
  351. placeholder="请输入霉变粒占比(%)"
  352. maxlength="100"
  353. size="small"
  354. />
  355. </ws-form-item>
  356. <!--热损伤(%)<=-->
  357. <ws-form-item label="热损伤(%)" span="1" prop="jiaorenli">
  358. <ws-input
  359. v-model="deptBudgetList.contractGoodsInfo.jiaorenli"
  360. placeholder="请输入输入热损伤占比(%)"
  361. maxlength="100"
  362. size="small"
  363. />
  364. </ws-form-item>
  365. <!--不完整粒(%)<=-->
  366. <ws-form-item label="不完整粒(%)" span="1" prop="imperfectGrain">
  367. <ws-input
  368. v-model="deptBudgetList.contractGoodsInfo.imperfectGrain"
  369. placeholder="请输入不完整粒占比(%)"
  370. maxlength="100"
  371. size="small"
  372. />
  373. </ws-form-item>
  374. </ws-info-table>
  375. </ws-form>
  376. <div class="wenzi">
  377. <h3>流程信息</h3>
  378. </div>
  379. <ws-form
  380. ref="deptBudgetList"
  381. :rules="ruleDeptBudget"
  382. :model="deptBudgetList"
  383. >
  384. <!--流程信息-->
  385. <ws-info-table>
  386. <!--合同收入(元)-->
  387. <ws-form-item label="合同收入(元)" span="1" prop="goodsNameKey">
  388. <ws-input
  389. v-model="deptBudgetList.contractProcessInfo.goodsNameKey"
  390. placeholder="请输入合同收入(元)"
  391. maxlength="100"
  392. size="small"
  393. />
  394. </ws-form-item>
  395. <!--已开发票(元)-->
  396. <ws-form-item label="已开发票(元)" span="1" prop="goodsName">
  397. <ws-input
  398. v-model="deptBudgetList.contractProcessInfo.goodsName"
  399. placeholder="请输入已开发票(元)"
  400. maxlength="100"
  401. size="small"
  402. />
  403. </ws-form-item>
  404. <!--费用支出(元)-->
  405. <ws-form-item label="费用支出(元)" span="1" prop="waterContent">
  406. <ws-input
  407. v-model="deptBudgetList.contractProcessInfo.waterContent"
  408. placeholder="请输入费用支出(元)"
  409. maxlength="100"
  410. size="small"
  411. />
  412. </ws-form-item>
  413. <!--未开发票(元)-->
  414. <ws-form-item label="未开发票(元)" span="1" prop="impurity">
  415. <ws-input
  416. v-model="deptBudgetList.contractProcessInfo.impurity"
  417. placeholder="请输入未开发票(元)"
  418. maxlength="100"
  419. size="small"
  420. />
  421. </ws-form-item>
  422. <!--已完成发货量(吨)-->
  423. <ws-form-item label="已完成发货量(吨)" span="1" prop="imperfectGrain">
  424. <ws-input
  425. v-model="deptBudgetList.contractProcessInfo.imperfectGrain"
  426. placeholder="请输入已完成发货量(吨)"
  427. maxlength="100"
  428. size="small"
  429. />
  430. </ws-form-item>
  431. <!--双章原件回收情况-->
  432. <ws-form-item label="双章原件回收情况" span="1" prop="grade">
  433. <ws-select
  434. v-model="deptBudgetList.contractProcessInfo.grade"
  435. placeholder=""
  436. class="typeselect"
  437. @change="selectChapterTwo"
  438. >
  439. <ws-option
  440. v-for="item in ChapterTwoList"
  441. :key="item.constKey"
  442. :label="item.constValue"
  443. :value="item.constValue"
  444. />
  445. </ws-select>
  446. </ws-form-item>
  447. </ws-info-table>
  448. </ws-form>
  449. <div class="wenzi">
  450. <h3>备注信息</h3>
  451. </div>
  452. <ws-form
  453. ref="deptBudgetList"
  454. :rules="ruleDeptBudget"
  455. :model="deptBudgetList"
  456. >
  457. <!--备注信息-->
  458. <ws-input
  459. v-model="deptBudgetList.remarks"
  460. type="textarea"
  461. row="3"
  462. placeholder="请输入备注信息,不超过200字"
  463. maxlength="200"
  464. />
  465. <ws-upload
  466. ref="upload"
  467. table-name="maintain_work_order"
  468. oss-key="mainPlan"
  469. :comp-id="compId"
  470. :appendix-ids="appendixIdsAdd"
  471. :vesselId="deptBudgetList.addressUrl"
  472. :size-limit="size"
  473. @uploadSuccess="uploadSuccess"
  474. @onChange="onChange"
  475. accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar"
  476. />
  477. </ws-form>
  478. <div style="text-align: right; padding: 10px" class="center">
  479. <el-button
  480. class="bg-bottom"
  481. type="primary"
  482. size="small"
  483. @click="submit(deptBudgetList)"
  484. >提交</el-button
  485. >
  486. </div>
  487. </div>
  488. </template>
  489. <script>
  490. // import { getVesselOne } from '@/model/procurement/basic'
  491. // import { dayjs } from 'base-core-lib'
  492. import {
  493. packList,
  494. addList,
  495. xiala,
  496. addxiala,
  497. editxiala,
  498. delxiala,
  499. } from '@/model/contarct/index'
  500. import WsUpload from '@/components/WsUpload'
  501. export default {
  502. name: 'viewSpareMoney',
  503. components: {
  504. WsUpload,
  505. },
  506. watch: {
  507. vesselId(val) {
  508. this.getVesselData()
  509. },
  510. isShow(val) {
  511. this.showType = val
  512. },
  513. },
  514. data() {
  515. return {
  516. //弹出框
  517. dialogViewSpareMoney: false,
  518. dialogApproveFormVisible: false,
  519. // 船舶类型
  520. monetaryKey: null,
  521. // 表格显示数据
  522. tableDate: [],
  523. // 是否显示
  524. showType: true,
  525. // 年
  526. year: '',
  527. // 提交类型
  528. submitType: true,
  529. tableData: [{ date: 1111, name: 'qqqq', address: 'errrtt' }],
  530. packtypeList: [],
  531. compId: sessionStorage.getItem('ws-pf_compId'),
  532. mainReportAdd: {},
  533. appendixIdsAdd: '',
  534. size: 10,
  535. // uploadSuccess: {},
  536. // onChange:{},
  537. unitList: [],
  538. goodnameList: [],
  539. value1: '袋装',
  540. value2: '未回收',
  541. gradeList: [],
  542. ChapterTwoList: [],
  543. deptBudgetList: {
  544. contractGoodsInfo: {
  545. goodsName: '',
  546. },
  547. contractProcessInfo: {},
  548. },
  549. acceptanceCheck: {},
  550. pickerBeginDateBefore: {
  551. disabledDate: (time) => {
  552. return time.getTime() > Date.now()
  553. },
  554. },
  555. // selectpackingMethod: {},
  556. // selectgrade: {},
  557. // selectunitList: {},
  558. // selectDuty: {},
  559. // isEdited: false,
  560. // registered: {},
  561. // selectCrtDuty: {},
  562. // dutyList: {},
  563. // sexList: {},
  564. ruleDeptBudget: {
  565. contractNo: [
  566. { required: true, message: '请输入活动名称', trigger: 'blur' },
  567. {
  568. min: 6,
  569. max: 20,
  570. message: '长度在 6 到 20 个字符',
  571. trigger: 'blur',
  572. },
  573. ],
  574. },
  575. selectIntendedShip: {},
  576. interviewTypeList: {},
  577. }
  578. },
  579. activated() {
  580. //cg.viewBudget
  581. //cg.viewSpareMoney
  582. // this.getVesselData();
  583. this.deptBudgetList.packingMethod = '袋装'
  584. this.deptBudgetList.packingMethodKey = 2
  585. this.deptBudgetList.contractGoodsInfo.goodsName = '玉米'
  586. this.deptBudgetList.contractGoodsInfo.goodsNameKey = 1
  587. this.deptBudgetList.contractProcessInfo.grade = '未回收'
  588. this.deptBudgetList.contractProcessInfo.gradeKey = 1
  589. this.loaddata()
  590. this.showType = this.isShow
  591. },
  592. methods: {
  593. // 关闭 dialog时 处理文件url 初始化upload组件
  594. handleClose() {
  595. this.dialogViewSpareMoney = false
  596. },
  597. returnsales() {
  598. this.$router.push({ path: 'purchaseContract' })
  599. },
  600. loaddata() {
  601. // 包装方式
  602. packList({ constId: 'CON1' })
  603. .toPromise()
  604. .then((response) => {
  605. this.packtypeList = response
  606. })
  607. // 验收方式
  608. this.getUnitList()
  609. // 货名
  610. packList({ constId: 'CON2' })
  611. .toPromise()
  612. .then((response) => {
  613. this.goodnameList = response
  614. })
  615. // 品级
  616. packList({ constId: 'CON3' })
  617. .toPromise()
  618. .then((response) => {
  619. this.gradeList = response
  620. })
  621. // 双章
  622. packList({ constId: 'CON4' })
  623. .toPromise()
  624. .then((response) => {
  625. this.ChapterTwoList = response
  626. })
  627. },
  628. // 上传附件
  629. uploadSuccess(data, files, url) {
  630. console.log(data, files, url)
  631. // this.deptBudgetList.
  632. // this.formData.append('files', files)
  633. // this.feedbackObj.uploadNameAttachment = data.appendixName
  634. // this.feedbackObj.pathUploadAttachment = data.appendixPath
  635. // // this.newAppendixs = files
  636. // this.onChangeFlag = true
  637. },
  638. onChange(files) {
  639. this.fileNum = files
  640. this.$refs.upload.handleSaveBill().then((res) => {
  641. console.log(files)
  642. })
  643. },
  644. getUnitList() {
  645. xiala({
  646. compId: sessionStorage.getItem('ws-pf_compId'),
  647. constCode: 'TYPEYAN',
  648. })
  649. .toPromise()
  650. .then((response) => {
  651. this.unitList = response
  652. let currItem
  653. this.unitList.forEach((item, index, arr) => {
  654. item.flag = 'delete'
  655. if (this.vModel == item.constKey) {
  656. currItem = item
  657. }
  658. })
  659. //
  660. if (currItem) {
  661. this.selectContract(currItem.constValue)
  662. }
  663. })
  664. },
  665. submit() {
  666. console.log(this.deptBudgetList)
  667. if (!this.deptBudgetList.contractNo) {
  668. this.$message({
  669. message: '请输入合同编号',
  670. type: 'warning',
  671. })
  672. return
  673. }
  674. console.log(this.deptBudgetList.contractNo.length)
  675. if (
  676. this.deptBudgetList.contractNo.length < 6 ||
  677. this.deptBudgetList.contractNo.length > 20
  678. ) {
  679. this.$message({
  680. message: '合同编号长度不符合要求,请输入6到20个字符之内!',
  681. type: 'warning',
  682. })
  683. return
  684. }
  685. if (!this.deptBudgetList.shippingType) {
  686. this.$message({
  687. message: '请输入运输方式!',
  688. type: 'warning',
  689. })
  690. return
  691. }
  692. if (
  693. this.deptBudgetList.shippingType.length < 1 ||
  694. this.deptBudgetList.shippingType.length > 20
  695. ) {
  696. this.$message({
  697. message: '运输方式长度不符合要求,请输入1到20个字符之内!',
  698. type: 'warning',
  699. })
  700. return
  701. }
  702. if (!this.deptBudgetList.buyer) {
  703. this.$message({
  704. message: '请输入买方名称!',
  705. type: 'warning',
  706. })
  707. return
  708. }
  709. if (this.deptBudgetList.buyer.length > 30) {
  710. this.$message({
  711. message: '买方名称长度不符合要求,请输入30个字符之内!',
  712. type: 'warning',
  713. })
  714. return
  715. }
  716. if (!this.deptBudgetList.seller) {
  717. this.$message({
  718. message: '请输入卖方名称!',
  719. type: 'warning',
  720. })
  721. return
  722. }
  723. if (this.deptBudgetList.seller.length > 30) {
  724. this.$message({
  725. message: '卖方名称长度不符合要求,请输入30个字符之内!',
  726. type: 'warning',
  727. })
  728. return
  729. }
  730. if (!this.deptBudgetList.buyerPhone) {
  731. this.$message({
  732. message: '请输入买方电话!',
  733. type: 'warning',
  734. })
  735. return
  736. }
  737. if (isNaN(this.deptBudgetList.buyerPhone)) {
  738. this.$message({
  739. message: '输入买方电话有误!',
  740. type: 'warning',
  741. })
  742. return
  743. }
  744. if (
  745. this.deptBudgetList.buyerPhone.length < 7 ||
  746. this.deptBudgetList.buyerPhone.length > 20
  747. ) {
  748. this.$message({
  749. message: '买方电话长度不符合要求,请输入7到20个字符之内!',
  750. type: 'warning',
  751. })
  752. return
  753. }
  754. if (!this.deptBudgetList.sellerPhone) {
  755. this.$message({
  756. message: '请输入卖方电话!',
  757. type: 'warning',
  758. })
  759. return
  760. }
  761. if (isNaN(this.deptBudgetList.sellerPhone)) {
  762. this.$message({
  763. message: '输入卖方电话有误!',
  764. type: 'warning',
  765. })
  766. return
  767. }
  768. if (
  769. this.deptBudgetList.buyerPhone.length < 7 ||
  770. this.deptBudgetList.buyerPhone.length > 20
  771. ) {
  772. this.$message({
  773. message: '卖方电话长度不符合要求,请输入7到20个字符之内!',
  774. type: 'warning',
  775. })
  776. return
  777. }
  778. if (!this.deptBudgetList.settlementMethod) {
  779. this.$message({
  780. message: '请输入结算方式!',
  781. type: 'warning',
  782. })
  783. return
  784. }
  785. if (!this.deptBudgetList.sourceGoods) {
  786. this.$message({
  787. message: '请输入货源地!',
  788. type: 'warning',
  789. })
  790. return
  791. }
  792. if (!this.deptBudgetList.placeDelivery) {
  793. this.$message({
  794. message: '请输入交货地!',
  795. type: 'warning',
  796. })
  797. return
  798. }
  799. if (!this.deptBudgetList.weight) {
  800. this.$message({
  801. message: '请输入重量!',
  802. type: 'warning',
  803. })
  804. return
  805. }
  806. if (
  807. isNaN(this.deptBudgetList.weight) ||
  808. (String(this.deptBudgetList.weight).indexOf('.') != -1 &&
  809. String(this.deptBudgetList.weight).length -
  810. (String(this.deptBudgetList.weight).indexOf('.') + 1) >
  811. 3) ||
  812. this.deptBudgetList.weight < 0 ||
  813. this.deptBudgetList.weight > 200000
  814. ) {
  815. this.$message({
  816. message: '输入重量有误!',
  817. type: 'warning',
  818. })
  819. return
  820. }
  821. if (
  822. !this.deptBudgetList.overShort &&
  823. isNaN(this.deptBudgetList.overShort)
  824. ) {
  825. this.$message({
  826. message: '溢短装输入有误!',
  827. type: 'warning',
  828. })
  829. return
  830. }
  831. if (
  832. !this.deptBudgetList.unitContractPrice &&
  833. isNaN(this.deptBudgetList.unitContractPrice)
  834. ) {
  835. this.$message({
  836. message: '合同单价输入有误!',
  837. type: 'warning',
  838. })
  839. return
  840. }
  841. if (
  842. !this.deptBudgetList.totalContractPrice &&
  843. isNaN(this.deptBudgetList.totalContractPrice)
  844. ) {
  845. this.$message({
  846. message: '合同总价输入有误!',
  847. type: 'warning',
  848. })
  849. return
  850. }
  851. if (!this.deptBudgetList.deliveryDateStart) {
  852. this.$message({
  853. message: '请选择交货日期(起)',
  854. type: 'warning',
  855. })
  856. return
  857. }
  858. if (!this.deptBudgetList.deliveryDateEnd) {
  859. this.$message({
  860. message: '请选择交货日期(止)',
  861. type: 'warning',
  862. })
  863. return
  864. }
  865. //时间
  866. if (
  867. new Date(this.deptBudgetList.deliveryDateStart).getTime() >
  868. new Date(this.deptBudgetList.deliveryDateEnd).getTime()
  869. ) {
  870. this.$message({
  871. message: '交货日期(止)选择错误',
  872. type: 'warning',
  873. })
  874. return
  875. }
  876. if (!this.deptBudgetList.signingDate) {
  877. this.$message({
  878. message: '请选择签订日期',
  879. type: 'warning',
  880. })
  881. return
  882. }
  883. if (!this.deptBudgetList.contractGoodsInfo.goodsName) {
  884. this.$message({
  885. message: '请选择货名',
  886. type: 'warning',
  887. })
  888. return
  889. }
  890. if (!this.deptBudgetList.contractGoodsInfo.waterContent) {
  891. this.$message({
  892. message: '请选择水分',
  893. type: 'warning',
  894. })
  895. return
  896. }
  897. if (!this.deptBudgetList.contractGoodsInfo.grade) {
  898. this.$message({
  899. message: '请选择品级',
  900. type: 'warning',
  901. })
  902. return
  903. }
  904. if (
  905. !this.deptBudgetList.contractGoodsInfo.impurity ||
  906. (String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') !=
  907. -1 &&
  908. String(this.deptBudgetList.contractGoodsInfo.impurity).length -
  909. (String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf(
  910. '.'
  911. ) +
  912. 1) >
  913. 2)
  914. ) {
  915. this.$message({
  916. message: '杂质输入错误',
  917. type: 'warning',
  918. })
  919. return
  920. }
  921. if (
  922. !this.deptBudgetList.contractGoodsInfo.bulkDensity ||
  923. (String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf(
  924. '.'
  925. ) != -1 &&
  926. String(this.deptBudgetList.contractGoodsInfo.bulkDensity).length -
  927. (String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf(
  928. '.'
  929. ) +
  930. 1) >
  931. 2)
  932. ) {
  933. this.$message({
  934. message: '容重输入错误',
  935. type: 'warning',
  936. })
  937. return
  938. }
  939. if (
  940. !this.deptBudgetList.contractGoodsInfo.mildewGrain ||
  941. (String(this.deptBudgetList.contractGoodsInfo.mildewGrain).indexOf(
  942. '.'
  943. ) != -1 &&
  944. String(this.deptBudgetList.contractGoodsInfo.mildewGrain).length -
  945. (String(this.deptBudgetList.contractGoodsInfo.mildewGrain).indexOf(
  946. '.'
  947. ) +
  948. 1) >
  949. 2)
  950. ) {
  951. this.$message({
  952. message: '霉变粒输入错误',
  953. type: 'warning',
  954. })
  955. return
  956. }
  957. if (
  958. !this.deptBudgetList.contractGoodsInfo.jiaorenli ||
  959. (String(this.deptBudgetList.contractGoodsInfo.jiaorenli).indexOf('.') !=
  960. -1 &&
  961. String(this.deptBudgetList.contractGoodsInfo.jiaorenli).length -
  962. (String(this.deptBudgetList.contractGoodsInfo.jiaorenli).indexOf(
  963. '.'
  964. ) +
  965. 1) >
  966. 2)
  967. ) {
  968. this.$message({
  969. message: '热损伤输入错误',
  970. type: 'warning',
  971. })
  972. return
  973. }
  974. if (
  975. !this.deptBudgetList.contractGoodsInfo.imperfectGrain ||
  976. (String(this.deptBudgetList.contractGoodsInfo.imperfectGrain).indexOf(
  977. '.'
  978. ) != -1 &&
  979. String(this.deptBudgetList.contractGoodsInfo.imperfectGrain).length -
  980. (String(
  981. this.deptBudgetList.contractGoodsInfo.imperfectGrain
  982. ).indexOf('.') +
  983. 1) >
  984. 2)
  985. ) {
  986. this.$message({
  987. message: '不完整粒输入错误',
  988. type: 'warning',
  989. })
  990. return
  991. }
  992. if (
  993. this.deptBudgetList.contractProcessInfo.goodsNameKey > 1000000000 ||
  994. this.deptBudgetList.contractProcessInfo.goodsNameKey < 0 ||
  995. (String(this.deptBudgetList.contractProcessInfo.goodsNameKey).indexOf(
  996. '.'
  997. ) != -1 &&
  998. String(this.deptBudgetList.contractProcessInfo.goodsNameKey).length -
  999. (String(
  1000. this.deptBudgetList.contractProcessInfo.goodsNameKey
  1001. ).indexOf('.') +
  1002. 1) >
  1003. 2)
  1004. ) {
  1005. this.$message({
  1006. message: '合同收入金额输入错误',
  1007. type: 'warning',
  1008. })
  1009. return
  1010. }
  1011. if (
  1012. this.deptBudgetList.contractProcessInfo.waterContent > 10000000 ||
  1013. this.deptBudgetList.contractProcessInfo.waterContent < 0 ||
  1014. (String(this.deptBudgetList.contractProcessInfo.waterContent).indexOf(
  1015. '.'
  1016. ) != -1 &&
  1017. String(this.deptBudgetList.contractProcessInfo.waterContent).length -
  1018. (String(
  1019. this.deptBudgetList.contractProcessInfo.waterContent
  1020. ).indexOf('.') +
  1021. 1) >
  1022. 2)
  1023. ) {
  1024. this.$message({
  1025. message: '费用金额输入错误',
  1026. type: 'warning',
  1027. })
  1028. return
  1029. }
  1030. if (
  1031. this.deptBudgetList.contractProcessInfo.goodsName > 1000000000 ||
  1032. this.deptBudgetList.contractProcessInfo.goodsName < 0 ||
  1033. (String(this.deptBudgetList.contractProcessInfo.goodsName).indexOf(
  1034. '.'
  1035. ) != -1 &&
  1036. String(this.deptBudgetList.contractProcessInfo.goodsName).length -
  1037. (String(this.deptBudgetList.contractProcessInfo.goodsName).indexOf(
  1038. '.'
  1039. ) +
  1040. 1) >
  1041. 2)
  1042. ) {
  1043. this.$message({
  1044. message: '已开发票金额输入错误',
  1045. type: 'warning',
  1046. })
  1047. return
  1048. }
  1049. if (
  1050. this.deptBudgetList.contractProcessInfo.impurity > 1000000000 ||
  1051. this.deptBudgetList.contractProcessInfo.impurity < 0 ||
  1052. (String(this.deptBudgetList.contractProcessInfo.impurity).indexOf(
  1053. '.'
  1054. ) != -1 &&
  1055. String(this.deptBudgetList.contractProcessInfo.impurity).length -
  1056. (String(this.deptBudgetList.contractProcessInfo.impurity).indexOf(
  1057. '.'
  1058. ) +
  1059. 1) >
  1060. 2)
  1061. ) {
  1062. this.$message({
  1063. message: '未开发票金额输入错误',
  1064. type: 'warning',
  1065. })
  1066. return
  1067. }
  1068. if (
  1069. this.deptBudgetList.contractProcessInfo.imperfectGrain > 200000 ||
  1070. this.deptBudgetList.contractProcessInfo.imperfectGrain < 0 ||
  1071. (String(this.deptBudgetList.contractProcessInfo.imperfectGrain).indexOf(
  1072. '.'
  1073. ) != -1 &&
  1074. String(this.deptBudgetList.contractProcessInfo.imperfectGrain)
  1075. .length -
  1076. (String(
  1077. this.deptBudgetList.contractProcessInfo.imperfectGrain
  1078. ).indexOf('.') +
  1079. 1) >
  1080. 2)
  1081. ) {
  1082. this.$message({
  1083. message: '已完成发运量输入错误',
  1084. type: 'warning',
  1085. })
  1086. return
  1087. }
  1088. this.$refs.deptBudgetList.validate((valid) => {
  1089. if (valid) {
  1090. this.deptBudgetList.compId = this.compId
  1091. this.deptBudgetList.contractType = 2
  1092. addList(this.deptBudgetList)
  1093. .toPromise()
  1094. .then((response) => {
  1095. this.$message.success('添加成功')
  1096. this.$router.push({ path: 'salesContract' })
  1097. })
  1098. } else {
  1099. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1100. return false
  1101. }
  1102. })
  1103. },
  1104. resetForm(deptBudgetList) {
  1105. this.$refs[deptBudgetList].resetFields()
  1106. },
  1107. addClick() {
  1108. // let [flag, constValue, constKey] = ['check', '', '']
  1109. // let obj = { flag, constValue, constKey }
  1110. // let objAdd = { flag: 'add', constValue: '新增项目', constKey: '' }
  1111. // let result = this.unitList.filter((item, val, arr) => {
  1112. // return item.id != '1'
  1113. // })
  1114. // result.push(obj)
  1115. // result.push(objAdd)
  1116. // this.unitList = result
  1117. this.unitList.push({
  1118. flag: 'add',
  1119. constValue: '',
  1120. constKey: '',
  1121. })
  1122. },
  1123. saveClick(item, index) {
  1124. console.log(item)
  1125. if (Object.is(item.id, 1)) {
  1126. return
  1127. }
  1128. if (Object.is(this.unitList[index].flag, 'delete')) {
  1129. this.$set(this.unitList, index, { flag: 'check' })
  1130. } else {
  1131. this.$set(this.unitList, index, { flag: 'delete' })
  1132. }
  1133. if (!item.constValue) {
  1134. this.unitList.splice(index, 1)
  1135. return
  1136. }
  1137. if (item.flag == 'add') {
  1138. item.constKey = Math.random() * 20
  1139. this.acceptanceCheck.compId = this.compId
  1140. this.acceptanceCheck.constKey = item.constKey
  1141. this.acceptanceCheck.constCode = 'TYPEYAN'
  1142. this.acceptanceCheck.constValue = item.constValue
  1143. this.acceptanceCheck.id = item.id
  1144. addxiala(this.acceptanceCheck)
  1145. .toPromise()
  1146. .then((response) => {
  1147. this.getUnitList()
  1148. })
  1149. } else if (item.flag == 'check') {
  1150. this.acceptanceCheck.compId = this.compId
  1151. this.acceptanceCheck.constKey = item.constKey
  1152. this.acceptanceCheck.constCode = 'TYPEYAN'
  1153. this.acceptanceCheck.constValue = item.constValue
  1154. this.acceptanceCheck.id = item.id
  1155. editxiala(this.acceptanceCheck)
  1156. .toPromise()
  1157. .then((response) => {
  1158. this.getUnitList()
  1159. })
  1160. }
  1161. },
  1162. // selectContract(val) {
  1163. // let key = this.unitList.find((item) => item.constValue === val).constKey
  1164. // this.pleaseChoose = val
  1165. // },
  1166. handleExamine() {},
  1167. approve() {},
  1168. // returnsales() {
  1169. // this.$router.push({ path: 'purchaseContract' })
  1170. // },
  1171. selectChapterTwo(e) {
  1172. for (var i = 0; i < this.ChapterTwoList.length; i++) {
  1173. if (this.ChapterTwoList[i].constValue == e) {
  1174. this.deptBudgetList.gradeKey = this.ChapterTwoList[i].constKey
  1175. }
  1176. }
  1177. },
  1178. selectunitList(e) {
  1179. for (var i = 0; i < this.unitList.length; i++) {
  1180. if (this.unitList[i].constValue == e) {
  1181. this.deptBudgetList.acceptanceMethodKey = this.unitList[i].constKey
  1182. }
  1183. }
  1184. },
  1185. selectgrade(e) {
  1186. for (var i = 0; i < this.gradeList.length; i++) {
  1187. if (this.gradeList[i].constValue == e) {
  1188. this.deptBudgetList.gradeKey = this.gradeList[i].constKey
  1189. }
  1190. }
  1191. },
  1192. selectgoodsName(e) {
  1193. for (var i = 0; i < this.goodnameList.length; i++) {
  1194. if (this.goodnameList[i].constValue == e) {
  1195. this.deptBudgetList.goodsNameKey = this.goodnameList[i].constKey
  1196. }
  1197. }
  1198. },
  1199. selectpackingMethod(e) {
  1200. for (var i = 0; i < this.packtypeList.length; i++) {
  1201. if (this.packtypeList[i].constValue == e) {
  1202. this.deptBudgetList.packingMethodKey = this.packtypeList[i].constKey
  1203. }
  1204. }
  1205. },
  1206. // 编辑
  1207. editClick(item, index) {
  1208. const map = JSON.parse(JSON.stringify(item))
  1209. if (Object.is(item.id, 1)) {
  1210. return
  1211. }
  1212. if (Object.is(this.unitList[index].flag, 'delete')) {
  1213. map.flag = 'check'
  1214. this.$set(this.unitList, index, map)
  1215. } else {
  1216. map.flag = 'delete'
  1217. this.$set(this.unitList, index, map)
  1218. }
  1219. },
  1220. // 删除
  1221. deleteClick(item, index) {
  1222. if (Object.is(item.constKey, 1)) {
  1223. return
  1224. }
  1225. if (!item.constValue) {
  1226. this.unitList.splice(index, 1)
  1227. return
  1228. }
  1229. delxiala({ id: this.unitList[index].id })
  1230. .toPromise()
  1231. .then((response) => {
  1232. this.getUnitList()
  1233. this.pleaseChoose = ''
  1234. })
  1235. },
  1236. },
  1237. }
  1238. </script>
  1239. <style lang="scss" scoped>
  1240. .el-form {
  1241. padding: 0 15%;
  1242. }
  1243. /deep/.ws-info-table .el-form-item {
  1244. border-right: 1px solid #cdd2dc;
  1245. border-bottom: 1px solid #cdd2dc;
  1246. }
  1247. .readonly {
  1248. position: relative;
  1249. }
  1250. .readonly:after {
  1251. content: '*';
  1252. color: #ff2727;
  1253. position: absolute;
  1254. right: 8px;
  1255. z-index: 10;
  1256. top: 21%;
  1257. font-size: 20px;
  1258. }
  1259. .title {
  1260. position: relative;
  1261. }
  1262. .title::before {
  1263. content: '';
  1264. display: inline-block;
  1265. width: 5px;
  1266. height: 30px;
  1267. background: #5473e8;
  1268. position: absolute;
  1269. left: 0;
  1270. }
  1271. .el-button--primary {
  1272. background-color: #5878e8;
  1273. border-color: #5878e8;
  1274. }
  1275. .el-col {
  1276. background: #f6f7fc;
  1277. }
  1278. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1279. padding: 0 25px;
  1280. border-left: 1px solid #cdd2dc;
  1281. background: #fafbfc;
  1282. }
  1283. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1284. width: 140px;
  1285. text-align: center;
  1286. background: #f0f2f6;
  1287. // border: 1px solid #cdd2dc;
  1288. }
  1289. .button-container {
  1290. display: flex;
  1291. flex-wrap: nowrap;
  1292. justify-content: space-between;
  1293. align-items: center;
  1294. background-color: #fff;
  1295. width: 100%;
  1296. height: 50px;
  1297. padding: 0 10px;
  1298. & > div {
  1299. margin-left: 10px;
  1300. display: flex;
  1301. flex-wrap: nowrap;
  1302. flex-direction: row;
  1303. & > span {
  1304. line-height: 50px;
  1305. }
  1306. }
  1307. /deep/.auditFlow-box {
  1308. position: unset;
  1309. margin-left: 10px;
  1310. &/deep/.auditFlow-icon {
  1311. width: auto;
  1312. padding-right: 30px;
  1313. }
  1314. &/deep/.auditFlow-main {
  1315. position: absolute;
  1316. }
  1317. }
  1318. }
  1319. .box-app {
  1320. display: inline-block;
  1321. float: left;
  1322. margin-left: 30px;
  1323. line-height: 50px;
  1324. }
  1325. /deep/.el-dialog {
  1326. .el-form-item {
  1327. margin-bottom: 0 !important;
  1328. .el-input--medium {
  1329. textarea {
  1330. min-height: 100px !important;
  1331. }
  1332. }
  1333. }
  1334. }
  1335. .collapse-bottom {
  1336. margin-bottom: 20px;
  1337. }
  1338. .input-main .textarea .el-textarea__inner {
  1339. width: 100%;
  1340. z-index: 1;
  1341. }
  1342. .bg-left {
  1343. padding-left: 30px;
  1344. }
  1345. .bg-right {
  1346. padding-right: 10px;
  1347. text-align: right;
  1348. }
  1349. .bg-bottom {
  1350. margin: 15px 0px;
  1351. }
  1352. .wenzi {
  1353. width: 900px;
  1354. margin: 0 auto;
  1355. }
  1356. .wenzi h3 {
  1357. display: inline-block;
  1358. left: 10px;
  1359. }
  1360. .wenzi p {
  1361. display: inline-block;
  1362. }
  1363. .center {
  1364. width: 900px;
  1365. margin: 0 auto;
  1366. }
  1367. .el-form-item {
  1368. width: 50%;
  1369. }
  1370. .el-form-item__label {
  1371. text-align: center;
  1372. }
  1373. .ce {
  1374. width: 900px;
  1375. margin: 0 auto;
  1376. }
  1377. /*.crt-main .textarea /deep/ .el-form-item__label {*/
  1378. /* height: 82px;*/
  1379. /*}*/
  1380. // 控制select为只读的时候显示样式
  1381. .hide-sel {
  1382. .el-input__inner {
  1383. border: 0px;
  1384. }
  1385. .el-icon-arrow-up {
  1386. display: none;
  1387. }
  1388. .el-textarea__inner {
  1389. background-color: #fff !important;
  1390. border: 0;
  1391. }
  1392. .el-date-editor {
  1393. i {
  1394. display: none;
  1395. }
  1396. }
  1397. .is-disabled {
  1398. .el-input__inner:hover {
  1399. background-color: #fff !important;
  1400. border: 0;
  1401. }
  1402. color: #606266;
  1403. .el-input__inner {
  1404. background-color: #fff !important;
  1405. border: 0;
  1406. color: #606266;
  1407. }
  1408. .el-textarea__inner {
  1409. background-color: #fff !important;
  1410. border: 0;
  1411. color: #606266;
  1412. }
  1413. }
  1414. }
  1415. // 控制select为只读的时候显示样式
  1416. /deep/.ws-class-table-col {
  1417. height: auto;
  1418. padding: 0px 2px;
  1419. /deep/.el-input__inner {
  1420. padding: 0px 2px;
  1421. }
  1422. }
  1423. /deep/.is-disabled {
  1424. .el-input__prefix,
  1425. .el-input__suffix {
  1426. display: none;
  1427. }
  1428. .el-input__inner {
  1429. background-color: #fff;
  1430. border-color: #fff !important;
  1431. color: #000 !important;
  1432. font-size: 14px;
  1433. cursor: text;
  1434. padding: 0 !important;
  1435. }
  1436. }
  1437. .winseaview-view {
  1438. padding: 0 0 20px;
  1439. }
  1440. .container {
  1441. overflow: scroll;
  1442. height: 93vh;
  1443. }
  1444. /deep/.ws-info-table[data-v-850a44a6] .el-form-item .el-form-item__label {
  1445. width: 130px;
  1446. }
  1447. </style>