purchaseContractAdd.vue 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496
  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 (
  710. this.deptBudgetList.buyer.length < 4 ||
  711. this.deptBudgetList.buyer.length > 30
  712. ) {
  713. this.$message({
  714. message: '买方名称长度不符合要求,请输入4到30个字符之内!',
  715. type: 'warning',
  716. })
  717. return
  718. }
  719. if (!this.deptBudgetList.seller) {
  720. this.$message({
  721. message: '请输入卖方名称!',
  722. type: 'warning',
  723. })
  724. return
  725. }
  726. if (
  727. this.deptBudgetList.seller.length < 4 ||
  728. this.deptBudgetList.seller.length > 30
  729. ) {
  730. this.$message({
  731. message: '卖方名称长度不符合要求,请输入4到30个字符之内!',
  732. type: 'warning',
  733. })
  734. return
  735. }
  736. if (!this.deptBudgetList.buyerPhone) {
  737. this.$message({
  738. message: '请输入买方电话!',
  739. type: 'warning',
  740. })
  741. return
  742. }
  743. if (isNaN(this.deptBudgetList.buyerPhone)) {
  744. this.$message({
  745. message: '输入买方电话有误!',
  746. type: 'warning',
  747. })
  748. return
  749. }
  750. if (
  751. this.deptBudgetList.buyerPhone.length < 7 ||
  752. this.deptBudgetList.buyerPhone.length > 20
  753. ) {
  754. this.$message({
  755. message: '买方电话长度不符合要求,请输入7到20个字符之内!',
  756. type: 'warning',
  757. })
  758. return
  759. }
  760. if (!this.deptBudgetList.sellerPhone) {
  761. this.$message({
  762. message: '请输入卖方电话!',
  763. type: 'warning',
  764. })
  765. return
  766. }
  767. if (isNaN(this.deptBudgetList.sellerPhone)) {
  768. this.$message({
  769. message: '输入卖方电话有误!',
  770. type: 'warning',
  771. })
  772. return
  773. }
  774. if (
  775. this.deptBudgetList.buyerPhone.length < 7 ||
  776. this.deptBudgetList.buyerPhone.length > 20
  777. ) {
  778. this.$message({
  779. message: '卖方电话长度不符合要求,请输入7到20个字符之内!',
  780. type: 'warning',
  781. })
  782. return
  783. }
  784. if (!this.deptBudgetList.settlementMethod) {
  785. this.$message({
  786. message: '请输入结算方式!',
  787. type: 'warning',
  788. })
  789. return
  790. }
  791. if (!this.deptBudgetList.sourceGoods) {
  792. this.$message({
  793. message: '请输入货源地!',
  794. type: 'warning',
  795. })
  796. return
  797. }
  798. if (!this.deptBudgetList.placeDelivery) {
  799. this.$message({
  800. message: '请输入交货地!',
  801. type: 'warning',
  802. })
  803. return
  804. }
  805. if (!this.deptBudgetList.weight) {
  806. this.$message({
  807. message: '请输入重量!',
  808. type: 'warning',
  809. })
  810. return
  811. }
  812. if (
  813. isNaN(this.deptBudgetList.weight) ||
  814. (String(this.deptBudgetList.weight).indexOf('.') != -1 &&
  815. String(this.deptBudgetList.weight).length -
  816. (String(this.deptBudgetList.weight).indexOf('.') + 1) >
  817. 3) ||
  818. this.deptBudgetList.weight < 0 ||
  819. this.deptBudgetList.weight > 200000
  820. ) {
  821. this.$message({
  822. message: '输入重量有误!',
  823. type: 'warning',
  824. })
  825. return
  826. }
  827. if (
  828. !this.deptBudgetList.overShort &&
  829. isNaN(this.deptBudgetList.overShort)
  830. ) {
  831. this.$message({
  832. message: '溢短装输入有误!',
  833. type: 'warning',
  834. })
  835. return
  836. }
  837. if (
  838. !this.deptBudgetList.unitContractPrice &&
  839. isNaN(this.deptBudgetList.unitContractPrice)
  840. ) {
  841. this.$message({
  842. message: '合同单价输入有误!',
  843. type: 'warning',
  844. })
  845. return
  846. }
  847. if (
  848. !this.deptBudgetList.totalContractPrice &&
  849. isNaN(this.deptBudgetList.totalContractPrice)
  850. ) {
  851. this.$message({
  852. message: '合同总价输入有误!',
  853. type: 'warning',
  854. })
  855. return
  856. }
  857. if (!this.deptBudgetList.deliveryDateStart) {
  858. this.$message({
  859. message: '请选择交货日期(起)',
  860. type: 'warning',
  861. })
  862. return
  863. }
  864. if (!this.deptBudgetList.deliveryDateEnd) {
  865. this.$message({
  866. message: '请选择交货日期(止)',
  867. type: 'warning',
  868. })
  869. return
  870. }
  871. //时间
  872. if (
  873. new Date(this.deptBudgetList.deliveryDateStart).getTime() >
  874. new Date(this.deptBudgetList.deliveryDateEnd).getTime()
  875. ) {
  876. this.$message({
  877. message: '交货日期(止)选择错误',
  878. type: 'warning',
  879. })
  880. return
  881. }
  882. if (!this.deptBudgetList.signingDate) {
  883. this.$message({
  884. message: '请选择签订日期',
  885. type: 'warning',
  886. })
  887. return
  888. }
  889. if (!this.deptBudgetList.contractGoodsInfo.goodsName) {
  890. this.$message({
  891. message: '请选择货名',
  892. type: 'warning',
  893. })
  894. return
  895. }
  896. if (!this.deptBudgetList.contractGoodsInfo.waterContent) {
  897. this.$message({
  898. message: '请选择水分',
  899. type: 'warning',
  900. })
  901. return
  902. }
  903. if (!this.deptBudgetList.contractGoodsInfo.grade) {
  904. this.$message({
  905. message: '请选择品级',
  906. type: 'warning',
  907. })
  908. return
  909. }
  910. if (
  911. !this.deptBudgetList.contractGoodsInfo.impurity ||
  912. (String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') !=
  913. -1 &&
  914. String(this.deptBudgetList.contractGoodsInfo.impurity).length -
  915. (String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf(
  916. '.'
  917. ) +
  918. 1) >
  919. 2)
  920. ) {
  921. this.$message({
  922. message: '杂质输入错误',
  923. type: 'warning',
  924. })
  925. return
  926. }
  927. if (
  928. !this.deptBudgetList.contractGoodsInfo.bulkDensity ||
  929. (String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf(
  930. '.'
  931. ) != -1 &&
  932. String(this.deptBudgetList.contractGoodsInfo.bulkDensity).length -
  933. (String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf(
  934. '.'
  935. ) +
  936. 1) >
  937. 2)
  938. ) {
  939. this.$message({
  940. message: '容重输入错误',
  941. type: 'warning',
  942. })
  943. return
  944. }
  945. if (
  946. !this.deptBudgetList.contractGoodsInfo.mildewGrain ||
  947. (String(this.deptBudgetList.contractGoodsInfo.mildewGrain).indexOf(
  948. '.'
  949. ) != -1 &&
  950. String(this.deptBudgetList.contractGoodsInfo.mildewGrain).length -
  951. (String(this.deptBudgetList.contractGoodsInfo.mildewGrain).indexOf(
  952. '.'
  953. ) +
  954. 1) >
  955. 2)
  956. ) {
  957. this.$message({
  958. message: '霉变粒输入错误',
  959. type: 'warning',
  960. })
  961. return
  962. }
  963. if (
  964. !this.deptBudgetList.contractGoodsInfo.jiaorenli ||
  965. (String(this.deptBudgetList.contractGoodsInfo.jiaorenli).indexOf('.') !=
  966. -1 &&
  967. String(this.deptBudgetList.contractGoodsInfo.jiaorenli).length -
  968. (String(this.deptBudgetList.contractGoodsInfo.jiaorenli).indexOf(
  969. '.'
  970. ) +
  971. 1) >
  972. 2)
  973. ) {
  974. this.$message({
  975. message: '热损伤输入错误',
  976. type: 'warning',
  977. })
  978. return
  979. }
  980. if (
  981. !this.deptBudgetList.contractGoodsInfo.imperfectGrain ||
  982. (String(this.deptBudgetList.contractGoodsInfo.imperfectGrain).indexOf(
  983. '.'
  984. ) != -1 &&
  985. String(this.deptBudgetList.contractGoodsInfo.imperfectGrain).length -
  986. (String(
  987. this.deptBudgetList.contractGoodsInfo.imperfectGrain
  988. ).indexOf('.') +
  989. 1) >
  990. 2)
  991. ) {
  992. this.$message({
  993. message: '不完整粒输入错误',
  994. type: 'warning',
  995. })
  996. return
  997. }
  998. if (
  999. (this.deptBudgetList.contractProcessInfo.goodsNameKey > 1000000000) |
  1000. (this.deptBudgetList.contractProcessInfo.goodsNameKey < 0) ||
  1001. (String(this.deptBudgetList.contractProcessInfo.goodsNameKey).indexOf(
  1002. '.'
  1003. ) != -1 &&
  1004. String(this.deptBudgetList.contractProcessInfo.goodsNameKey).length -
  1005. (String(
  1006. this.deptBudgetList.contractProcessInfo.goodsNameKey
  1007. ).indexOf('.') +
  1008. 1) >
  1009. 2)
  1010. ) {
  1011. this.$message({
  1012. message: '合同收入金额输入错误',
  1013. type: 'warning',
  1014. })
  1015. return
  1016. }
  1017. if (
  1018. (this.deptBudgetList.contractProcessInfo.waterContent > 10000000) |
  1019. (this.deptBudgetList.contractProcessInfo.waterContent < 0) ||
  1020. (String(this.deptBudgetList.ccontractProcessInfo.waterContent).indexOf(
  1021. '.'
  1022. ) != -1 &&
  1023. String(this.deptBudgetList.contractProcessInfo.waterContent).length -
  1024. (String(
  1025. this.deptBudgetList.contractProcessInfo.waterContent
  1026. ).indexOf('.') +
  1027. 1) >
  1028. 2)
  1029. ) {
  1030. this.$message({
  1031. message: '费用金额输入错误',
  1032. type: 'warning',
  1033. })
  1034. return
  1035. }
  1036. if (
  1037. (this.deptBudgetList.contractProcessInfo.goodsName > 1000000000) |
  1038. (this.deptBudgetList.contractProcessInfo.goodsName < 0) ||
  1039. (String(this.deptBudgetList.contractProcessInfo.goodsName).indexOf(
  1040. '.'
  1041. ) != -1 &&
  1042. String(this.deptBudgetList.contractProcessInfo.goodsName).length -
  1043. (String(this.deptBudgetList.contractProcessInfo.goodsName).indexOf(
  1044. '.'
  1045. ) +
  1046. 1) >
  1047. 2)
  1048. ) {
  1049. this.$message({
  1050. message: '已开发票金额输入错误',
  1051. type: 'warning',
  1052. })
  1053. return
  1054. }
  1055. if (
  1056. (this.deptBudgetList.contractProcessInfo.impurity > 1000000000) |
  1057. (this.deptBudgetList.contractProcessInfo.impurity < 0) ||
  1058. (String(this.deptBudgetList.contractProcessInfo.impurity).indexOf(
  1059. '.'
  1060. ) != -1 &&
  1061. String(this.deptBudgetList.contractProcessInfo.impurity).length -
  1062. (String(this.deptBudgetList.contractProcessInfo.impurity).indexOf(
  1063. '.'
  1064. ) +
  1065. 1) >
  1066. 2)
  1067. ) {
  1068. this.$message({
  1069. message: '未开发票金额输入错误',
  1070. type: 'warning',
  1071. })
  1072. return
  1073. }
  1074. if (
  1075. (this.deptBudgetList.contractProcessInfo.imperfectGrain > 200000) |
  1076. (this.deptBudgetList.contractProcessInfo.imperfectGrain < 0) ||
  1077. (String(this.deptBudgetList.contractProcessInfo.imperfectGrain).indexOf(
  1078. '.'
  1079. ) != -1 &&
  1080. String(this.deptBudgetList.contractProcessInfo.imperfectGrain)
  1081. .length -
  1082. (String(
  1083. this.deptBudgetList.contractProcessInfo.imperfectGrain
  1084. ).indexOf('.') +
  1085. 1) >
  1086. 2)
  1087. ) {
  1088. this.$message({
  1089. message: '已完成发运量输入错误',
  1090. type: 'warning',
  1091. })
  1092. return
  1093. }
  1094. this.$refs.deptBudgetList.validate((valid) => {
  1095. if (valid) {
  1096. this.deptBudgetList.compId = this.compId
  1097. this.deptBudgetList.contractType = 2
  1098. addList(this.deptBudgetList)
  1099. .toPromise()
  1100. .then((response) => {
  1101. this.$message.success('添加成功')
  1102. this.$router.push({ path: 'salesContract' })
  1103. })
  1104. } else {
  1105. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1106. return false
  1107. }
  1108. })
  1109. },
  1110. resetForm(deptBudgetList) {
  1111. this.$refs[deptBudgetList].resetFields()
  1112. },
  1113. addClick() {
  1114. // let [flag, constValue, constKey] = ['check', '', '']
  1115. // let obj = { flag, constValue, constKey }
  1116. // let objAdd = { flag: 'add', constValue: '新增项目', constKey: '' }
  1117. // let result = this.unitList.filter((item, val, arr) => {
  1118. // return item.id != '1'
  1119. // })
  1120. // result.push(obj)
  1121. // result.push(objAdd)
  1122. // this.unitList = result
  1123. this.unitList.push({
  1124. flag: 'add',
  1125. constValue: '',
  1126. constKey: '',
  1127. })
  1128. },
  1129. saveClick(item, index) {
  1130. console.log(item)
  1131. if (Object.is(item.id, 1)) {
  1132. return
  1133. }
  1134. if (Object.is(this.unitList[index].flag, 'delete')) {
  1135. this.$set(this.unitList, index, { flag: 'check' })
  1136. } else {
  1137. this.$set(this.unitList, index, { flag: 'delete' })
  1138. }
  1139. if (!item.constValue) {
  1140. this.unitList.splice(index, 1)
  1141. return
  1142. }
  1143. if (item.flag == 'add') {
  1144. item.constKey = Math.random() * 20
  1145. this.acceptanceCheck.compId = this.compId
  1146. this.acceptanceCheck.constKey = item.constKey
  1147. this.acceptanceCheck.constCode = 'TYPEYAN'
  1148. this.acceptanceCheck.constValue = item.constValue
  1149. this.acceptanceCheck.id = item.id
  1150. addxiala(this.acceptanceCheck)
  1151. .toPromise()
  1152. .then((response) => {
  1153. this.getUnitList()
  1154. })
  1155. } else if (item.flag == 'check') {
  1156. this.acceptanceCheck.compId = this.compId
  1157. this.acceptanceCheck.constKey = item.constKey
  1158. this.acceptanceCheck.constCode = 'TYPEYAN'
  1159. this.acceptanceCheck.constValue = item.constValue
  1160. this.acceptanceCheck.id = item.id
  1161. editxiala(this.acceptanceCheck)
  1162. .toPromise()
  1163. .then((response) => {
  1164. this.getUnitList()
  1165. })
  1166. }
  1167. },
  1168. // selectContract(val) {
  1169. // let key = this.unitList.find((item) => item.constValue === val).constKey
  1170. // this.pleaseChoose = val
  1171. // },
  1172. handleExamine() {},
  1173. approve() {},
  1174. // returnsales() {
  1175. // this.$router.push({ path: 'purchaseContract' })
  1176. // },
  1177. selectChapterTwo(e) {
  1178. for (var i = 0; i < this.ChapterTwoList.length; i++) {
  1179. if (this.ChapterTwoList[i].constValue == e) {
  1180. this.deptBudgetList.gradeKey = this.ChapterTwoList[i].constKey
  1181. }
  1182. }
  1183. },
  1184. selectunitList(e) {
  1185. for (var i = 0; i < this.unitList.length; i++) {
  1186. if (this.unitList[i].constValue == e) {
  1187. this.deptBudgetList.acceptanceMethodKey = this.unitList[i].constKey
  1188. }
  1189. }
  1190. },
  1191. selectgrade(e) {
  1192. for (var i = 0; i < this.gradeList.length; i++) {
  1193. if (this.gradeList[i].constValue == e) {
  1194. this.deptBudgetList.gradeKey = this.gradeList[i].constKey
  1195. }
  1196. }
  1197. },
  1198. selectgoodsName(e) {
  1199. for (var i = 0; i < this.goodnameList.length; i++) {
  1200. if (this.goodnameList[i].constValue == e) {
  1201. this.deptBudgetList.goodsNameKey = this.goodnameList[i].constKey
  1202. }
  1203. }
  1204. },
  1205. selectpackingMethod(e) {
  1206. for (var i = 0; i < this.packtypeList.length; i++) {
  1207. if (this.packtypeList[i].constValue == e) {
  1208. this.deptBudgetList.packingMethodKey = this.packtypeList[i].constKey
  1209. }
  1210. }
  1211. },
  1212. // 编辑
  1213. editClick(item, index) {
  1214. const map = JSON.parse(JSON.stringify(item))
  1215. if (Object.is(item.id, 1)) {
  1216. return
  1217. }
  1218. if (Object.is(this.unitList[index].flag, 'delete')) {
  1219. map.flag = 'check'
  1220. this.$set(this.unitList, index, map)
  1221. } else {
  1222. map.flag = 'delete'
  1223. this.$set(this.unitList, index, map)
  1224. }
  1225. },
  1226. // 删除
  1227. deleteClick(item, index) {
  1228. if (Object.is(item.constKey, 1)) {
  1229. return
  1230. }
  1231. if (!item.constValue) {
  1232. this.unitList.splice(index, 1)
  1233. return
  1234. }
  1235. delxiala({ id: this.unitList[index].id })
  1236. .toPromise()
  1237. .then((response) => {
  1238. this.getUnitList()
  1239. this.pleaseChoose = ''
  1240. })
  1241. },
  1242. },
  1243. }
  1244. </script>
  1245. <style lang="scss" scoped>
  1246. .el-form {
  1247. padding: 0 15%;
  1248. }
  1249. /deep/.ws-info-table .el-form-item {
  1250. border-right: 1px solid #cdd2dc;
  1251. border-bottom: 1px solid #cdd2dc;
  1252. }
  1253. .readonly {
  1254. position: relative;
  1255. }
  1256. .readonly:after {
  1257. content: '*';
  1258. color: #ff2727;
  1259. position: absolute;
  1260. right: 8px;
  1261. z-index: 10;
  1262. top: 21%;
  1263. font-size: 20px;
  1264. }
  1265. .title {
  1266. position: relative;
  1267. }
  1268. .title::before {
  1269. content: '';
  1270. display: inline-block;
  1271. width: 5px;
  1272. height: 30px;
  1273. background: #5473e8;
  1274. position: absolute;
  1275. left: 0;
  1276. }
  1277. .el-button--primary {
  1278. background-color: #5878e8;
  1279. border-color: #5878e8;
  1280. }
  1281. .el-col {
  1282. background: #f6f7fc;
  1283. }
  1284. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1285. padding: 0 25px;
  1286. border-left: 1px solid #cdd2dc;
  1287. background: #fafbfc;
  1288. }
  1289. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1290. width: 140px;
  1291. text-align: center;
  1292. background: #f0f2f6;
  1293. // border: 1px solid #cdd2dc;
  1294. }
  1295. .button-container {
  1296. display: flex;
  1297. flex-wrap: nowrap;
  1298. justify-content: space-between;
  1299. align-items: center;
  1300. background-color: #fff;
  1301. width: 100%;
  1302. height: 50px;
  1303. padding: 0 10px;
  1304. & > div {
  1305. margin-left: 10px;
  1306. display: flex;
  1307. flex-wrap: nowrap;
  1308. flex-direction: row;
  1309. & > span {
  1310. line-height: 50px;
  1311. }
  1312. }
  1313. /deep/.auditFlow-box {
  1314. position: unset;
  1315. margin-left: 10px;
  1316. &/deep/.auditFlow-icon {
  1317. width: auto;
  1318. padding-right: 30px;
  1319. }
  1320. &/deep/.auditFlow-main {
  1321. position: absolute;
  1322. }
  1323. }
  1324. }
  1325. .box-app {
  1326. display: inline-block;
  1327. float: left;
  1328. margin-left: 30px;
  1329. line-height: 50px;
  1330. }
  1331. /deep/.el-dialog {
  1332. .el-form-item {
  1333. margin-bottom: 0 !important;
  1334. .el-input--medium {
  1335. textarea {
  1336. min-height: 100px !important;
  1337. }
  1338. }
  1339. }
  1340. }
  1341. .collapse-bottom {
  1342. margin-bottom: 20px;
  1343. }
  1344. .input-main .textarea .el-textarea__inner {
  1345. width: 100%;
  1346. z-index: 1;
  1347. }
  1348. .bg-left {
  1349. padding-left: 30px;
  1350. }
  1351. .bg-right {
  1352. padding-right: 10px;
  1353. text-align: right;
  1354. }
  1355. .bg-bottom {
  1356. margin: 15px 0px;
  1357. }
  1358. .wenzi {
  1359. width: 900px;
  1360. margin: 0 auto;
  1361. }
  1362. .wenzi h3 {
  1363. display: inline-block;
  1364. left: 10px;
  1365. }
  1366. .wenzi p {
  1367. display: inline-block;
  1368. }
  1369. .center {
  1370. width: 900px;
  1371. margin: 0 auto;
  1372. }
  1373. .el-form-item {
  1374. width: 50%;
  1375. }
  1376. .el-form-item__label {
  1377. text-align: center;
  1378. }
  1379. .ce {
  1380. width: 900px;
  1381. margin: 0 auto;
  1382. }
  1383. /*.crt-main .textarea /deep/ .el-form-item__label {*/
  1384. /* height: 82px;*/
  1385. /*}*/
  1386. // 控制select为只读的时候显示样式
  1387. .hide-sel {
  1388. .el-input__inner {
  1389. border: 0px;
  1390. }
  1391. .el-icon-arrow-up {
  1392. display: none;
  1393. }
  1394. .el-textarea__inner {
  1395. background-color: #fff !important;
  1396. border: 0;
  1397. }
  1398. .el-date-editor {
  1399. i {
  1400. display: none;
  1401. }
  1402. }
  1403. .is-disabled {
  1404. .el-input__inner:hover {
  1405. background-color: #fff !important;
  1406. border: 0;
  1407. }
  1408. color: #606266;
  1409. .el-input__inner {
  1410. background-color: #fff !important;
  1411. border: 0;
  1412. color: #606266;
  1413. }
  1414. .el-textarea__inner {
  1415. background-color: #fff !important;
  1416. border: 0;
  1417. color: #606266;
  1418. }
  1419. }
  1420. }
  1421. // 控制select为只读的时候显示样式
  1422. /deep/.ws-class-table-col {
  1423. height: auto;
  1424. padding: 0px 2px;
  1425. /deep/.el-input__inner {
  1426. padding: 0px 2px;
  1427. }
  1428. }
  1429. /deep/.is-disabled {
  1430. .el-input__prefix,
  1431. .el-input__suffix {
  1432. display: none;
  1433. }
  1434. .el-input__inner {
  1435. background-color: #fff;
  1436. border-color: #fff !important;
  1437. color: #000 !important;
  1438. font-size: 14px;
  1439. cursor: text;
  1440. padding: 0 !important;
  1441. }
  1442. }
  1443. .winseaview-view {
  1444. padding: 0 0 20px;
  1445. }
  1446. .container {
  1447. overflow: scroll;
  1448. height: 93vh;
  1449. }
  1450. /deep/.ws-info-table[data-v-850a44a6] .el-form-item .el-form-item__label {
  1451. width: 130px;
  1452. }
  1453. </style>