tranManagementthirdpartnarReceiving.vue 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131
  1. //他运收货反馈
  2. <template>
  3. <div class="container">
  4. <el-row>
  5. <el-col :span="12">
  6. <h2 class="bg-left title">他运收货反馈</h2>
  7. </el-col>
  8. <el-col :span="12" class="bg-right">
  9. <el-button
  10. class="bg-bottom"
  11. type="primary"
  12. size="small"
  13. @click="returnsales()"
  14. ><img
  15. width="6"
  16. height="10"
  17. style="vertical-align: bottom; margin-right: 3px"
  18. src="../../../public/img/lujing.png"
  19. alt=""
  20. />返回</el-button
  21. >
  22. </el-col>
  23. </el-row>
  24. <ws-form
  25. class="position"
  26. ref="deptBudgetList"
  27. :rules="rules"
  28. :model="deptBudgetList"
  29. >
  30. <div class="small-title" style="font-size: 16px">任务详情</div>
  31. <ws-info-table>
  32. <!--合同编号-->
  33. <ws-form-item label="合同编号" span="1" prop="contractNo">
  34. {{ deptBudgetList.contractNo }}
  35. </ws-form-item>
  36. <!--货名-->
  37. <ws-form-item label="货名" span="1" prop="goodsName">
  38. {{ deptBudgetList.goodsName }}
  39. </ws-form-item>
  40. <!--重量(吨)-->
  41. <ws-form-item label="重量(吨)" span="1" prop="weight">
  42. {{ deptBudgetList.weight }}
  43. </ws-form-item>
  44. <!--发货地址-->
  45. <ws-form-item label="发货地址" span="1" prop="sendDetailedAddress">
  46. {{ deptBudgetList.sendPrivate }}{{ deptBudgetList.sendCity
  47. }}{{ deptBudgetList.sendArea }}
  48. </ws-form-item>
  49. <!--收货地址-->
  50. <ws-form-item label="收货地址" span="1" prop="receiveDetailedAddress">
  51. {{ deptBudgetList.receivePrivate }}{{ deptBudgetList.receiveCity
  52. }}{{ deptBudgetList.receiveArea }}
  53. </ws-form-item>
  54. </ws-info-table>
  55. <div v-show='status' class='flex' style="font-size: 16px;justify-content: space-between;align-items:center;margin-top:10px;">
  56. 汽运反馈
  57. </div>
  58. <div v-show='status' class="liaison">
  59. <div
  60. style="width: 100% justify-content: space-between;align-items:center;"
  61. class="flex"
  62. v-for="(item, index) in this.freightspace"
  63. :key="index"
  64. >
  65. <ws-info-table>
  66. <!-- <el-form-item label="派车编号" prop="caseNo">{{ item.carNumber }}</el-form-item> -->
  67. <el-form-item label="车牌号" prop="carNo">
  68. <ws-input disabled v-model="item.carNo" placeholder="请输入车牌号" maxlength="20" size="small" />
  69. </el-form-item>
  70. <el-form-item label="箱号-1" prop="caseNo" >
  71. <ws-input disabled v-model="item.caseNo" placeholder="请输入箱号" maxlength="20" size="small" />
  72. </el-form-item>
  73. <el-form-item label="箱号-2" prop="caseNoOther">
  74. <ws-input disabled v-model="item.caseNoOther" placeholder="请输入箱号" maxlength="20" size="small" />
  75. </el-form-item>
  76. <el-form-item label="封号-1" prop="titleNo">
  77. <ws-input disabled v-model="item.titleNo" placeholder="请输入封号" maxlength="20" size="small" />
  78. </el-form-item>
  79. <el-form-item label="封号-2" prop="titleNoOther" >
  80. <ws-input disabled v-model="item.titleNoOther" placeholder="请输入封号" maxlength="20" size="small" />
  81. </el-form-item>
  82. <ws-form-item label="装车净重(吨)" span="1" prop="loadNetWeight">
  83. <ws-input
  84. disabled
  85. v-model="item.loadNetWeight"
  86. placeholder="请输入装车净重"
  87. maxlength="20"
  88. size="small"
  89. /></ws-form-item>
  90. <ws-form-item label="卸车净重(吨)" span="1" prop="unloadNetWeight">
  91. <ws-input
  92. :disabled="item.disabled"
  93. v-model="item.unloadNetWeight"
  94. placeholder="请输入卸车净重"
  95. maxlength="20"
  96. size="small"
  97. /></ws-form-item>
  98. </ws-info-table>
  99. </div>
  100. </div>
  101. <div v-show='status1' class='flex' style="font-size: 16px;justify-content: space-between;align-items:center;margin-top:10px;">
  102. 火运反馈
  103. </div>
  104. <div v-show='status1' class="liaison">
  105. <div
  106. style="width: 100% justify-content: space-between;align-items:center;"
  107. class="flex "
  108. v-for="(item, index) in this.freightspace1"
  109. :key="index"
  110. >
  111. <ws-info-table>
  112. <el-form-item label="车号" prop="carNo" >
  113. <ws-input disabled v-model="item.carNo" placeholder="请输入车号" maxlength="20" size="small" />
  114. </el-form-item>
  115. <el-form-item label="车厢号-1" prop="caseNo">
  116. <ws-input disabled v-model="item.boxNo1" placeholder="请输入车厢号" maxlength="20" size="small" />
  117. </el-form-item>
  118. <el-form-item label="车厢号-2" prop="caseNo">
  119. <ws-input disabled v-model="item.boxNo2" placeholder="请输入车厢号" maxlength="20" size="small" />
  120. </el-form-item>
  121. <ws-form-item label="装车净重(吨)" span="1" prop="loadNetWeight">
  122. <ws-input
  123. disabled
  124. v-model="item.loadNetWeight"
  125. placeholder="请输入装车净重"
  126. maxlength="20"
  127. size="small"
  128. /></ws-form-item>
  129. <ws-form-item label="卸车净重(吨)" span="1" prop="unloadNetWeight">
  130. <ws-input
  131. :disabled="item.disabled"
  132. v-model="item.unloadNetWeight"
  133. placeholder="请输入卸车净重"
  134. maxlength="20"
  135. size="small"
  136. /></ws-form-item>
  137. </ws-info-table>
  138. </div>
  139. </div>
  140. <div v-show='status2' class='flex' style="font-size: 16px;justify-content: space-between;align-items:center;margin-top:10px;">
  141. 散船反馈
  142. </div>
  143. <div v-show='status2' class="liaison">
  144. <div
  145. style="width: 100% justify-content: space-between;align-items:center;"
  146. class="flex"
  147. v-for="(item, index) in this.freightspace2"
  148. :key="index"
  149. >
  150. <ws-info-table>
  151. <el-form-item label="船名" prop="caseNo" >{{ item.carNumber }}
  152. <ws-input disabled v-model="item.shipName" placeholder="请输入船名" maxlength="20" size="small" />
  153. </el-form-item>
  154. <el-form-item label="航次" prop="caseNo">
  155. <ws-input disabled v-model="item.shipNo" placeholder="请输入航次" maxlength="20" size="small" />
  156. </el-form-item>
  157. <ws-form-item label="装船净重(吨)" span="1" prop="loadNetWeight">
  158. <ws-input disabled v-model="item.loadNetWeight" placeholder="请输入装船净重" maxlength="20" size="small" />
  159. </ws-form-item>
  160. <ws-form-item label="卸船净重(吨)" span="1" prop="unloadNetWeight">
  161. <ws-input
  162. :disabled="item.disabled"
  163. v-model="item.unloadNetWeight"
  164. placeholder="请输入卸船净重"
  165. maxlength="20"
  166. size="small"
  167. /></ws-form-item>
  168. </ws-info-table>
  169. </div>
  170. </div>
  171. <div v-show='status3' class='flex' style="font-size: 16px;justify-content: space-between;align-items:center;margin-top:10px;">
  172. 集装箱船反馈
  173. </div>
  174. <div v-show='status3' class="liaison">
  175. <div
  176. style="width: 100% justify-content: space-between;align-items:center;"
  177. class="flex"
  178. v-for="(item, index) in this.freightspace3"
  179. :key="index"
  180. >
  181. <ws-info-table>
  182. <el-form-item label="箱号" prop="caseNo" >
  183. {{ item.carNumber }}
  184. <ws-input disabled v-model="item.caseNo" placeholder="请输入箱号" maxlength="20" size="small" />
  185. </el-form-item>
  186. <el-form-item label="封号" prop="titleNo">
  187. <ws-input disabled v-model="item.titleNo" placeholder="请输入封号" maxlength="20" size="small" />
  188. </el-form-item>
  189. <ws-form-item label="装船净重(吨)" span="1" prop="loadNetWeight">
  190. <ws-input disabled v-model="item.loadNetWeight" placeholder="请输入装船净重" maxlength="20" size="small" />
  191. </ws-form-item>
  192. <ws-form-item label="卸船净重(吨)" span="1" prop="unloadNetWeight">
  193. <ws-input
  194. :disabled="item.disabled"
  195. v-model="item.unloadNetWeight"
  196. placeholder="请输入卸船净重"
  197. maxlength="20"
  198. size="small"
  199. /></ws-form-item>
  200. </ws-info-table>
  201. </div>
  202. </div>
  203. </ws-form>
  204. <!-- 完货 -->
  205. <div style="text-align: right; padding: 10px" class="center">
  206. <el-button
  207. class="bg-bottom"
  208. type="primary"
  209. size="small"
  210. @click="submit(deptBudgetList)"
  211. >提交</el-button
  212. >
  213. <el-button
  214. class="bg-bottom"
  215. type="primary"
  216. size="small"
  217. @click="finished(deptBudgetList)"
  218. >完货</el-button
  219. >
  220. </div>
  221. </div>
  222. </template>
  223. <script>
  224. import { regionData, CodeToText, TextToCode } from 'element-china-area-data'
  225. import { seeCat, packList, feedback, stateRec,state,gettranprocessinfo,posttranprocessinfo } from '@/model/transport/index'
  226. import { getstaff } from '@/model/warehouse/index'
  227. import WsUpload from '@/components/WsUpload'
  228. import mapDrag from '@/components/mapdrag/mapdrag'
  229. export default {
  230. name: 'viewSpareMoney',
  231. components: {
  232. WsUpload,
  233. mapDrag,
  234. },
  235. watch: {
  236. vesselId(val) {
  237. this.getVesselData()
  238. },
  239. isShow(val) {
  240. this.showType = val
  241. },
  242. },
  243. data() {
  244. return {
  245. pictureTotal: 0,
  246. readonly:false,
  247. deptBudgetList: {
  248. totalStorage: 0,
  249. },
  250. heightData: '600px',
  251. checkList:[],
  252. compId: localStorage.getItem('ws-pf_compId'),
  253. rules: {
  254. warehouseName: [
  255. {
  256. required: true,
  257. message: '请输入仓库名称',
  258. trigger: 'blur',
  259. },
  260. {
  261. min: 2,
  262. max: 20,
  263. message: '仓库名长度不符合要求,请输入2-20字符之内',
  264. trigger: 'blur',
  265. },
  266. ],
  267. },
  268. freightspace1: [
  269. {
  270. accountTypeFlag: '1',
  271. payeeName: '',
  272. payeeNumberCard: '',
  273. compName: '',
  274. bankDeposit: '',
  275. addressUrlArray: [],
  276. bankCard: '',
  277. },
  278. ],
  279. freightspace: [
  280. {
  281. carNumber:'',
  282. caseNo:'',
  283. titleNo:'',
  284. carNo: '',
  285. loadNetWeight: '',
  286. unloadPoundImg: '',
  287. },
  288. ],
  289. freightspace2: [
  290. {
  291. carNumber:'',
  292. driver: '',
  293. driverPhone: '',
  294. carNo: '',
  295. loadNetWeight: '',
  296. unloadPoundImg: '',
  297. },
  298. ],
  299. freightspace3: [
  300. {
  301. carNumber:'',
  302. driver: '',
  303. driverPhone: '',
  304. carNo: '',
  305. loadNetWeight: '',
  306. unloadPoundImg: '',
  307. },
  308. ],
  309. status:false,
  310. status1:false,
  311. status2:false,
  312. status3:false,
  313. disabled:false,
  314. disabled1:false,
  315. disabled2:false,
  316. disabled3:false,
  317. name: '',
  318. staffList: [],
  319. }
  320. },
  321. mounted(){
  322. this.deptBudgetList.id = this.$route.query.id
  323. this.getList()
  324. },
  325. computed: {
  326. },
  327. methods: {
  328. checkchange(e){
  329. if(e.indexOf('汽运')!=-1){
  330. this.status=true
  331. }else{
  332. this.status=false
  333. }
  334. if(e.indexOf('火运')!=-1){
  335. this.status1=true
  336. }else{
  337. this.status1=false
  338. }
  339. if(e.indexOf('散船')!=-1){
  340. this.status2=true
  341. }else{
  342. this.status2=false
  343. }
  344. if(e.indexOf('集装箱船')!=-1){
  345. this.status3=true
  346. }else{
  347. this.status3=false
  348. }
  349. },
  350. selectstaff(e) {
  351. for (var i = 0; i < this.staffList.length; i++) {
  352. if (this.staffList[i].staffName == e) {
  353. this.deptBudgetList.driverPhone = this.staffList[i].staffMobilePhone
  354. this.freightspace[i].driverPhone = this.staffList[i].staffMobilePhone
  355. this.deptBudgetList.personChargeKey = this.staffList[i].staffId
  356. }
  357. }
  358. },
  359. // 关闭 dialog时 处理文件url 初始化upload组件
  360. handleClose() {
  361. this.dialogViewSpareMoney = false
  362. },
  363. add(status) {
  364. if(status==1){
  365. this.freightspace.push({
  366. caseNo: '',
  367. caseNoOther: '',
  368. carNo: '',
  369. titleNo:'',
  370. titleNoOther:'',
  371. loadNetWeight: '',
  372. loadingDate:''
  373. })
  374. }else if(status==2){
  375. this.freightspace1.push({
  376. boxNo1: '',
  377. boxNo2: '',
  378. carNo: '',
  379. loadNetWeight: '',
  380. loadingDate:''
  381. })
  382. }else if(status==3){
  383. this.freightspace2.push({
  384. shipName: '',
  385. shipNo: '',
  386. loadNetWeight: '',
  387. loadingDate:''
  388. })
  389. }else if(status==4){
  390. this.freightspace3.push({
  391. caseNo: '',
  392. titleNo: '',
  393. loadNetWeight: '',
  394. loadingDate:''
  395. })
  396. }
  397. },
  398. del(index,status) {
  399. if(status==1){
  400. this.freightspace.splice(index,1)
  401. }else if(status==2){
  402. this.freightspace1.splice(index,1)
  403. }else if(status==3){
  404. this.freightspace2.splice(index,1)
  405. }else if(status==4){
  406. this.freightspace3.splice(index,1)
  407. }
  408. },
  409. //下拉司机姓名改变事件
  410. selectdriver() {},
  411. // handleChange(value) {
  412. // this.selectedOptions = value
  413. // },
  414. returnsales() {
  415. this.deptBudgetList = {}
  416. this.freightspace = {}
  417. this.selectedOptions = ''
  418. this.deptBudgetList.tranCarInfoList = []
  419. this.$router.push({ path: 'tranManagementReceivingFeedback' })
  420. },
  421. // 上传附件
  422. uploadSuccess(data, files, url) {
  423. console.log(data, files, url)
  424. },
  425. handleClose() {
  426. this.accessoryTFs = false
  427. },
  428. //完货
  429. finished() {
  430. this.$confirm(`完货操作后,反馈信息不可修改,是否确定完货?`, {
  431. confirmButtonText: '确定',
  432. cancelButtonText: '取消',
  433. type: 'warning',
  434. })
  435. .then(() => {
  436. this.$refs.deptBudgetList.validate((valid) => {
  437. if (valid) {
  438. var tranProcessInfo = {}
  439. tranProcessInfo.id = this.deptBudgetList.id
  440. stateRec(tranProcessInfo)
  441. .toPromise()
  442. .then((response) => {
  443. this.$message.success('完货成功')
  444. this.deptBudgetList = {}
  445. this.freightspace = {}
  446. this.selectedOptions = ''
  447. this.$router.push({
  448. path: 'tranManagementReceivingFeedback',
  449. })
  450. })
  451. } else {
  452. return false
  453. }
  454. })
  455. })
  456. .catch(() => {
  457. return false
  458. })
  459. },
  460. submit() {
  461. var tranCarInfoList1=[],tranCarInfoList2=[],tranCarInfoList3=[],tranCarInfoList4=[]
  462. if(this.deptBudgetList.threeTranType.indexOf('汽运')!=-1){
  463. for(let i = 0 ; i < this.freightspace.length ; i++){
  464. if (!String(this.freightspace[i].unloadNetWeight)) {
  465. this.$message({
  466. message: '卸车净重不能为空!',
  467. type: 'warning',
  468. })
  469. return
  470. }
  471. if (
  472. this.freightspace[i].unloadNetWeight > 200 ||
  473. this.freightspace[i].unloadNetWeight < 0
  474. ) {
  475. this.$message({
  476. message: '装车净重输入错误',
  477. type: 'warning',
  478. })
  479. return
  480. }
  481. }
  482. tranCarInfoList1=this.freightspace
  483. }
  484. if(this.deptBudgetList.threeTranType.indexOf('火运')!=-1){
  485. for(let i = 0 ; i < this.freightspace1.length ; i++){
  486. if (!String(this.freightspace1[i].unloadNetWeight)) {
  487. this.$message({
  488. message: '卸车净重不能为空!',
  489. type: 'warning',
  490. })
  491. return
  492. }
  493. if (
  494. this.freightspace1[i].unloadNetWeight > 200 ||
  495. this.freightspace1[i].unloadNetWeight < 0
  496. ) {
  497. this.$message({
  498. message: '卸车净重输入错误',
  499. type: 'warning',
  500. })
  501. return
  502. }
  503. }
  504. tranCarInfoList2=this.freightspace1
  505. }
  506. if(this.deptBudgetList.threeTranType.indexOf('散船')!=-1){
  507. for(let i = 0 ; i < this.freightspace2.length ; i++){
  508. if (!String(this.freightspace2[i].unloadNetWeight)) {
  509. this.$message({
  510. message: '卸船净重不能为空!',
  511. type: 'warning',
  512. })
  513. return
  514. }
  515. if (
  516. this.freightspace2[i].unloadNetWeight > 200 ||
  517. this.freightspace2[i].unloadNetWeight < 0
  518. ) {
  519. this.$message({
  520. message: '卸船净重输入错误',
  521. type: 'warning',
  522. })
  523. return
  524. }
  525. }
  526. tranCarInfoList3=this.freightspace2
  527. }
  528. if(this.deptBudgetList.threeTranType.indexOf('集装箱船')!=-1){
  529. for(let i = 0 ; i < this.freightspace3.length ; i++){
  530. if (!String(this.freightspace3[i].unloadNetWeight)) {
  531. this.$message({
  532. message: '卸船净重不能为空!',
  533. type: 'warning',
  534. })
  535. return
  536. }
  537. if (
  538. this.freightspace3[i].unloadNetWeight > 200 ||
  539. this.freightspace3[i].unloadNetWeight < 0
  540. ) {
  541. this.$message({
  542. message: '卸船净重输入错误',
  543. type: 'warning',
  544. })
  545. return
  546. }
  547. }
  548. tranCarInfoList4=this.freightspace3
  549. }
  550. this.$confirm(`提交成功后反馈信息不可修改,是否确定提交?`, {
  551. confirmButtonText: '确定',
  552. cancelButtonText: '取消',
  553. type: 'warning',
  554. })
  555. .then(() => {
  556. this.$refs.deptBudgetList.validate((valid) => {
  557. if (valid) {
  558. posttranprocessinfo({id:this.deptBudgetList.id,contractNo:this.deptBudgetList.contractNo,tranCarInfoList1,tranCarInfoList2,tranCarInfoList3,tranCarInfoList4})
  559. .toPromise()
  560. .then((response) => {
  561. this.$message.success('提交成功')
  562. this.deptBudgetList = {}
  563. this.freightspace = {}
  564. this.selectedOptions = ''
  565. this.$router.push({
  566. path: 'tranManagementReceivingFeedback',
  567. })
  568. })
  569. } else {
  570. // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  571. return false
  572. }
  573. })
  574. })
  575. .catch(() => {
  576. return false
  577. })
  578. },
  579. resetForm(deptBudgetList) {
  580. this.$refs[deptBudgetList].resetFields()
  581. },
  582. getList() {
  583. gettranprocessinfo({ id: this.deptBudgetList.id })
  584. .toPromise()
  585. .then((response) => {
  586. this.deptBudgetList = response
  587. if(response.threeTranType){
  588. if(response.threeTranType.indexOf('汽运')!=-1){
  589. this.status=true
  590. for (let i = 0; i < response.tranCarInfoList1.length; i++) {
  591. if(response.tranCarInfoList1[i].unloadNetWeight){
  592. response.tranCarInfoList1[i].disabled=true
  593. }else{
  594. response.tranCarInfoList1[i].disabled=false
  595. }
  596. }
  597. this.freightspace=response.tranCarInfoList1
  598. }else{
  599. this.status=false
  600. }
  601. if(response.threeTranType.indexOf('火运')!=-1){
  602. this.status1=true
  603. for (let i = 0; i < response.tranCarInfoList2.length; i++) {
  604. if(response.tranCarInfoList2[i].unloadNetWeight){
  605. response.tranCarInfoList2[i].disabled=true
  606. }else{
  607. response.tranCarInfoList2[i].disabled=false
  608. }
  609. if(response.tranCarInfoList2[i].boxNo&&response.tranCarInfoList2[i].boxNo.indexOf(',')!=-1){
  610. response.tranCarInfoList2[i].boxNo1=response.tranCarInfoList2[i].boxNo.split(',')[0]
  611. response.tranCarInfoList2[i].boxNo2=response.tranCarInfoList2[i].boxNo.split(',')[1]
  612. }else{
  613. response.tranCarInfoList2[i].boxNo1=response.tranCarInfoList2[i].boxNo
  614. }
  615. }
  616. this.freightspace1=response.tranCarInfoList2
  617. }else{
  618. this.status1=false
  619. }
  620. if(response.threeTranType.indexOf('散船')!=-1){
  621. this.status2=true
  622. for (let i = 0; i < response.tranCarInfoList3.length; i++) {
  623. if(response.tranCarInfoList3[i].unloadNetWeight){
  624. response.tranCarInfoList3[i].disabled=true
  625. }else{
  626. response.tranCarInfoList3[i].disabled=false
  627. }
  628. }
  629. if(response.tranCarInfoList3.length>0){
  630. this.disabled2=true
  631. }else{
  632. this.disabled2=false
  633. }
  634. this.freightspace2=response.tranCarInfoList3
  635. }else{
  636. this.status2=false
  637. }
  638. if(response.threeTranType.indexOf('集装箱船')!=-1){
  639. this.status3=true
  640. for (let i = 0; i < response.tranCarInfoList4.length; i++) {
  641. if(response.tranCarInfoList4[i].unloadNetWeight){
  642. response.tranCarInfoList4[i].disabled=true
  643. }else{
  644. response.tranCarInfoList4[i].disabled=false
  645. }
  646. }
  647. this.freightspace3=response.tranCarInfoList4
  648. }else{
  649. this.status3=false
  650. }
  651. }
  652. })
  653. //司机姓名下拉
  654. getstaff({ compId: localStorage.getItem('ws-pf_compId') })
  655. .toPromise()
  656. .then((response) => {
  657. this.options = response
  658. this.staffList = response
  659. }),
  660. //车型
  661. packList({ constId: 'TRAN5' })
  662. .toPromise()
  663. .then((response) => {
  664. this.carModel = response
  665. })
  666. },
  667. handleExamine() {},
  668. approve() {},
  669. selectChapterTwo(e) {
  670. for (var i = 0; i < this.ChapterTwoList.length; i++) {
  671. if (this.ChapterTwoList[i].constValue == e) {
  672. this.deptBudgetList.gradeKey = this.ChapterTwoList[i].constKey
  673. }
  674. }
  675. },
  676. selectunitList(e) {
  677. for (var i = 0; i < this.unitList.length; i++) {
  678. if (this.unitList[i].constValue == e) {
  679. this.deptBudgetList.acceptanceMethodKey = this.unitList[i].constKey
  680. }
  681. }
  682. },
  683. selectgrade(e) {
  684. for (var i = 0; i < this.gradeList.length; i++) {
  685. if (this.gradeList[i].constValue == e) {
  686. this.deptBudgetList.gradeKey = this.gradeList[i].constKey
  687. }
  688. }
  689. },
  690. selectgoodsName(e) {
  691. for (var i = 0; i < this.goodnameList.length; i++) {
  692. if (this.goodnameList[i].constValue == e) {
  693. this.deptBudgetList.goodsNameKey = this.goodnameList[i].constKey
  694. }
  695. }
  696. },
  697. selectpackingMethod(e) {
  698. for (var i = 0; i < this.packtypeList.length; i++) {
  699. if (this.packtypeList[i].constValue == e) {
  700. this.deptBudgetList.packingMethodKey = this.packtypeList[i].constKey
  701. }
  702. }
  703. },
  704. uploadSuccessHandle1(e, index) {
  705. this.pictureTotal++
  706. if (this.deptBudgetList.tranCarInfoList[0].unloadPoundImg) {
  707. this.deptBudgetList.tranCarInfoList[0].unloadPoundImg += ',' + e.url
  708. } else {
  709. this.deptBudgetList.tranCarInfoList[0].unloadPoundImg = e.url
  710. }
  711. feedback(this.deptBudgetList)
  712. .toPromise()
  713. .then((response) => {})
  714. },
  715. },
  716. }
  717. </script>
  718. <style lang="scss" scoped>
  719. /deep/.totalStorage .el-input__inner {
  720. color: #afb5cb;
  721. background: #f5f7fa;
  722. }
  723. .small-title {
  724. position: relative;
  725. padding: 10px;
  726. font-weight: 600;
  727. }
  728. .small-title::before {
  729. position: absolute;
  730. content: '';
  731. display: block;
  732. background: #5473e8;
  733. width: 4px;
  734. height: 14px;
  735. left: 0px;
  736. top: 13px;
  737. }
  738. .position {
  739. position: relative;
  740. }
  741. .amap-page-container {
  742. width: 300px;
  743. height: 300px;
  744. }
  745. .el-form {
  746. padding: 0 15%;
  747. }
  748. /deep/.ws-info-table .el-form-item {
  749. border-right: 1px solid transparent;
  750. border-bottom: 1px solid transparent;
  751. }
  752. .readonly {
  753. position: relative;
  754. }
  755. .readonly:after {
  756. content: '*';
  757. color: #ff2727;
  758. position: absolute;
  759. right: 8px;
  760. z-index: 10;
  761. top: 21%;
  762. font-size: 20px;
  763. }
  764. .title {
  765. position: relative;
  766. }
  767. .title::before {
  768. content: '';
  769. display: inline-block;
  770. width: 5px;
  771. height: 30px;
  772. background: #5473e8;
  773. position: absolute;
  774. left: 0;
  775. }
  776. .el-button--primary {
  777. background-color: #5878e8;
  778. border-color: #5878e8;
  779. }
  780. .el-col {
  781. background: #f6f7fc;
  782. }
  783. /deep/.ws-info-table .el-form-item .el-form-item__content {
  784. padding: 0 25px;
  785. border-left: 1px solid transparent;
  786. background: #fff;
  787. }
  788. /deep/.ws-info-table .el-form-item .el-form-item__label {
  789. width: 100px;
  790. text-align: center;
  791. background: #fff;
  792. // border: 1px solid #cdd2dc;
  793. }
  794. .button-container {
  795. display: flex;
  796. flex-wrap: nowrap;
  797. justify-content: space-between;
  798. align-items: center;
  799. background-color: #fff;
  800. width: 100%;
  801. height: 50px;
  802. padding: 0 10px;
  803. & > div {
  804. margin-left: 10px;
  805. display: flex;
  806. flex-wrap: nowrap;
  807. flex-direction: row;
  808. & > span {
  809. line-height: 50px;
  810. }
  811. }
  812. /deep/.auditFlow-box {
  813. position: unset;
  814. margin-left: 10px;
  815. &/deep/.auditFlow-icon {
  816. width: auto;
  817. padding-right: 30px;
  818. }
  819. &/deep/.auditFlow-main {
  820. position: absolute;
  821. }
  822. }
  823. }
  824. .box-app {
  825. display: inline-block;
  826. float: left;
  827. margin-left: 30px;
  828. line-height: 50px;
  829. }
  830. /deep/.el-dialog {
  831. .el-form-item {
  832. margin-bottom: 0 !important;
  833. .el-input--medium {
  834. textarea {
  835. min-height: 100px !important;
  836. }
  837. }
  838. }
  839. }
  840. .collapse-bottom {
  841. margin-bottom: 20px;
  842. }
  843. .input-main .textarea .el-textarea__inner {
  844. width: 100%;
  845. z-index: 1;
  846. }
  847. .bg-left {
  848. padding-left: 30px;
  849. }
  850. .bg-right {
  851. padding-right: 10px;
  852. text-align: right;
  853. }
  854. .bg-bottom {
  855. margin: 15px 0px;
  856. }
  857. .wenzi {
  858. width: 900px;
  859. margin: 0 auto;
  860. }
  861. .wenzi h3 {
  862. display: inline-block;
  863. left: 10px;
  864. }
  865. .wenzi p {
  866. display: inline-block;
  867. }
  868. .center {
  869. width: 900px;
  870. margin: 0 auto;
  871. }
  872. .el-form-item {
  873. width: 50%;
  874. }
  875. .el-form-item__label {
  876. text-align: center;
  877. }
  878. .ce {
  879. width: 900px;
  880. margin: 0 auto;
  881. }
  882. /*.crt-main .textarea /deep/ .el-form-item__label {*/
  883. /* height: 82px;*/
  884. /*}*/
  885. // 控制select为只读的时候显示样式
  886. .hide-sel {
  887. .el-input__inner {
  888. border: 0px;
  889. }
  890. .el-icon-arrow-up {
  891. display: none;
  892. }
  893. .el-textarea__inner {
  894. background-color: #fff !important;
  895. border: 0;
  896. }
  897. .el-date-editor {
  898. i {
  899. display: none;
  900. }
  901. }
  902. // .is-disabled {
  903. // .el-input__inner:hover {
  904. // background-color: #fff !important;
  905. // border: 0;
  906. // }
  907. // color: #606266;
  908. // .el-input__inner {
  909. // background-color: #fff !important;
  910. // border: 0;
  911. // color: #606266;
  912. // }
  913. // .el-textarea__inner {
  914. // background-color: #fff !important;
  915. // border: 0;
  916. // color: #606266;
  917. // }
  918. // }
  919. }
  920. // 控制select为只读的时候显示样式
  921. /deep/.ws-class-table-col {
  922. height: auto;
  923. padding: 0px 2px;
  924. /deep/.el-input__inner {
  925. padding: 0px 2px;
  926. }
  927. }
  928. // /deep/.is-disabled {
  929. // .el-input__prefix,
  930. // .el-input__suffix {
  931. // display: none;
  932. // }
  933. // .el-input__inner {
  934. // background-color: #fff;
  935. // border-color: #fff !important;
  936. // color: #000 !important;
  937. // font-size: 14px;
  938. // cursor: text;
  939. // padding: 0 !important;
  940. // }
  941. // }
  942. .winseaview-view {
  943. padding: 0 0 20px;
  944. }
  945. .container {
  946. overflow: scroll;
  947. height: 93vh;
  948. }
  949. .ws-info-table .el-form-item {
  950. width: 33.3333%;
  951. }
  952. .readonly:after {
  953. display: none;
  954. }
  955. .el-textarea__inner {
  956. display: none;
  957. }
  958. .el-form {
  959. margin-top: 50px;
  960. }
  961. .readonly {
  962. width: 16%;
  963. }
  964. //去边框
  965. /deep/.el-form-item {
  966. border-right: 0px;
  967. border-bottom: 0px;
  968. }
  969. /deep/.ws-info-table {
  970. border-left: 0px;
  971. border-top: 0px;
  972. }
  973. .ws-info-table .el-form-item .el-form-item__content {
  974. border: none;
  975. }
  976. /deep/.ws-info-table .el-form-item {
  977. border: none;
  978. height: 50px;
  979. }
  980. /deep/.ws-info-table .el-form-item .el-form-item__content {
  981. background: #f5f7fa;
  982. border-radius: 4px;
  983. border: 1px solid #d8dce6;
  984. font-family: PingFangSC-Regular, PingFang SC;
  985. margin-bottom: 5px;
  986. background-color: #fff;
  987. font-size: 14px;
  988. font-weight: 400;
  989. color: #8890b1;
  990. line-height: 16px;
  991. }
  992. /deep/.ws-info-table .el-form-item .el-form-item__label {
  993. background-color: #fff;
  994. font-size: 13px;
  995. font-family: PingFangSC-Regular, PingFang SC;
  996. font-weight: 400;
  997. color: #8890b1;
  998. line-height: 16px;
  999. }
  1000. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1001. background: #f5f7fa;
  1002. border-radius: 4px;
  1003. border: 1px solid #d8dce6;
  1004. }
  1005. /deep/.flex .ws-info-table .el-form-item .el-form-item__content {
  1006. border: 0px;
  1007. }
  1008. //联络员及车次
  1009. /deep/.liaison .ws-info-table .el-form-item {
  1010. width: 25%;
  1011. }
  1012. /deep/.liaison .ws-info-table .el-form-item .el-form-item__label {
  1013. width: 50%;
  1014. background: #f6f7fc;
  1015. }
  1016. // /deep/.liaison .flex {
  1017. // display: contents;
  1018. // }
  1019. /deep/.liaison .ws-info-table {
  1020. background: #f6f7fc;
  1021. border-radius: 4px;
  1022. border: 1px solid #d8dce6;
  1023. margin-top: 20px;
  1024. width:98%;
  1025. }
  1026. .catNos {
  1027. width: 100%;
  1028. height: 30px;
  1029. margin-top: 10px;
  1030. margin-left: 20px;
  1031. font-size: 14px;
  1032. }
  1033. .catNosCor {
  1034. color: #5473e8;
  1035. }
  1036. .add {
  1037. width: 130px;
  1038. height: 34px;
  1039. background: #f6f7fb;
  1040. border-radius: 17px;
  1041. color: #5473e8;
  1042. font-size: 14px;
  1043. border: none;
  1044. }
  1045. .add img {
  1046. display: inline-block;
  1047. margin-top: 3px;
  1048. margin-left: -30px;
  1049. }
  1050. .add .spans {
  1051. display: table-caption;
  1052. width: 56px;
  1053. height: 20px;
  1054. line-height: 18px;
  1055. }
  1056. .signStatus {
  1057. height: 25px;
  1058. border-radius: 3px;
  1059. border: 1px solid #5473e8;
  1060. padding: 0 3px;
  1061. color: #ffffff;
  1062. background: #c4cada;
  1063. line-height: 24px;
  1064. margin-left: 18px;
  1065. }
  1066. .signStatus1 {
  1067. height: 25px;
  1068. background: #e6ebff;
  1069. border-radius: 3px;
  1070. border: 1px solid #5473e8;
  1071. padding: 0 3px;
  1072. margin-left: 18px;
  1073. color: #5473e8;
  1074. line-height: 24px;
  1075. }
  1076. .line {
  1077. height: 26px;
  1078. margin-top: 6px;
  1079. left: 2px;
  1080. }
  1081. /deep/.liaison .ws-info-table .el-form-item .el-form-item__content {
  1082. padding: 0px;
  1083. }
  1084. //送达/未送达
  1085. .noservice,
  1086. .service {
  1087. display: inline-block;
  1088. border-radius: 4px;
  1089. border: 1px solid #d8dce6;
  1090. padding: 2px;
  1091. font-size: 12px;
  1092. }
  1093. .noservice {
  1094. background: #c4cada;
  1095. color: #ffffff;
  1096. }
  1097. .service {
  1098. background: #e5f1f7;
  1099. color: #50cad4;
  1100. }
  1101. .serviced {
  1102. display: inline-block;
  1103. border-radius: 4px;
  1104. border: 1px solid #d8dce6;
  1105. padding: 2px;
  1106. font-size: 12px;
  1107. background: #e5f1f7;
  1108. color: #2c81cf;
  1109. }
  1110. .center1 {
  1111. width: 100px;
  1112. margin: 0 auto;
  1113. margin-top: -2%;
  1114. }
  1115. .tupian {
  1116. margin-left: 14%;
  1117. margin-top: -7%;
  1118. }
  1119. </style>