|
|
@ -83,18 +83,18 @@ |
|
|
|
|
|
|
|
<div class="title titleOne"> |
|
|
|
<div>商品列表</div> |
|
|
|
<!-- <el-button type="primary" size="mini" class="btntopblueline" @click="batchAddAll()">批次收货</el-button> --> |
|
|
|
<el-button type="primary" size="mini" class="btntopblueline" @click="batchAddAll()">批次收货</el-button> |
|
|
|
</div> |
|
|
|
<el-table v-loading="listLoading" :data="formobj.list" border style="width: 100%;"> |
|
|
|
<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 label="操作" wid align="center" width="100"> |
|
|
|
<el-table-column fixed label="操作" wid 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> --> |
|
|
|
<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="商品编码" prop="goodsSkuCode" align="center" width="150" /> |
|
|
|
<el-table-column label="规格" prop="goodsSkuOwnSpec" align="center" width="150" /> |
|
|
|
<el-table-column label="单位" prop="unit" align="center" width="120" /> |
|
|
@ -165,7 +165,7 @@ |
|
|
|
</el-table> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <div class="title"> |
|
|
|
<div class="title"> |
|
|
|
<div>商品-批次</div> |
|
|
|
</div> |
|
|
|
<el-table v-loading="listLoading" :data="formobj.pcList" border style="width: 100%;"> |
|
|
@ -196,7 +196,7 @@ |
|
|
|
oninput="value=value.replace(/^(0+)|[^\d]+/g,'')" /> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> --> |
|
|
|
</el-table> |
|
|
|
|
|
|
|
</el-form> |
|
|
|
|
|
|
@ -262,14 +262,7 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
getOrgSidByPath({ |
|
|
|
orgPath: window.sessionStorage.getItem('defaultOrgPath') |
|
|
|
}).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.formobj.createOrgSid = res.data |
|
|
|
this.formobj.useOrgSid = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// getOrgPathSid() { |
|
|
@ -282,6 +275,21 @@ |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// }, |
|
|
|
|
|
|
|
init() { |
|
|
|
getOrgSidByPath({ |
|
|
|
orgPath: window.sessionStorage.getItem('defaultOrgPath') |
|
|
|
}).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.formobj.createOrgSid = res.data |
|
|
|
this.formobj.useOrgSid = res.data |
|
|
|
|
|
|
|
this.getsupplierLust() |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
selectSupplierName(val) { |
|
|
|
|
|
|
|
console.log("supplierNameSelect", val); |
|
|
@ -311,8 +319,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
choiceSupplierInfo({ |
|
|
|
deptSid: window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage |
|
|
|
.getItem('defaultOrgPath').lastIndexOf('/') + 1) |
|
|
|
createOrgSid: this.formobj.createOrgSid |
|
|
|
}).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
this.supplierNameList = resp.data |
|
|
@ -655,14 +662,16 @@ |
|
|
|
this.$refs['form_obj'].clearValidate() |
|
|
|
}) |
|
|
|
|
|
|
|
this.init() |
|
|
|
|
|
|
|
}, |
|
|
|
showEdit(row) { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['form_obj'].clearValidate() |
|
|
|
}) |
|
|
|
|
|
|
|
this.init() |
|
|
|
// this.getWarehouseList() |
|
|
|
this.getsupplierLust() |
|
|
|
|
|
|
|
// this.getOrgPathSid() |
|
|
|
var params = { |
|
|
|
sourceSid: row.sid |
|
|
@ -674,10 +683,11 @@ |
|
|
|
this.formobj = resp.data |
|
|
|
this.formobj.deliveryDate = getCurrentDate() |
|
|
|
|
|
|
|
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) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|