|
@ -1,24 +1,16 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div> |
|
|
<div class="app-container"> |
|
|
<div class="tab-header webtop"> |
|
|
<div class="tab-header webtop"> |
|
|
<!-- 标题 --> |
|
|
|
|
|
<div>{{ title }}旧件处理申请</div> |
|
|
<div>{{ title }}旧件处理申请</div> |
|
|
<!-- start 添加修改按钮 --> |
|
|
|
|
|
<div> |
|
|
<div> |
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate">保存</el-button> |
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate">保存</el-button> |
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="submit">提交</el-button> |
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="submit">提交</el-button> |
|
|
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|
|
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<!-- end 添加修改按钮 --> |
|
|
|
|
|
<!-- end 详情按钮 --> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<div class="listconadd"> |
|
|
<div class="listconadd"> |
|
|
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02"> |
|
|
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02"> |
|
|
<div class="title"> |
|
|
|
|
|
<div>基础信息</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<el-row class="first_row"> |
|
|
<el-row class="first_row"> |
|
|
|
|
|
|
|
|
<el-col :span="8"> |
|
|
<el-col :span="8"> |
|
|
<div class="span-sty">申请人</div> |
|
|
<div class="span-sty">申请人</div> |
|
|
<el-form-item><span class="addinputInfo">{{ formobj.createByName }}</span></el-form-item> |
|
|
<el-form-item><span class="addinputInfo">{{ formobj.createByName }}</span></el-form-item> |
|
@ -27,41 +19,26 @@ |
|
|
<div class="span-sty">申请部门</div> |
|
|
<div class="span-sty">申请部门</div> |
|
|
<el-form-item><span class="addinputInfo">{{ formobj.deptName }}</span></el-form-item> |
|
|
<el-form-item><span class="addinputInfo">{{ formobj.deptName }}</span></el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
|
|
|
<!-- <el-col :span="12"> |
|
|
|
|
|
<div class="span-sty">单据编号</div> |
|
|
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.billNo }}</span></el-form-item> |
|
|
|
|
|
</el-col> --> |
|
|
|
|
|
<el-col :span="8"> |
|
|
<el-col :span="8"> |
|
|
<div class="span-sty">申请日期</div> |
|
|
<div class="span-sty">申请日期</div> |
|
|
<el-form-item><span class="addinputw addinputInfo">{{ formobj.createTime }}</span> |
|
|
<el-form-item><span class="addinputInfo">{{ formobj.createTime }}</span></el-form-item> |
|
|
<!-- <el-date-picker v-model="formobj.createTime" class="addinputw addinputInfo" type="date" |
|
|
|
|
|
value-format="yyyy-MM-dd" placeholder="选择日期"> |
|
|
|
|
|
</el-date-picker> --> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
|
|
|
</el-row> |
|
|
</el-row> |
|
|
|
|
|
|
|
|
<el-row> |
|
|
<el-row> |
|
|
|
|
|
|
|
|
<el-col :span="8"> |
|
|
<el-col :span="8"> |
|
|
<div class="span-sty"><span class="must">*</span> 处理原因</div> |
|
|
<div class="span-sty"><span class="must">*</span> 处理原因</div> |
|
|
<el-form-item prop="handleReasonValue"> |
|
|
<el-form-item prop="handleReasonValue"> |
|
|
<el-select v-model="formobj.handleReasonValue" placeholder="请选择" class="addinputw addinputInfo" |
|
|
<el-select v-model="formobj.handleReasonValue" placeholder="请选择" class="addinputw addinputInfo" @change="selectHandleReason"> |
|
|
@change="selectHandleReason"> |
|
|
<el-option v-for="item in reasonList" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"> |
|
|
<el-option v-for="(item,i) in handleReasonList" :key="i" :label="item.name" :value="item.sid"> |
|
|
|
|
|
</el-option> |
|
|
</el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
|
|
|
<el-col :span="8"> |
|
|
<el-col :span="8"> |
|
|
<div class="span-sty"><span class="must">*</span> 处理方式</div> |
|
|
<div class="span-sty"><span class="must">*</span> 处理方式</div> |
|
|
<el-form-item prop="handleModeValue"> |
|
|
<el-form-item prop="handleModeValue"> |
|
|
<el-select v-model="formobj.handleModeValue" placeholder="请选择" class="addinputw addinputInfo" |
|
|
<el-select v-model="formobj.handleModeValue" placeholder="请选择" class="addinputw addinputInfo" @change="selectHandleMode"> |
|
|
@change="selectHandleMode"> |
|
|
<el-option v-for="item in modeList" :key="item.dictKey" :label="item.dictValue" :value="item.item.dictKey"> |
|
|
<el-option v-for="(item,i) in handleModeList" :key="i" :label="item.name" :value="item.sid"> |
|
|
|
|
|
</el-option> |
|
|
</el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
@ -70,98 +47,52 @@ |
|
|
<div class="span-sty">收益总额</div> |
|
|
<div class="span-sty">收益总额</div> |
|
|
<el-form-item><span class="addinputInfo">{{ totalQuantity }}</span></el-form-item> |
|
|
<el-form-item><span class="addinputInfo">{{ totalQuantity }}</span></el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
|
|
|
</el-row> |
|
|
</el-row> |
|
|
|
|
|
|
|
|
<el-row> |
|
|
<el-row> |
|
|
|
|
|
|
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
<div class="span-sty">备注</div> |
|
|
<div class="span-sty">备注</div> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-input v-model="formobj.remarks" placeholder="" class="addinputw addinputInfo" type="textarea" |
|
|
<el-input v-model="formobj.remarks" placeholder="" class="addinputw addinputInfo" type="textarea" :rows="4" clearable/> |
|
|
:rows="4" clearable /> |
|
|
|
|
|
|
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
|
|
|
</el-row> |
|
|
</el-row> |
|
|
|
|
|
|
|
|
<el-row> |
|
|
<el-row> |
|
|
|
|
|
|
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
<div class="span-sty"><span class="must">*</span> 附件</div> |
|
|
<div class="span-sty"><span class="must">*</span> 附件</div> |
|
|
<el-form-item prop="imgList"> |
|
|
<el-form-item prop="imgList"> |
|
|
<upload-img ref="uploadImg" class="addinputw" v-model="imgList" :limit="50" bucket="map" |
|
|
<upload-img ref="uploadImg" class="addinputw" v-model="imgList" :limit="50" bucket="map" :upload-data="{ type: '0001' }" @change="backData"/> |
|
|
:upload-data="{ type: '0001' }" @change="backData" /> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
|
|
|
</el-row> |
|
|
</el-row> |
|
|
|
|
|
|
|
|
<div class="title titleOne"> |
|
|
<div class="title titleOne"> |
|
|
<div>商品列表</div> |
|
|
<div>待处理旧件列表</div> |
|
|
<el-button type="primary" size="mini" @click="importDetail()">选择旧件</el-button> |
|
|
<el-button type="primary" size="mini" @click="importDetail()">选择旧件</el-button> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<el-table v-loading="listLoading" :data="formobj.asOldparthandleList" border> |
|
|
<el-table v-loading="listLoading" :data="formobj.asOldparthandleList" border> |
|
|
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center"/> |
|
|
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center"/> |
|
|
<el-table-column fixed label="操作" align="center" width="100"> |
|
|
<el-table-column fixed label="操作" align="center" width="100"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-button type="primary" size="mini" @click="deleteAsOldparthandle(scope.row)">删除</el-button> |
|
|
<el-button type="primary" size="mini" @click="deleteAsOldparthandle(scope.$index)">删除</el-button> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
<!-- <el-table-column align="center" width="100" :render-header="commodityHeader"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<i class="el-icon-delete" @click="commodityDelete(scope.$index)"></i> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column label="商品名称" align="center" min-width="200"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<el-popover placement="right" width="900" trigger="click"> |
|
|
|
|
|
<div> |
|
|
|
|
|
<el-table :data="commodityData" v-loading="commodityLoading" highlight-current-row |
|
|
|
|
|
@current-change="commodityCurrentChange($event, scope.row)"> |
|
|
|
|
|
<el-table-column fixed prop="goodsSpuName" label="商品名称" align="center" /> |
|
|
|
|
|
<el-table-column prop="goodsSkuCode" label="商品编码" align="center" /> |
|
|
|
|
|
<el-table-column prop="goodsSkuOwnSpec" label="厂家" align="center" /> |
|
|
|
|
|
<el-table-column prop="goodsSkuOwnSpec" label="规格" align="center" /> |
|
|
|
|
|
<el-table-column prop="unit" label="单位" align="center" /> |
|
|
|
|
|
</el-table> |
|
|
|
|
|
<el-pagination :page.sync="commodityQuery.current" :page-size="commodityQuery.size" |
|
|
|
|
|
layout="total, pager" :total="commodityQuery.total" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
<el-input slot="reference" v-model="scope.row.goodsSkuName" |
|
|
|
|
|
@input="commodityInput(scope.row.goodsSkuName)" clearable placeholder="商品名称" /> |
|
|
|
|
|
</el-popover> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> --> |
|
|
|
|
|
<!-- <el-table-column prop="vinNo" label="车架号" align="center" /> --> |
|
|
|
|
|
<el-table-column prop="goodsID" label="商品ID" align="center"/> |
|
|
<el-table-column prop="goodsID" label="商品ID" align="center"/> |
|
|
<el-table-column prop="goodsSpuName" label="商品名称" align="center"/> |
|
|
<el-table-column prop="goodsSpuName" label="商品名称" align="center"/> |
|
|
<el-table-column prop="goodsSkuCode" label="商品编码" align="center" /> |
|
|
<el-table-column prop="goodsSkuCode" label="图号" align="center"/> |
|
|
<el-table-column prop="manufacturerName" label="厂家" align="center"/> |
|
|
<el-table-column prop="manufacturerName" label="厂家" align="center"/> |
|
|
<!-- <el-table-column prop="supplierName" label="供应商" align="center" /> --> |
|
|
|
|
|
<el-table-column prop="goodsSkuOwnSpec" label="规格" align="center"/> |
|
|
<el-table-column prop="goodsSkuOwnSpec" label="规格" align="center"/> |
|
|
<el-table-column prop="unit" label="单位" align="center"/> |
|
|
<el-table-column prop="unit" label="单位" align="center"/> |
|
|
<el-table-column prop="warehouseName" label="仓库" align="center"/> |
|
|
<el-table-column prop="warehouseName" label="仓库" align="center"/> |
|
|
<el-table-column prop="warehouseRackCode" label="库位" align="center"/> |
|
|
<el-table-column prop="warehouseRackCode" label="库位" align="center"/> |
|
|
<el-table-column label="数量" align="center" width="180"> |
|
|
<el-table-column label="数量" align="center" width="180"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-input ref="focusAssumptionInput" v-model="scope.row.count" clearable placeholder="" |
|
|
<el-input ref="focusAssumptionInput" v-model="scope.row.count" clearable placeholder="" @input="commodityComputeYHAndXSJE(scope.row)" oninput="value=value.replace(/^(0+)|[^\d]+/g,'')"/> |
|
|
@input="commodityComputeYHAndXSJE(scope.row)" oninput="value=value.replace(/^(0+)|[^\d]+/g,'')" /> |
|
|
|
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="profit" label="收益金额" align="center"/> |
|
|
<el-table-column prop="profit" label="收益金额" align="center"/> |
|
|
</el-table> |
|
|
</el-table> |
|
|
|
|
|
|
|
|
</el-form> |
|
|
</el-form> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<el-dialog title="选择旧件商品" :visible.sync="dialogVisible" :before-close="handleClose" style="width:150%;margin-left: -20%;"> |
|
|
<el-dialog title="选择旧件商品" :visible.sync="dialogVisible" :before-close="handleClose" |
|
|
|
|
|
style="width:150%;margin-left: -20%;"> |
|
|
|
|
|
|
|
|
|
|
|
<el-form :inline="true" class="tab-header" style="margin-top: -30px;"> |
|
|
<el-form :inline="true" class="tab-header" style="margin-top: -30px;"> |
|
|
<el-form-item label="商品ID"> |
|
|
<el-form-item label="商品ID"> |
|
|
<el-input v-model="queryParams.params.goodsId" placeholder="" clearable/> |
|
|
<el-input v-model="queryParams.params.goodsId" placeholder="" clearable/> |
|
@ -172,27 +103,15 @@ |
|
|
<el-form-item label="商品编码"> |
|
|
<el-form-item label="商品编码"> |
|
|
<el-input v-model="queryParams.params.goodsSkuCode" placeholder="" clearable/> |
|
|
<el-input v-model="queryParams.params.goodsSkuCode" placeholder="" clearable/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<!-- <el-form-item label="仓库"> |
|
|
|
|
|
<el-input v-model="queryParams.params.warehouseName" placeholder="" clearable /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="库位"> |
|
|
|
|
|
<el-input v-model="queryParams.params.warehouseRackCode" placeholder="" clearable /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="供应商"> |
|
|
|
|
|
<el-input v-model="queryParams.params.supplierName" placeholder="" clearable /> |
|
|
|
|
|
</el-form-item> --> |
|
|
|
|
|
<el-form-item label="厂家"> |
|
|
<el-form-item label="厂家"> |
|
|
<el-input v-model="queryParams.params.manufacturerName" placeholder="" clearable/> |
|
|
<el-input v-model="queryParams.params.manufacturerName" placeholder="" clearable/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
|
|
|
|
|
|
<div class="btn" style="text-align: center; margin-top: 20px;"> |
|
|
<div class="btn" style="text-align: center; margin-top: 20px;"> |
|
|
<el-button type="primary" size="small" icon="el-icon-search" @click="dosearch">查询</el-button> |
|
|
<el-button type="primary" size="small" icon="el-icon-search" @click="dosearch">查询</el-button> |
|
|
<el-button type="primary" size="small" icon="el-icon-refresh" @click="resetQuery">重置</el-button> |
|
|
<el-button type="primary" size="small" icon="el-icon-refresh" @click="resetQuery">重置</el-button> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%;margin-top: 20px;" @selection-change="selectionLineChangeHandle"> |
|
|
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%;margin-top: 20px;" |
|
|
|
|
|
@selection-change="selectionLineChangeHandle"> |
|
|
|
|
|
<el-table-column fixed width="50" type="selection" align="center"/> |
|
|
<el-table-column fixed width="50" type="selection" align="center"/> |
|
|
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center"/> |
|
|
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center"/> |
|
|
<el-table-column prop="goodsID" label="商品ID" align="center"/> |
|
|
<el-table-column prop="goodsID" label="商品ID" align="center"/> |
|
@ -203,154 +122,83 @@ |
|
|
<el-table-column prop="manufacturerName" label="厂家" align="center"/> |
|
|
<el-table-column prop="manufacturerName" label="厂家" align="center"/> |
|
|
<el-table-column prop="vinNo" label="车架号" align="center"/> |
|
|
<el-table-column prop="vinNo" label="车架号" align="center"/> |
|
|
<el-table-column prop="sourceBillNo" label="维修单号" align="center"/> |
|
|
<el-table-column prop="sourceBillNo" label="维修单号" align="center"/> |
|
|
<!-- <el-table-column prop="warehouseName" label="仓库" align="center" /> |
|
|
|
|
|
<el-table-column prop="warehouseRackCode" label="库位" align="center" /> |
|
|
|
|
|
<el-table-column prop="supplierName" label="供应商" align="center" /> --> |
|
|
|
|
|
<!-- <el-table-column prop="price" label="单价" align="center" /> --> |
|
|
|
|
|
<el-table-column prop="count" label="库存数量" align="center"/> |
|
|
<el-table-column prop="count" label="库存数量" align="center"/> |
|
|
</el-table> |
|
|
</el-table> |
|
|
<div class="pages"> |
|
|
<div class="pages"> |
|
|
<div class="tit"/> |
|
|
<div class="tit"/> |
|
|
<!-- 翻页 --> |
|
|
<!-- 翻页 --> |
|
|
<pagination v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current" |
|
|
<pagination v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current" :limit.sync="queryParams.size" class="pagination" @pagination="importDetail"/> |
|
|
:limit.sync="queryParams.size" class="pagination" @pagination="importDetail" /> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="btn" style="text-align: center; margin-top: 20px;"> |
|
|
<div class="btn" style="text-align: center; margin-top: 20px;"> |
|
|
<el-button type="primary" size="mini" @click="addDialogList()">确认</el-button> |
|
|
<el-button type="primary" size="mini" @click="addDialogList()">确认</el-button> |
|
|
<el-button type="primary" size="mini" @click="handleClose()">关闭</el-button> |
|
|
<el-button type="primary" size="mini" @click="handleClose()">关闭</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import req from '@/api/storage/oldPartsCope.js' |
|
|
import req from '@/api/storage/oldPartsCope.js' |
|
|
import uploadImg from '@/components/uploadFile/uploadImg' |
|
|
import uploadImg from '@/components/uploadFile/uploadImg' |
|
|
import { |
|
|
import { getOrgSidByPath, typeValues } from '@/api/Common/dictcommons' |
|
|
getOrgSidByPath |
|
|
import { getCurrentDate } from '@/utils/index.js' |
|
|
} from '@/api/Common/dictcommons' |
|
|
|
|
|
import { |
|
|
|
|
|
getCurrentDate |
|
|
|
|
|
} from '@/utils/index.js' |
|
|
|
|
|
import Pagination from '@/components/pagination' |
|
|
import Pagination from '@/components/pagination' |
|
|
import pageye from '@/components/pagination/pageye' |
|
|
|
|
|
export default { |
|
|
export default { |
|
|
components: { |
|
|
components: { |
|
|
Pagination, |
|
|
Pagination, |
|
|
pageye, |
|
|
|
|
|
uploadImg |
|
|
uploadImg |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
dialogVisible: false, |
|
|
dialogVisible: false, |
|
|
title: '【新增】', |
|
|
title: '【新增】', |
|
|
orderInfo: {}, |
|
|
|
|
|
tableLoading: false, |
|
|
tableLoading: false, |
|
|
loadList: false, |
|
|
loadList: false, |
|
|
listLoading: false, |
|
|
listLoading: false, |
|
|
submitdisabled: false, |
|
|
submitdisabled: false, |
|
|
formobj: { |
|
|
formobj: { |
|
|
"sid": "", |
|
|
sid: '', |
|
|
"remarks": "", |
|
|
remarks: '', |
|
|
"createBySid": window.sessionStorage.getItem('userSid'), |
|
|
createBySid: window.sessionStorage.getItem('userSid'), |
|
|
"createByName": window.sessionStorage.getItem('name'), |
|
|
createByName: window.sessionStorage.getItem('name'), |
|
|
"deptSid": window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage |
|
|
deptSid: window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1), |
|
|
.getItem('defaultOrgPath').lastIndexOf('/') + 1), |
|
|
deptName: window.sessionStorage.getItem('defaultOrgPathName').substring(window.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1), |
|
|
"deptName": window.sessionStorage.getItem('defaultOrgPathName').substring(window |
|
|
createTime: getCurrentDate(), |
|
|
.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1), |
|
|
billNo: '', |
|
|
"createTime": getCurrentDate(), |
|
|
filePaths: [], |
|
|
"billNo": "", |
|
|
useOrgSid: '', |
|
|
"filePaths": [], |
|
|
useOrgName: '', |
|
|
"useOrgSid": '', |
|
|
procDefId: '', |
|
|
"useOrgName": '', |
|
|
nodeId: '', |
|
|
"procDefId": "", |
|
|
procInstId: '', |
|
|
"nodeId": "", |
|
|
nodeState: '', |
|
|
"procInstId": "", |
|
|
taskId: '', |
|
|
"nodeState": "", |
|
|
finishTime: '', |
|
|
"taskId": "", |
|
|
totalProfit: '', |
|
|
"finishTime": "", |
|
|
asOldparthandleList: [] |
|
|
"totalProfit": "", |
|
|
|
|
|
"asOldparthandleList": [ |
|
|
|
|
|
|
|
|
|
|
|
] |
|
|
|
|
|
}, |
|
|
|
|
|
hideUploadBtn: false, |
|
|
|
|
|
|
|
|
|
|
|
// commodity商品 |
|
|
|
|
|
commodityKey: 1, |
|
|
|
|
|
commodityLoading: false, |
|
|
|
|
|
commodityQuery: { |
|
|
|
|
|
current: 1, |
|
|
|
|
|
size: 2, |
|
|
|
|
|
total: 0, |
|
|
|
|
|
params: { |
|
|
|
|
|
name: '', |
|
|
|
|
|
inOrg: "", |
|
|
|
|
|
outOrg: "" |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
commodityData: [], |
|
|
|
|
|
isUpdata: false, |
|
|
|
|
|
imgList: [], |
|
|
imgList: [], |
|
|
handleModeList: [{ |
|
|
modeList: [], |
|
|
name: '处理方式1', |
|
|
reasonList: [], |
|
|
sid: "1" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: '处理方式2', |
|
|
|
|
|
sid: "2" |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
handleReasonList: [{ |
|
|
|
|
|
name: '处理原因1', |
|
|
|
|
|
sid: "1" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: '处理原因2', |
|
|
|
|
|
sid: "2" |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
selectionList: [], |
|
|
selectionList: [], |
|
|
queryParams: { |
|
|
queryParams: { |
|
|
current: 1, |
|
|
current: 1, |
|
|
size: 10, |
|
|
size: 10, |
|
|
total: 0, |
|
|
total: 0, |
|
|
params: { |
|
|
params: { |
|
|
"goodsName": "", |
|
|
goodsName: '', |
|
|
"goodsSkuCode": "", |
|
|
goodsSkuCode: '', |
|
|
"warehouseName": "", |
|
|
warehouseName: '', |
|
|
"warehouseRackCode": "", |
|
|
warehouseRackCode: '', |
|
|
"supplierName": "", |
|
|
supplierName: '' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
dataList: [], |
|
|
dataList: [], |
|
|
rules: { |
|
|
rules: { |
|
|
// createTime: [{ |
|
|
handleReasonValue: [{ required: true, message: '处理原因不能为空', trigger: 'change' }], |
|
|
// required: true, |
|
|
handleModeValue: [{ required: true, message: '处理方式不能为空', trigger: 'change' }], |
|
|
// message: '申请日期不能为空', |
|
|
filePaths: [{ required: true, message: '附件不能为空', trigger: 'blur' }] |
|
|
// trigger: 'change' |
|
|
|
|
|
// }], |
|
|
|
|
|
handleReasonValue: [{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: '处理原因不能为空', |
|
|
|
|
|
trigger: 'change' |
|
|
|
|
|
}], |
|
|
|
|
|
handleModeValue: [{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: '处理方式不能为空', |
|
|
|
|
|
trigger: 'change' |
|
|
|
|
|
}], |
|
|
|
|
|
filePaths: [{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: '附件不能为空', |
|
|
|
|
|
trigger: 'blur' |
|
|
|
|
|
}], |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -363,16 +211,11 @@ |
|
|
quantity += Number(e.profit) |
|
|
quantity += Number(e.profit) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.formobj.totalProfit = quantity |
|
|
|
|
|
|
|
|
|
|
|
return quantity |
|
|
return quantity |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
getOrgSidByPath({ |
|
|
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => { |
|
|
orgPath: window.sessionStorage.getItem('defaultOrgPath') |
|
|
|
|
|
}).then((res) => { |
|
|
|
|
|
if (res.success) { |
|
|
if (res.success) { |
|
|
this.formobj.createOrgSid = res.data |
|
|
this.formobj.createOrgSid = res.data |
|
|
this.formobj.useOrgSid = res.data |
|
|
this.formobj.useOrgSid = res.data |
|
@ -380,23 +223,38 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
init() { |
|
|
|
|
|
typeValues({ type: 'process_mode' }).then((res) => { |
|
|
|
|
|
if (res.success) { |
|
|
|
|
|
this.modeList = res.data |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
typeValues({ type: 'process_reason' }).then((res) => { |
|
|
|
|
|
if (res.success) { |
|
|
|
|
|
this.reasonList = res.data |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
selectHandleReason(val) { |
|
|
selectHandleReason(val) { |
|
|
console.log('>>>>>>>>>selectHandleReason', val) |
|
|
const choose = this.reasonList.filter((item) => item.dictKey === val) |
|
|
const choose = this.handleReasonList.filter((item) => item.sid == val) |
|
|
if (choose !== null && choose.length > 0) { |
|
|
console.log('>>>>>>>>>selectHandleReason', choose) |
|
|
this.formobj.handleReasonValue = choose[0].dictValue |
|
|
this.formobj.handleReasonValue = choose[0].name |
|
|
this.formobj.handleReasonKey = choose[0].dictKey |
|
|
this.formobj.handleReasonKey = choose[0].sid |
|
|
} else { |
|
|
|
|
|
this.formobj.handleReasonValue = '' |
|
|
|
|
|
this.formobj.handleReasonKey = '' |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
selectHandleMode(val) { |
|
|
selectHandleMode(val) { |
|
|
const choose = this.handleModeList.filter((item) => item.sid == val) |
|
|
const choose = this.modeList.filter((item) => item.dictKey === val) |
|
|
console.log('>>>>>>>>>selectHandleMode', choose) |
|
|
if (choose !== null && choose.length > 0) { |
|
|
this.formobj.handleModeValue = choose[0].name |
|
|
this.formobj.handleModeValue = choose[0].dictValue |
|
|
this.formobj.handleModeKey = choose[0].sid |
|
|
this.formobj.handleModeKey = choose[0].dictKey |
|
|
|
|
|
} else { |
|
|
|
|
|
this.formobj.handleModeValue = '' |
|
|
|
|
|
this.formobj.handleModeKey = '' |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
indexMethod(index) { |
|
|
indexMethod(index) { |
|
|
return Number(index) + 1 |
|
|
return Number(index) + 1 |
|
|
}, |
|
|
}, |
|
@ -410,16 +268,15 @@ |
|
|
size: 10, |
|
|
size: 10, |
|
|
total: 0, |
|
|
total: 0, |
|
|
params: { |
|
|
params: { |
|
|
"goodsName": "", |
|
|
goodsName: '', |
|
|
"goodsSkuCode": "", |
|
|
goodsSkuCode: '', |
|
|
"warehouseName": "", |
|
|
warehouseName: '', |
|
|
"warehouseRackCode": "", |
|
|
warehouseRackCode: '', |
|
|
"supplierName": "", |
|
|
supplierName: '' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
this.importDetail() |
|
|
this.importDetail() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
importDetail() { |
|
|
importDetail() { |
|
|
this.tableLoading = true |
|
|
this.tableLoading = true |
|
|
this.queryParams.params.userSid = window.sessionStorage.getItem('userSid') |
|
|
this.queryParams.params.userSid = window.sessionStorage.getItem('userSid') |
|
@ -440,16 +297,12 @@ |
|
|
}).catch(() => { |
|
|
}).catch(() => { |
|
|
this.tableLoading = false |
|
|
this.tableLoading = false |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
selectionLineChangeHandle(val) { |
|
|
selectionLineChangeHandle(val) { |
|
|
this.selectionList = val |
|
|
this.selectionList = val |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
addDialogList() { |
|
|
addDialogList() { |
|
|
|
|
|
|
|
|
for (var i = 0; i < this.selectionList.length; i++) { |
|
|
for (var i = 0; i < this.selectionList.length; i++) { |
|
|
|
|
|
|
|
|
var item = { |
|
|
var item = { |
|
|
count: this.selectionList[i].count, |
|
|
count: this.selectionList[i].count, |
|
|
goodsSkuCode: this.selectionList[i].goodsSkuCode, |
|
|
goodsSkuCode: this.selectionList[i].goodsSkuCode, |
|
@ -461,7 +314,6 @@ |
|
|
goodsSkuOwnSpec: this.selectionList[i].goodsSkuOwnSpec, |
|
|
goodsSkuOwnSpec: this.selectionList[i].goodsSkuOwnSpec, |
|
|
mainSid: '', |
|
|
mainSid: '', |
|
|
sid: '', |
|
|
sid: '', |
|
|
supplierName: this.selectionList[i].supplierName, |
|
|
|
|
|
unit: this.selectionList[i].unit, |
|
|
unit: this.selectionList[i].unit, |
|
|
vinNo: this.selectionList[i].vinNo, |
|
|
vinNo: this.selectionList[i].vinNo, |
|
|
warehouseName: this.selectionList[i].warehouseName, |
|
|
warehouseName: this.selectionList[i].warehouseName, |
|
@ -476,8 +328,6 @@ |
|
|
supplierName: this.selectionList[i].supplierName, |
|
|
supplierName: this.selectionList[i].supplierName, |
|
|
profit: (Number(this.selectionList[i].count) * Number(this.selectionList[i].price)).toFixed(2) |
|
|
profit: (Number(this.selectionList[i].count) * Number(this.selectionList[i].price)).toFixed(2) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.formobj.asOldparthandleList.push(item) |
|
|
this.formobj.asOldparthandleList.push(item) |
|
|
} |
|
|
} |
|
|
this.dialogVisible = false |
|
|
this.dialogVisible = false |
|
@ -485,15 +335,11 @@ |
|
|
handleClose() { |
|
|
handleClose() { |
|
|
this.dialogVisible = false |
|
|
this.dialogVisible = false |
|
|
}, |
|
|
}, |
|
|
deleteAsOldparthandle(row) { |
|
|
deleteAsOldparthandle(index) { |
|
|
const index = this.formobj.asOldparthandleList.findIndex((item) => item === row) |
|
|
|
|
|
console.log("index》》》》", index) |
|
|
|
|
|
this.formobj.asOldparthandleList.splice(index, 1) |
|
|
this.formobj.asOldparthandleList.splice(index, 1) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
saveOrUpdate() { |
|
|
saveOrUpdate() { |
|
|
console.log('>>>>>>>>>saveOrUpdate', this.formobj) |
|
|
this.formobj.totalProfit = this.totalQuantity |
|
|
|
|
|
|
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
this.submitdisabled = true |
|
|
this.submitdisabled = true |
|
@ -515,9 +361,8 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
submit() { |
|
|
submit() { |
|
|
|
|
|
this.formobj.totalProfit = this.totalQuantity |
|
|
|
|
|
if (this.formobj.asOldparthandleList.length === 0) { |
|
|
if (this.formobj.asOldparthandleList.length == 0) { |
|
|
|
|
|
this.$message({ |
|
|
this.$message({ |
|
|
showClose: true, |
|
|
showClose: true, |
|
|
type: 'warning', |
|
|
type: 'warning', |
|
@ -525,9 +370,8 @@ |
|
|
}) |
|
|
}) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
for (var i = 0; i < this.formobj.asOldparthandleList.length; i++) { |
|
|
for (var i = 0; i < this.formobj.asOldparthandleList.length; i++) { |
|
|
if (Number(this.formobj.asOldparthandleList[i].count) == 0) { |
|
|
if (Number(this.formobj.asOldparthandleList[i].count) === 0) { |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
showClose: true, |
|
|
showClose: true, |
|
|
type: 'warning', |
|
|
type: 'warning', |
|
@ -536,7 +380,6 @@ |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
this.submitdisabled = true |
|
|
this.submitdisabled = true |
|
@ -556,44 +399,37 @@ |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
handleReturn(isreload) { |
|
|
handleReturn(isreload) { |
|
|
if (isreload === 'true') this.$emit('reloadlist') |
|
|
if (isreload === 'true') this.$emit('reloadlist') |
|
|
this.imgList = [] |
|
|
this.imgList = [] |
|
|
this.formobj = { |
|
|
this.formobj = { |
|
|
"sid": "", |
|
|
sid: '', |
|
|
"remarks": "", |
|
|
remarks: '', |
|
|
"createBySid": window.sessionStorage.getItem('userSid'), |
|
|
createBySid: window.sessionStorage.getItem('userSid'), |
|
|
"createByName": window.sessionStorage.getItem('name'), |
|
|
createByName: window.sessionStorage.getItem('name'), |
|
|
"deptSid": window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage |
|
|
deptSid: window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1), |
|
|
.getItem('defaultOrgPath').lastIndexOf('/') + 1), |
|
|
deptName: window.sessionStorage.getItem('defaultOrgPathName').substring(window.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1), |
|
|
"deptName": window.sessionStorage.getItem('defaultOrgPathName').substring(window |
|
|
createTime: getCurrentDate(), |
|
|
.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1), |
|
|
billNo: '', |
|
|
"createTime": getCurrentDate(), |
|
|
filePaths: [], |
|
|
"billNo": "", |
|
|
useOrgSid: '', |
|
|
"filePaths": [], |
|
|
useOrgName: '', |
|
|
"useOrgSid": '', |
|
|
procDefId: '', |
|
|
"useOrgName": '', |
|
|
nodeId: '', |
|
|
"procDefId": "", |
|
|
procInstId: '', |
|
|
"nodeId": "", |
|
|
nodeState: '', |
|
|
"procInstId": "", |
|
|
taskId: '', |
|
|
"nodeState": "", |
|
|
finishTime: '', |
|
|
"taskId": "", |
|
|
totalProfit: '', |
|
|
"finishTime": "", |
|
|
asOldparthandleList: [] |
|
|
"totalProfit": "", |
|
|
|
|
|
"asOldparthandleList": [ |
|
|
|
|
|
|
|
|
|
|
|
] |
|
|
|
|
|
} |
|
|
} |
|
|
this.submitdisabled = false |
|
|
this.submitdisabled = false |
|
|
this.isUpdata = false |
|
|
|
|
|
this.$emit('doback') |
|
|
this.$emit('doback') |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
showAdd() { |
|
|
showAdd() { |
|
|
this.title = "【新增】" |
|
|
this.title = '【新增】' |
|
|
this.isUpdata = false |
|
|
this.init() |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
this.$refs['form_obj'].clearValidate() |
|
|
this.$refs['form_obj'].clearValidate() |
|
|
}) |
|
|
}) |
|
@ -602,45 +438,32 @@ |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
this.$refs['form_obj'].clearValidate() |
|
|
this.$refs['form_obj'].clearValidate() |
|
|
}) |
|
|
}) |
|
|
this.title = "【修改】" |
|
|
this.title = '【修改】' |
|
|
this.isUpdata = true |
|
|
this.init() |
|
|
var params = { |
|
|
req.init(row.sid).then(resp => { |
|
|
sid: row.sid |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
req.init(row.sid) |
|
|
|
|
|
.then(resp => { |
|
|
|
|
|
if (resp.success) { |
|
|
if (resp.success) { |
|
|
this.formobj = resp.data |
|
|
this.formobj = resp.data |
|
|
|
|
|
|
|
|
for (var i = 0; i < resp.data.filePaths.length; i++) { |
|
|
for (var i = 0; i < resp.data.filePaths.length; i++) { |
|
|
this.imgList.push({ |
|
|
this.imgList.push({ |
|
|
url: resp.data.filePaths[i].url |
|
|
url: resp.data.filePaths[i].url |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}) |
|
|
}).catch(e => { |
|
|
.catch(e => { |
|
|
|
|
|
this.formobj = {} |
|
|
this.formobj = {} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
backData(value) { |
|
|
backData(value) { |
|
|
console.log('backData》》》》', value) |
|
|
this.formobj.filePaths = [] |
|
|
console.log('imgList', this.imgList) |
|
|
if (this.imgList.length > 0) { |
|
|
|
|
|
|
|
|
for (var i = 0; i < this.imgList.length; i++) { |
|
|
for (var i = 0; i < this.imgList.length; i++) { |
|
|
this.formobj.filePaths.push(this.imgList[i].url) |
|
|
this.formobj.filePaths.push(this.imgList[i].url) |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
commodityComputeYHAndXSJE(row) { |
|
|
commodityComputeYHAndXSJE(row) { |
|
|
console.log('commodityComputeYHAndXSJE》》》》', row) |
|
|
|
|
|
row.profit = (Number(row.count) * Number(row.price)).toFixed(2) |
|
|
row.profit = (Number(row.count) * Number(row.price)).toFixed(2) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|