tabs.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801
  1. <template>
  2. <!-- 报表 - tabs -->
  3. <!-- default-active-key="1"-->
  4. <div id="unitTabs">
  5. <a-tabs @change="tabsCallback" :default-active-key="activeKey">
  6. <a-tab-pane v-for="(item, index) in tabNameList" :key="index" :tab="item">
  7. <!-- tabs 面料 -->
  8. <div :class="[(fabData.length==0?'noprint': '')]">
  9. <h6 class="table-title">面料</h6>
  10. <a-table
  11. rowKey="(item)=>item.id"
  12. :loading="loading"
  13. :columns="fabColumns"
  14. :data-source="fabData"
  15. bordered
  16. :pagination="false"
  17. :scroll="{ x: 1500 }"
  18. >
  19. <!-- 表头 -->
  20. <span slot="transferCostTitle" class="fontColor">
  21. 转入成本
  22. </span>
  23. <span slot="remainingQuantitycostTitle" class="fontColor">
  24. 余下数量的成本
  25. </span>
  26. <!-- 面料 -转入数量 弹框-->
  27. <span slot="fabInQuaSlot" slot-scope="text">
  28. <a>{{ Number(text).toFixed(4) }}</a>
  29. </span>
  30. <!-- 余下数量-->
  31. <span slot="fabRemaQuaSlot" slot-scope="text">
  32. <a>{{ Number(text).toFixed(4) }}</a>
  33. </span>
  34. <!-- 余下数量-->
  35. <span slot="pilosityFewerSlot" slot-scope="text">
  36. <a>{{ Number(text).toFixed(4) }}</a>
  37. </span>
  38. <!-- 备注 -->
  39. <span slot="remarks" slot-scope="text,record">
  40. <!-- <a-input placeholder="请输入" v-model="record.remarks" v-show='showSelect==0'/> -->
  41. <a @click="inputRemark(record,'面料')" v-show='showSelect==0'> 备注</a>
  42. <span v-show='showSelect==1'>{{ text }}</span>
  43. </span>
  44. </a-table>
  45. </div>
  46. <!-- tabs 辅料 -->
  47. <div style="margin:30px 0" :class="[(ingData.length==0?'noprint': '')]">
  48. <h6 class="table-title">辅料</h6>
  49. <a-table
  50. rowKey="(item)=>item.goodsName"
  51. :loading="loading"
  52. :columns="ingColumns"
  53. :data-source="ingData"
  54. bordered
  55. :pagination="false"
  56. :scroll="{ x: 1500 }"
  57. >
  58. <!-- 表头 -->
  59. <span slot="transferCostTitle" class="fontColor">
  60. 转入成本
  61. </span>
  62. <!--辅料-转入数量 弹框-->
  63. <span slot="ingInQuaSlot" slot-scope="text">
  64. <a v-if="text!==''">{{ Number(text).toFixed(4) }}</a>
  65. </span>
  66. <!--辅料-余下数量 弹框-->
  67. <span slot="ingRemQuaSlot" slot-scope="text">
  68. <a v-if="text!==''">{{ Number(text).toFixed(4) }}</a>
  69. </span>
  70. <!-- 备注 -->
  71. <span slot="remarks" slot-scope="text,record">
  72. <!-- <a-input placeholder="请输入" v-model="record.remarks" v-show='showSelect==0'/> -->
  73. <a @click="inputRemark(record,'辅料')" v-show='showSelect==0'> 备注</a>
  74. <span v-show='showSelect==1'>{{ text }}</span>
  75. </span>
  76. </a-table>
  77. </div>
  78. <!-- tabs 发运明细 :scroll="{ x: 1500 }"-->
  79. <div :class="[(shipData.length==0?'noprint': '')]">
  80. <h6 class="table-title">发运明细</h6>
  81. <a-table
  82. rowKey="(item)=>item.id"
  83. :loading="loading"
  84. :columns="shipColumns"
  85. :data-source="shipData"
  86. bordered
  87. :pagination="false"
  88. :scroll="{ x: 1500 }"
  89. class="shipData"
  90. >
  91. </a-table>
  92. </div>
  93. <!-- tabs 合计 信息 -->
  94. <div style="marginTop:30px;">
  95. <h6 class="table-title">合计信息</h6>
  96. <div style="border: 1px solid #e8e8e8;padding: 20px 20px 0 20px;">
  97. <a-row :gutter="24">
  98. <div class="table-page-search-wrapper">
  99. <a-form layout="inline" class="kk">
  100. <a-col :md="6" :sm="8">
  101. <a-form-item label="出货数量合计" >
  102. <a-input v-model="sumInfo.shipQua" v-show='showSelect==0'></a-input>
  103. <span v-show='showSelect==1'>{{sumInfo.shipQua}}</span>
  104. </a-form-item>
  105. </a-col>
  106. <a-col :md="6" :sm="8">
  107. <a-form-item label="出运美元外销总价" >
  108. <a-input v-model="sumInfo.exportPriceUSD" v-show='showSelect==0'></a-input>
  109. <span v-show='showSelect==1'>{{sumInfo.exportPriceUSD}}</span>
  110. </a-form-item>
  111. </a-col>
  112. <a-col :md="6" :sm="8">
  113. <a-form-item label="出运人民币外销金额">
  114. <a-input v-model="sumInfo.exportedAmountRMB" v-show='showSelect==0'></a-input>
  115. <span v-show='showSelect==1'>{{sumInfo.exportedAmountRMB}}</span>
  116. </a-form-item>
  117. </a-col>
  118. <a-col :md="6" :sm="8">
  119. <a-form-item label="成本合计金额">
  120. <a-input v-model="sumInfo.amountTotal" v-show='showSelect==0'></a-input>
  121. <span v-show='showSelect==1'>{{sumInfo.amountTotal}}</span>
  122. </a-form-item>
  123. </a-col>
  124. <a-col :md="6" :sm="8">
  125. <a-form-item label="面料金额合计" >
  126. <a-input v-model="sumInfo.fabricAmount" v-show='showSelect==0'></a-input>
  127. <span v-show='showSelect==1'>{{sumInfo.fabricAmount}}</span>
  128. </a-form-item>
  129. </a-col>
  130. <a-col :md="6" :sm="8">
  131. <a-form-item label="辅料金额合计">
  132. <a-input v-model="sumInfo.ingAmount" v-show='showSelect==0'></a-input>
  133. <span v-show='showSelect==1'>{{sumInfo.ingAmount}}</span>
  134. </a-form-item>
  135. </a-col>
  136. <a-col :md="6" :sm="8">
  137. <a-form-item label="出运加工费">
  138. <a-input v-model="sumInfo.shipProcesFees" v-show='showSelect==0'></a-input>
  139. <span v-show='showSelect==1'>{{sumInfo.shipProcesFees}}</span>
  140. </a-form-item>
  141. </a-col>
  142. <a-col :md="6" :sm="8" class="noprint">
  143. <a-form-item ></a-form-item>
  144. </a-col>
  145. <a-col :md="6" :sm="8">
  146. <a-form-item label="面料不含税金额合计">
  147. <a-input v-model="sumInfo.fabricExcludTax" v-show='showSelect==0'></a-input>
  148. <span v-show='showSelect==1'>{{sumInfo.fabricExcludTax}}</span>
  149. </a-form-item>
  150. </a-col>
  151. <a-col :md="6" :sm="8">
  152. <a-form-item label="辅料不含税金额合计" >
  153. <a-input v-model="sumInfo.ingExcludAmount" v-show='showSelect==0'></a-input>
  154. <span v-show='showSelect==1'>{{sumInfo.ingExcludAmount}}</span>
  155. </a-form-item>
  156. </a-col>
  157. <a-col :md="6" :sm="8">
  158. <a-form-item label="出运不含税加工费金额" >
  159. <a-input v-model="sumInfo.excludingTaxProcessing" v-show='showSelect==0'></a-input>
  160. <span v-show='showSelect==1'>{{sumInfo.excludingTaxProcessing}}</span>
  161. </a-form-item>
  162. </a-col>
  163. </a-form>
  164. </div>
  165. </a-row>
  166. </div>
  167. </div>
  168. </a-tab-pane>
  169. </a-tabs>
  170. <!-- tabs内弹框 -->
  171. <div>
  172. <!-- 面料 转入数量 -->
  173. <fabInQua-modal ref="fabInQuaModal" :father="aa"></fabInQua-modal>
  174. <!-- 余下数量 -->
  175. <fabRemQua-modal ref="fabRemQuaModal" :father="bb"></fabRemQua-modal>
  176. <!-- 辅料 转入数量 -->
  177. <ingInQua-modal ref="ingInQuaModal" :father="cc"></ingInQua-modal>
  178. <!-- 余下数量 -->
  179. <ingRemQua-modal ref="ingRemQuaModal" :father="bb"></ingRemQua-modal>
  180. <pilosity-fewer-list-modal ref="pilosityFewerListModal"></pilosity-fewer-list-modal>
  181. <submit-information ref="submitInformation" @close="closeRemark"></submit-information>
  182. </div>
  183. </div>
  184. </template>
  185. <script>
  186. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  187. import JEllipsis from '@/components/jeecg/JEllipsis'
  188. import moment from 'moment'
  189. import fabInQuaModal from '@views/cost-allocation-total/modal/fabInQuaModal.vue'
  190. import fabRemQuaModal from '@views/cost-allocation-total/modal/fabRemQuaModal.vue'
  191. import ingInQuaModal from '@views/cost-allocation-total/modal/ingInQuaModal.vue'
  192. import ingRemQuaModal from '@views/cost-allocation-total/modal/ingRemQuaModal.vue'
  193. import pilosityFewerListModal from '@views/cost-allocation-total/modal/pilosityFewerModal.vue'
  194. import submitInformation from '@views/reportForms/cost-allocation-table/submitInformation.vue' // tabs组件
  195. export default {
  196. name: 'UnitTabs', // Tabs 详情
  197. mixins: [JeecgListMixin],
  198. components: {
  199. JEllipsis,
  200. moment,
  201. fabInQuaModal, // 面料 转入数量
  202. fabRemQuaModal, // 余下数量
  203. ingInQuaModal, // 辅料 转入数量
  204. ingRemQuaModal ,// 余下数量
  205. pilosityFewerListModal,//多发少发
  206. submitInformation
  207. },
  208. data() {
  209. // let ellipsis = (v, l = 20) => <j-ellipsis value={v} length={l} />
  210. return {
  211. // 面料
  212. fabColumns: [
  213. {
  214. title: '序号',
  215. width: '6%',
  216. dataIndex: 'index',
  217. key: 'index',
  218. customRender: (text, record, index) => `${index + 1}`,
  219. className: 'replacecolor'
  220. },
  221. { title: '货物名称', width: '10%', dataIndex: 'goodsName', className: 'replacecolor' },
  222. {
  223. title: '转入数量',
  224. dataIndex: 'fabrictransferQuantity',
  225. width: '8%',
  226. className: 'replacecolor',
  227. customCell: this.fabQuaCustomCell,
  228. scopedSlots: { customRender: 'fabInQuaSlot' },
  229. },
  230. {
  231. title: '转入成本',
  232. dataIndex: 'transferCost',
  233. width: '8%',
  234. className: 'replacecolor',
  235. customRender: (text, record, index) => {
  236. if(text!==''&&text){
  237. return Number(text).toFixed(2)
  238. }
  239. },
  240. // slots:{title:'transferCostTitle'} ,
  241. },
  242. {
  243. title: '单耗/件',
  244. dataIndex: 'unitConsumption',
  245. width: '9%',
  246. className: 'replacecolor',
  247. customRender: (text, record, index) => {
  248. if(text!==''&&text){
  249. return Number(text).toFixed(4)
  250. }
  251. },
  252. },
  253. {
  254. title: '使用数量',
  255. dataIndex: 'usageQuantity',
  256. width: '9%',
  257. className: 'replacecolor' ,
  258. customRender: (text, record, index) => {
  259. if(text!==''&&text){
  260. return Number(text).toFixed(4)
  261. }
  262. },
  263. },
  264. {
  265. title: '计划数量',
  266. dataIndex: 'planQuantity',
  267. width: '9%',
  268. className: 'replacecolor' ,
  269. customRender: (text, record, index) => {
  270. if(text!==''&&text){
  271. return Number(text).toFixed(4)
  272. }
  273. },
  274. },
  275. {
  276. title: '购入数量',
  277. dataIndex: 'purchaseQuantity',
  278. width: '6%',
  279. className: 'replacecolor',
  280. customRender: (text, record, index) => {
  281. if(text!==''&&text){
  282. return Number(text).toFixed(4)
  283. }
  284. },
  285. },
  286. {
  287. title: '余下数量',
  288. dataIndex: 'fabricremainingQuantity',
  289. width: '6%',
  290. className: 'replacecolor',
  291. customCell: this.fabRemQuaCustomCell,
  292. scopedSlots: { customRender: 'fabRemaQuaSlot' }
  293. },
  294. {
  295. title: '损耗',
  296. dataIndex: 'loss',
  297. width: '6%',
  298. className: 'replacecolor',
  299. customRender: (text, record, index) => {
  300. if(text!==''&&text){
  301. return Number(text).toFixed(4)
  302. }
  303. },
  304. },
  305. {
  306. title: '余下数量的成本',
  307. dataIndex: 'remainingQuantitycost',
  308. width: '9%',
  309. className: 'replacecolor',
  310. customRender: (text, record, index) => {
  311. if(text!==''&&text){
  312. return Number(text).toFixed(2)
  313. }
  314. },
  315. // slots:{title:'remainingQuantitycostTitle'} ,
  316. },
  317. {
  318. title: '多发少发',
  319. dataIndex: 'pilosityFewer',
  320. width: '9%',
  321. className: 'replacecolor',
  322. customCell: this.pilosityFewerCell,
  323. scopedSlots: { customRender: 'pilosityFewerSlot' }
  324. // customRender: (text, record, index) => {
  325. // if(text!==''&&text){
  326. // return Number(text).toFixed(4)
  327. // }
  328. // },
  329. },
  330. {
  331. title: '备注',
  332. dataIndex: 'remarks',
  333. scopedSlots: { customRender: 'remarks' },
  334. width: '8%',
  335. className: 'replacecolor'
  336. }
  337. ],
  338. fabData: [],
  339. // 辅料
  340. ingColumns: [
  341. {
  342. title: '序号',
  343. width: '6%',
  344. dataIndex: 'index',
  345. key: 'index',
  346. // fixed: 'left',
  347. customRender: (text, record, index) =>{
  348. if(record.goodsName!=='合计'){
  349. return index + 1
  350. }else{
  351. return ''
  352. }
  353. },
  354. className: 'replacecolor'
  355. },
  356. { title: '货物名称', width: '12%', dataIndex: 'goodsName', className: 'replacecolor' },
  357. {
  358. title: '转入数量',
  359. dataIndex: 'ingredientsTransferQuantity',
  360. width: '6%',
  361. className: 'replacecolor',
  362. customCell: this.ingInQuaCustomCell,
  363. scopedSlots: { customRender: 'ingInQuaSlot' }
  364. },
  365. {
  366. title: '转入成本',
  367. dataIndex: 'transferCost',
  368. width: '6%',
  369. className: 'replacecolor',
  370. customRender: (text, record, index) => {
  371. if(text!==''&&text){
  372. return Number(text).toFixed(2)
  373. }
  374. },
  375. // slots:{title:'transferCostTitle'} ,
  376. },
  377. {
  378. title: '使用数量',
  379. dataIndex: 'usageQuantity',
  380. width: '8%',
  381. className: 'replacecolor',
  382. customRender: (text, record, index) => {
  383. if(text!==''&&text){
  384. return Number(text).toFixed(4)
  385. }
  386. },
  387. },
  388. {
  389. title: '购入数量',
  390. dataIndex: 'purchaseQuantity',
  391. width: '8%',
  392. className: 'replacecolor',
  393. customRender: (text, record, index) => {
  394. if(text!==''&&text){
  395. return Number(text).toFixed(4)
  396. }
  397. },
  398. },
  399. {
  400. title: '余下数量',
  401. dataIndex: 'ingredientsRemainingQuantity',
  402. width: '6%',
  403. className: 'replacecolor',
  404. customCell: this.ingRemQuaCustomCell,
  405. scopedSlots: { customRender: 'ingRemQuaSlot' }
  406. },
  407. {
  408. title: '损耗',
  409. dataIndex: 'loss',
  410. width: '6%',
  411. className: 'replacecolor',
  412. customRender: (text, record, index) => {
  413. if(text!==''&&text){
  414. return Number(text).toFixed(4)
  415. }
  416. },
  417. },
  418. {
  419. title: '人民币金额',
  420. dataIndex: 'rmbAmount',
  421. width: '6%',
  422. className: 'replacecolor',
  423. customRender: (text, record, index) => {
  424. if(text!==''&&text){
  425. return Number(text).toFixed(2)
  426. }
  427. },
  428. },
  429. {
  430. title: '美元金额',
  431. dataIndex: 'usdAmount',
  432. width: '6%',
  433. className: 'replacecolor',
  434. customRender: (text, record, index) => {
  435. if (record.rmbAmount == record.usdAmount)
  436. return "";
  437. else
  438. return Number(record.usdAmount).toFixed(2);
  439. }
  440. },
  441. {
  442. title: '不含税金额',
  443. dataIndex: 'priceExcludingtax',
  444. width: '6%',
  445. className: 'replacecolor',
  446. customRender: (text, record, index) => {
  447. if(text!==''&&text){
  448. return Number(text).toFixed(2)
  449. }
  450. },
  451. },
  452. // {
  453. // title: '转出率',
  454. // dataIndex: 'transferOutrate',
  455. // width: 120,
  456. // className: 'replacecolor'
  457. // },
  458. // {
  459. // title: '进项税转出',
  460. // dataIndex: 'inputtaxTransferout',
  461. // width: 160,
  462. // className: 'replacecolor'
  463. // },
  464. {
  465. title: '用量',
  466. dataIndex: 'dosage',
  467. width: '6%',
  468. className: 'replacecolor',
  469. customRender: (text, record, index) => {
  470. if(text!==''&&text){
  471. return Number(text).toFixed(4)
  472. }
  473. },
  474. },
  475. {
  476. title: '供应商',
  477. dataIndex: 'supper',
  478. width: '8%',
  479. className: 'replacecolor'
  480. },
  481. {
  482. title: '备注',
  483. dataIndex: 'remarks',
  484. scopedSlots: { customRender: 'remarks' },
  485. width: '8%',
  486. className: 'replacecolor'
  487. }
  488. ],
  489. ingData: [],
  490. // 发运明细
  491. shipColumns: [
  492. {
  493. title: '序号',
  494. width: '6%',
  495. dataIndex: 'index',
  496. key: 'index',
  497. fixed: 'left',
  498. customRender: (text, record, index) => `${index + 1}`,
  499. className: 'replacecolor'
  500. },
  501. { title: '发票号码', width: '15%', dataIndex: 'invoiceNum', fixed: 'left', className: 'replacecolor' },
  502. {
  503. title: '出运日期',
  504. dataIndex: 'outdata',
  505. width: '8%',
  506. fixed: 'left',
  507. className: 'replacecolor'
  508. },
  509. {
  510. title: '小po',
  511. width: '7%',
  512. dataIndex: 'smallPo',
  513. fixed: 'left',
  514. className: 'replacecolor'
  515. },
  516. {
  517. title: '汇率',
  518. dataIndex: 'exchangeRate',
  519. width: '8%',
  520. className: 'replacecolor'
  521. },
  522. { title: '订单号', dataIndex: 'orderNum', width: '10%', className: 'replacecolor' },
  523. {
  524. title: '产品款号',
  525. dataIndex: 'poStyleNum',
  526. width: '9%',
  527. className: 'replacecolor'
  528. },
  529. {
  530. title: '出货数量',
  531. dataIndex: 'shipQuantity',
  532. width: '9%',
  533. className: 'replacecolor',
  534. customRender: (text, record, index) => {
  535. if(text!==''&&text){
  536. return Number(text).toFixed(4)
  537. }
  538. },
  539. },
  540. {
  541. title: '外销单价',
  542. dataIndex: 'exportUnitPrice',
  543. width: '9%',
  544. className: 'replacecolor',
  545. customRender: (text, record, index) => {
  546. if(text!==''&&text){
  547. return Number(text).toFixed(4)
  548. }
  549. },
  550. },
  551. {
  552. title: '外销总价',
  553. dataIndex: 'exportPrice',
  554. width: '9%',
  555. className: 'replacecolor',
  556. customRender: (text, record, index) => {
  557. if(text!==''&&text){
  558. return Number(text).toFixed(2)
  559. }
  560. },
  561. },
  562. {
  563. title: '人民币金额',
  564. dataIndex: 'rmbAmount',
  565. width: '9%',
  566. className: 'replacecolor',
  567. customRender: (text, record, index) => {
  568. if(text!==''&&text){
  569. return Number(text).toFixed(2)
  570. }
  571. },
  572. },
  573. {
  574. title: '加工单价(人民币)',
  575. dataIndex: 'procesUnitPricermb',
  576. width: '9%',
  577. className: 'replacecolor',
  578. customRender: (text, record, index) => {
  579. if(text!==''&&text){
  580. return Number(text).toFixed(4)
  581. }
  582. },
  583. },
  584. {
  585. title: '加工单价(美元)',
  586. dataIndex: 'procesUnitPriceusd',
  587. width: '9%',
  588. className: 'replacecolor',
  589. customRender: (text, record, index) => {
  590. if (record.procesUnitPricermb == record.procesUnitPriceusd)
  591. return "";
  592. else
  593. return record.procesUnitPriceusd?Number(record.procesUnitPriceusd).toFixed(4):'';
  594. }
  595. },
  596. {
  597. title: '加工费(人民币)',
  598. dataIndex: 'processCost',
  599. width: '8%',
  600. className: 'replacecolor',
  601. customRender: (text, record, index) => {
  602. if(text!==''&&text){
  603. return Number(text).toFixed(4)
  604. }
  605. },
  606. }
  607. ],
  608. shipData: [],
  609. tabsAllData: [], //tabs所有数据集合
  610. tabNameList: [], //tabs数组集合
  611. activeKey: '0',
  612. sumInfo: {} //合计对象
  613. }
  614. },
  615. props: {
  616. showSelect: {
  617. type: String,
  618. default: null
  619. }
  620. },
  621. created() {},
  622. methods: {
  623. changeTaxrate(data){
  624. this.sumInfo.fabricExcludTax =''
  625. this.sumInfo.ingExcludAmount=''
  626. this.sumInfo.amountTotal=''
  627. this.sumInfo.fabricExcludTax =(Number(this.sumInfo.fabricAmount)/(1+(Number(data)/100))).toFixed(2)//合计中的不含税面料总额
  628. this.sumInfo.ingExcludAmount = (Number(this.sumInfo.ingAmount).toFixed(2)/(1+(Number(data)/100))).toFixed(2)//辅料不含税金额合计
  629. this.sumInfo.amountTotal = (Number(this.sumInfo.fabricExcludTax)+Number(this.sumInfo.ingExcludAmount)+Number( this.sumInfo.shipProcesFees)).toFixed(2)//合计金额
  630. this.$forceUpdate()
  631. this.$emit('number',this.sumInfo.fabricExcludTax,this.sumInfo.ingExcludAmount)
  632. },
  633. tabsCallback(key) {
  634. this.activeKey = key
  635. // console.log('点击的是', this.activeKey)
  636. if (key == 0) {
  637. var oneData = this.tabsAllData[0]
  638. this.fabData = oneData.syCostAllocationFabricList
  639. this.ingData = oneData.syCostAllocationIngredientList
  640. this.shipData = oneData.syCostAllocationShipdetailList
  641. }
  642. if (key == 1) {
  643. var twoData = this.tabsAllData[1]
  644. this.fabData = twoData.syCostAllocationFabricList
  645. this.ingData = twoData.syCostAllocationIngredientList
  646. this.shipData = twoData.syCostAllocationShipdetailList
  647. }
  648. },
  649. // 面料 -转入数量 弹框
  650. fabQuaCustomCell(record) {
  651. return {
  652. on: {
  653. click: event => {
  654. console.log('面料 - 转入数量')
  655. this.$refs.fabInQuaModal.fabInQuaModVis = true
  656. record.syTransfers.map(item=>{
  657. if(item.unitCost){
  658. item.unitCost = (item.unitCost).toFixed(3)
  659. }
  660. })
  661. this.$refs.fabInQuaModal.data = record.syTransfers
  662. }
  663. }
  664. }
  665. },
  666. // 面料 -余下数量 弹框
  667. fabRemQuaCustomCell(record) {
  668. return {
  669. on: {
  670. click: event => {
  671. console.log('面料 - 余下数量')
  672. this.$refs.fabRemQuaModal.fabRemQuaModVis = true
  673. this.$refs.fabRemQuaModal.data = record.syRemaining
  674. }
  675. }
  676. }
  677. },
  678. //面料-多发少发
  679. pilosityFewerCell(record){
  680. return {
  681. on: {
  682. click: event => {
  683. console.log('面料 - 多发少发')
  684. this.$refs.pilosityFewerListModal.pilosityFewerModVis = true
  685. this.$refs.pilosityFewerListModal.pilosityFewerList = record.pilosityFewerList
  686. }
  687. }
  688. }
  689. },
  690. // 辅料-转入数量 弹框
  691. ingInQuaCustomCell(record) {console.log('辅料 - 转入数量')
  692. return {
  693. on: {
  694. click: event => {
  695. console.log('辅料 - 转入数量')
  696. this.$refs.ingInQuaModal.ingInQuaModVis = true
  697. record.syTransfers.map(item=>{
  698. if(item.unitCost){
  699. item.unitCost = (item.unitCost).toFixed(3)
  700. }
  701. })
  702. this.$refs.ingInQuaModal.data = record.syTransfers
  703. }
  704. }
  705. }
  706. },
  707. // 辅料-余下数量 弹框
  708. ingRemQuaCustomCell(record) {
  709. return {
  710. on: {
  711. click: event => {
  712. console.log('辅料 - 余下数量')
  713. this.$refs.ingRemQuaModal.ingRemQuaModVis = true
  714. this.$refs.ingRemQuaModal.data = record.syRemaining
  715. }
  716. }
  717. }
  718. },
  719. inputRemark(record,data){
  720. this.$refs.submitInformation.remarkModVis = true
  721. this.$refs.submitInformation.value = record.remarks
  722. this.$refs.submitInformation.text = data
  723. this.$refs.submitInformation.father = record
  724. },
  725. closeRemark(value,data,record){
  726. record.remarks=value
  727. }
  728. },
  729. computed: {
  730. // 合计数据
  731. // sumInfoSource() {}
  732. }
  733. }
  734. </script>
  735. <style lang="less" scoped>
  736. @import '~@assets/less/common.less';
  737. @import '~@assets/less/overwriter.less';
  738. /deep/ .ant-table-thead > tr > th {
  739. text-align: center;
  740. // font-weight: 700;
  741. }
  742. /deep/ .ant-table-tbody {
  743. text-align: center;
  744. }
  745. // /deep/ th.replacecolor {
  746. // background-color: #ccc;
  747. // }
  748. //tbas内 小标签
  749. .table-title {
  750. font-weight: 700;
  751. }
  752. .fontColor{
  753. color: red;
  754. }
  755. /deep/ .ant-tabs-nav .ant-tabs-tab-active {
  756. font-size: 18px;
  757. }
  758. /deep/ .ant-tabs-nav .ant-tabs-tab {
  759. font-size: 18px;
  760. }
  761. /deep/ .ant-tabs-nav .ant-tabs-tab {
  762. padding: 0 0 10px 0;
  763. }
  764. /deep/ .fontColor .ant-form-item-label > label{
  765. color: red !important;
  766. }
  767. /deep/.ant-table-fixed{
  768. width:18% !important
  769. }
  770. /deep/.shipData>.ant-spin-nested-loading>.ant-spin-container>.ant-table>.ant-table-content>.ant-table-fixed-left>.ant-table-body-outer>.ant-table-body-inner>.ant-table-fixed>{
  771. width:29% !important
  772. }
  773. </style>