|
|
@ -180,6 +180,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="detailLoading"
|
|
|
|
<el-table v-loading="detailLoading"
|
|
|
|
:data="detailList"
|
|
|
|
:data="detailList"
|
|
|
|
|
|
|
|
@selection-change="changeFun"
|
|
|
|
style="width: 100%">
|
|
|
|
style="width: 100%">
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
@ -246,11 +247,11 @@
|
|
|
|
</el-pagination>
|
|
|
|
</el-pagination>
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog :visible.sync="salesListNoFormVisible">
|
|
|
|
<el-dialog v-bind:width="'25%'" :visible.sync="salesListNoFormVisible">
|
|
|
|
<el-form :model="batchForm">
|
|
|
|
<el-form :model="batchForm">
|
|
|
|
<label></label>
|
|
|
|
<label></label>
|
|
|
|
<el-form-item label="销售清单:" :label-width="formLabelWidth">
|
|
|
|
<el-form-item label="销售清单:" :label-width="formLabelWidth">
|
|
|
|
<el-input style="width: 50%;" v-model="batchForm.secSalesListNo" autocomplete="off"></el-input>
|
|
|
|
<el-input style="width: 80%;;" v-model="batchForm.secSalesListNo" autocomplete="off"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
@ -259,11 +260,11 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog :visible.sync="firstSalesInvNoFormVisible">
|
|
|
|
<el-dialog v-bind:width="'25%'" :visible.sync="firstSalesInvNoFormVisible">
|
|
|
|
<el-form :model="batchForm">
|
|
|
|
<el-form :model="batchForm">
|
|
|
|
<label></label>
|
|
|
|
<label></label>
|
|
|
|
<el-form-item label="销售发票第一票:" :label-width="formLabelWidth">
|
|
|
|
<el-form-item label="销售发票第一票:" :label-width="formLabelWidth">
|
|
|
|
<el-input style="width: 50%;" v-model="batchForm.firstSalesInvNo" autocomplete="off"></el-input>
|
|
|
|
<el-input style="width: 80%;;" v-model="batchForm.firstSalesInvNo" autocomplete="off"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
@ -272,11 +273,14 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog :visible.sync="secSalesInvNoFormVisible">
|
|
|
|
<el-dialog v-bind:width="'25%'" :visible.sync="secSalesInvNoFormVisible">
|
|
|
|
<el-form :model="batchForm">
|
|
|
|
<el-form :model="batchForm">
|
|
|
|
<label></label>
|
|
|
|
<label></label>
|
|
|
|
<el-form-item label="销售发票第二票:" :label-width="formLabelWidth">
|
|
|
|
<el-form-item label="销售发票第二票:" :label-width="formLabelWidth">
|
|
|
|
<el-input style="width: 50%;" v-model="batchForm.secSalesInvNo" autocomplete="off"></el-input>
|
|
|
|
<el-input style="width: 80%;" v-model="batchForm.secSalesInvNo" autocomplete="off"></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="发票日期:" :label-width="formLabelWidth">
|
|
|
|
|
|
|
|
<el-date-picker format="yyyy-MM-dd" value-format="yyyy-MM-dd" type="date" placeholder="选择日期" v-model="batchForm.invoiceDate" style="width: 80%;"></el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
@ -503,12 +507,13 @@ export default {
|
|
|
|
batchForm: {
|
|
|
|
batchForm: {
|
|
|
|
secSalesListNo: '',
|
|
|
|
secSalesListNo: '',
|
|
|
|
firstSalesInvNo: '',
|
|
|
|
firstSalesInvNo: '',
|
|
|
|
secSalesInvNo: ''
|
|
|
|
secSalesInvNo: '',
|
|
|
|
|
|
|
|
invoiceDate: ''
|
|
|
|
},
|
|
|
|
},
|
|
|
|
salesListNoFormVisible: false,
|
|
|
|
salesListNoFormVisible: false,
|
|
|
|
firstSalesInvNoFormVisible: false,
|
|
|
|
firstSalesInvNoFormVisible: false,
|
|
|
|
secSalesInvNoFormVisible: false,
|
|
|
|
secSalesInvNoFormVisible: false,
|
|
|
|
formLabelWidth: '120px',
|
|
|
|
formLabelWidth: '150px',
|
|
|
|
storageList: [],
|
|
|
|
storageList: [],
|
|
|
|
total: 0,
|
|
|
|
total: 0,
|
|
|
|
detailTotal: 0,
|
|
|
|
detailTotal: 0,
|
|
|
@ -633,6 +638,7 @@ export default {
|
|
|
|
row.forEach((item) => {
|
|
|
|
row.forEach((item) => {
|
|
|
|
_this.multipId.push(item.id);
|
|
|
|
_this.multipId.push(item.id);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
console.log(this.multipId);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
batchSetParams(flag, type) {
|
|
|
|
batchSetParams(flag, type) {
|
|
|
|
if (flag == '1' && type == 'salesListNo') {
|
|
|
|
if (flag == '1' && type == 'salesListNo') {
|
|
|
@ -646,6 +652,8 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
//置空批量设置表单
|
|
|
|
|
|
|
|
Object.keys(this.batchForm).forEach(key => this.batchForm[key] = '');
|
|
|
|
} else if (flag == '1' && type == 'firstSalesInvNo') {
|
|
|
|
} else if (flag == '1' && type == 'firstSalesInvNo') {
|
|
|
|
this.firstSalesInvNoFormVisible = false;
|
|
|
|
this.firstSalesInvNoFormVisible = false;
|
|
|
|
this.detailList.forEach(data => {
|
|
|
|
this.detailList.forEach(data => {
|
|
|
@ -657,17 +665,20 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
Object.keys(this.batchForm).forEach(key => this.batchForm[key] = '');
|
|
|
|
} else if (flag == '1' && type == 'secSalesInvNo') {
|
|
|
|
} else if (flag == '1' && type == 'secSalesInvNo') {
|
|
|
|
this.secSalesInvNoFormVisible = false;
|
|
|
|
this.secSalesInvNoFormVisible = false;
|
|
|
|
this.detailList.forEach(data => {
|
|
|
|
this.detailList.forEach(data => {
|
|
|
|
this.multipId.forEach(id => {
|
|
|
|
this.multipId.forEach(id => {
|
|
|
|
if (data.id == id) {
|
|
|
|
if (data.id == id) {
|
|
|
|
data.secSalesInvNo = this.batchForm.secSalesInvNo;
|
|
|
|
data.secSalesInvNo = this.batchForm.secSalesInvNo;
|
|
|
|
|
|
|
|
data.invoiceDate = this.batchForm.invoiceDate;
|
|
|
|
//更新到数据库
|
|
|
|
//更新到数据库
|
|
|
|
updateStockOrderDetail(data);
|
|
|
|
updateStockOrderDetail(data);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
Object.keys(this.batchForm).forEach(key => this.batchForm[key] = '');
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (this.multipId.length == 0) {
|
|
|
|
if (this.multipId.length == 0) {
|
|
|
|
this.$message.warning("请选择数据");
|
|
|
|
this.$message.warning("请选择数据");
|
|
|
@ -1000,4 +1011,18 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
<style scoped>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.el-dialog{
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
margin:0 !important;
|
|
|
|
|
|
|
|
position:absolute;
|
|
|
|
|
|
|
|
top:50%;
|
|
|
|
|
|
|
|
left:50%;
|
|
|
|
|
|
|
|
transform:translate(-50%,-50%);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.el-dialog .el-dialog__body{
|
|
|
|
|
|
|
|
flex:1;
|
|
|
|
|
|
|
|
overflow: auto;
|
|
|
|
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|