|
|
@ -92,8 +92,11 @@ |
|
|
|
|
|
|
|
<div class="title titleOne"> |
|
|
|
<div>商品列表</div> |
|
|
|
<el-button type="primary" size="mini" class="btntopblueline" @click="seleMaintenance()">选择商品</el-button> |
|
|
|
<!-- <el-button type="primary" size="mini" class="btntopblueline" @click="batchAddAll()">批次收货</el-button> --> |
|
|
|
<div> |
|
|
|
<el-button type="primary" size="mini" class="btntopblueline" @click="seleMaintenance()">选择商品</el-button> |
|
|
|
<el-button type="primary" size="mini" class="btntopblueline" @click="batchAddAll()">批次收货</el-button> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
<el-table v-loading="listLoading" :data="formobj.list" border style="width: 100%;" ref="dataTable"> |
|
|
|
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center" /> |
|
|
@ -110,13 +113,14 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> --> |
|
|
|
|
|
|
|
<el-table-column label="操作" align="center" width="120"> |
|
|
|
<el-table-column label="操作" align="center" width="180"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button type="primary" size="mini" @click="doGoods(scope.row)">删除</el-button> |
|
|
|
<el-button type="primary" size="mini" @click="doAddBatch(scope.row)">批次+</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column label="商品名称" prop="goodsSpuName" align="center" width="200" /> |
|
|
|
<el-table-column label="商品名称" prop="goodsSkuTitle" align="center" width="200" /> |
|
|
|
|
|
|
|
<!-- <el-table-column label="商品名称" align="center" min-width="200" v-if="!isUpdata"> |
|
|
|
<template slot-scope="scope" v-if="!isUpdata"> |
|
|
@ -222,7 +226,7 @@ |
|
|
|
</el-table> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <div class="title" |
|
|
|
<div class="title" |
|
|
|
style="display: flex;align-items: center;justify-content: space-between;height:40px;margin-top: 10px;"> |
|
|
|
<div>商品-批次</div> |
|
|
|
</div> |
|
|
@ -255,7 +259,7 @@ |
|
|
|
oninput="value=value.replace(/^(0+)|[^\d]+/g,'')" /> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> --> |
|
|
|
</el-table> |
|
|
|
|
|
|
|
</el-form> |
|
|
|
|
|
|
@ -498,14 +502,14 @@ |
|
|
|
|
|
|
|
"goodsSkuSid": e.goodsSpuSid, |
|
|
|
"goodsSpuName": e.goodsSpuName, |
|
|
|
"goodsSkuTitle": e.goodsSkuTitle, |
|
|
|
"goodsSkuTitle": e.goodsSpuName, |
|
|
|
"goodsSkuCode": e.goodsSkuCode, |
|
|
|
"goodsSkuOwnSpec": e.indexes, |
|
|
|
"unit": e.goodsUnitName, |
|
|
|
"warehouseSid": e.warehouseSid, |
|
|
|
"warehouseName": e.warehouseName, |
|
|
|
"warehouseRackSid": e.warehouseRackSid, |
|
|
|
"warehouseRackName": e.warehouseRackCode, |
|
|
|
"warehouseRackName": e.warehouseRackName, |
|
|
|
"actualInCount": 0, |
|
|
|
"rejectCount": 0, |
|
|
|
"rejectReason": "", |
|
|
@ -616,6 +620,31 @@ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
for (var i = 0; i < this.formobj.pcList.length; i++) { |
|
|
|
|
|
|
|
if (this.formobj.pcList[i].expirationDate == '') { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
type: 'error', |
|
|
|
message: '生产日期不能为空' |
|
|
|
}) |
|
|
|
|
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
if (Number(this.formobj.pcList[i].batchCount) == 0) { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
type: 'error', |
|
|
|
message: '批次数量不能为0' |
|
|
|
}) |
|
|
|
|
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
this.submitdisabled = true |
|
|
@ -672,7 +701,7 @@ |
|
|
|
console.log("showAdd", this.isUpdata); |
|
|
|
|
|
|
|
this.getsupplierLust() |
|
|
|
this.getWarehouseList() |
|
|
|
// this.getWarehouseList() |
|
|
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['form_obj'].clearValidate() |
|
|
@ -690,7 +719,7 @@ |
|
|
|
this.title = "【修改】" |
|
|
|
this.isUpdata = true |
|
|
|
this.getsupplierLust() |
|
|
|
this.getWarehouseList() |
|
|
|
// this.getWarehouseList() |
|
|
|
console.log("showEdit", this.isUpdata); |
|
|
|
|
|
|
|
this.$nextTick(() => { |
|
|
@ -714,10 +743,10 @@ |
|
|
|
if (resp.success) { |
|
|
|
this.formobj = resp.data |
|
|
|
|
|
|
|
this.formobj.deptName = window.sessionStorage.getItem('defaultOrgPathName').substring(window |
|
|
|
.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1) |
|
|
|
this.formobj.deptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage |
|
|
|
.getItem('defaultOrgPath').lastIndexOf('/') + 1) |
|
|
|
// this.formobj.deptName = window.sessionStorage.getItem('defaultOrgPathName').substring(window |
|
|
|
// .sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1) |
|
|
|
// this.formobj.deptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage |
|
|
|
// .getItem('defaultOrgPath').lastIndexOf('/') + 1) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|