detailsPageEdit.vue 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328
  1. <template>
  2. <div class="borderless">
  3. <div class="customer-head">
  4. <div class="customer-back">
  5. <!-- <i class="back-icon el-icon-arrow-left"></i><i style="font-style:normal">返回管理列表</i>-->
  6. <el-button type="danger" style="border: none;background: none;color: red" icon="el-icon-arrow-left"
  7. @click="backToList">返回列表
  8. </el-button>
  9. </div>
  10. <el-button
  11. class="el-button--small-yh add-customer-btn"
  12. style="right: 245px;"
  13. type="primary"
  14. @click="revokeOutGoods"
  15. v-if="form.deliveryStatus !== '录入'"
  16. :disabled="detailData.seeDisabled"
  17. >撤销发货</el-button>
  18. <el-button
  19. class="el-button--small-yh add-customer-btn"
  20. style="right: 245px;"
  21. type="primary"
  22. @click="sendOutGoods"
  23. v-if="form.deliveryStatus == '录入'"
  24. :disabled="detailData.seeDisabled"
  25. >确认发货</el-button>
  26. <el-button
  27. class="el-button--small-yh add-customer-btn"
  28. type="success" style="right: 140px;" @click="copyOrder"
  29. :disabled="detailData.seeDisabled">
  30. 复制新单
  31. </el-button>
  32. <el-button
  33. class="el-button--small-yh add-customer-btn"
  34. type="primary"
  35. :disabled="disabled || detailData.seeDisabled"
  36. @click="editCustomer(false)"
  37. >{{ form.id ? '确认修改' : '确认新增' }}
  38. </el-button>
  39. </div>
  40. <div style="margin-top: 60px">
  41. <el-form :model="form" ref="form" label-width="130px" class="demo-ruleForm">
  42. <containerTitle title="基础资料"></containerTitle>
  43. <basic-container style="margin-bottom: 10px">
  44. <el-row>
  45. <el-col v-for="(item,index) in basicData.column" :key="index" :span="item.span?item.span:8">
  46. <el-form-item :label="item.label" :prop="item.prop" :rules="item.rules">
  47. <!-- <avue-input-tree v-if="item.prop === 'corpsTypeId'" leaf-only multiple :props="{label:'title'}" v-model="form[item.prop]" placeholder="请选择内容" type="tree" :dic="dic"-->
  48. <!-- ></avue-input-tree>-->
  49. <el-date-picker v-if="item.type === 'datetime'" style="width: 100%;" v-model="form[item.prop]"
  50. size="small" type="datetime" placeholder="选择日期" value-format="yyyy-MM-dd HH:mm:ss" :disabled="item.disabled || detailData.seeDisabled"/>
  51. <selectComponent v-else-if="item.prop === 'corpId' || item.prop === 'salesCompany'" v-model="form[item.prop]"
  52. :configuration="configuration" style="width: 100%" :disabled="detailData.seeDisabled"/>
  53. <el-select v-else-if="item.prop === 'deliveryStatus'" v-model="form[item.prop]" placeholder="请选择" clearable filterable style="width: 100%" size="small" :disabled="item.disabled || detailData.seeDisabled">
  54. <el-option v-for="(item,index) in statusOption" :key="index" :label="item.dictValue" :value="item.dictValue" size="small"></el-option>
  55. </el-select>
  56. <!-- <avue-input-tree-->
  57. <!-- v-else-if="item.prop === 'warehouseType'"-->
  58. <!-- leaf-only-->
  59. <!-- placeholder="请选择内容"-->
  60. <!-- :dic="warehouseType"-->
  61. <!-- type="tree"-->
  62. <!-- v-model="form[item.prop]"-->
  63. <!-- style="width: 100%"-->
  64. <!-- size="small"-->
  65. <!-- @change="warehouseTreeChange"-->
  66. <!-- >-->
  67. <!-- </avue-input-tree>-->
  68. <el-select v-else-if="item.prop === 'storageId'" v-model="form[item.prop]" placeholder="请选择" clearable filterable style="width: 100%" size="small" :disabled="detailData.seeDisabled">
  69. <el-option v-for="(item,index) in warehouseName" :key="index" :label="item.cname" :value="item.id" size="small"></el-option>
  70. </el-select>
  71. <el-input type="textarea" v-else-if="item.type === 'textarea'" v-model="form[item.prop]" size="small" autocomplete="off" :disabled="item.disabled || detailData.seeDisabled"></el-input>
  72. <el-input type="age" v-else v-model="form[item.prop]" size="small" autocomplete="off" :disabled="item.disabled || detailData.seeDisabled"></el-input>
  73. </el-form-item>
  74. </el-col>
  75. </el-row>
  76. </basic-container>
  77. <containerTitle title="商品信息"></containerTitle>
  78. <basic-container style="margin-bottom: 10px">
  79. <avue-crud
  80. :option="customerContact"
  81. v-model="contactsForm"
  82. :data="contactsData"
  83. ref="crudContact"
  84. @row-save="rowSave"
  85. @row-click="handleRowClick"
  86. @row-update="rowUpdate"
  87. @row-del="rowDel"
  88. @saveColumn="saveColumn('goods')"
  89. >
  90. <template slot="code" slot-scope="{row,index}">
  91. <span style="float: left;padding-top: 2px">{{ row.code }}</span>
  92. <el-button type="text" size="mini" style="padding:4px 10px;float:left" @click="commodityChoice(row)" :disabled="detailData.seeDisabled">选择</el-button>
  93. </template>
  94. <template slot-scope="{row,index}" slot="menu">
  95. <el-button
  96. type="text"
  97. size="small"
  98. @click="rowCell(row,index)"
  99. :disabled="detailData.seeDisabled"
  100. >{{ row.$cellEdit ? '保存' : '修改' }}
  101. </el-button>
  102. <el-button
  103. size="small"
  104. icon="el-icon-delete"
  105. type="text"
  106. @click="rowDel(row, index)"
  107. :disabled="detailData.seeDisabled"
  108. v-if="!row.$cellEdit"
  109. >删 除</el-button>
  110. </template>
  111. <template slot="menuLeft" slot-scope="{size}">
  112. <el-button type="primary"
  113. icon="el-icon-plus"
  114. size="small"
  115. @click="commoditySelection"
  116. :disabled="detailData.seeDisabled"
  117. >录入明细
  118. </el-button>
  119. <el-button type="info" :size="size" icon="el-icon-printer">报 表</el-button>
  120. </template>
  121. <template slot="actualQuantity" slot-scope="{ row }">
  122. <el-input
  123. v-if="row.$cellEdit"
  124. v-model="row.actualQuantity"
  125. v-input-limit="0"
  126. @change="actualQuantityChange(row)"
  127. ></el-input>
  128. <span v-else>{{ row.actualQuantity }}</span>
  129. </template>
  130. </avue-crud>
  131. </basic-container>
  132. <containerTitle title="费用明细"></containerTitle>
  133. <basic-container style="margin-bottom: 10px">
  134. <avue-crud
  135. :option="advantageProject"
  136. v-model="advantageProjectForm"
  137. :data="advantageProjectData"
  138. ref="crudProject"
  139. @row-save="rowSaveProject"
  140. @row-update="rowUpdateProject"
  141. @row-del="rowDelProject"
  142. @saveColumn="saveColumn('fees')"
  143. >
  144. <template slot="code" slot-scope="{row,index}">
  145. <span style="float: left;padding-top: 2px">{{ row.code }}</span>
  146. <el-button type="text" size="mini" style="padding:4px 10px;float:left" @click="choice(row)" :disabled="detailData.seeDisabled">选择</el-button>
  147. </template>
  148. <template slot="corpId" slot-scope="{ row }">
  149. <selectComponent v-if="row.$cellEdit" v-model="row.corpId"
  150. :configuration="configuration" @receiveList="receiveList"/>
  151. <span v-else>
  152. <span v-for="item in configuration.dicData" v-if="item.id == row.corpId">{{ item.cname }}</span>
  153. </span>
  154. </template>
  155. <template slot-scope="{row,index}" slot="menu">
  156. <el-button
  157. type="text"
  158. size="small"
  159. @click="rowCellTwo(row,index)"
  160. :disabled="detailData.seeDisabled"
  161. >{{ row.$cellEdit ? '保存' : '修改' }}
  162. </el-button>
  163. <el-button
  164. size="small"
  165. icon="el-icon-delete"
  166. type="text"
  167. @click="rowDelProject(row, index)"
  168. :disabled="detailData.seeDisabled"
  169. v-if="!row.$cellEdit"
  170. >删 除</el-button>
  171. </template>
  172. <template slot="menuLeft" slot-scope="{size}">
  173. <el-button type="primary"
  174. icon="el-icon-plus"
  175. size="small"
  176. @click="costIncrease"
  177. :disabled="detailData.seeDisabled"
  178. >录入明细
  179. </el-button>
  180. </template>
  181. </avue-crud>
  182. </basic-container>
  183. <containerTitle title="附件上传"></containerTitle>
  184. <basic-container style="margin-bottom: 40px">
  185. <avue-crud
  186. :option="bankOfDeposit"
  187. v-model="bankOfDepositForm"
  188. :data="bankOfDepositData"
  189. @row-save="rowSaveBankOfDeposit"
  190. @row-update="rowUpdateBankOfDeposit"
  191. @row-del="rowDelBankOfDeposit"
  192. :upload-after="uploadAfter"
  193. ref="uploadCrud"
  194. >
  195. <template slot="menuLeft">
  196. <el-button
  197. type="primary"
  198. icon="el-icon-plus"
  199. size="small"
  200. @click.stop="$refs.uploadCrud.rowAdd()"
  201. :disabled="detailData.seeDisabled"
  202. >上传</el-button
  203. >
  204. </template>
  205. <template slot="menu" slot-scope="{ row, index }">
  206. <el-button
  207. size="small"
  208. icon="el-icon-edit"
  209. type="text"
  210. @click="$refs.uploadCrud.rowEdit(row, index)"
  211. :disabled="detailData.seeDisabled"
  212. >编 辑</el-button
  213. >
  214. <el-button
  215. size="small"
  216. icon="el-icon-delete"
  217. type="text"
  218. @click="rowDelBankOfDeposit(row, index)"
  219. :disabled="detailData.seeDisabled"
  220. >删 除</el-button
  221. >
  222. </template>
  223. </avue-crud>
  224. </basic-container>
  225. </el-form>
  226. </div>
  227. <el-dialog
  228. title="导入商品"
  229. append-to-body
  230. class="el-dialogDeep"
  231. :visible.sync="dialogVisible"
  232. width="80%"
  233. :close-on-click-modal="false"
  234. :destroy-on-close="true"
  235. :close-on-press-escape="false"
  236. @close="closeGoods">
  237. <el-row style="height: 0;">
  238. <el-col :span="5">
  239. <div>
  240. <el-scrollbar>
  241. <basic-container>
  242. <avue-tree :option="treeOption" :data="treeDataGoods" @node-click="nodeClick"/>
  243. </basic-container>
  244. </el-scrollbar>
  245. </div>
  246. </el-col>
  247. <el-col :span="19">
  248. <basic-container>
  249. <avue-crud :option="optionTwo"
  250. :table-loading="loading"
  251. :data="data"
  252. ref="crud"
  253. @refresh-change="refreshChange"
  254. @selection-change="selectionChange"
  255. :page.sync="page"
  256. @on-load="onLoad"></avue-crud>
  257. </basic-container>
  258. </el-col>
  259. </el-row>
  260. <span slot="footer" class="dialog-footer">
  261. <el-button @click="dialogVisible = false">取 消</el-button>
  262. <el-button type="primary" @click="importGoods" v-if="commodityData !== true">导入</el-button>
  263. <el-button type="primary" @click="importChoice" v-if="commodityData === true"
  264. :disabled="tableData.length !== 1">导入</el-button>
  265. </span>
  266. </el-dialog>
  267. <el-dialog
  268. title="导入费用"
  269. append-to-body
  270. class="el-dialogDeep"
  271. :visible.sync="dialogCost"
  272. width="80%"
  273. :close-on-click-modal="false"
  274. :destroy-on-close="true"
  275. :close-on-press-escape="false"
  276. @close="closeFees">
  277. <el-row style="height: 0;">
  278. <el-col :span="5">
  279. <div>
  280. <el-scrollbar>
  281. <basic-container>
  282. <avue-tree :option="treeOptionCost" :data="treeData" @node-click="nodeClickCost"/>
  283. </basic-container>
  284. </el-scrollbar>
  285. </div>
  286. </el-col>
  287. <el-col :span="19">
  288. <basic-container>
  289. <avue-crud :option="optionTwoCost"
  290. :table-loading="loadingCost"
  291. :data="dataCost"
  292. ref="crud"
  293. @refresh-change="refreshChangeCost"
  294. @selection-change="selectionChangeCost"
  295. :page.sync="pageCost"
  296. @on-load="onLoadCost">
  297. </avue-crud>
  298. </basic-container>
  299. </el-col>
  300. </el-row>
  301. <span slot="footer" class="dialog-footer">
  302. <el-button @click="dialogCost = false">取 消</el-button>
  303. <el-button type="primary" @click="importCost" v-if="choiceData !== true">导入</el-button>
  304. <el-button type="primary" @click="choiceCost" v-if="choiceData === true"
  305. :disabled="tableDataCost.length !== 1">导入</el-button>
  306. </span>
  307. </el-dialog>
  308. </div>
  309. </template>
  310. <script>
  311. import {
  312. typeSave, detail,
  313. corpstypeTree,
  314. corpsattn,
  315. corpsbank,
  316. corpsitem,
  317. getList,
  318. sendOutGoods,
  319. revokeOutGoods
  320. } from "@/api/basicData/deliveryNotice"
  321. import customerContact from "./configuration/customerContact.json"
  322. import advantageProject from "./configuration/advantageProject.json"
  323. import bankOfDeposit from "./configuration/bankOfDeposit.json"
  324. import commodity from "./configuration/commodity.json"
  325. import optionTwoCost from "./configuration/mainListCost.json"
  326. import {getDeptLazyTree,getDeptLazyTreeTwo, customerList} from "@/api/basicData/basicFeesDesc";
  327. import {customerList as wareHouseType} from "@/api/basicData/basicStorageType"
  328. import {customerList as selectWareHouse} from "@/api/basicData/basicStorageDesc"
  329. import {selectGoodsNum} from "@/api/basicData/inventoryAccount"
  330. import { contrastObj, contrastList } from "@/util/contrastData";
  331. export default {
  332. name: "detailsPage",
  333. props: {
  334. detailData: {
  335. type: Object
  336. }
  337. },
  338. data() {
  339. return {
  340. configuration: {
  341. multipleChoices: false,
  342. multiple: false,
  343. collapseTags: false,
  344. placeholder: '请点击右边按钮选择',
  345. dicData: []
  346. },
  347. form: {},
  348. data: [],
  349. loadingCost: false,
  350. choiceData: false,
  351. commodityData: false,
  352. dataCost: [],
  353. treeDataGoods: [],
  354. treeData: [],
  355. choiceIndex: '',
  356. dialogCost: false,
  357. treeDeptId: '',
  358. treeDeptIdCost: '',
  359. pageCost: {
  360. pageSize: 10,
  361. currentPage: 1,
  362. total: 0
  363. },
  364. page: {
  365. pageSize: 10,
  366. currentPage: 1,
  367. total: 0
  368. },
  369. loading: false,
  370. contactsForm: {},
  371. optionTwo: commodity,
  372. optionTwoCost: optionTwoCost,
  373. treeOptionCost: {
  374. nodeKey: 'id',
  375. lazy: true,
  376. treeLoad: function (node, resolve) {
  377. const parentId = (node.level === 0) ? 0 : node.data.id;
  378. getDeptLazyTree(parentId).then(res => {
  379. resolve(res.data.data.map(item => {
  380. return {
  381. ...item,
  382. leaf: !item.hasChildren
  383. }
  384. }))
  385. });
  386. },
  387. addBtn: false,
  388. menu: false,
  389. size: 'small',
  390. props: {
  391. labelText: '标题',
  392. label: 'title',
  393. value: 'value',
  394. children: 'children'
  395. }
  396. },
  397. treeOption: {
  398. nodeKey: 'id',
  399. lazy: true,
  400. treeLoad: function (node, resolve) {
  401. const parentId = (node.level === 0) ? 0 : node.data.id;
  402. getDeptLazyTreeTwo(parentId).then(res => {
  403. resolve(res.data.data.map(item => {
  404. return {
  405. ...item,
  406. leaf: !item.hasChildren
  407. }
  408. }))
  409. });
  410. },
  411. addBtn: false,
  412. menu: false,
  413. size: 'small',
  414. props: {
  415. labelText: '标题',
  416. label: 'title',
  417. value: 'value',
  418. children: 'children'
  419. }
  420. },
  421. dialogVisible: false,
  422. advantageProjectForm: {},
  423. bankOfDepositForm: {},
  424. contactsData: [],
  425. advantageProjectData: [],
  426. disabled: false,
  427. bankOfDepositData: [],
  428. tableDataCost: [],
  429. dic: [],
  430. tableData: [],
  431. customerContact: {},
  432. advantageProject: {},
  433. bankOfDeposit: bankOfDeposit,
  434. basicData: {
  435. column: [
  436. {
  437. label: '系统编号',//发货通知(点击)
  438. prop: 'sysNo',
  439. disabled: true,
  440. rules: [
  441. {
  442. required: false,
  443. message: ' ',
  444. trigger: 'blur'
  445. }
  446. ]
  447. }, {
  448. label: '客户名称',
  449. prop: 'corpId',
  450. rules: [
  451. {
  452. required: true,
  453. message: ' ',
  454. trigger: 'blur'
  455. }
  456. ]
  457. }, {
  458. label: '单据状态',
  459. prop: 'deliveryStatus',
  460. disabled: true,
  461. rules: [
  462. {
  463. required: true,
  464. message: ' ',
  465. trigger: 'blur'
  466. }
  467. ]
  468. }, {
  469. label: '所属公司',
  470. prop: 'salesCompany', //salesCompany
  471. rules: [
  472. {
  473. required: true,
  474. message: ' ',
  475. trigger: 'blur'
  476. }
  477. ]
  478. }, {
  479. label: '仓库类型',
  480. prop: 'warehouseType',//字典表
  481. rules: [
  482. {
  483. required: true,
  484. message: ' ',
  485. trigger: 'blur'
  486. }
  487. ]
  488. }, {
  489. label: '仓库名称',
  490. prop: 'storageId',
  491. rules: [
  492. {
  493. required: true,
  494. message: ' ',
  495. trigger: 'blur'
  496. }
  497. ]
  498. },{
  499. label: '匹配订单号',
  500. prop: 'srcOrderNo',
  501. rules: [
  502. {
  503. required: true,
  504. message: ' ',
  505. trigger: 'blur'
  506. }
  507. ]
  508. }, {
  509. label: '出库金额',
  510. prop: 'deliveryAmount',
  511. disabled: true,
  512. rules: [
  513. {
  514. required: true,
  515. message: ' ',
  516. trigger: 'blur'
  517. }
  518. ]
  519. }, {
  520. label: '出库数量',
  521. prop: 'totalQuantity',
  522. disabled: true,
  523. rules: [
  524. {
  525. required: true,
  526. message: ' ',
  527. trigger: 'blur'
  528. }
  529. ]
  530. }, {
  531. label: '出库日期',
  532. prop: 'businessDate',
  533. type: 'datetime',
  534. rules: [
  535. {
  536. required: true,
  537. message: ' ',
  538. trigger: 'blur'
  539. }
  540. ]
  541. }, {
  542. label: '制单时间',
  543. type: 'datetime',
  544. prop: 'createTime',
  545. disabled: true,
  546. rules: [
  547. {
  548. required: false,
  549. message: ' ',
  550. trigger: 'blur'
  551. }
  552. ]
  553. }, {
  554. label: '费用合计',
  555. prop: 'totalCost',
  556. rules: [
  557. {
  558. required: true,
  559. message: ' ',
  560. trigger: 'blur'
  561. }
  562. ]
  563. }, {
  564. label: "备注",
  565. span: 24,
  566. type: 'textarea',
  567. prop: "otherRemarks",
  568. mock: {
  569. type: 'county'
  570. }
  571. }
  572. ]
  573. },
  574. statusOption: [],
  575. // 仓库类型
  576. warehouseType: [],
  577. // 仓库名称
  578. warehouseName: [],
  579. maxFeeNum: 0,
  580. maxGoodsNum: 0,
  581. oldForm: {
  582. orderStatus: "录入"
  583. },
  584. oldGoodsList: [],
  585. oldFeesList: [],
  586. oldUploadList: [],
  587. }
  588. },
  589. //初始化查询
  590. async created() {
  591. this.customerContact = await this.getColumnData(this.getColumnName(21), customerContact);
  592. this.advantageProject = await this.getColumnData(this.getColumnName(22), advantageProject);
  593. this.getWorkDicts("order_status").then(res => {
  594. this.statusOption = res.data.data
  595. })
  596. this.$set(this.form,'deliveryStatus','录入')
  597. wareHouseType().then(res => {
  598. this.warehouseType = res.data.data.records
  599. this.warehouseType.forEach(item => {
  600. this.$set(item, 'label', item.cname)
  601. this.$set(item, 'value', item.id)
  602. if (item.hasChildren) {
  603. this.$set(item, 'children', [])
  604. }
  605. })
  606. let result = [], temp = {}
  607. for(let i = 0; i < this.warehouseType.length;i++) {
  608. temp[this.warehouseType[i].id] = this.warehouseType[i]
  609. }
  610. for (let j = 0;j < this.warehouseType.length;j++) {
  611. let current = this.warehouseType[j]
  612. let tempCurrentParent = temp[current.parentId]
  613. if (tempCurrentParent) {
  614. if (!tempCurrentParent["children"]) {
  615. tempCurrentParent["children"] = []
  616. }
  617. tempCurrentParent["children"].push(current)
  618. } else {
  619. result.push(current)
  620. }
  621. }
  622. this.warehouseType = result
  623. });
  624. selectWareHouse().then(res => {
  625. console.log(res)
  626. this.warehouseName = res.data.data.records
  627. })
  628. if (this.detailData.id) {
  629. let id = this.detailData.id
  630. this.queryData(id)
  631. }else if (this.detailData.form){
  632. this.form = JSON.parse(this.detailData.form);
  633. delete this.form.createTime
  634. delete this.form.id
  635. delete this.form.sysNo
  636. this.contactsData = this.form.orderItemsList
  637. delete this.form.orderItemsList
  638. this.configuration.dicData = this.form.corpName
  639. delete this.form.corpName
  640. this.$set(this.form, 'deliveryStatus', '录入')
  641. if (this.form.belongToCorpList) {
  642. this.$set(this.form, 'salesCompany', this.form.belongToCorpId)
  643. delete this.form.belongToCorpId
  644. this.configuration.dicData = this.configuration.dicData.concat(this.form.belongToCorpList)
  645. }
  646. delete this.form.belongToCorpList
  647. this.$set(this.form, 'deliveryAmount', 0)
  648. this.$set(this.form, 'totalQuantity', 0)
  649. this.$set(this.form, 'totalCost', 0)
  650. this.contactsData.forEach(item => {
  651. this.$set(item, 'orgOrderNo', this.form.orgOrderNo)
  652. this.$set(item, "srcId", item.id)
  653. this.$set(item, "actualQuantity", (Number(item.orderQuantity) - Number(item.actualQuantity)))
  654. this.$set(item, "deliveryAmount", item.amount)
  655. this.$set(item, "inventoryNumber", item.storageQuantity)
  656. this.$set(item, "inventoryAmount", 0)
  657. this.form.deliveryAmount += Number(item.deliveryAmount)
  658. this.form.totalQuantity += Number(item.actualQuantity)
  659. this.form.totalCost += Number(item.deliveryAmount)
  660. // 出库数量和出库金额的比例
  661. this.$set(item, 'scale', (item.deliveryAmount / item.actualQuantity))
  662. delete item.id
  663. delete item.pid
  664. })
  665. } else if (this.detailData.copyId) {
  666. let id = this.detailData.copyId
  667. this.queryData(id, true)
  668. }
  669. },
  670. watch: {
  671. },
  672. methods: {
  673. queryData(id, isCopy = false) {
  674. detail(id).then(res => {
  675. console.log(res.data.data)
  676. this.form = res.data.data;
  677. this.contactsData = this.form.deliveryItemsList
  678. this.advantageProjectData = this.form.deliveryFeesList
  679. this.bankOfDepositData = this.form.deliveryFilesList
  680. this.configuration.dicData = this.form.corpName
  681. this.form.deliveryAmount = 0
  682. this.form.totalQuantity = 0
  683. this.contactsData.forEach(item => {
  684. this.form.deliveryAmount += Number(item.deliveryAmount)
  685. this.form.totalQuantity += Number(item.actualQuantity)
  686. // 出库金额和出库数量的比例
  687. this.$set(item, 'scale', (item.deliveryAmount / item.actualQuantity))
  688. })
  689. console.log(this.contactsData)
  690. if (this.form.companyName) {
  691. this.configuration.dicData = this.configuration.dicData.concat(this.form.companyName)
  692. }
  693. let feesData = []
  694. this.form.deliveryFeesList.forEach(item => {
  695. let a = {
  696. cname: item.corpName,
  697. id: item.corpId
  698. }
  699. feesData.push(a)
  700. })
  701. this.configuration.dicData = this.configuration.dicData.concat(feesData)
  702. // 去重
  703. this.removeRepeat()
  704. delete this.form.deliveryItemsList
  705. delete this.form.deliveryFeesList
  706. delete this.form.deliveryFilesList
  707. delete this.form.corpName
  708. delete this.form.companyName
  709. // 获取最大值
  710. let num = []
  711. this.advantageProjectData.forEach(item => {
  712. num.push(item.sort)
  713. })
  714. if (num.length == 0) {
  715. this.maxFeeNum = 0;
  716. } else {
  717. this.maxFeeNum = num.reduce((a, b) => {
  718. return b > a? b: a;
  719. })
  720. }
  721. let goodsNum = []
  722. this.contactsData.forEach(item => {
  723. goodsNum.push(item.sort)
  724. })
  725. if (goodsNum.length == 0) {
  726. this.maxGoodsNum = 0;
  727. } else {
  728. this.maxGoodsNum = goodsNum.reduce((a, b) => {
  729. return b > a? b: a;
  730. })
  731. }
  732. this.oldGoodsList = []
  733. this.oldFeesList = []
  734. this.oldUploadList = []
  735. this.oldForm = Object.assign({}, this.form)
  736. this.oldGoodsList = this.oldGoodsList.concat(this.contactsData)
  737. this.oldFeesList = this.oldFeesList.concat(this.advantageProjectData)
  738. this.oldUploadList = this.oldUploadList.concat(this.bankOfDepositData)
  739. if (isCopy) {
  740. delete this.form.sysNo
  741. delete this.form.id
  742. this.contactsData.forEach(item => {
  743. delete item.id
  744. delete item.pid
  745. })
  746. this.advantageProjectData.forEach(item => {
  747. delete item.id
  748. delete item.pid
  749. })
  750. this.bankOfDepositData.forEach(item => {
  751. delete item.id
  752. delete item.pid
  753. })
  754. this.form.deliveryStatus == '录入'
  755. }
  756. });
  757. },
  758. // 出库数量变化时调用
  759. actualQuantityChange(row) {
  760. if (row.scale) {
  761. row.deliveryAmount = Number(row.actualQuantity) * Number(row.scale)
  762. this.contactsData.forEach(item => {
  763. this.form.deliveryAmount += Number(item.deliveryAmount)
  764. this.form.totalQuantity += Number(item.actualQuantity)
  765. })
  766. }
  767. },
  768. // 类别变换时触发
  769. warehouseTreeChange(id) {
  770. this.warehouseName = []
  771. if (this.firstComing) {
  772. if (!this.form.storageId) {
  773. this.$set(this.form, 'storageId', null)
  774. } else {
  775. this.form.storageId = null
  776. }
  777. }
  778. let data = {
  779. storageTypeId: id
  780. }
  781. selectWareHouse(data).then(res => {
  782. this.warehouseName = res.data.data.records
  783. })
  784. this.firstComing = true
  785. },
  786. //点击行可编辑
  787. handleRowClick(row, event, column) {
  788. console.log(row.$index)
  789. },
  790. //商品编辑
  791. rowCell(row, index) {
  792. console.log(row)
  793. this.$refs.crudContact.rowCell(row, index)
  794. },
  795. //费用编辑
  796. rowCellTwo(row, index) {
  797. console.log(row)
  798. this.$refs.crudProject.rowCell(row, index)
  799. },
  800. //费用新增触发
  801. costIncrease() {
  802. this.dialogCost = !this.dialogCost
  803. this.choiceData = false
  804. },
  805. //商品新增触发
  806. commoditySelection() {
  807. this.dialogVisible = !this.dialogVisible
  808. this.tableData = []
  809. this.commodityData = false
  810. },
  811. //点击费用明细选择触发
  812. choice(row) {
  813. this.dialogCost = !this.dialogCost
  814. this.choiceData = true
  815. console.log(row)
  816. this.choiceIndex = row.$index
  817. },
  818. //点击商品明细选择触发
  819. commodityChoice(row) {
  820. this.dialogVisible = !this.dialogVisible
  821. this.commodityData = true
  822. console.log(row)
  823. this.choiceIndexT = row.$index
  824. },
  825. //导入商品触发
  826. importChoice() {
  827. if (this.tableData.length === 1) {
  828. this.contactsData[this.choiceIndexT].cname = this.tableData[0].cname
  829. this.contactsData[this.choiceIndexT].code = this.tableData[0].code
  830. this.contactsData[this.choiceIndexT].typeno = this.tableData[0].typeno
  831. this.contactsData[this.choiceIndexT].specificationAndModel = this.tableData[0].specificationAndModel
  832. this.contactsData[this.choiceIndexT].itemId = this.tableData[0].id
  833. selectGoodsNum({
  834. goodsId: this.tableData[0].id,
  835. typeno: this.tableData[0].typeno
  836. }).then(res => {
  837. this.contactsData[this.choiceIndexT].storageQuantity = res.data.data
  838. })
  839. }
  840. this.dialogVisible = !this.dialogVisible
  841. this.commodityData = false
  842. },
  843. //费用编辑导入触发
  844. choiceCost() {
  845. console.log('1111')
  846. if (this.tableDataCost.length === 1) {
  847. this.advantageProjectData[this.choiceIndex].feeName = this.tableDataCost[0].cname
  848. this.advantageProjectData[this.choiceIndex].itemId = this.tableDataCost[0].id
  849. this.advantageProjectData[this.choiceIndex].code = this.tableDataCost[0].code
  850. }
  851. this.dialogCost = !this.dialogCost
  852. this.choiceData = false
  853. },
  854. //费用导入触发
  855. importCost() {
  856. // this.advantageProjectForm = this.advantageProjectForm.concat(this.tableDataCost)
  857. if (this.tableDataCost.length > 0) {
  858. for (let item in this.tableDataCost) {
  859. console.log(this.tableDataCost[item])
  860. this.tableDataCost[item].itemId = this.tableDataCost[item].id
  861. this.tableDataCost[item].feeName = this.tableDataCost[item].cname
  862. this.tableDataCost[item].sort = this.maxFeeNum + 1
  863. this.maxFeeNum++
  864. delete this.tableDataCost[item].id
  865. this.$refs.crudProject.rowCellAdd(this.tableDataCost[item]);
  866. this.$refs.crudProject.rowCell(this.tableDataCost[item], this.advantageProjectForm.length - 1)
  867. }
  868. }
  869. this.tableDataCost = []
  870. this.dialogCost = false
  871. },
  872. //确认导入触发
  873. importGoods() {
  874. // this.contactsData = this.contactsData.concat(this.tableData)
  875. if (this.tableData.length > 0) {
  876. for (let item in this.tableData) {
  877. console.log(this.tableData[item])
  878. selectGoodsNum({
  879. goodsId: this.tableData[item].id,
  880. typeno: this.tableData[item].typeno
  881. }).then(res =>{
  882. this.tableData[item].storageQuantity = res.data.data
  883. this.$set(this.tableData[item], 'specificationAndModel', this.tableData[item].specificationAndModel)
  884. this.tableData[item].itemId = this.tableData[item].id
  885. this.tableData[item].priceCategory = this.tableData[item].goodsTypeName
  886. delete this.tableData[item].goodsTypeName
  887. delete this.tableData[item].id
  888. delete this.tableData[item].status
  889. delete this.tableData[item].isDeleted
  890. this.$set(this.tableData[item], 'inventoryNumber', 0)
  891. this.$set(this.tableData[item], 'actualQuantity', 0)
  892. this.$set(this.tableData[item], 'inventoryAmount', 0)
  893. this.$set(this.tableData[item], 'deliveryAmount', 0)
  894. this.tableData[item].price = 0
  895. this.tableData[item].amount = 0
  896. this.tableData[item].sort = this.maxGoodsNum + 1
  897. this.maxGoodsNum++
  898. this.$refs.crudContact.rowCellAdd(this.tableData[item]);
  899. console.log(this.contactsData)
  900. this.$refs.crudContact.rowCell(this.tableData[item], this.contactsData.length - 1)
  901. })
  902. }
  903. }
  904. this.dialogVisible = false
  905. },
  906. closeGoods() {
  907. this.treeDataGoods = [];
  908. this.treeDeptId = "";
  909. },
  910. closeFees() {
  911. this.treeDeptIdCost = "";
  912. this.treeData = [];
  913. },
  914. //选中触发
  915. selectionChange(list) {
  916. console.log(list);
  917. this.tableData = list
  918. },
  919. //费用选中触发
  920. selectionChangeCost(list) {
  921. console.log(list);
  922. this.tableDataCost = list
  923. },
  924. //导入页左商品类型查询
  925. nodeClick(data) {
  926. this.treeDeptId = data.id;
  927. this.page.currentPage = 1;
  928. this.onLoad(this.page);
  929. },
  930. //导入页左费用类型查询
  931. nodeClickCost(data) {
  932. this.treeDeptIdCost = data.id;
  933. this.pageCost.currentPage = 1;
  934. this.onLoadCost(this.pageCost);
  935. },
  936. //刷新触发
  937. refreshChange() {
  938. this.treeDeptId = '';
  939. this.page.currentPage = 1;
  940. this.onLoad(this.page);
  941. },
  942. //费用刷新触发
  943. refreshChangeCost() {
  944. this.treeDeptIdCost = '';
  945. this.pageCost.currentPage = 1;
  946. this.onLoadCost(this.pageCost);
  947. },
  948. //新增商品信息保存触发
  949. rowSave(row, done, loading) {
  950. console.log(row)
  951. console.log(this.contactsData)
  952. // this.contactsData.push(row)
  953. done()
  954. },
  955. //修改商品信息触发
  956. rowUpdate(row, index, done, loading) {
  957. done(row);
  958. },
  959. //删除商品信息触发
  960. rowDel(row, index, donerowDel) {
  961. this.$confirm("确定将选择数据删除?", {
  962. confirmButtonText: "确定",
  963. cancelButtonText: "取消",
  964. type: "warning"
  965. }).then(() => {
  966. //商品判断是否需要调用删除接口
  967. if (row.id) {
  968. corpsattn(row.id).then(res => {
  969. this.$message({
  970. type: "success",
  971. message: "操作成功!"
  972. });
  973. this.contactsData.splice(index, 1);
  974. })
  975. } else {
  976. this.$message({
  977. type: "success",
  978. message: "操作成功!"
  979. });
  980. this.contactsData.splice(index, 1);
  981. }
  982. })
  983. },
  984. //新增费用明细保存触发
  985. rowSaveProject(row, done, loading) {
  986. // this.advantageProjectData.push(row)
  987. done()
  988. },
  989. //修改费用明细触发
  990. rowUpdateProject(row, index, done, loading) {
  991. done(row);
  992. },
  993. //商品列表查询
  994. onLoad(page, params = {}) {
  995. this.loading = true;
  996. getList(page.currentPage, page.pageSize, Object.assign(params, this.query), this.treeDeptId).then(res => {
  997. console.log(res)
  998. const data = res.data.data;
  999. this.page.total = data.total;
  1000. this.data = data.records;
  1001. this.loading = false;
  1002. });
  1003. },
  1004. //费用查询
  1005. onLoadCost(page, params = {}) {
  1006. this.loadingCost = true;
  1007. let queryParams = Object.assign({}, params, {
  1008. pageSize: page.pageSize,
  1009. pageNum: page.currentPage,
  1010. parentId: 0,
  1011. feesTypeId: this.treeDeptIdCost
  1012. })
  1013. customerList(queryParams).then(res => {
  1014. console.log(res)
  1015. const data = res.data.data;
  1016. this.pageCost.total = data.total;
  1017. this.dataCost = data.records;
  1018. this.loadingCost = false;
  1019. });
  1020. },
  1021. //删除费用明细触发
  1022. rowDelProject(row, index, donerowDel) {
  1023. this.$confirm("确定将选择数据删除?", {
  1024. confirmButtonText: "确定",
  1025. cancelButtonText: "取消",
  1026. type: "warning"
  1027. }).then(() => {
  1028. //费用判断是否需要调用删除接口
  1029. if (row.id) {
  1030. corpsitem(row.id).then(res => {
  1031. this.$message({
  1032. type: "success",
  1033. message: "操作成功!"
  1034. });
  1035. this.advantageProjectData.splice(index, 1);
  1036. })
  1037. } else {
  1038. this.$message({
  1039. type: "success",
  1040. message: "操作成功!"
  1041. });
  1042. this.advantageProjectData.splice(index, 1);
  1043. }
  1044. })
  1045. },
  1046. //新增附件上传保存触发
  1047. rowSaveBankOfDeposit(row, done, loading) {
  1048. this.bankOfDepositData.push(row)
  1049. done()
  1050. },
  1051. //修改附件上传触发
  1052. rowUpdateBankOfDeposit(row, index, done, loading) {
  1053. done(row);
  1054. },
  1055. //删除附件上传触发
  1056. rowDelBankOfDeposit(row, index, donerowDel) {
  1057. this.$confirm("确定将选择数据删除?", {
  1058. confirmButtonText: "确定",
  1059. cancelButtonText: "取消",
  1060. type: "warning"
  1061. }).then(() => {
  1062. //附件判断是否需要调用删除接口
  1063. if (row.id) {
  1064. corpsbank(row.id).then(res => {
  1065. this.$message({
  1066. type: "success",
  1067. message: "操作成功!"
  1068. });
  1069. this.bankOfDepositData.splice(index, 1);
  1070. })
  1071. } else {
  1072. this.$message({
  1073. type: "success",
  1074. message: "操作成功!"
  1075. });
  1076. this.bankOfDepositData.splice(index, 1);
  1077. }
  1078. })
  1079. },
  1080. uploadAfter(res, done) {
  1081. if (res.originalName) {
  1082. this.bankOfDepositForm.fileName = this.bankOfDepositForm.fileName
  1083. ? this.bankOfDepositForm.fileName
  1084. : res.originalName;
  1085. }
  1086. done();
  1087. },
  1088. // 去重
  1089. removeRepeat() {
  1090. let obj = []
  1091. this.configuration.dicData = this.configuration.dicData.reduce((current,next) => {
  1092. obj[next.id] ? '': obj[next.id] = true && current.push(next)
  1093. return current
  1094. }, [])
  1095. },
  1096. //
  1097. receiveList(data){
  1098. this.configuration.dicData = this.configuration.dicData.concat(data)
  1099. this.removeRepeat()
  1100. },
  1101. //修改提交触发
  1102. editCustomer(isBack = false) {
  1103. console.log(this.form)
  1104. this.$refs["form"].validate((valid) => {
  1105. if (valid) {
  1106. //商品信息
  1107. this.form.deliveryItemsList = this.contactsData
  1108. this.form.deliveryFeesList = this.advantageProjectData
  1109. this.form.deliveryFilesList = this.bankOfDepositData
  1110. if (typeof this.form.corpsTypeId == 'object') {
  1111. this.form.corpsTypeId = this.form.corpsTypeId.join(",")
  1112. }
  1113. this.disabled = true
  1114. this.form.billType = 'FH'
  1115. typeSave(this.form).then(res => {
  1116. this.$message({type: "success", message: this.form.id ? "修改成功!" : "新增成功!"});
  1117. this.disabled = false
  1118. if (isBack) {
  1119. //成功关闭此页面回到列表页
  1120. this.$emit("goBack");
  1121. } else {
  1122. this.queryData(res.data.data.id)
  1123. }
  1124. })
  1125. } else {
  1126. return false;
  1127. }
  1128. });
  1129. },
  1130. //复制新单
  1131. copyOrder() {
  1132. this.queryData(this.form.id, true)
  1133. },
  1134. //返回列表
  1135. backToList() {
  1136. if (contrastObj(this.form, this.oldForm) ||
  1137. contrastList(this.contactsData, this.oldGoodsList) ||
  1138. contrastList(this.advantageProjectData, this.oldFeesList) ||
  1139. contrastList(this.bankOfDepositData, this.oldUploadList)
  1140. ) {
  1141. this.$confirm("数据发生变化未有提交记录, 是否提交?", "提示", {
  1142. confirmButtonText: "确定",
  1143. cancelButtonText: "取消",
  1144. type: "warning"
  1145. }).then(() => {
  1146. this.editCustomer(true)
  1147. }).catch(() => {
  1148. this.$emit("goBack");
  1149. })
  1150. } else {
  1151. this.$emit("goBack");
  1152. }
  1153. },
  1154. // 确认发货
  1155. sendOutGoods() {
  1156. this.$refs["form"].validate((valid) => {
  1157. if (valid) {
  1158. if (this.contactsData.length == 0) {
  1159. return this.$message.error('商品信息为空')
  1160. }
  1161. for (let item in this.contactsData) {
  1162. if (!this.contactsData[item].id) {
  1163. return this.$message.error('有商品未保存,请先保存')
  1164. }
  1165. }
  1166. //商品信息
  1167. this.form.deliveryItemsList = this.contactsData
  1168. this.form.deliveryFeesList = this.advantageProjectData
  1169. this.form.deliveryFilesList = this.bankOfDepositData
  1170. if (typeof this.form.corpsTypeId == 'object') {
  1171. this.form.corpsTypeId = this.form.corpsTypeId.join(",")
  1172. }
  1173. sendOutGoods(this.form).then(res => {
  1174. console.log(res)
  1175. this.$message.success('发货成功')
  1176. this.queryData(res.data.data.id)
  1177. })
  1178. } else {
  1179. return false;
  1180. }
  1181. });
  1182. },
  1183. // 撤销发货
  1184. revokeOutGoods() {
  1185. this.$refs["form"].validate((valid) => {
  1186. if (valid) {
  1187. //商品信息
  1188. this.form.deliveryItemsList = this.contactsData
  1189. this.form.deliveryFeesList = this.advantageProjectData
  1190. this.form.deliveryFilesList = this.bankOfDepositData
  1191. if (typeof this.form.corpsTypeId == 'object') {
  1192. this.form.corpsTypeId = this.form.corpsTypeId.join(",")
  1193. }
  1194. revokeOutGoods(this.form).then(res => {
  1195. console.log(res)
  1196. this.$message.success('撤销成功')
  1197. this.queryData(res.data.data.id)
  1198. })
  1199. } else {
  1200. return false;
  1201. }
  1202. });
  1203. },
  1204. // 保存列设置
  1205. async saveColumn(name) {
  1206. /**
  1207. * 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
  1208. * 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
  1209. * 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
  1210. */
  1211. if (name == 'goods') {
  1212. const inSave = await this.saveColumnData(
  1213. this.getColumnName(21),
  1214. this.customerContact
  1215. );
  1216. if (inSave) {
  1217. this.$message.success("保存成功");
  1218. //关闭窗口
  1219. this.$refs.crudContact.$refs.dialogColumn.columnBox = false;
  1220. }
  1221. } else if (name === 'fees') {
  1222. const inSave = await this.saveColumnData(
  1223. this.getColumnName(22),
  1224. this.advantageProject
  1225. );
  1226. if (inSave) {
  1227. this.$message.success("保存成功");
  1228. //关闭窗口
  1229. this.$refs.crudProject.$refs.dialogColumn.columnBox = false;
  1230. }
  1231. }
  1232. },
  1233. }
  1234. }
  1235. </script>
  1236. <style lang="scss" scoped>
  1237. .customer-head {
  1238. position: fixed;
  1239. top: 105px;
  1240. width: 100%;
  1241. margin-left: -10px;
  1242. height: 62px;
  1243. background: #ffffff;
  1244. box-shadow: 0 4px 12px 0px rgba(232, 232, 235, 1);
  1245. z-index: 999;
  1246. /* display: flex;
  1247. justify-content: left; */
  1248. }
  1249. .customer-back {
  1250. cursor: pointer;
  1251. line-height: 62px;
  1252. font-size: 16px;
  1253. color: #323233;
  1254. font-weight: 400;
  1255. }
  1256. .back-icon {
  1257. line-height: 64px;
  1258. font-size: 20px;
  1259. margin-right: 8px;
  1260. }
  1261. .add-customer-btn {
  1262. position: fixed;
  1263. right: 36px;
  1264. top: 115px;
  1265. }
  1266. ::v-deep .el-form-item {
  1267. margin-bottom: 0;
  1268. }
  1269. .el-dialogDeep {
  1270. ::v-deep .el-dialog {
  1271. margin: 1vh auto 0 !important;
  1272. padding-bottom: 10px !important;
  1273. .el-dialog__body, .el-dialog__footer {
  1274. padding-bottom: 0 !important;
  1275. padding-top: 0 !important;
  1276. }
  1277. }
  1278. }
  1279. .print-div {
  1280. color: #000;
  1281. }
  1282. .print_table {
  1283. table {
  1284. border-right: 1px solid #000;
  1285. border-bottom: 1px solid #000;
  1286. font-size: 12px;
  1287. margin-bottom: 5px;
  1288. }
  1289. table td {
  1290. border-left: 1px solid #000;
  1291. border-top: 1px solid #000;
  1292. vertical-align: middle;
  1293. padding: 2px;
  1294. text-align: center;
  1295. }
  1296. }
  1297. .table {
  1298. border-collapse: collapse;
  1299. border-spacing: 0;
  1300. background-color: transparent;
  1301. display: table;
  1302. width: 99%;
  1303. max-width: 100%;
  1304. margin: 0 auto;
  1305. }
  1306. .table td {
  1307. text-align: left;
  1308. vertical-align: middle;
  1309. font-size: 14px;
  1310. color: #000000;
  1311. padding: 10.5px 0 10.5px 30px;
  1312. //border: 1px solid #000;
  1313. }
  1314. </style>