123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- <template>
- <div class="chainTransferOutDetail-wrap">
- <a-page-header :ghost="false" @back="handleBack" class="chainTransferOutDetail-back">
- <!-- 自定义的二级文字标题 -->
- <template slot="subTitle">
- <a id="chainTransferOutDetail-back-btn" href="javascript:;" @click="handleBack">返回列表</a>
- </template>
- <!-- 操作区,位于 title 行的行尾 -->
- <template slot="extra">
- <a-button key="2" id="chainTransferOutDetail-preview-btn">打印预览</a-button>
- <a-button key="1" type="primary" id="chainTransferOutDetail-print-btn">快速打印</a-button>
- </template>
- </a-page-header>
- <!-- 总计 -->
- <a-alert type="info" showIcon style="margin-bottom:15px">
- <div slot="message">审核状态: <strong>支持市级</strong>,完结状态: <strong>支持市级</strong>,调出对象: <strong>支持市级</strong>,调入单号: <strong>2121212</strong>,总成本:¥<strong>6.33</strong>,总数量: <strong>6</strong> </div>
- </a-alert>
- <a-card :bordered="false" class="chainTransferOutDetail-cont">
- <!-- 列表 -->
- <s-table
- class="sTable"
- ref="table"
- size="default"
- :rowKey="(record) => record.id"
- :columns="columns"
- :data="loadData"
- bordered></s-table>
- </a-card>
- </div>
- </template>
- <script>
- import { STable, VSelect } from '@/components'
- export default{
- components: { STable, VSelect },
- data(){
- return{
- queryParam: {
-
- },
- disabled: false, // 查询、重置按钮是否可操作
- brandData: [], // 产品品牌 下拉数据
- typeData: [], // 产品类别 下拉数据
- // 表头
- columns: [
- { title: '序号', dataIndex: 'no', width: 70, align: 'center' },
- { title: '产品编码', dataIndex: 'creatDate', align: 'center', customRender: function (text) { return text || '--' } },
- { title: '产品名称', dataIndex: 'custNahme', align: 'center', ellipsis: true },
- { title: '原厂编码', dataIndex: 'totalP', align: 'center', customRender: function (text) { return text || '--' } },
- { title: '成本价', dataIndex: 'custsN2agme', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
- { title: '调入数量', scopedSlots: { customRender: 'transferOutQuantity' }, align: 'center' },
- { title: '单位', dataIndex: 'custsNsagme', align: 'center', customRender: function (text) { return text || '--' } },
- { title: '成本小计', dataIndex: 'custsNagme', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
- { title: '仓库', dataIndex: 'warehouse', align: 'center', customRender: function (text) { return text || '--' } },
- { title: '仓位', dataIndex: 'warehouseLoc', align: 'center', customRender: function (text) { return text || '--' } }
- ],
- // 加载数据方法 必须为 Promise 对象
- loadData: parameter => {
- this.disabled = true
- // return customerBundleDelayList( Object.assign(parameter, this.queryParam) ).then(res => {
- // const data = res.data
- // const no = (data.pageNo - 1) * data.pageSize
- // for (var i = 0; i < data.list.length; i++) {
- // data.list[i].no = no + i + 1
- // }
- // this.disabled = false
- // return data
- // })
- const _this = this
- return new Promise(function(resolve, reject){
- const data = {
- pageNo: 1,
- pageSize: 10,
- list: [
- { id: '1', purchaseNo: 'jgqp11111111111', creatDate: '产品1', custName: 'jgqp111123545', totalP: '箭冠品牌', totalNums: '产品分类1', totalPrice: '5', payType: '122' }
- ],
- count: 10
- }
- const no = (data.pageNo - 1) * data.pageSize
- for (var i = 0; i < data.list.length; i++) {
- data.list[i].no = no + i + 1
- }
- _this.disabled = false
- resolve(data)
- })
- },
- }
- },
- methods: {
- // 重置
- resetSearchForm () {
- this.queryParam.orderBundleNo = ''
- this.queryParam.orderBundle.custMobile = ''
- this.queryParam.bundleName = ''
- this.queryParam.itemName = ''
- this.oldTime = undefined
- this.newTime = undefined
- this.$refs.table.refresh(true)
- },
- // 提交
- handleSubmit(){},
- // 返回列表
- handleBack(){
- this.$router.push({ path: '/allocationManagement/chainTransferOut/list'})
- },
- }
- }
- </script>
- <style lang="less">
- .chainTransferOutDetail-wrap{
- .chainTransferOutDetail-back{
- margin-bottom: 15px;
- }
- .chainTransferOutDetail-cont{
- margin-bottom: 15px;
- }
- }
- </style>
|