|
@@ -0,0 +1,203 @@
|
|
|
+<template>
|
|
|
+ <div class="urgentItemsOffsetDetail-page-wrapper">
|
|
|
+ <!-- 操作 -->
|
|
|
+ <a-card :bordered="false" class="urgentItemsOffsetDetail-operation-wrapper">
|
|
|
+ <a-button @click="goBack" id="urgentItemsOffsetDetail-btn-back">返回列表</a-button>
|
|
|
+ <a-button type="primary" @click="handleSubmit" id="urgentItemsOffsetDetail-btn-submit" style="margin-left: 15px">冲减</a-button>
|
|
|
+ <a-button type="primary" size="small" @click="handlePrint" id="urgentItemsOffsetDetail-btn-print" style="margin-left: 30px">快速打印</a-button>
|
|
|
+ <a-button type="primary" size="small" @click="handlePreview" id="urgentItemsOffsetDetail-btn-preview" style="margin-left: 15px">打印预览</a-button>
|
|
|
+ </a-card>
|
|
|
+ <!-- 急件单信息 -->
|
|
|
+ <a-card :bordered="false" class="urgentItemsOffsetDetail-info-wrapper">
|
|
|
+ <a-row :gutter="35">
|
|
|
+ <a-col :span="8" class="item-cont">
|
|
|
+ <p class="item-label">客户名称:</p>
|
|
|
+ <p class="item-main">名称思密达</p>
|
|
|
+ <!-- <p class="item-main">{{ detailsData.name }}</p> -->
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="8" class="item-cont">
|
|
|
+ <p class="item-label">客户地址:</p>
|
|
|
+ <p class="item-main">名称思密达</p>
|
|
|
+ <!-- <p class="item-main">{{ detailsData.name }}</p> -->
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="8" class="item-cont">
|
|
|
+ <p class="item-label">支付方式:</p>
|
|
|
+ <p class="item-main">名称思密达</p>
|
|
|
+ <!-- <p class="item-main">{{ detailsData.name }}</p> -->
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row :gutter="35">
|
|
|
+ <a-col :span="8" class="item-cont">
|
|
|
+ <p class="item-label">联系手机:</p>
|
|
|
+ <p class="item-main">名称思密达</p>
|
|
|
+ <!-- <p class="item-main">{{ detailsData.name }}</p> -->
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="8" class="item-cont">
|
|
|
+ <p class="item-label">联系电话:</p>
|
|
|
+ <p class="item-main">名称思密达</p>
|
|
|
+ <!-- <p class="item-main">{{ detailsData.name }}</p> -->
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="8" class="item-cont">
|
|
|
+ <p class="item-label">收款方式:</p>
|
|
|
+ <p class="item-main">名称思密达</p>
|
|
|
+ <!-- <p class="item-main">{{ detailsData.name }}</p> -->
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row :gutter="35">
|
|
|
+ <a-col :span="8" class="item-cont">
|
|
|
+ <p class="item-label">急件单号:</p>
|
|
|
+ <p class="item-main">名称思密达</p>
|
|
|
+ <!-- <p class="item-main">{{ detailsData.name }}</p> -->
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="8" class="item-cont">
|
|
|
+ <p class="item-label">完结状态:</p>
|
|
|
+ <p class="item-main">名称思密达</p>
|
|
|
+ <!-- <p class="item-main">{{ detailsData.name }}</p> -->
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-card>
|
|
|
+ <!-- 合计 -->
|
|
|
+ <a-alert type="info" showIcon style="margin-bottom:15px">
|
|
|
+ <div class="ftext" slot="message">总款数:<strong>998</strong>;总数量:<strong>2009</strong>。</div>
|
|
|
+ </a-alert>
|
|
|
+ <!-- 表格 -->
|
|
|
+ <a-card :bordered="false" class="urgentItemsOffsetDetail-table-wrapper">
|
|
|
+ <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 {
|
|
|
+ unColumns: [
|
|
|
+ { title: '序号', dataIndex: 'no', width: 70, align: 'center' },
|
|
|
+ { title: '产品编码', dataIndex: 'productName', width: 200, align: 'center', ellipsis: true },
|
|
|
+ { title: '产品名称', dataIndex: 'productOldNum', width: 160, align: 'center', ellipsis: true },
|
|
|
+ { title: '原厂编码', dataIndex: 'productBrand', width: 200, align: 'center' },
|
|
|
+ { title: '库存数量', dataIndex: 'productType', width: 200, align: 'center' },
|
|
|
+ { title: '未冲减数量', dataIndex: 'inventoryNum', width: 180, align: 'center', ellipsis: true },
|
|
|
+ { title: '单位', dataIndex: 'inventoryMoneys', width: 180, align: 'center' }
|
|
|
+ ],
|
|
|
+ columns: [
|
|
|
+ { title: '序号', dataIndex: 'no', width: 70, align: 'center' },
|
|
|
+ { title: '产品编码', dataIndex: 'productName', width: 200, align: 'center', ellipsis: true },
|
|
|
+ { title: '产品名称', dataIndex: 'productOldNum', width: 160, align: 'center', ellipsis: true },
|
|
|
+ { title: '原厂编码', dataIndex: 'productBrand', width: 200, align: 'center' },
|
|
|
+ { title: '入库时间', dataIndex: 'product2Brand', width: 200, align: 'center' },
|
|
|
+ { title: '仓库', dataIndex: 'productBrawnd', width: 200, align: 'center' },
|
|
|
+ { title: '仓位', dataIndex: 'productBradnd', width: 200, align: 'center' },
|
|
|
+ { title: '成本价', dataIndex: 'productsBrand', width: 200, align: 'center' },
|
|
|
+ { title: '已冲减数量', dataIndex: 'inventoryNum', width: 180, align: 'center', ellipsis: true },
|
|
|
+ { title: '单位', dataIndex: 'inventoryMoneys', width: 180, align: 'center' },
|
|
|
+ { title: '成本小计', dataIndex: 'inventoryMoneyss', width: 180, align: 'center' }
|
|
|
+ ],
|
|
|
+ // 加载数据方法 必须为 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', productNum: 'jgqp11111111111', productName: '产品1', productOldNum: 'jgqp111123545', productBrand: '箭冠品牌', productType: '产品分类1', inventoryNum: '5', inventoryMoney: '122' }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ 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: {
|
|
|
+ // 返回
|
|
|
+ goBack(){
|
|
|
+ this.$router.push({ path: '/salesManagement/urgentItemsOffset/list' })
|
|
|
+ },
|
|
|
+ // 冲减
|
|
|
+ handleSubmit(){
|
|
|
+ const _this = this
|
|
|
+ this.$confirm({
|
|
|
+ title: '提示',
|
|
|
+ content: '确定要进行冲减吗?',
|
|
|
+ okText: '确定',
|
|
|
+ cancelText: '取消',
|
|
|
+ onOk () {
|
|
|
+ // delectRolePower({
|
|
|
+ // id: row.id
|
|
|
+ // }).then(res => {
|
|
|
+ // console.log(res, 'res1111')
|
|
|
+ // if (res.status == 200) {
|
|
|
+ // _this.$message.success(res.message)
|
|
|
+ // _this.$refs.table.refresh()
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 快速打印
|
|
|
+ handlePrint(){
|
|
|
+
|
|
|
+ },
|
|
|
+ // 打印预览
|
|
|
+ handlePreview(){
|
|
|
+
|
|
|
+ },
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="less">
|
|
|
+ .urgentItemsOffsetDetail-page-wrapper{
|
|
|
+ .urgentItemsOffsetDetail-info-wrapper{
|
|
|
+ margin: 15px 0;
|
|
|
+ .item-cont {
|
|
|
+ margin-bottom: 15px;
|
|
|
+ display: flex;
|
|
|
+ .item-label {
|
|
|
+ width: 115px;
|
|
|
+ font-size: 14px;
|
|
|
+ color: rgba(0, 0, 0, 0.85);
|
|
|
+ flex-shrink: 0;
|
|
|
+ }
|
|
|
+ .item-main {
|
|
|
+ flex-grow: 1;
|
|
|
+ word-break: break-all;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .urgentItemsOffsetDetail-table-wrapper{
|
|
|
+ .sTable{
|
|
|
+ table{
|
|
|
+ width: auto;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+</style>
|