edit.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650
  1. <template>
  2. <div v-if="showPage" class="purchaseNewOrderEdit-wrap">
  3. <a-page-header :ghost="false" :backIcon="false" class="purchaseNewOrderEdit-cont">
  4. <!-- 自定义的二级文字标题 -->
  5. <template slot="subTitle">
  6. <p class="billno">单号:{{ detail&&detail.purchaseBillNo }}</p>
  7. <a-button type="link" class="button-default" @click="isShowBisiceInfo=!isShowBisiceInfo" style="margin-left:10px;vertical-align:middle;">
  8. <a-icon :type="isShowBisiceInfo ? 'eye-invisible' : 'eye'"/>
  9. 查看信息
  10. </a-button>
  11. <a-button id="purchaseNewOrderEdit-back-btn" type="link" @click="handleBack" class="button-default"> <a-icon type="rollback" /> 返回列表</a-button>
  12. </template>
  13. <!-- 操作区,位于 title 行的行尾 -->
  14. <template slot="extra">
  15. <div style="margin-top: 5px;">
  16. <PrintPanel v-if="$hasPermissions('B_purchasePrint')" :disabled="localDataSource.length==0" @handlePrint="handlePrint"></PrintPanel>
  17. <a-divider type="vertical" v-if="detail&&detail.totalCategory" />
  18. <a-button type="link" v-if="detail&&detail.totalCategory" @click="showSearch=!showSearch" class="button-default"> <a-icon type="search" /> 筛选</a-button>
  19. <a-divider type="vertical" v-if="detail&&detail.totalCategory" />
  20. <a-button v-if="detail&&detail.totalCategory" id="purchaseNewOrderEdit-add-btn" type="link" @click="openChooseProduct=true"><a-icon type="plus" />添加产品</a-button>
  21. <a-divider type="vertical" />
  22. <a-dropdown>
  23. <a-menu slot="overlay" @click="handleActions">
  24. <a-menu-item key="1">
  25. <a-icon type="import" />产品导入
  26. </a-menu-item>
  27. <a-menu-item key="2">
  28. <a-icon type="funnel-plot" />上次缺货
  29. </a-menu-item>
  30. <a-menu-item key="3" v-if="$hasPermissions('M_shoppingCart')">
  31. <a-icon type="shopping" /> 购物车
  32. </a-menu-item>
  33. </a-menu>
  34. <a-button type="link" class="button-default"> <a-icon type="down" /> 更多操作</a-button>
  35. </a-dropdown>
  36. </div>
  37. </template>
  38. </a-page-header>
  39. <!-- 产品列表 -->
  40. <div ref="tableSearch" class="choosedList-cont">
  41. <!-- 基础信息 -->
  42. <div style="padding:10px 10px 0 10px;border-bottom:6px solid #f0f0f0;" v-if="isShowBisiceInfo">
  43. <a-descriptions size="small">
  44. <div slot="title">基础信息</div>
  45. <a-descriptions-item label="供应商">
  46. {{ detail&&detail.purchaseTargetName || '--' }}
  47. </a-descriptions-item>
  48. <a-descriptions-item label="支付方式">
  49. {{ detail&&detail.settleStyleSnDictValue || '--' }}
  50. </a-descriptions-item>
  51. <a-descriptions-item label="收货人">
  52. {{ detail&&detail.consigneeName || '--' }}({{ detail&&detail.consigneeTel || '--' }})
  53. </a-descriptions-item>
  54. <a-descriptions-item label="收货地址" span="3">
  55. <div v-if="detail&&(detail.shippingAddressProvinceName || detail.shippingAddressCityName || detail.shippingAddressCountyName || detail.shippingAddress)">
  56. {{ detail&&detail.shippingAddressProvinceName || '' }}
  57. {{ detail&&detail.shippingAddressCityName || '' }}
  58. {{ detail&&detail.shippingAddressCountyName || '' }}
  59. {{ detail&&detail.shippingAddress || '' }}
  60. <a-button type="link" @click="openAddrModal=true">更换地址 >></a-button>
  61. </div>
  62. <div v-else><a-button type="link" @click="openAddrModal=true">选择地址 >></a-button></div>
  63. </a-descriptions-item>
  64. </a-descriptions>
  65. </div>
  66. <!-- 已选产品 -->
  67. <div id="purchaseTable">
  68. <div class="choosed-table" v-if="detail&&detail.totalCategory">
  69. <!-- 搜索条件 -->
  70. <div class="table-page-search-wrapper" v-if="showSearch">
  71. <a-row :gutter="15">
  72. <a-col :span="24">
  73. <a-form-model :model="productForm" layout="inline" @keyup.enter.native="getTableData()" >
  74. <a-row :gutter="15">
  75. <a-col :md="5" :sm="24">
  76. <a-form-model-item label="产品编码">
  77. <a-input v-model.trim="productForm.productCode" allowClear placeholder="输入产品编码" />
  78. </a-form-model-item>
  79. </a-col>
  80. <a-col :md="5" :sm="24">
  81. <a-form-model-item label="产品名称">
  82. <a-input v-model.trim="productForm.productName" allowClear placeholder="输入产品名称" />
  83. </a-form-model-item>
  84. </a-col>
  85. <a-col :md="8" :sm="24">
  86. <div style="margin-bottom: 10px;">
  87. <a-button type="primary" @click="getTableData()" :disabled="purchaseDisabled" id="purchaseNewOrderEdit-refresh">查询</a-button>
  88. <a-button style="margin-left: 5px" @click="resetPurchaseForm" id="purchaseNewOrderEdit-reset">重置</a-button>
  89. </div>
  90. </a-col>
  91. </a-row>
  92. </a-form-model>
  93. </a-col>
  94. </a-row>
  95. </div>
  96. <!-- 列表 -->
  97. <a-spin :spinning="spinning" tip="Loading...">
  98. <ve-table
  99. border-y
  100. :border-around="false"
  101. :max-height="tableHeight"
  102. :row-style-option="{clickHighlight: true}"
  103. :cellSelectionOption="{enable: false}"
  104. :virtual-scroll-option="{enable: true}"
  105. :columns="chooseColumns"
  106. :table-data="localDataSource"
  107. row-key-field-name="id"
  108. />
  109. </a-spin>
  110. </div>
  111. <div class="choosed-table" v-else>
  112. <div v-if="!spinning&&localDataSource.length==0">
  113. <a-empty
  114. :image="simpleImage"
  115. :image-style="{
  116. height: '60px',
  117. }"
  118. >
  119. <span slot="description"> 暂无产品 </span>
  120. <a-button type="primary" class="button-error" @click="openChooseProduct=true"><a-icon type="plus-circle" />立即添加产品</a-button>
  121. </a-empty>
  122. </div>
  123. <div style="text-align: center;padding: 30px 50px;" v-if="spinning">
  124. <a-spin :spinning="spinning" tip="Loading..."></a-spin>
  125. </div>
  126. </div>
  127. </div>
  128. <!-- 底部栏 -->
  129. <div class="footer-cont" v-if="detail&&detail.totalCategory">
  130. <!-- 总计 -->
  131. <div>
  132. <span style="color:#666;">
  133. 共计 {{ detail && (detail.totalCategory || detail.totalCategory==0) ? detail.totalCategory : '--' }} 款
  134. {{ detail && (detail.totalQty || detail.totalQty==0) ? detail.totalQty : '--' }} 件产品 ,
  135. </span>
  136. <div style="display: inline-block;" v-if="$hasPermissions('M_ShowAllCost')">
  137. 合计: <strong>{{ detail && (detail.discountedAmount || detail.discountedAmount==0) ?toThousands(detail.discountedAmount, 2) : '--' }}</strong>
  138. </div>
  139. </div>
  140. <div>
  141. <a-button
  142. type="primary"
  143. id="purchaseNewOrderEdit-submit-btn"
  144. size="large"
  145. class="button-primary"
  146. :loading="subLoading"
  147. @click="handleSubmit"
  148. style="padding: 0 60px;">提交</a-button>
  149. </div>
  150. </div>
  151. </div>
  152. <!-- 导入产品 -->
  153. <importGuideModal :openModal="openGuideModal" :params="{purchaseBillSn: $route.params.sn}" @close="openGuideModal=false" @ok="hanldeOks" />
  154. <!-- 选择地址 -->
  155. <choose-address-modal :openModal="openAddrModal" @ok="handleAddrOk" @close="openAddrModal=false" />
  156. <!-- 添加产品 -->
  157. <chooseProductModal
  158. ref="chooseProduct"
  159. :isDealerUp="isDealerUp"
  160. :purchaseBillSn="$route.params.sn"
  161. :showModal="openChooseProduct"
  162. @close="openChooseProduct=false"
  163. @add="handleAdd"
  164. ></chooseProductModal>
  165. <!-- 上次缺货 -->
  166. <outStockModal :openModal="openOutStockModal" :paramsData="paramsData" @close="openOutStockModal=false" @ok="hanldeOkOutStock" />
  167. <!-- 购物车 -->
  168. <shopingCatModal :showModal="openShopCatModal" :paramsData="paramsData" @close="openShopCatModal=false" @ok="getOrderDetail(false, true)"></shopingCatModal>
  169. </div>
  170. </template>
  171. <script>
  172. import { Empty } from 'ant-design-vue'
  173. import { commonMixin } from '@/utils/mixin'
  174. import { STable, VSelect } from '@/components'
  175. import ImportGuideModal from './importGuideModal.vue'
  176. import outStockModal from './outStockModal.vue'
  177. import chooseAddressModal from '@/views/common/receivingAddress/chooseAddressModal.vue'
  178. import { purchaseDetailBySn, purchaseWriteSubmit, purchaseDetailPrint, purchaseDetailExport, purchaseDetailAddress } from '@/api/purchase'
  179. import { purchaseDetailList, purchaseDetailSave, purchaseDetailDel, purchaseDetailCount, purchaseDetailCancelList } from '@/api/purchaseDetail'
  180. // 选择产品
  181. import chooseProductModal from './chooseProductModal.vue'
  182. // 打印
  183. import PrintPanel from '@/views/common/printPanel.vue'
  184. import { hdPrint } from '@/libs/JGPrint'
  185. const shopingCatModal = () => import(/* webpackChunkName: "shopingCatModal" */ '@/views/common/shopingCatModal.vue')
  186. const qtyComp = {
  187. name: "qtyComp",
  188. template: `
  189. <a-input-number
  190. size="small"
  191. v-model="row.qty"
  192. :precision="0"
  193. :min="1"
  194. :max="999999"
  195. @blur="e => that.qtyBlur(e.target.value, row)"
  196. style="width: 100%;"
  197. placeholder="请输入" />
  198. `,
  199. props: {
  200. row: Object,
  201. column: Object,
  202. rowIndex: Number,
  203. that: Object
  204. },
  205. };
  206. const actionComp = {
  207. name: "actionComp",
  208. template: `
  209. <a-button
  210. size="small"
  211. type="link"
  212. class="button-error"
  213. :loading="row.delLoading"
  214. @click="that.handleDel(row)"
  215. >删除</a-button>
  216. `,
  217. props: {
  218. row: Object,
  219. column: Object,
  220. rowIndex: Number,
  221. that: Object
  222. },
  223. };
  224. export default {
  225. name: 'PurchaseEdit',
  226. components: { STable, VSelect, ImportGuideModal, outStockModal, PrintPanel, chooseAddressModal, chooseProductModal, shopingCatModal },
  227. mixins: [commonMixin],
  228. data () {
  229. return {
  230. isShowBisiceInfo: false,
  231. showPage: false,
  232. spinning: false,
  233. detail: null, // 详细信息
  234. openChooseProduct: false,
  235. openShopCatModal: false,
  236. tableHeight: 0,
  237. simpleImage: Empty.PRESENTED_IMAGE_SIMPLE,
  238. // -------已选产品-------------
  239. subLoading: false,
  240. orderCountData: null,
  241. delLoading: false,
  242. showSearch: false,
  243. productForm: {
  244. productName: '',
  245. productCode: '',
  246. orderBy: 'purchase_bill_detail.CREATE_DATE desc'
  247. },
  248. purchaseDisabled: false, // 查询、重置按钮是否可操作
  249. localDataSource: [],
  250. openGuideModal: false, // 导入产品引导
  251. openOutStockModal: false,
  252. paramsData: null,
  253. openAddrModal: false // 选择地址弹框是否显示
  254. }
  255. },
  256. computed: {
  257. isDealerUp () {
  258. return this.detail && this.detail.purchaseTargetType == 'DEALER_UP'
  259. },
  260. chooseColumns () {
  261. const _this = this
  262. const arr = [
  263. { title: '序号', key: "a", field: 'no', width: '5%', align: 'center', operationColumn: false },
  264. { title: '产品编码',key: "b", field: 'productCode', width: '10%', align: 'center', operationColumn: false},
  265. { title: '产品名称',key: "c", field: 'productName', width: '35%', align: 'center', operationColumn: false,ellipsis: {showTitle: true} },
  266. { title: '采购数量',key: "d", width: '10%', align: 'center', operationColumn: false,
  267. renderBodyCell: ({ row, column, rowIndex }, h) => {
  268. return <qtyComp row={row} column={column} rowIndex={rowIndex} that={_this} />
  269. }},
  270. { title: '单位',key: "e", field: 'productUnit', width: '10%', align: 'center', operationColumn: false },
  271. { title: '操作',key: "f", width: '10%', align: 'center', operationColumn: false,
  272. renderBodyCell: ({ row, column, rowIndex }, h) => {
  273. return <actionComp row={row} column={column} rowIndex={rowIndex} that={_this} />
  274. }}
  275. ]
  276. if (this.$hasPermissions('M_ShowAllCost')) {
  277. arr.splice(3, 0, { title: '采购单价',key: "h", field: 'discountedPrice', width: '10%', align: 'right', operationColumn: false})
  278. arr.splice(6, 0, { title: '采购金额',key: "i", field: 'discountedAmount', width: '10%', align: 'right', operationColumn: false})
  279. }
  280. return arr
  281. }
  282. },
  283. methods: {
  284. handleActions(e){
  285. if(e.key == 1){
  286. this.openGuideModal=true
  287. }
  288. if(e.key == 2){
  289. this.handleOutStock()
  290. }
  291. if(e.key == 3){
  292. this.hanldCart()
  293. }
  294. },
  295. getTableData(){
  296. this.disabled = true
  297. this.spinning = true
  298. // 查询总计
  299. const params = Object.assign({ pageNo: 1, pageSize: 10000 }, this.productForm, { purchaseBillSn: this.$route.params.sn })
  300. purchaseDetailList(params).then(res => {
  301. const data = res.data
  302. const no = (data.pageNo - 1) * data.pageSize
  303. for (var i = 0; i < data.list.length; i++) {
  304. const row = data.list[i]
  305. row.no = no + i + 1
  306. row.qtyBackups = row.qty
  307. row.productCode = row.dealerProductEntity.code || '--'
  308. row.productName = row.dealerProductEntity.name || '--'
  309. row.productUnit = row.dealerProductEntity.unit || '--'
  310. row.discountedPrice = (row.discountedPrice||row.discountedPrice==0)?this.toThousands(row.discountedPrice, 2):'--'
  311. row.discountedAmount = (row.discountedAmount||row.discountedAmount==0)?this.toThousands(row.discountedAmount, 2):'--'
  312. }
  313. this.localDataSource = data.list
  314. this.disabled = false
  315. this.spinning = false
  316. })
  317. },
  318. // 获取采购单基本信息
  319. getOrderDetail (noRefashTable, isReset, flag) {
  320. this.spinning = true
  321. purchaseDetailBySn({ sn: this.$route.params.sn }).then(res => {
  322. if (res.status == 200) {
  323. this.detail = res.data
  324. if (!noRefashTable) {
  325. if (this.detail.totalCategory) {
  326. if (isReset) {
  327. this.resetPurchaseForm()
  328. } else {
  329. this.getTableData()
  330. }
  331. } else {
  332. this.localDataSource = []
  333. this.spinning = false
  334. }
  335. } else {
  336. this.spinning = false
  337. }
  338. } else {
  339. this.spinning = false
  340. }
  341. })
  342. },
  343. // 删除产品
  344. handleDel (row) {
  345. const _this = this
  346. this.$confirm({
  347. title: '提示',
  348. content: '确认要删除吗?',
  349. centered: true,
  350. closable: true,
  351. onOk () {
  352. row.delLoading = true
  353. purchaseDetailDel({ id: row.id }).then(res => {
  354. if (res.status == 200) {
  355. _this.getOrderDetail(false, false, true)
  356. _this.$message.success(res.message)
  357. row.delLoading = false
  358. } else {
  359. row.delLoading = false
  360. }
  361. })
  362. }
  363. })
  364. },
  365. // 修改数量后
  366. qtyBlur (val, record) {
  367. // 光标移出,值发生改变再调用编辑接口
  368. if (val != record.qtyBackups) {
  369. this.handleAdd(record, 1)
  370. }
  371. },
  372. // 重置已选产品列表
  373. resetPurchaseForm () {
  374. this.productForm.productName = ''
  375. this.productForm.productCode = ''
  376. this.$nextTick(() => {
  377. this.getTableData()
  378. })
  379. },
  380. // 添加或修改
  381. handleAdd (row, type) {
  382. let params = {}
  383. if (type == 0 && !row.qty) {
  384. this.$message.warning('请输入数量后再添加!')
  385. this.$refs.chooseProduct.spinning = false
  386. return
  387. }
  388. // 添加
  389. if (type == 0) {
  390. params.productSn = row.productSn
  391. params.purchaseBillSn = this.detail.purchaseBillSn
  392. params.purchaseBillNo = this.detail.purchaseBillNo
  393. params.price = row.purchasePrice
  394. params.qty = row.qty
  395. } else { // 编辑
  396. // 清空成本价或数量时,值应保持未清空前的值,因成本价和数量都不可为空
  397. if (!row.qty) {
  398. row.qty = row.qtyBackups
  399. return
  400. }
  401. params = row
  402. }
  403. this.addLoading = true
  404. purchaseDetailSave(params).then(res => {
  405. if (res.status == 200) {
  406. this.getOrderDetail(false, true, true)
  407. this.$message.success(res.message)
  408. if (type == 0) {
  409. row.qtyBackups = row.qty
  410. }
  411. } else {
  412. row.qty = row.qtyBackups
  413. }
  414. this.addLoading = false
  415. this.$refs.chooseProduct.spinning = false
  416. })
  417. },
  418. // 提交
  419. handleSubmit () {
  420. const _this = this
  421. if (_this.detail && !_this.detail.totalCategory) {
  422. this.$message.info('请添加产品')
  423. return false
  424. }
  425. this.subLoading = true
  426. purchaseWriteSubmit({ id: this.detail.id }).then(res => {
  427. if (res.status == 200) {
  428. this.$message.success(res.message)
  429. setTimeout(() => {
  430. _this.handleBack()
  431. }, 1000)
  432. }
  433. _this.subLoading = false
  434. })
  435. },
  436. // 导入产品
  437. hanldeOks () {
  438. this.getOrderDetail(false, true, true)
  439. },
  440. // 打开购物车
  441. hanldCart () {
  442. this.paramsData = {
  443. purchaseBillSn: this.$route.params.sn,
  444. purchaseBillNo: this.detail && this.detail.purchaseBillNo ? this.detail.purchaseBillNo : undefined
  445. }
  446. this.openShopCatModal = true
  447. },
  448. // 上次缺货
  449. handleOutStock () {
  450. // 校验是否存在历史采购单,且上次采购存在缺货产品
  451. purchaseDetailCancelList({ pageNo: 1, pageSize: 5 }).then(res => {
  452. if (res.status == 200) {
  453. const purchaseBillNo = res.data && res.data.list && res.data.list[0].purchaseBillNo || '--'
  454. this.paramsData = {
  455. purchaseBillSn: this.$route.params.sn,
  456. purchaseBillNo: purchaseBillNo
  457. }
  458. this.openOutStockModal = true
  459. }
  460. })
  461. },
  462. // 地址保存
  463. handleAddrOk (data) {
  464. const params = {
  465. purchaseBillSn: this.$route.params.sn,
  466. shippingAddressProvinceName: data.provinceName,
  467. shippingAddressCityName: data.cityName,
  468. shippingAddressCountyName: data.countyName,
  469. shippingAddress: data.addr,
  470. consigneeName: data.consigneeName,
  471. consigneeTel: data.consigneeTel
  472. }
  473. purchaseDetailAddress(params).then(res => {
  474. if (res.status == 200) {
  475. this.openAddrModal = false
  476. this.getOrderDetail(true)
  477. }
  478. })
  479. },
  480. // 上次缺货 导入成功
  481. hanldeOkOutStock () {
  482. this.getOrderDetail(false, true, true)
  483. this.paramsData = null
  484. this.openOutStockModal = false
  485. },
  486. // 打印预览/快捷打印
  487. handlePrint (type, printerType) {
  488. const _this = this
  489. if (type == 'preview') {
  490. _this.openChooseProduct = false
  491. _this.openOutStockModal = false
  492. }
  493. _this.$store.state.app.printLoading = true
  494. let url = purchaseDetailPrint
  495. let params = { sn: this.$route.params.sn, type: printerType }
  496. if (type == 'export') { // 导出
  497. url = purchaseDetailExport
  498. params = { sn: this.$route.params.sn }
  499. }
  500. // 打印或导出
  501. hdPrint(printerType, type, url, params, '采购单', function () {
  502. _this.$store.state.app.printLoading = false
  503. })
  504. },
  505. // 返回列表
  506. handleBack () {
  507. this.$router.push({ name: 'purchaseOrderNewList' })
  508. },
  509. setTableH () {
  510. this.tableHeight = window.innerHeight - (this.isShowBisiceInfo ? 127 : 0) - (this.showSearch ? 42 : 0) - 210
  511. },
  512. pageInit () {
  513. this.$nextTick(() => {
  514. this.setTableH()
  515. this.getOrderDetail(false, true)
  516. })
  517. }
  518. },
  519. watch: {
  520. isShowBisiceInfo (newValue, oldValue) {
  521. this.setTableH()
  522. },
  523. showSearch(newValue, oldValue){
  524. if(this.isShowBisiceInfo){
  525. this.isShowBisiceInfo = false
  526. }else{
  527. this.setTableH()
  528. }
  529. }
  530. },
  531. mounted () {
  532. this.showPage = true
  533. if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
  534. this.pageInit()
  535. }
  536. },
  537. activated () {
  538. this.showPage = true
  539. // 如果是新页签打开或者进入新的子页(例:存在列表第2条数据编辑页页签时再打开第4条数据的编辑页),则重置当前页面
  540. if (this.$store.state.app.isNewTab || !this.$store.state.app.isNewSubTab) {
  541. this.pageInit()
  542. }
  543. },
  544. beforeRouteEnter (to, from, next) {
  545. next(vm => {})
  546. }
  547. }
  548. </script>
  549. <style lang="less">
  550. .purchaseNewOrderEdit-wrap{
  551. position: relative;
  552. height: 100%;
  553. box-sizing: border-box;
  554. .ant-descriptions-title{
  555. margin-bottom: 10px;
  556. }
  557. .billno{
  558. margin: 0;
  559. font-size: 16px;
  560. font-weight: 600;
  561. display: inline-block;
  562. vertical-align: middle;
  563. color: #333;
  564. }
  565. .choosedList-cont{
  566. position: relative;
  567. background-color: #fff;
  568. height: calc(100% - 60px);
  569. .chooseBox-title{
  570. display:flex;
  571. justify-content: space-between;
  572. align-items: center;
  573. border-top: 1px solid #eee;
  574. border-bottom: 1px solid #eee;
  575. padding: 8px 0;
  576. .actions-button{
  577. button{
  578. margin-left: 10px;
  579. margin-right: 10px;
  580. }
  581. }
  582. .import-btn{
  583. margin-left: 15px;
  584. }
  585. .sub-title{
  586. font-size: 14px;
  587. color: #333;
  588. margin-left: 10px;
  589. font-weight:bold;
  590. }
  591. .tag-txt{
  592. font-size: 12px;
  593. color: #ed1c24;
  594. margin: 0 15px;
  595. }
  596. }
  597. .choosed-table{
  598. padding:10px;
  599. }
  600. .footer-cont{
  601. position:absolute;
  602. width:100%;
  603. bottom:0;
  604. display:flex;
  605. justify-content: flex-end;
  606. align-items: center;
  607. padding: 8px;
  608. border-top: 1px solid #eee;
  609. > div{
  610. &:first-child{
  611. padding: 0 15px;
  612. strong{
  613. color: #ed1c24;
  614. font-size: 18px;
  615. }
  616. }
  617. }
  618. }
  619. .ant-input-number-sm input{
  620. text-align: center;
  621. }
  622. }
  623. .purchaseNewOrderEdit-cont{
  624. margin-bottom: 6px;
  625. .sub-title{
  626. font-size: 12px;
  627. color: #808695;
  628. margin-left: 10px;
  629. }
  630. }
  631. .table-page-search-wrapper{
  632. .ant-form.ant-form-inline .ant-form-item .ant-input, .ant-form.ant-form-inline .ant-form-item .ant-select-selection{
  633. border:0;
  634. }
  635. .ant-form.ant-form-inline .ant-form-item{
  636. border:1px solid #dadada;
  637. border-radius: 3px;
  638. .ant-form-item-label{
  639. padding-left: 11px;
  640. padding-right: 0!important;
  641. }
  642. }
  643. }
  644. }
  645. </style>