edit.vue 23 KB

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