完善出库管理
This commit is contained in:
@@ -224,8 +224,8 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<div class="span-sty">开票总金额</div>
|
<div class="span-sty">开票总金额</div>
|
||||||
<el-form-item> <el-input v-model="totalQuantity" :readonly="true" placeholder="" clearable
|
<el-form-item> <el-input v-model="from.four.totalAmount" :readonly="true" placeholder=""
|
||||||
class="addinputInfo addinputw" /></el-form-item>
|
clearable class="addinputInfo addinputw" /></el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<div class="span-sty">税号</div>
|
<div class="span-sty">税号</div>
|
||||||
@@ -242,7 +242,7 @@
|
|||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<div class="span-sty">内容类型</div>
|
<div class="span-sty">内容类型</div>
|
||||||
<el-form-item> <el-radio-group v-model="from.four.contentType" size="small"
|
<el-form-item> <el-radio-group v-model="from.four.contentType" size="small"
|
||||||
class="addinputInfo addinputw">
|
class="addinputInfo addinputw" @change="radiogroupChange">
|
||||||
<el-radio :label="'1'">发票商品</el-radio>
|
<el-radio :label="'1'">发票商品</el-radio>
|
||||||
<el-radio :label="'2'">自定义明细</el-radio>
|
<el-radio :label="'2'">自定义明细</el-radio>
|
||||||
</el-radio-group></el-form-item>
|
</el-radio-group></el-form-item>
|
||||||
@@ -345,7 +345,7 @@
|
|||||||
<el-table-column label="分配数量" align="center" min-width="200">
|
<el-table-column label="分配数量" align="center" min-width="200">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input v-model="scope.row.count" clearable placeholder=""
|
<el-input v-model="scope.row.count" clearable placeholder=""
|
||||||
oninput="value=value.replace(/^(0+)|[^\d]+/g,'')" />
|
oninput="value=value.replace(/^0+(\d)|[^\d]+/g,'')" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -804,6 +804,7 @@
|
|||||||
this.from.four.invoiceTypeValue = choose[0].dictValue
|
this.from.four.invoiceTypeValue = choose[0].dictValue
|
||||||
},
|
},
|
||||||
saveInvoice() {
|
saveInvoice() {
|
||||||
|
this.from.four.billSid = this.rowItemSid
|
||||||
req.saveOrderInvoive(this.from.four).then((resp) => {
|
req.saveOrderInvoive(this.from.four).then((resp) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message({
|
this.$message({
|
||||||
@@ -821,17 +822,56 @@
|
|||||||
},
|
},
|
||||||
handleClose() {
|
handleClose() {
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
|
this.$refs.main.clearSelection()
|
||||||
},
|
},
|
||||||
handleSelectionChange(val) {
|
handleSelectionChange(val) {
|
||||||
console.log("val", val);
|
console.log("val", val);
|
||||||
this.goodsList = val
|
this.goodsList = val
|
||||||
|
},
|
||||||
|
radiogroupChange(val) {
|
||||||
|
console.log("val", val);
|
||||||
|
|
||||||
|
let quantity = 0
|
||||||
|
if (this.from.first.length > 0) {
|
||||||
|
this.from.first.forEach((e) => {
|
||||||
|
quantity += Number(e.salesAmount)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
this.from.four.totalAmount = quantity
|
||||||
|
|
||||||
|
if (val == '1') {
|
||||||
|
this.from.four.detailsList = this.from.first
|
||||||
|
} else {
|
||||||
|
this.from.four.detailsList = []
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
saveData() {
|
saveData() {
|
||||||
this.from.four.detailsList = this.goodsList
|
this.from.four.detailsList = this.goodsList
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
|
this.$refs.main.clearSelection()
|
||||||
|
|
||||||
|
let quantity = 0
|
||||||
|
if (this.from.four.detailsList.length > 0) {
|
||||||
|
this.from.four.detailsList.forEach((e) => {
|
||||||
|
quantity += Number(e.salesAmount)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
this.from.four.totalAmount = quantity
|
||||||
},
|
},
|
||||||
delGoods(index) {
|
delGoods(index) {
|
||||||
this.from.four.detailsList.splice(index, 1)
|
this.from.four.detailsList.splice(index, 1)
|
||||||
|
let quantity = 0
|
||||||
|
if (this.from.four.detailsList.length > 0) {
|
||||||
|
this.from.four.detailsList.forEach((e) => {
|
||||||
|
quantity += Number(e.salesAmount)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
this.from.four.totalAmount = quantity
|
||||||
},
|
},
|
||||||
selectCarrier(row, val) {
|
selectCarrier(row, val) {
|
||||||
console.log("selectCarrier", val);
|
console.log("selectCarrier", val);
|
||||||
@@ -909,8 +949,6 @@
|
|||||||
|
|
||||||
var item = this.goodsStockList[i]
|
var item = this.goodsStockList[i]
|
||||||
|
|
||||||
if (Number(item.count) > 0) {
|
|
||||||
|
|
||||||
goodsStocks.push({
|
goodsStocks.push({
|
||||||
"sid": item.locationSid,
|
"sid": item.locationSid,
|
||||||
"sourceBillSid": this.rowItemSid,
|
"sourceBillSid": this.rowItemSid,
|
||||||
@@ -926,7 +964,6 @@
|
|||||||
"locationSid": item.locationSid,
|
"locationSid": item.locationSid,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
req.saveSelAvailable(goodsStocks).then((res) => {
|
req.saveSelAvailable(goodsStocks).then((res) => {
|
||||||
console.log("saveSelAvailable", res);
|
console.log("saveSelAvailable", res);
|
||||||
|
|||||||
@@ -216,7 +216,6 @@
|
|||||||
</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> <el-input v-model="from.four.rise" placeholder="" clearable
|
<el-form-item> <el-input v-model="from.four.rise" placeholder="" clearable
|
||||||
class="addinputInfo addinputw" /></el-form-item>
|
class="addinputInfo addinputw" /></el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@@ -224,8 +223,8 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<div class="span-sty">开票总金额</div>
|
<div class="span-sty">开票总金额</div>
|
||||||
<el-form-item> <el-input v-model="totalQuantity" :readonly="true" placeholder="" clearable
|
<el-form-item> <el-input v-model="from.four.totalAmount" :readonly="true" placeholder=""
|
||||||
class="addinputInfo addinputw" /></el-form-item>
|
clearable class="addinputInfo addinputw" /></el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<div class="span-sty">税号</div>
|
<div class="span-sty">税号</div>
|
||||||
@@ -242,7 +241,7 @@
|
|||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<div class="span-sty">内容类型</div>
|
<div class="span-sty">内容类型</div>
|
||||||
<el-form-item> <el-radio-group v-model="from.four.contentType" size="small"
|
<el-form-item> <el-radio-group v-model="from.four.contentType" size="small"
|
||||||
class="addinputInfo addinputw">
|
class="addinputInfo addinputw" @change="radiogroupChange">
|
||||||
<el-radio :label="'1'">发票商品</el-radio>
|
<el-radio :label="'1'">发票商品</el-radio>
|
||||||
<el-radio :label="'2'">自定义明细</el-radio>
|
<el-radio :label="'2'">自定义明细</el-radio>
|
||||||
</el-radio-group></el-form-item>
|
</el-radio-group></el-form-item>
|
||||||
@@ -345,7 +344,7 @@
|
|||||||
<el-table-column label="分配数量" align="center" min-width="200">
|
<el-table-column label="分配数量" align="center" min-width="200">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input v-model="scope.row.count" clearable placeholder=""
|
<el-input v-model="scope.row.count" clearable placeholder=""
|
||||||
oninput="value=value.replace(/^(0+)|[^\d]+/g,'')" />
|
oninput="value=value.replace(/^0+(\d)|[^\d]+/g,'')" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -824,6 +823,7 @@
|
|||||||
this.from.four.invoiceTypeValue = choose[0].dictValue
|
this.from.four.invoiceTypeValue = choose[0].dictValue
|
||||||
},
|
},
|
||||||
saveInvoice() {
|
saveInvoice() {
|
||||||
|
this.from.four.billSid = this.rowItemSid
|
||||||
req.saveOrderInvoive(this.from.four).then((resp) => {
|
req.saveOrderInvoive(this.from.four).then((resp) => {
|
||||||
this.$message({
|
this.$message({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
@@ -839,17 +839,55 @@
|
|||||||
},
|
},
|
||||||
handleClose() {
|
handleClose() {
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
|
this.$refs.main.clearSelection()
|
||||||
},
|
},
|
||||||
handleSelectionChange(val) {
|
handleSelectionChange(val) {
|
||||||
console.log("val", val);
|
console.log("val", val);
|
||||||
this.goodsList = val
|
this.goodsList = val
|
||||||
},
|
},
|
||||||
|
radiogroupChange(val) {
|
||||||
|
console.log("val", val);
|
||||||
|
|
||||||
|
let quantity = 0
|
||||||
|
if (this.from.first.length > 0) {
|
||||||
|
this.from.first.forEach((e) => {
|
||||||
|
quantity += Number(e.salesAmount)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
this.from.four.totalAmount = quantity
|
||||||
|
|
||||||
|
if (val == '1') {
|
||||||
|
this.from.four.detailsList = this.from.first
|
||||||
|
} else {
|
||||||
|
this.from.four.detailsList = []
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
saveData() {
|
saveData() {
|
||||||
this.from.four.detailsList = this.goodsList
|
this.from.four.detailsList = this.goodsList
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
|
this.$refs.main.clearSelection()
|
||||||
|
|
||||||
|
let quantity = 0
|
||||||
|
if (this.from.four.detailsList.length > 0) {
|
||||||
|
this.from.four.detailsList.forEach((e) => {
|
||||||
|
quantity += Number(e.salesAmount)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
this.from.four.totalAmount = quantity
|
||||||
},
|
},
|
||||||
delGoods(index) {
|
delGoods(index) {
|
||||||
this.from.four.detailsList.splice(index, 1)
|
this.from.four.detailsList.splice(index, 1)
|
||||||
|
let quantity = 0
|
||||||
|
if (this.from.four.detailsList.length > 0) {
|
||||||
|
this.from.four.detailsList.forEach((e) => {
|
||||||
|
quantity += Number(e.salesAmount)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
this.from.four.totalAmount = quantity
|
||||||
},
|
},
|
||||||
selectCarrier(row, val) {
|
selectCarrier(row, val) {
|
||||||
console.log("selectCarrier", val);
|
console.log("selectCarrier", val);
|
||||||
@@ -926,8 +964,6 @@
|
|||||||
|
|
||||||
var item = this.goodsStockList[i]
|
var item = this.goodsStockList[i]
|
||||||
|
|
||||||
if (Number(item.count) > 0) {
|
|
||||||
|
|
||||||
goodsStocks.push({
|
goodsStocks.push({
|
||||||
"sid": item.locationSid,
|
"sid": item.locationSid,
|
||||||
"sourceBillSid": this.rowItemSid,
|
"sourceBillSid": this.rowItemSid,
|
||||||
@@ -943,7 +979,6 @@
|
|||||||
"locationSid": item.locationSid,
|
"locationSid": item.locationSid,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
req.saveSelAvailable(goodsStocks).then((res) => {
|
req.saveSelAvailable(goodsStocks).then((res) => {
|
||||||
console.log("saveSelAvailable", res);
|
console.log("saveSelAvailable", res);
|
||||||
|
|||||||
@@ -224,8 +224,8 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<div class="span-sty">开票总金额</div>
|
<div class="span-sty">开票总金额</div>
|
||||||
<el-form-item> <el-input v-model="totalQuantity" :readonly="true" placeholder="" clearable
|
<el-form-item> <el-input v-model="from.four.totalAmount" :readonly="true" placeholder=""
|
||||||
class="addinputInfo addinputw" /></el-form-item>
|
clearable class="addinputInfo addinputw" /></el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<div class="span-sty">税号</div>
|
<div class="span-sty">税号</div>
|
||||||
@@ -242,7 +242,7 @@
|
|||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<div class="span-sty">内容类型</div>
|
<div class="span-sty">内容类型</div>
|
||||||
<el-form-item> <el-radio-group v-model="from.four.contentType" size="small"
|
<el-form-item> <el-radio-group v-model="from.four.contentType" size="small"
|
||||||
class="addinputInfo addinputw">
|
class="addinputInfo addinputw" @change="radiogroupChange">
|
||||||
<el-radio :label="'1'">发票商品</el-radio>
|
<el-radio :label="'1'">发票商品</el-radio>
|
||||||
<el-radio :label="'2'">自定义明细</el-radio>
|
<el-radio :label="'2'">自定义明细</el-radio>
|
||||||
</el-radio-group></el-form-item>
|
</el-radio-group></el-form-item>
|
||||||
@@ -345,7 +345,7 @@
|
|||||||
<el-table-column label="分配数量" align="center" min-width="200">
|
<el-table-column label="分配数量" align="center" min-width="200">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input v-model="scope.row.count" clearable placeholder=""
|
<el-input v-model="scope.row.count" clearable placeholder=""
|
||||||
oninput="value=value.replace(/^(0+)|[^\d]+/g,'')" />
|
oninput="value=value.replace(/^0+(\d)|[^\d]+/g,'')" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -809,6 +809,7 @@
|
|||||||
this.from.four.invoiceTypeValue = choose[0].dictValue
|
this.from.four.invoiceTypeValue = choose[0].dictValue
|
||||||
},
|
},
|
||||||
saveInvoice() {
|
saveInvoice() {
|
||||||
|
this.from.four.billSid = this.rowItemSid
|
||||||
req.saveOrderInvoive(this.from.four).then((resp) => {
|
req.saveOrderInvoive(this.from.four).then((resp) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message({
|
this.$message({
|
||||||
@@ -826,17 +827,55 @@
|
|||||||
},
|
},
|
||||||
handleClose() {
|
handleClose() {
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
|
this.$refs.main.clearSelection()
|
||||||
},
|
},
|
||||||
handleSelectionChange(val) {
|
handleSelectionChange(val) {
|
||||||
console.log("val", val);
|
console.log("val", val);
|
||||||
this.goodsList = val
|
this.goodsList = val
|
||||||
},
|
},
|
||||||
|
radiogroupChange(val) {
|
||||||
|
console.log("val", val);
|
||||||
|
|
||||||
|
let quantity = 0
|
||||||
|
if (this.from.first.length > 0) {
|
||||||
|
this.from.first.forEach((e) => {
|
||||||
|
quantity += Number(e.salesAmount)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
this.from.four.totalAmount = quantity
|
||||||
|
|
||||||
|
if (val == '1') {
|
||||||
|
this.from.four.detailsList = this.from.first
|
||||||
|
} else {
|
||||||
|
this.from.four.detailsList = []
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
saveData() {
|
saveData() {
|
||||||
this.from.four.detailsList = this.goodsList
|
this.from.four.detailsList = this.goodsList
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
|
this.$refs.main.clearSelection()
|
||||||
|
|
||||||
|
let quantity = 0
|
||||||
|
if (this.from.four.detailsList.length > 0) {
|
||||||
|
this.from.four.detailsList.forEach((e) => {
|
||||||
|
quantity += Number(e.salesAmount)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
this.from.four.totalAmount = quantity
|
||||||
},
|
},
|
||||||
delGoods(index) {
|
delGoods(index) {
|
||||||
this.from.four.detailsList.splice(index, 1)
|
this.from.four.detailsList.splice(index, 1)
|
||||||
|
let quantity = 0
|
||||||
|
if (this.from.four.detailsList.length > 0) {
|
||||||
|
this.from.four.detailsList.forEach((e) => {
|
||||||
|
quantity += Number(e.salesAmount)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
this.from.four.totalAmount = quantity
|
||||||
},
|
},
|
||||||
selectCarrier(row, val) {
|
selectCarrier(row, val) {
|
||||||
console.log("selectCarrier", val);
|
console.log("selectCarrier", val);
|
||||||
@@ -912,8 +951,6 @@
|
|||||||
|
|
||||||
var item = this.goodsStockList[i]
|
var item = this.goodsStockList[i]
|
||||||
|
|
||||||
if (Number(item.count) > 0) {
|
|
||||||
|
|
||||||
goodsStocks.push({
|
goodsStocks.push({
|
||||||
"sid": item.locationSid,
|
"sid": item.locationSid,
|
||||||
"sourceBillSid": this.rowItemSid,
|
"sourceBillSid": this.rowItemSid,
|
||||||
@@ -929,7 +966,6 @@
|
|||||||
"locationSid": item.locationSid,
|
"locationSid": item.locationSid,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
req.saveSelAvailable(goodsStocks).then((res) => {
|
req.saveSelAvailable(goodsStocks).then((res) => {
|
||||||
console.log("saveSelAvailable", res);
|
console.log("saveSelAvailable", res);
|
||||||
|
|||||||
@@ -224,8 +224,8 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<div class="span-sty">开票总金额</div>
|
<div class="span-sty">开票总金额</div>
|
||||||
<el-form-item> <el-input v-model="totalQuantity" :readonly="true" placeholder="" clearable
|
<el-form-item> <el-input v-model="from.four.totalAmount" :readonly="true" placeholder=""
|
||||||
class="addinputInfo addinputw" /></el-form-item>
|
clearable class="addinputInfo addinputw" /></el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<div class="span-sty">税号</div>
|
<div class="span-sty">税号</div>
|
||||||
@@ -242,7 +242,7 @@
|
|||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<div class="span-sty">内容类型</div>
|
<div class="span-sty">内容类型</div>
|
||||||
<el-form-item> <el-radio-group v-model="from.four.contentType" size="small"
|
<el-form-item> <el-radio-group v-model="from.four.contentType" size="small"
|
||||||
class="addinputInfo addinputw">
|
class="addinputInfo addinputw" @change="radiogroupChange">
|
||||||
<el-radio :label="'1'">发票商品</el-radio>
|
<el-radio :label="'1'">发票商品</el-radio>
|
||||||
<el-radio :label="'2'">自定义明细</el-radio>
|
<el-radio :label="'2'">自定义明细</el-radio>
|
||||||
</el-radio-group></el-form-item>
|
</el-radio-group></el-form-item>
|
||||||
@@ -345,7 +345,7 @@
|
|||||||
<el-table-column label="分配数量" align="center" min-width="200">
|
<el-table-column label="分配数量" align="center" min-width="200">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input v-model="scope.row.count" clearable placeholder=""
|
<el-input v-model="scope.row.count" clearable placeholder=""
|
||||||
oninput="value=value.replace(/^(0+)|[^\d]+/g,'')" />
|
oninput="value=value.replace(/^0+(\d)|[^\d]+/g,'')" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -863,6 +863,7 @@
|
|||||||
this.from.four.invoiceTypeValue = choose[0].dictValue
|
this.from.four.invoiceTypeValue = choose[0].dictValue
|
||||||
},
|
},
|
||||||
saveInvoice() {
|
saveInvoice() {
|
||||||
|
this.from.four.billSid = this.rowItemSid
|
||||||
req.saveOrderInvoive(this.from.four).then((resp) => {
|
req.saveOrderInvoive(this.from.four).then((resp) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message({
|
this.$message({
|
||||||
@@ -880,17 +881,55 @@
|
|||||||
},
|
},
|
||||||
handleClose() {
|
handleClose() {
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
|
this.$refs.main.clearSelection()
|
||||||
},
|
},
|
||||||
handleSelectionChange(val) {
|
handleSelectionChange(val) {
|
||||||
console.log("val", val);
|
console.log("val", val);
|
||||||
this.goodsList = val
|
this.goodsList = val
|
||||||
},
|
},
|
||||||
|
radiogroupChange(val) {
|
||||||
|
console.log("val", val);
|
||||||
|
|
||||||
|
let quantity = 0
|
||||||
|
if (this.from.first.length > 0) {
|
||||||
|
this.from.first.forEach((e) => {
|
||||||
|
quantity += Number(e.salesAmount)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
this.from.four.totalAmount = quantity
|
||||||
|
|
||||||
|
if (val == '1') {
|
||||||
|
this.from.four.detailsList = this.from.first
|
||||||
|
} else {
|
||||||
|
this.from.four.detailsList = []
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
saveData() {
|
saveData() {
|
||||||
this.from.four.detailsList = this.goodsList
|
this.from.four.detailsList = this.goodsList
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
|
this.$refs.main.clearSelection()
|
||||||
|
|
||||||
|
let quantity = 0
|
||||||
|
if (this.from.four.detailsList.length > 0) {
|
||||||
|
this.from.four.detailsList.forEach((e) => {
|
||||||
|
quantity += Number(e.salesAmount)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
this.from.four.totalAmount = quantity
|
||||||
},
|
},
|
||||||
delGoods(index) {
|
delGoods(index) {
|
||||||
this.from.four.detailsList.splice(index, 1)
|
this.from.four.detailsList.splice(index, 1)
|
||||||
|
let quantity = 0
|
||||||
|
if (this.from.four.detailsList.length > 0) {
|
||||||
|
this.from.four.detailsList.forEach((e) => {
|
||||||
|
quantity += Number(e.salesAmount)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
this.from.four.totalAmount = quantity
|
||||||
},
|
},
|
||||||
selectCarrier(row, val) {
|
selectCarrier(row, val) {
|
||||||
console.log("selectCarrier", val);
|
console.log("selectCarrier", val);
|
||||||
@@ -967,8 +1006,6 @@
|
|||||||
|
|
||||||
var item = this.goodsStockList[i]
|
var item = this.goodsStockList[i]
|
||||||
|
|
||||||
if (Number(item.count) > 0) {
|
|
||||||
|
|
||||||
goodsStocks.push({
|
goodsStocks.push({
|
||||||
"sid": item.locationSid,
|
"sid": item.locationSid,
|
||||||
"sourceBillSid": this.rowItemSid,
|
"sourceBillSid": this.rowItemSid,
|
||||||
@@ -984,7 +1021,6 @@
|
|||||||
"locationSid": item.locationSid,
|
"locationSid": item.locationSid,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
req.saveSelAvailable(goodsStocks).then((res) => {
|
req.saveSelAvailable(goodsStocks).then((res) => {
|
||||||
console.log("saveSelAvailable", res);
|
console.log("saveSelAvailable", res);
|
||||||
|
|||||||
Reference in New Issue
Block a user