detailsPageEdit.vue 43 KB

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