|
@ -1,28 +1,18 @@ |
|
|
<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="importDetail">导入厂家返件明细</el-button> |
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="importDetail">导入厂家返件明细</el-button> |
|
|
|
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" v-show="formobj.sid!=''" @click="downLoadDetail">导出待出库旧件明细</el-button> |
|
|
<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="primary" size="small" :disabled="submitdisabled" v-show="formobj.sid!=''" |
|
|
|
|
|
@click="downLoadDetail">下载待出库旧件明细</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"> |
|
|
<el-row class="first_row"> |
|
|
<el-row class="first_row"> |
|
|
|
|
|
|
|
|
<!-- <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="addinputInfo">{{ formobj.createByName }}</span></el-form-item> |
|
|
<el-form-item><span class="addinputInfo">{{ formobj.createByName }}</span></el-form-item> |
|
@ -33,102 +23,41 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="8"> |
|
|
<el-col :span="8"> |
|
|
<div class="span-sty">申请日期</div> |
|
|
<div class="span-sty">申请日期</div> |
|
|
<el-form-item prop="createTime"> |
|
|
<el-form-item> |
|
|
<span class="addinputInfo">{{ formobj.createTime }}</span> |
|
|
<span class="addinputInfo">{{ formobj.createTime }}</span> |
|
|
<!-- <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-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
|
|
|
</el-row> |
|
|
|
|
|
<!-- <el-row> |
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="12"> |
|
|
|
|
|
<div class="span-sty">分公司</div> |
|
|
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.useOrgName }}</span></el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="12"> |
|
|
|
|
|
<div class="span-sty">流程状态</div> |
|
|
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.nodeState }}</span></el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
|
|
|
</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="filePaths"> |
|
|
<el-form-item prop="filePaths"> |
|
|
<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> |
|
|
|
|
|
|
|
|
<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> |
|
|
|
|
|
|
|
|
<div class="title titleOne"> |
|
|
<div class="title titleOne"> |
|
|
<div>返厂旧件列表</div> |
|
|
<div>返厂旧件列表</div> |
|
|
<el-button type="primary" size="mini" @click="seleGoods3()">添加</el-button> |
|
|
<el-button type="primary" size="mini" @click="seleGoods3()">添加</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<el-table v-loading="listLoading" :data="formobj.asOldpartreturnList" border> |
|
|
<el-table v-loading="listLoading" :data="formobj.asOldpartreturnList" 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 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="商品ID" align="center" /> |
|
|
|
|
|
<el-table-column fixed prop="goodsSpuName" label="商品名称" align="center" /> |
|
|
|
|
|
<el-table-column prop="goodsSkuCode" label="商品编码" align="center" /> |
|
|
|
|
|
<el-table-column prop="manufacturerName" 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="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 fixed label="操作" align="center" width="180"> |
|
|
<el-table-column fixed label="操作" align="center" width="180"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-button type="primary" size="mini" :disabled="scope.row.isCf=='否'" |
|
|
<el-button type="primary" size="mini" :disabled="scope.row.isCf=='否'" @click="delGoods(scope.$index)">删除</el-button> |
|
|
@click="delGoods(scope.$index)">删除</el-button> |
|
|
|
|
|
<el-button type="primary" size="mini" @click="seleGoods(scope.row)">选择旧件</el-button> |
|
|
<el-button type="primary" size="mini" @click="seleGoods(scope.row)">选择旧件</el-button> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<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="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" /> |
|
@ -144,9 +73,7 @@ |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="isCf" label="是否迟返" align="center" /> |
|
|
<el-table-column prop="isCf" label="是否迟返" align="center" /> |
|
|
</el-table> |
|
|
</el-table> |
|
|
|
|
|
|
|
|
</el-form> |
|
|
</el-form> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
<!-- 导入 --> |
|
@ -156,9 +83,19 @@ |
|
|
</div> |
|
|
</div> |
|
|
<el-card class="box-card"> |
|
|
<el-card class="box-card"> |
|
|
<div> |
|
|
<div> |
|
|
<el-upload ref="upload" class="upload-demo" accept=".xls,.xlsx" name="file" :action="updateAction" |
|
|
<el-upload |
|
|
:on-success="handleSuccess" :file-list="fileList" :auto-upload="false" :multiple="false" :limit="1" |
|
|
ref="upload" |
|
|
:data="uploadData" :headers="headers"> |
|
|
class="upload-demo" |
|
|
|
|
|
accept=".xls,.xlsx" |
|
|
|
|
|
name="file" |
|
|
|
|
|
:action="updateAction" |
|
|
|
|
|
:on-success="handleSuccess" |
|
|
|
|
|
:file-list="fileList" |
|
|
|
|
|
:auto-upload="false" |
|
|
|
|
|
:multiple="false" |
|
|
|
|
|
:limit="1" |
|
|
|
|
|
:data="uploadData" |
|
|
|
|
|
:headers="headers"> |
|
|
<el-button slot="trigger" size="small" type="primary">选取文件</el-button> |
|
|
<el-button slot="trigger" size="small" type="primary">选取文件</el-button> |
|
|
<el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload">上传</el-button> |
|
|
<el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload">上传</el-button> |
|
|
</el-upload> |
|
|
</el-upload> |
|
@ -176,16 +113,13 @@ |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<el-dialog title="选择旧件" :visible.sync="dialogVisible2" :before-close="handleClose2" |
|
|
<el-dialog title="选择旧件" :visible.sync="dialogVisible2" :before-close="handleClose2" style="width:150%;margin-left: -20%;"> |
|
|
style="width:150%;margin-left: -20%;"> |
|
|
<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" /> |
|
|
<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="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" /> |
|
@ -204,22 +138,15 @@ |
|
|
<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="seleGoods" /> |
|
|
:limit.sync="queryParams.size" class="pagination" @pagination="seleGoods" /> |
|
|
|
|
|
|
|
|
|
|
|
</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="handleClose2()">关闭</el-button> |
|
|
<el-button type="primary" size="mini" @click="handleClose2()">关闭</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
<el-dialog title="选择旧件" :visible.sync="dialogVisible3" :before-close="handleClose3" style="width:150%;margin-left: -20%;"> |
|
|
<el-dialog title="选择旧件" :visible.sync="dialogVisible3" :before-close="handleClose3" |
|
|
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%;margin-top: -20px;" @selection-change="selectionLineChangeHandle3"> |
|
|
style="width:150%;margin-left: -20%;"> |
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%;margin-top: -20px;" |
|
|
|
|
|
@selection-change="selectionLineChangeHandle3"> |
|
|
|
|
|
<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" /> |
|
@ -230,9 +157,7 @@ |
|
|
<el-table-column prop="unit" label="单位" align="center" /> |
|
|
<el-table-column prop="unit" label="单位" align="center" /> |
|
|
<el-table-column label="仓库-库区" align="center" width="150"> |
|
|
<el-table-column label="仓库-库区" align="center" width="150"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<div> |
|
|
<span>{{scope.row.warehouseName}} - {{scope.row.warehouseAreaName}}</span> |
|
|
{{scope.row.warehouseName}} - {{scope.row.warehouseAreaName}} |
|
|
|
|
|
</div> |
|
|
|
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="warehouseRackName" label="库位" align="center" /> |
|
|
<el-table-column prop="warehouseRackName" label="库位" align="center" /> |
|
@ -243,20 +168,13 @@ |
|
|
<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="seleGoods3" /> |
|
|
:limit.sync="queryParams.size" class="pagination" @pagination="seleGoods3" /> |
|
|
|
|
|
|
|
|
|
|
|
</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="addDialogList3()">确认</el-button> |
|
|
<el-button type="primary" size="mini" @click="addDialogList3()">确认</el-button> |
|
|
<el-button type="primary" size="mini" @click="handleClose3()">关闭</el-button> |
|
|
<el-button type="primary" size="mini" @click="handleClose3()">关闭</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -293,29 +211,25 @@ |
|
|
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": '', |
|
|
orgSidPath: window.sessionStorage.getItem('orgSidPath'), |
|
|
"useOrgName": '', |
|
|
procDefId: '', |
|
|
"orgSidPath": window.sessionStorage.getItem('orgSidPath'), |
|
|
nodeId: '', |
|
|
"procDefId": "", |
|
|
procInstId: '', |
|
|
"nodeId": "", |
|
|
nodeState: '', |
|
|
"procInstId": "", |
|
|
taskId: '', |
|
|
"nodeState": "", |
|
|
finishTime: '', |
|
|
"taskId": "", |
|
|
asOldpartreturnList: [] |
|
|
"finishTime": "", |
|
|
|
|
|
"asOldpartreturnList": [ |
|
|
|
|
|
|
|
|
|
|
|
] |
|
|
|
|
|
}, |
|
|
}, |
|
|
imgList: [], |
|
|
imgList: [], |
|
|
dataList: [], |
|
|
dataList: [], |
|
@ -328,23 +242,14 @@ |
|
|
size: 10, |
|
|
size: 10, |
|
|
total: 0, |
|
|
total: 0, |
|
|
params: { |
|
|
params: { |
|
|
"vinNo": "", |
|
|
vinNo: '', |
|
|
"goodsSkuCode": "", |
|
|
goodsSkuCode: '', |
|
|
"sourceBillNo": "", |
|
|
sourceBillNo: '', |
|
|
"orgPath": "", |
|
|
orgPath: '' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
rules: { |
|
|
rules: { |
|
|
createTime: [{ |
|
|
filePaths: [{ required: true, message: '附件不能为空', trigger: 'blur' }] |
|
|
required: true, |
|
|
|
|
|
message: '申请日期不能为空', |
|
|
|
|
|
trigger: 'change' |
|
|
|
|
|
}], |
|
|
|
|
|
filePaths: [{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: '附件不能为空', |
|
|
|
|
|
trigger: 'blur' |
|
|
|
|
|
}], |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -366,8 +271,6 @@ |
|
|
this.dialogVisible = true |
|
|
this.dialogVisible = true |
|
|
}, |
|
|
}, |
|
|
saveOrUpdate() { |
|
|
saveOrUpdate() { |
|
|
console.log('>>>>>>>>>saveOrUpdate', this.formobj) |
|
|
|
|
|
|
|
|
|
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
this.submitdisabled = true |
|
|
this.submitdisabled = true |
|
@ -389,7 +292,6 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
submit() { |
|
|
submit() { |
|
|
|
|
|
|
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
this.submitdisabled = true |
|
|
this.submitdisabled = true |
|
@ -409,74 +311,57 @@ |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
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": '', |
|
|
orgSidPath: window.sessionStorage.getItem('orgSidPath'), |
|
|
"useOrgName": '', |
|
|
procDefId: '', |
|
|
"orgSidPath": window.sessionStorage.getItem('orgSidPath'), |
|
|
nodeId: '', |
|
|
"procDefId": "", |
|
|
procInstId: '', |
|
|
"nodeId": "", |
|
|
nodeState: '', |
|
|
"procInstId": "", |
|
|
taskId: '', |
|
|
"nodeState": "", |
|
|
finishTime: '', |
|
|
"taskId": "", |
|
|
asOldpartreturnList: [] |
|
|
"finishTime": "", |
|
|
|
|
|
"asOldpartreturnList": [ |
|
|
|
|
|
|
|
|
|
|
|
] |
|
|
|
|
|
} |
|
|
} |
|
|
this.submitdisabled = false |
|
|
this.submitdisabled = false |
|
|
this.isUpdata = false |
|
|
|
|
|
this.$emit('doback') |
|
|
this.$emit('doback') |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
showAdd() { |
|
|
showAdd() { |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
this.$refs['form_obj'].clearValidate() |
|
|
this.$refs['form_obj'].clearValidate() |
|
|
}) |
|
|
}) |
|
|
this.title = "【新增】" |
|
|
this.title = '【新增】' |
|
|
this.isUpdata = false |
|
|
|
|
|
}, |
|
|
}, |
|
|
showEdit(row) { |
|
|
showEdit(row) { |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
this.$refs['form_obj'].clearValidate() |
|
|
this.$refs['form_obj'].clearValidate() |
|
|
}) |
|
|
}) |
|
|
this.title = "【修改】" |
|
|
this.title = '【修改】' |
|
|
this.isUpdata = true |
|
|
req.init(row.sid).then(resp => { |
|
|
// var params = { |
|
|
if (resp.success) { |
|
|
// sid: row.sid |
|
|
this.formobj = resp.data |
|
|
// } |
|
|
for (var i = 0; i < resp.data.filePaths.length; i++) { |
|
|
|
|
|
this.imgList.push({ |
|
|
req.init(row.sid) |
|
|
url: resp.data.filePaths[i].url |
|
|
.then(resp => { |
|
|
}) |
|
|
if (resp.success) { |
|
|
|
|
|
this.formobj = resp.data |
|
|
|
|
|
|
|
|
|
|
|
for (var i = 0; i < resp.data.filePaths.length; i++) { |
|
|
|
|
|
this.imgList.push({ |
|
|
|
|
|
url: resp.data.filePaths[i].url |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}) |
|
|
} |
|
|
.catch(e => { |
|
|
}).catch(e => { |
|
|
this.formobj = {} |
|
|
this.formobj = {} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
downLoadDetail() { |
|
|
downLoadDetail() { |
|
|
const loading = this.$loading({ |
|
|
const loading = this.$loading({ |
|
@ -493,7 +378,7 @@ |
|
|
const fileName = '待出库旧件明细' + '.xls' |
|
|
const fileName = '待出库旧件明细' + '.xls' |
|
|
const elink = document.createElement('a') |
|
|
const elink = document.createElement('a') |
|
|
elink.download = fileName |
|
|
elink.download = fileName |
|
|
elink.style.display = 'nonde' |
|
|
elink.style.display = 'none' |
|
|
elink.href = URL.createObjectURL(blob) |
|
|
elink.href = URL.createObjectURL(blob) |
|
|
document.body.appendChild(elink) |
|
|
document.body.appendChild(elink) |
|
|
elink.click() |
|
|
elink.click() |
|
@ -535,15 +420,11 @@ |
|
|
const _this = this |
|
|
const _this = this |
|
|
_this.uploadResultMesssage = resp.msg |
|
|
_this.uploadResultMesssage = resp.msg |
|
|
_this.uploadSuccess = resp.success |
|
|
_this.uploadSuccess = resp.success |
|
|
|
|
|
|
|
|
if (resp.success) { |
|
|
if (resp.success) { |
|
|
|
|
|
|
|
|
for (var i = 0; i < resp.data.length; i++) { |
|
|
for (var i = 0; i < resp.data.length; i++) { |
|
|
this.formobj.asOldpartreturnList.push(resp.data[i]) |
|
|
this.formobj.asOldpartreturnList.push(resp.data[i]) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
handleConfirm() { |
|
|
handleConfirm() { |
|
|
if (!this.uploadSuccess) { |
|
|
if (!this.uploadSuccess) { |
|
@ -560,178 +441,148 @@ |
|
|
console.log('backData》》》》', value) |
|
|
console.log('backData》》》》', value) |
|
|
console.log('imgList', this.imgList) |
|
|
console.log('imgList', this.imgList) |
|
|
this.imgList = value |
|
|
this.imgList = value |
|
|
|
|
|
|
|
|
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) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
seleGoods(row) { |
|
|
seleGoods(row) { |
|
|
this.itemInfo = row |
|
|
this.itemInfo = row |
|
|
this.queryParams.params = { |
|
|
this.queryParams.params = { |
|
|
"vinNo": row.vinNo, |
|
|
vinNo: row.vinNo, |
|
|
"goodsSkuCode": row.goodsSkuCode, |
|
|
goodsSkuCode: row.goodsSkuCode, |
|
|
"sourceBillNo": row.sourceBillNo, |
|
|
sourceBillNo: row.sourceBillNo, |
|
|
"orgPath": window.sessionStorage.getItem('defaultOrgPath'), |
|
|
orgPath: window.sessionStorage.getItem('defaultOrgPath') |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
req.getGoodsListPage(this.queryParams).then(resp => { |
|
|
req.getGoodsListPage(this.queryParams).then(resp => { |
|
|
if (resp.success) { |
|
|
if (resp.success) { |
|
|
const data = resp.data |
|
|
const data = resp.data |
|
|
this.queryParams.total = data.total |
|
|
this.queryParams.total = data.total |
|
|
this.dataList = data.records |
|
|
this.dataList = data.records |
|
|
this.dialogVisible2 = true |
|
|
this.dialogVisible2 = true |
|
|
} else { |
|
|
} else { |
|
|
// 根据resp.code进行异常情况处理 |
|
|
// 根据resp.code进行异常情况处理 |
|
|
this.dataList = [] |
|
|
this.dataList = [] |
|
|
this.queryParams.total = 0 |
|
|
this.queryParams.total = 0 |
|
|
} |
|
|
} |
|
|
|
|
|
}).catch(e => { |
|
|
}) |
|
|
}) |
|
|
.catch(e => {}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
delGoods(index) { |
|
|
delGoods(index) { |
|
|
|
|
|
|
|
|
this.formobj.asOldpartreturnList.splice(index, 1) |
|
|
this.formobj.asOldpartreturnList.splice(index, 1) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
selectionLineChangeHandle(val) { |
|
|
selectionLineChangeHandle(val) { |
|
|
this.selectionList = val |
|
|
this.selectionList = val |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
addDialogList() { |
|
|
addDialogList() { |
|
|
this.dialogVisible2 = false |
|
|
this.dialogVisible2 = false |
|
|
|
|
|
|
|
|
if (this.selectionList.length > 0) { |
|
|
if (this.selectionList.length > 0) { |
|
|
|
|
|
|
|
|
const choose = this.formobj.asOldpartreturnList.filter((item) => item == this.itemInfo) |
|
|
const choose = this.formobj.asOldpartreturnList.filter((item) => item == this.itemInfo) |
|
|
console.log('>>>>>>>>>addDialogList', choose) |
|
|
|
|
|
|
|
|
|
|
|
var num = 0 |
|
|
var num = 0 |
|
|
if (choose != null && choose.length > 0) { |
|
|
if (choose != null && choose.length > 0) { |
|
|
|
|
|
|
|
|
for (var i = 0; i < this.selectionList.length; i++) { |
|
|
for (var i = 0; i < this.selectionList.length; i++) { |
|
|
|
|
|
|
|
|
var item = this.selectionList[i] |
|
|
var item = this.selectionList[i] |
|
|
|
|
|
|
|
|
num += Number(item.count) |
|
|
num += Number(item.count) |
|
|
} |
|
|
} |
|
|
choose[0].actualReturnCount = num |
|
|
choose[0].actualReturnCount = num |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
handleClose2() { |
|
|
handleClose2() { |
|
|
this.dialogVisible2 = false |
|
|
this.dialogVisible2 = false |
|
|
}, |
|
|
}, |
|
|
seleGoods3() { |
|
|
seleGoods3() { |
|
|
this.queryParams.params = { |
|
|
this.queryParams.params = { |
|
|
"vinNo": '', |
|
|
vinNo: '', |
|
|
"goodsSkuCode": '', |
|
|
goodsSkuCode: '', |
|
|
"sourceBillNo": '', |
|
|
sourceBillNo: '', |
|
|
"orgPath": window.sessionStorage.getItem('defaultOrgPath'), |
|
|
orgPath: window.sessionStorage.getItem('defaultOrgPath') |
|
|
} |
|
|
} |
|
|
req.getGoodsListPage(this.queryParams).then(resp => { |
|
|
req.getGoodsListPage(this.queryParams).then(resp => { |
|
|
if (resp.success) { |
|
|
if (resp.success) { |
|
|
const data = resp.data |
|
|
const data = resp.data |
|
|
this.queryParams.total = data.total |
|
|
this.queryParams.total = data.total |
|
|
this.dataList = data.records |
|
|
this.dataList = data.records |
|
|
this.dialogVisible3 = true |
|
|
this.dialogVisible3 = true |
|
|
} else { |
|
|
} else { |
|
|
// 根据resp.code进行异常情况处理 |
|
|
// 根据resp.code进行异常情况处理 |
|
|
this.dataList = [] |
|
|
this.dataList = [] |
|
|
this.queryParams.total = 0 |
|
|
this.queryParams.total = 0 |
|
|
} |
|
|
} |
|
|
|
|
|
}).catch(e => { |
|
|
}) |
|
|
}) |
|
|
.catch(e => {}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
selectionLineChangeHandle3(val) { |
|
|
selectionLineChangeHandle3(val) { |
|
|
this.selectionList3 = val |
|
|
this.selectionList3 = val |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
addDialogList3() { |
|
|
addDialogList3() { |
|
|
this.dialogVisible3 = false |
|
|
this.dialogVisible3 = false |
|
|
|
|
|
|
|
|
for (var i = 0; i < this.selectionList3.length; i++) { |
|
|
for (var i = 0; i < this.selectionList3.length; i++) { |
|
|
|
|
|
|
|
|
var item = this.selectionList3[i] |
|
|
var item = this.selectionList3[i] |
|
|
|
|
|
|
|
|
this.formobj.asOldpartreturnList.push({ |
|
|
this.formobj.asOldpartreturnList.push({ |
|
|
"sid": '', |
|
|
sid: '', |
|
|
"remarks": '', |
|
|
remarks: '', |
|
|
"mainSid": '', |
|
|
mainSid: '', |
|
|
"vinNo": item.vinNo, |
|
|
vinNo: item.vinNo, |
|
|
"goodsSpuSid": item.goodsSpuSid, |
|
|
goodsSpuSid: item.goodsSpuSid, |
|
|
"goodsSpuName": item.goodsSpuName, |
|
|
goodsSpuName: item.goodsSpuName, |
|
|
"goodsSkuSid": item.goodsSkuSid, |
|
|
goodsSkuSid: item.goodsSkuSid, |
|
|
"goodsSkuTitle": item.goodsSkuTitle, |
|
|
goodsSkuTitle: item.goodsSkuTitle, |
|
|
"goodsSkuCode": item.goodsSkuCode, |
|
|
goodsSkuCode: item.goodsSkuCode, |
|
|
"goodsSkuOwnSpec": item.goodsSkuOwnSpec, |
|
|
goodsSkuOwnSpec: item.goodsSkuOwnSpec, |
|
|
"manufacturerSid": item.manufacturerSid, |
|
|
manufacturerSid: item.manufacturerSid, |
|
|
"manufacturerName": item.manufacturerName, |
|
|
manufacturerName: item.manufacturerName, |
|
|
"warehouseSid": item.warehouseSid, |
|
|
warehouseSid: item.warehouseSid, |
|
|
"warehouseName": item.warehouseName, |
|
|
warehouseName: item.warehouseName, |
|
|
"warehouseAreaSid": item.warehouseAreaSid, |
|
|
warehouseAreaSid: item.warehouseAreaSid, |
|
|
"warehouseAreaName": item.warehouseAreaName, |
|
|
warehouseAreaName: item.warehouseAreaName, |
|
|
"warehouseRackSid": item.warehouseRackSid, |
|
|
warehouseRackSid: item.warehouseRackSid, |
|
|
"warehouseRackName": item.warehouseRackName, |
|
|
warehouseRackName: item.warehouseRackName, |
|
|
"unit": item.unit, |
|
|
unit: item.unit, |
|
|
"sourceBillNo": item.sourceBillNo, |
|
|
sourceBillNo: item.sourceBillNo, |
|
|
"claimBillNo": '', |
|
|
claimBillNo: '', |
|
|
"isCf": "是", |
|
|
isCf: '是', |
|
|
"needReturnCount": item.count, |
|
|
needReturnCount: item.count, |
|
|
"actualReturnCount": item.count |
|
|
actualReturnCount: item.count |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
handleClose3() { |
|
|
handleClose3() { |
|
|
this.dialogVisible3 = false |
|
|
this.dialogVisible3 = false |
|
|
}, |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
<style scoped> |
|
|
<style scoped> |
|
|
/deep/ .el-form-item__error { |
|
|
/deep/ .el-form-item__error { |
|
|
margin-left: 120px !important; |
|
|
margin-left: 120px !important; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.must { |
|
|
.must { |
|
|
color: #f00; |
|
|
color: #f00; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.span-sty { |
|
|
.span-sty { |
|
|
width: 130px !important; |
|
|
width: 130px !important; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.addinputInfo { |
|
|
.addinputInfo { |
|
|
margin-left: 120px !important; |
|
|
margin-left: 120px !important; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw { |
|
|
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw { |
|
|
margin-left: 120px !important; |
|
|
margin-left: 120px !important; |
|
|
width: calc(100% - 115px); |
|
|
width: calc(100% - 115px); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.first_row { |
|
|
.first_row { |
|
|
border-top: 1px solid #E0E3EB; |
|
|
border-top: 1px solid #E0E3EB; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.titleOne { |
|
|
.titleOne { |
|
|
padding: 7px; |
|
|
padding: 7px; |
|
|
display: flex; |
|
|
display: flex; |
|
|
flex-direction: row; |
|
|
flex-direction: row; |
|
|
justify-content: space-between; |
|
|
justify-content: space-between; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |
|
|