fix bug
This commit is contained in:
@@ -435,7 +435,6 @@ export default {
|
|||||||
async editContract() { // 选择一个询价单,整成合同明细
|
async editContract() { // 选择一个询价单,整成合同明细
|
||||||
this.demoChange()
|
this.demoChange()
|
||||||
await sleep(0) // 处理渲染延迟
|
await sleep(0) // 处理渲染延迟
|
||||||
console.log(document.getElementById('tbody'))
|
|
||||||
if (this.contractNumValue) {
|
if (this.contractNumValue) {
|
||||||
this.$refs.tinymce.destroyTinymce()
|
this.$refs.tinymce.destroyTinymce()
|
||||||
document.getElementById('contractName') ? document.getElementById('contractName').innerHTML = this.contractName : ''
|
document.getElementById('contractName') ? document.getElementById('contractName').innerHTML = this.contractName : ''
|
||||||
@@ -455,7 +454,6 @@ export default {
|
|||||||
// 移出旧数据
|
// 移出旧数据
|
||||||
const children = document.getElementsByClassName('tableData')
|
const children = document.getElementsByClassName('tableData')
|
||||||
const parent = document.getElementById('tbody')
|
const parent = document.getElementById('tbody')
|
||||||
console.log(children, parent)
|
|
||||||
if (children.length !== 0) {
|
if (children.length !== 0) {
|
||||||
for (let i = children.length - 1; i >= 0; i--) {
|
for (let i = children.length - 1; i >= 0; i--) {
|
||||||
parent.removeChild(children[i])
|
parent.removeChild(children[i])
|
||||||
@@ -534,7 +532,7 @@ export default {
|
|||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
console.log(this.contractNum, this.contractName, this.deliveryDate, this.payDate, this.payMethod, this.invoiceInfo, this.otherInfo, this.actualTotal, this.id, this.supplierValue, this.单价是否含税, this.组件零件流水号组, this.组件零件基本件流水号组, this.数量组, this.单价组, this.交货期组, this.content)
|
// console.log(this.contractNum, this.contractName, this.deliveryDate, this.payDate, this.payMethod, this.invoiceInfo, this.otherInfo, this.actualTotal, this.id, this.supplierValue, this.单价是否含税, this.组件零件流水号组, this.组件零件基本件流水号组, this.数量组, this.单价组, this.交货期组, this.content)
|
||||||
doneContract(this.contractNum, this.contractName, this.deliveryDate, this.payDate, this.payMethod, this.invoiceInfo, this.otherInfo, this.actualTotal, this.id, this.supplierValue, this.单价是否含税, this.组件零件流水号组, this.组件零件基本件流水号组, this.数量组, this.单价组, this.交货期组, this.content).then(response => {
|
doneContract(this.contractNum, this.contractName, this.deliveryDate, this.payDate, this.payMethod, this.invoiceInfo, this.otherInfo, this.actualTotal, this.id, this.supplierValue, this.单价是否含税, this.组件零件流水号组, this.组件零件基本件流水号组, this.数量组, this.单价组, this.交货期组, this.content).then(response => {
|
||||||
if (response.data[0].result === '1') {
|
if (response.data[0].result === '1') {
|
||||||
this.$message.success('合同生成成功')
|
this.$message.success('合同生成成功')
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user