|
@@ -10,56 +10,120 @@
|
|
<div class="diy-table-1">
|
|
<div class="diy-table-1">
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="8" class="item">
|
|
<el-col :span="8" class="item">
|
|
- <div class="label">发货申请单号</div>
|
|
|
|
- <div class="value">{{detailData.billNo}}</div>
|
|
|
|
|
|
+ <div class="label">工程订单号</div>
|
|
|
|
+ <div class="value">{{detailData.enginOrderId}}</div>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8" class="item">
|
|
<el-col :span="8" class="item">
|
|
- <div class="label">申请日期</div>
|
|
|
|
- <div class="value">{{detailData.fdate}}</div>
|
|
|
|
|
|
+ <div class="label">订单日期</div>
|
|
|
|
+ <div class="value">{{detailData.orderDate}}</div>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8" class="item">
|
|
<el-col :span="8" class="item">
|
|
<div class="label">单据状态</div>
|
|
<div class="label">单据状态</div>
|
|
- <div class="value">{{detailData.srcStockId}}</div>
|
|
|
|
|
|
+ <div class="value">{{detailData.examineStatus | statusFilter}}</div>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8" class="item">
|
|
<el-col :span="8" class="item">
|
|
- <div class="label">经销商编号</div>
|
|
|
|
- <div class="value">{{detailData.destStockId}}</div>
|
|
|
|
|
|
+ <div class="label">经销商编码</div>
|
|
|
|
+ <div class="value">{{detailData.customerId}}</div>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="8" class="item">
|
|
|
|
|
|
+ <el-col :span="16" class="item">
|
|
<div class="label">经销商名称</div>
|
|
<div class="label">经销商名称</div>
|
|
- <div class="value">{{detailData.approveDate}}</div>
|
|
|
|
|
|
+ <div class="value">{{detailData.customerName}}</div>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8" class="item">
|
|
<el-col :span="8" class="item">
|
|
- <div class="label">仓库</div>
|
|
|
|
- <div class="value">{{detailData.approverId}}</div>
|
|
|
|
|
|
+ <div class="label">工程信息编号</div>
|
|
|
|
+ <div class="value">{{detailData.refEnginRecordNo}}</div>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8" class="item">
|
|
<el-col :span="8" class="item">
|
|
- <div class="label">工程登录编码</div>
|
|
|
|
- <div class="value">{{detailData.approverId}}</div>
|
|
|
|
|
|
+ <div class="label">工程项目名称</div>
|
|
|
|
+ <div class="value">{{detailData.refProjectName}}</div>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8" class="item">
|
|
<el-col :span="8" class="item">
|
|
- <div class="label">制单人</div>
|
|
|
|
- <div class="value">{{detailData.approverId}}</div>
|
|
|
|
|
|
+ <div class="label">工程登录类型</div>
|
|
|
|
+ <div class="value">{{detailData.refPromiseStatus}}</div>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8" class="item">
|
|
<el-col :span="8" class="item">
|
|
- <div class="label">制单日期</div>
|
|
|
|
- <div class="value">{{detailData.approverId}}</div>
|
|
|
|
|
|
+ <div class="label">厂工程编码</div>
|
|
|
|
+ <div class="value">{{detailData.refFactoryNo}}</div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="8" class="item">
|
|
|
|
+ <div class="label">使用单位</div>
|
|
|
|
+ <div class="value">{{detailData.refUseUnit}}</div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="8" class="item">
|
|
|
|
+ <div class="label">销售类型</div>
|
|
|
|
+ <div class="value">{{detailData.saleTypeName}}</div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="8" class="item">
|
|
|
|
+ <div class="label">联系人</div>
|
|
|
|
+ <div class="value">{{detailData.aaa}}</div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="8" class="item">
|
|
|
|
+ <div class="label">固定电话</div>
|
|
|
|
+ <div class="value">{{detailData.aaa}}</div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="8" class="item">
|
|
|
|
+ <div class="label">移动电话</div>
|
|
|
|
+ <div class="value">{{detailData.aaa}}</div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="8" class="item">
|
|
|
|
+ <div class="label">不扣押金</div>
|
|
|
|
+ <div class="value">{{detailData.takeDeposit ? '是':'否'}}</div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="8" class="item">
|
|
|
|
+ <div class="label">文件编码</div>
|
|
|
|
+ <div class="value">{{detailData.fileNo}}</div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="8" class="item">
|
|
|
|
+ <div class="label">业务员</div>
|
|
|
|
+ <div class="value">{{detailData.serviceName}}</div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="24" class="item">
|
|
|
|
+ <div class="label">格力回复</div>
|
|
|
|
+ <div class="value">{{detailData.note1}}</div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="24" class="item">
|
|
|
|
+ <div class="label">格力内部备注</div>
|
|
|
|
+ <div class="value">{{detailData.note2}}</div>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24" class="item">
|
|
<el-col :span="24" class="item">
|
|
<div class="label">备注</div>
|
|
<div class="label">备注</div>
|
|
- <div class="value">{{detailData.approverId}}</div>
|
|
|
|
|
|
+ <div class="value">{{detailData.remark}}</div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="6" class="item">
|
|
|
|
+ <div class="label">制单人</div>
|
|
|
|
+ <div class="value">{{detailData.createName}}</div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="6" class="item">
|
|
|
|
+ <div class="label">制单日期</div>
|
|
|
|
+ <div class="value">{{detailData.createTime}}</div>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="12" class="item">
|
|
|
|
|
|
+ <el-col :span="6" class="item">
|
|
<div class="label">审核人</div>
|
|
<div class="label">审核人</div>
|
|
- <div class="value">{{detailData.approverId}}</div>
|
|
|
|
|
|
+ <div class="value">{{detailData.confirmName}}</div>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="12" class="item">
|
|
|
|
|
|
+ <el-col :span="6" class="item">
|
|
<div class="label">审核日期</div>
|
|
<div class="label">审核日期</div>
|
|
- <div class="value">{{detailData.approverId}}</div>
|
|
|
|
|
|
+ <div class="value">{{detailData.confirmTime}}</div>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="24" class="item">
|
|
|
|
|
|
+ <el-col :span="6" class="item">
|
|
|
|
+ <div class="label">最后更新人</div>
|
|
|
|
+ <div class="value">{{detailData.updateName}}</div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="6" class="item">
|
|
|
|
+ <div class="label">最后更新日期</div>
|
|
|
|
+ <div class="value">{{detailData.updateTime}}</div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="6" class="item">
|
|
|
|
+ <div class="label">关闭人</div>
|
|
|
|
+ <div class="value">{{detailData.closeName}}</div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="6" class="item">
|
|
|
|
+ <div class="label">关闭日期</div>
|
|
|
|
+ <div class="value">{{detailData.closeTime}}</div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="24" class="item" v-if="isExamine">
|
|
<div class="label">审批说明</div>
|
|
<div class="label">审批说明</div>
|
|
- <div class="value">{{detailData.approverId}}</div>
|
|
|
|
|
|
+ <div class="value">{{detailData.examineNote}}</div>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</div>
|
|
</div>
|
|
@@ -69,62 +133,51 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="table" style="margin-top: 20px">
|
|
<div class="table" style="margin-top: 20px">
|
|
- <el-table :data="detailData.kingDeeTransferItems" element-loading-text="Loading" border fit highlight-current-row stripe max-height="400">
|
|
|
|
|
|
+ <el-table :data="detailData.items" element-loading-text="Loading" border fit highlight-current-row stripe max-height="400">
|
|
<el-table-column align="center" label="序号" type="index" width="50"></el-table-column>
|
|
<el-table-column align="center" label="序号" type="index" width="50"></el-table-column>
|
|
- <el-table-column align="center" label="引用单号" prop="materialNumber" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="单号类型" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="销售类型" prop="model" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="货品名称" prop="baseUnitId" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="规格型号" prop="qty" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="计量单位" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
|
|
+ <el-table-column align="center" label="销售类型" prop="saleTypeName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="产品编码" prop="materialNumber" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="物料代码" prop="materialOldNumber" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="单位" prop="baseUnitId" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="单价" prop="price" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="工程登录数量" prop="enginNum" min-width="120" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="数量" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="数量" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
- <el-table-column align="center" label="备注" prop="qty" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
|
|
+ <el-table-column align="center" label="订单金额" prop="totalAmount" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="返利类型" prop="customerWalletName2" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="使用返利金额" prop="rebateAmount" min-width="120" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="格力折扣" prop="discAmount" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="现金钱包" prop="customerWalletName" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="实付金额" prop="payAmount" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="是否直调" prop="isDirectTransfer" min-width="100" show-overflow-tooltip>
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ {{ scope.row.isDirectTransfer ? '是' : '否' }}
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column align="center" label="直调数量" prop="directTransferQty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="已发货数量" prop="hasSendQty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="备注" prop="remark" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="税率" prop="tax" min-width="100" show-overflow-tooltip></el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
- <div class="main-title">
|
|
|
|
- <div class="title">审批记录</div>
|
|
|
|
- </div>
|
|
|
|
- <div class="diy-table-1">
|
|
|
|
- <el-row :gutter="0">
|
|
|
|
- <el-col :span="12" class="item">
|
|
|
|
- <div class="label">审批人</div>
|
|
|
|
- <div class="value">2022123233435342</div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="12" class="item">
|
|
|
|
- <div class="label">审批结果</div>
|
|
|
|
- <div class="value">2022123233435342</div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="24" class="item">
|
|
|
|
- <div class="label">审批说明</div>
|
|
|
|
- <div class="value">2022123233435342</div>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- </div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="page-footer">
|
|
<div class="page-footer">
|
|
<div class="footer" :class="classObj">
|
|
<div class="footer" :class="classObj">
|
|
- <el-button type="primary" @click="openDeliverDialog">直调发货</el-button>
|
|
|
|
- <el-popconfirm title="确定关闭吗?" @onConfirm="goBack" style="margin-left: 10px;">
|
|
|
|
- <el-button slot="reference">关 闭</el-button>
|
|
|
|
- </el-popconfirm>
|
|
|
|
|
|
+ <el-button type="danger" @click="closeData">关闭订单</el-button>
|
|
|
|
+ <el-button type="primary" @click="openDirectDialog">提前开票</el-button>
|
|
|
|
+ <el-button type="primary" @click="overData">直调完结</el-button>
|
|
|
|
+ <el-button type="primary" @click="openDeliverDialog">直调发货</el-button>
|
|
|
|
+ <el-button @click="goBack">返回</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <el-dialog
|
|
|
|
- title="直调发货"
|
|
|
|
- :visible.sync="isShowDeliverDialog"
|
|
|
|
- width="80%">
|
|
|
|
- <el-form ref="deliverForm" :model="deliverForm" label-width="70px" size="small" label-position="left">
|
|
|
|
|
|
+ <el-dialog title="直调发货" :visible.sync="isShowDeliverDialog" width="80%">
|
|
|
|
+ <el-form ref="deliverForm" :model="deliverForm" :rules="deliverFormRules" label-width="80px" size="small" label-position="left">
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
- <el-col :xs="24" :sm="8" :lg="8">
|
|
|
|
- <el-form-item label="工程订单" prop="orderNum">
|
|
|
|
- <el-input v-model="deliverForm.orderNum" placeholder="请输入工程订单"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :xs="24" :sm="8" :lg="8" style="height: 51px;">
|
|
|
|
|
|
+ <el-col :xs="8" :sm="8" :lg="8" style="height: 51px;">
|
|
<el-form-item label="发货日期" prop="date">
|
|
<el-form-item label="发货日期" prop="date">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
v-model="deliverForm.date"
|
|
v-model="deliverForm.date"
|
|
@@ -135,15 +188,17 @@
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :xs="24" :sm="8" :lg="8">
|
|
|
|
|
|
+ <el-col :xs="8" :sm="8" :lg="8">
|
|
<el-form-item label="发货仓库" prop="warehouse">
|
|
<el-form-item label="发货仓库" prop="warehouse">
|
|
- <el-select v-model="deliverForm.warehouse" placeholder="请选择发货仓库">
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in warehouseList"
|
|
|
|
- :key="item.value"
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.value">
|
|
|
|
- </el-option>
|
|
|
|
|
|
+ <el-select v-model="deliverForm.warehouse" placeholder="请选择发货仓库" style="width: 100%" filterable @change="changeWarehouse">
|
|
|
|
+ <el-option v-for="item in warehouseList" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :xs="8" :sm="8" :lg="8">
|
|
|
|
+ <el-form-item label="选择仓位" prop="position">
|
|
|
|
+ <el-select v-model="deliverForm.position" placeholder="请选择仓位" style="width: 100%" filterable>
|
|
|
|
+ <el-option v-for="item in positionList" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -151,24 +206,24 @@
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
<div class="table" style="margin-top: 20px">
|
|
<div class="table" style="margin-top: 20px">
|
|
- <el-table :data="detailData.kingDeeTransferItems" element-loading-text="Loading" border fit highlight-current-row stripe max-height="400">
|
|
|
|
|
|
+ <el-table :data="deliverGoodsList" element-loading-text="Loading" border fit highlight-current-row stripe max-height="400">
|
|
<el-table-column align="center" label="序号" type="index" width="50"></el-table-column>
|
|
<el-table-column align="center" label="序号" type="index" width="50"></el-table-column>
|
|
- <el-table-column align="center" label="引用记录" prop="materialNumber" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="销售类型" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="产品编码" prop="model" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="产品名称" prop="baseUnitId" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="规格型号" prop="qty" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="单位" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="总数量" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="是否使用返利" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="返利使用比例" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="是否直调" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="直调数量" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="已发货数量" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="单价" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="金额" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="返利" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="备注" prop="qty" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
|
|
+ <el-table-column align="center" label="销售类型" prop="saleTypeName" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="产品编码" prop="materialCode" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="订单数量" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="发货数量" prop="hasSendQty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="直调数量" prop="directTransferQty" min-width="100" show-overflow-tooltip>
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-input v-model="scope.row.directTransferQty" size="small" type="number"></el-input>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column align="center" label="单价" prop="price" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="金额" prop="totalAmount" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="返利" prop="rebateAmount" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="备注" prop="remark" min-width="160" show-overflow-tooltip></el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
@@ -177,33 +232,146 @@
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
|
|
+
|
|
|
|
+ <el-dialog title="直接调拨单(提前开票)" :visible.sync="isShowDirectDialog" width="80%">
|
|
|
|
+ <el-form ref="directForm" :model="directForm" :rules="directFormRules" label-width="80px" size="small" label-position="left">
|
|
|
|
+ <el-row :gutter="20">
|
|
|
|
+ <el-col :xs="12" :sm="6" :lg="6">
|
|
|
|
+ <el-form-item label="调出仓库" prop="warehouse1">
|
|
|
|
+ <el-select v-model="directForm.warehouse1" placeholder="请选择调出仓库" style="width: 100%" filterable @change="changeWarehouse1">
|
|
|
|
+ <el-option v-for="item in warehouseList1" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :xs="12" :sm="6" :lg="6">
|
|
|
|
+ <el-form-item label="调出仓位" prop="position1">
|
|
|
|
+ <el-select v-model="directForm.position1" placeholder="请调出仓位" style="width: 100%" filterable @change="changePosition1">
|
|
|
|
+ <el-option v-for="item in positionList1" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :xs="12" :sm="6" :lg="6">
|
|
|
|
+ <el-form-item label="调入仓库" prop="warehouse2">
|
|
|
|
+ <el-select v-model="directForm.warehouse2" placeholder="请选择调入仓库" style="width: 100%" filterable @change="changeWarehouse2">
|
|
|
|
+ <el-option v-for="item in warehouseList2" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :xs="12" :sm="6" :lg="6">
|
|
|
|
+ <el-form-item label="调入仓位" prop="position2">
|
|
|
|
+ <el-select v-model="directForm.position2" placeholder="请调入仓位" style="width: 100%" filterable @change="changePosition2">
|
|
|
|
+ <el-option v-for="item in positionList2" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </el-form>
|
|
|
|
+
|
|
|
|
+ <div class="table" style="margin-top: 20px">
|
|
|
|
+ <el-table :data="directGoodsList" element-loading-text="Loading" border fit highlight-current-row stripe max-height="400">
|
|
|
|
+ <el-table-column align="center" label="序号" type="index" width="50"></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="销售类型" prop="saleTypeName" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="产品编码" prop="materialCode" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="物料代码" prop="materialOldNumber" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="数量" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="调出仓库" prop="warehouse1" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="调出仓位" prop="position1" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="调入仓库" prop="warehouse2" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="调入仓位" prop="position2" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="调出库存状态" prop="status1" min-width="110" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="调入库存状态" prop="status2" min-width="110" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="调出货主" min-width="100" show-overflow-tooltip>
|
|
|
|
+ <template slot-scope="">弘格</template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column align="center" label="调入货主" min-width="100" show-overflow-tooltip>
|
|
|
|
+ <template slot-="scope">弘格</template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column align="center" label="备注" prop="remark" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ </div>
|
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button @click="closeDirectDialog">取 消</el-button>
|
|
|
|
+ <el-button type="primary" @click="submitDirectForm">确 定</el-button>
|
|
|
|
+ </span>
|
|
|
|
+ </el-dialog>
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import print from 'vue-print-nb'
|
|
|
|
-import { getDetail } from "@/api/supply/reserve";
|
|
|
|
|
|
+import { getOrderDetail, closeCom, overOrder, getWarehouseList, deliverOrder, directOrder } from "@/api/supply/engin";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'CommerceDetail',
|
|
name: 'CommerceDetail',
|
|
componentName: 'CommerceDetail',
|
|
componentName: 'CommerceDetail',
|
|
props: ['listItem'],
|
|
props: ['listItem'],
|
|
- directives: {
|
|
|
|
- print
|
|
|
|
|
|
+ filters: {
|
|
|
|
+ statusFilter(val) {
|
|
|
|
+ const statusList = [
|
|
|
|
+ { label: '已保存', value: 'SAVE' },
|
|
|
|
+ { label: '待审核', value: 'WAIT' },
|
|
|
|
+ { label: '审核通过', value: 'OK' },
|
|
|
|
+ { label: '审核驳回', value: 'FAIL' },
|
|
|
|
+ { label: '已关闭', value: 'CLOSE' },
|
|
|
|
+ ];
|
|
|
|
+ let obj = statusList.find(o => o.value == val);
|
|
|
|
+ return obj ? obj.label : ''
|
|
|
|
+ }
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- printObj: {
|
|
|
|
- id: 'printData'
|
|
|
|
- },
|
|
|
|
detailData: {},
|
|
detailData: {},
|
|
|
|
|
|
isShowDeliverDialog: false,
|
|
isShowDeliverDialog: false,
|
|
deliverForm: {
|
|
deliverForm: {
|
|
- orderNum: '',
|
|
|
|
date: '',
|
|
date: '',
|
|
|
|
+ warehouse: '',
|
|
|
|
+ position: '',
|
|
|
|
+ },
|
|
|
|
+ deliverFormRules: {
|
|
|
|
+ date: [
|
|
|
|
+ { required: true, message: '请选择发货日期', trigger: 'change' }
|
|
|
|
+ ],
|
|
|
|
+ warehouse: [
|
|
|
|
+ { required: true, message: '请选择发货仓库', trigger: 'change' }
|
|
|
|
+ ],
|
|
|
|
+ position: [
|
|
|
|
+ { required: true, message: '请选择仓位', trigger: 'change' }
|
|
|
|
+ ],
|
|
},
|
|
},
|
|
warehouseList: [],
|
|
warehouseList: [],
|
|
|
|
+ positionList: [],
|
|
|
|
+ deliverGoodsList: [],
|
|
|
|
+
|
|
|
|
+ isShowDirectDialog: false,
|
|
|
|
+ directForm: {
|
|
|
|
+ warehouse1: '',
|
|
|
|
+ position1: '',
|
|
|
|
+ warehouse2: '',
|
|
|
|
+ position2: '',
|
|
|
|
+ },
|
|
|
|
+ directFormRules: {
|
|
|
|
+ warehouse1: [
|
|
|
|
+ { required: true, message: '请选择调出仓库', trigger: 'change' }
|
|
|
|
+ ],
|
|
|
|
+ position1: [
|
|
|
|
+ { required: true, message: '请选择调出仓位', trigger: 'change' }
|
|
|
|
+ ],
|
|
|
|
+ warehouse2: [
|
|
|
|
+ { required: true, message: '请选择调入仓库', trigger: 'change' }
|
|
|
|
+ ],
|
|
|
|
+ position2: [
|
|
|
|
+ { required: true, message: '请选择调入仓位', trigger: 'change' }
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ warehouseList1: [],
|
|
|
|
+ warehouseList2: [],
|
|
|
|
+ positionList1: [],
|
|
|
|
+ positionList2: [],
|
|
|
|
+ directGoodsList: [],
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -217,6 +385,9 @@ export default {
|
|
openSidebar: this.sidebar.opened
|
|
openSidebar: this.sidebar.opened
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ isExamine() {
|
|
|
|
+ return this.detailData.examineStatus === 'OK' || this.detailData.examineStatus === 'FAIL'
|
|
|
|
+ },
|
|
},
|
|
},
|
|
|
|
|
|
created() {
|
|
created() {
|
|
@@ -229,16 +400,73 @@ export default {
|
|
this.$emit('backListFormDetail');
|
|
this.$emit('backListFormDetail');
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ // 获取仓库列表
|
|
|
|
+ getWarehouseList() {
|
|
|
|
+ getWarehouseList({
|
|
|
|
+ pageNum: 1,
|
|
|
|
+ pageSize: -1,
|
|
|
|
+ }).then(res => {
|
|
|
|
+ this.warehouseList = res.data.records;
|
|
|
|
+ this.warehouseList1 = res.data.records;
|
|
|
|
+ this.warehouseList2 = res.data.records;
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
// 获取详情
|
|
// 获取详情
|
|
getDetail() {
|
|
getDetail() {
|
|
- getDetail({id: this.listItem.id}).then(res => {
|
|
|
|
|
|
+ getOrderDetail({id: this.listItem.parentId}).then(res => {
|
|
this.detailData = res.data;
|
|
this.detailData = res.data;
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ // 关闭订单
|
|
|
|
+ closeData() {
|
|
|
|
+ this.$confirm('此操作将关闭订单, 是否继续?', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }).then(() => {
|
|
|
|
+ closeCom({id: this.listItem.parentId}).then(res => {
|
|
|
|
+ this.$successMsg();
|
|
|
|
+ this.getDetail();
|
|
|
|
+ })
|
|
|
|
+ }).catch(() => {});
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ // 直调完结
|
|
|
|
+ overData() {
|
|
|
|
+ this.$confirm('此操作将直调完结订单, 是否继续?', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }).then(() => {
|
|
|
|
+ overOrder({id: this.listItem.parentId}).then(res => {
|
|
|
|
+ this.$successMsg();
|
|
|
|
+ this.getDetail();
|
|
|
|
+ })
|
|
|
|
+ }).catch(() => {});
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ // 更改仓库
|
|
|
|
+ changeWarehouse() {
|
|
|
|
+ this.deliverForm.position = '';
|
|
|
|
+ let obj = this.warehouseList.find(o => o.id == this.deliverForm.warehouse);
|
|
|
|
+ this.positionList = obj.kingDeeStocks;
|
|
|
|
+ },
|
|
|
|
+
|
|
// 打开 直调发货
|
|
// 打开 直调发货
|
|
openDeliverDialog() {
|
|
openDeliverDialog() {
|
|
this.isShowDeliverDialog = true;
|
|
this.isShowDeliverDialog = true;
|
|
|
|
+ this.deliverGoodsList = this.detailData.items;
|
|
|
|
+ this.deliverGoodsList.forEach(item => {
|
|
|
|
+ item.warehouse1 = '';
|
|
|
|
+ item.warehouse2 = '';
|
|
|
|
+ item.position1 = '';
|
|
|
|
+ item.position2 = '';
|
|
|
|
+ item.status1 = '';
|
|
|
|
+ item.status2 = '';
|
|
|
|
+ })
|
|
|
|
+ this.getWarehouseList();
|
|
},
|
|
},
|
|
|
|
|
|
// 关闭 直调发货
|
|
// 关闭 直调发货
|
|
@@ -248,7 +476,108 @@ export default {
|
|
|
|
|
|
// 提交 直调发货
|
|
// 提交 直调发货
|
|
submitDeliverForm() {
|
|
submitDeliverForm() {
|
|
|
|
+ this.$refs.deliverForm.validate((valid) => {
|
|
|
|
+ if (valid) {
|
|
|
|
+ for(let i=0; i<this.deliverGoodsList.length; i++) {
|
|
|
|
+ if(!this.deliverGoodsList[i].directTransferQty) {
|
|
|
|
+ this.$errorMsg('请输入直调数量');
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ let params = {
|
|
|
|
+ enginOrderId: this.detailData.enginOrderId,
|
|
|
|
+ enginOrderType: 'TRADE', // TRADE=商用 HOME=家用
|
|
|
|
+ deliverDate: this.deliverForm.date + ' 00:00:00',
|
|
|
|
+ correspondId: this.deliverForm.warehouse,
|
|
|
|
+ stockId: this.deliverForm.position,
|
|
|
|
+ items: this.deliverGoodsList
|
|
|
|
+ }
|
|
|
|
+ deliverOrder(params).then(res => {
|
|
|
|
+ this.$successMsg();
|
|
|
|
+ this.isShowDeliverDialog = false;
|
|
|
|
+ this.getDetail();
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
|
|
|
|
+ // 更改调出仓库
|
|
|
|
+ changeWarehouse1() {
|
|
|
|
+ this.directForm.position1 = '';
|
|
|
|
+ let obj = this.warehouseList1.find(o => o.id == this.directForm.warehouse1);
|
|
|
|
+ this.positionList1 = obj.kingDeeStocks;
|
|
|
|
+ this.directGoodsList.forEach(item => {
|
|
|
|
+ item.warehouse1 = obj.name;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ // 更改调入仓库
|
|
|
|
+ changeWarehouse2() {
|
|
|
|
+ this.directForm.position2 = '';
|
|
|
|
+ let obj = this.warehouseList2.find(o => o.id == this.directForm.warehouse2);
|
|
|
|
+ this.positionList2 = obj.kingDeeStocks;
|
|
|
|
+ this.directGoodsList.forEach(item => {
|
|
|
|
+ item.warehouse2 = obj.name;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ // 更改调出仓位
|
|
|
|
+ changePosition1() {
|
|
|
|
+ let obj = this.positionList1.find(o => o.id == this.directForm.position1);
|
|
|
|
+ this.directGoodsList.forEach(item => {
|
|
|
|
+ item.position1 = obj.name;
|
|
|
|
+ item.status1 = obj.defStockStatusName;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ // 更改调入仓位
|
|
|
|
+ changePosition2() {
|
|
|
|
+ let obj = this.positionList2.find(o => o.id == this.directForm.position2);
|
|
|
|
+ this.directGoodsList.forEach(item => {
|
|
|
|
+ item.position2 = obj.name;
|
|
|
|
+ item.status2 = obj.defStockStatusName;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ // 打开 提前开票
|
|
|
|
+ openDirectDialog() {
|
|
|
|
+ this.isShowDirectDialog = true;
|
|
|
|
+ this.directGoodsList = this.detailData.items;
|
|
|
|
+ this.getWarehouseList();
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ // 关闭 提前开票
|
|
|
|
+ closeDirectDialog() {
|
|
|
|
+ this.isShowDirectDialog = false;
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ // 提交 提前开票
|
|
|
|
+ submitDirectForm() {
|
|
|
|
+ this.$refs.directForm.validate((valid) => {
|
|
|
|
+ if (valid) {
|
|
|
|
+ let warehouseItem1 = this.warehouseList1.find(o => o.id == this.directForm.warehouse1);
|
|
|
|
+ let positionItem1 = this.positionList1.find(o => o.id == this.directForm.position1);
|
|
|
|
+ let warehouseItem2 = this.warehouseList2.find(o => o.id == this.directForm.warehouse2);
|
|
|
|
+ let positionItem2 = this.positionList2.find(o => o.id == this.directForm.position2);
|
|
|
|
+ let params = {
|
|
|
|
+ orderNo: this.detailData.enginOrderId,
|
|
|
|
+ orderType: 'TRADE', // TRADE=商用 HOME=家用 RETAIL=零售单 RETAIL_POLICY 销售政策单
|
|
|
|
+ correspondId: this.directForm.warehouse1,
|
|
|
|
+ correspondName: warehouseItem1.name,
|
|
|
|
+ stockId: this.directForm.position1,
|
|
|
|
+ stockName: positionItem1.name,
|
|
|
|
+ inCorrespondId: this.directForm.warehouse2,
|
|
|
|
+ inCorrespondName: warehouseItem2.name,
|
|
|
|
+ inStockId: this.directForm.position2,
|
|
|
|
+ inStockName: positionItem2.name,
|
|
|
|
+ }
|
|
|
|
+ directOrder(params).then(res => {
|
|
|
|
+ this.$successMsg();
|
|
|
|
+ this.isShowDirectDialog = false;
|
|
|
|
+ this.getDetail();
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
|
|
|
|
}
|
|
}
|