|
@@ -1068,7 +1068,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
//查询列数据
|
|
|
- getRow(data, list, add) {
|
|
|
+ getRow(data, list, add,i) {
|
|
|
select(data).then((res) => {
|
|
|
if (data.tableName === '销售出库详情') {
|
|
|
if (res.data.length != 0) {
|
|
@@ -1172,12 +1172,28 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ if (i == 1) this.submitAnd()
|
|
|
})
|
|
|
},
|
|
|
+ submitAnd(){
|
|
|
+ this.$refs.avatar.form.fId = ''
|
|
|
+ this.$refs.avatar.form.fBillno = ''
|
|
|
+ this.contentList.forEach(item=>item.fId = '')
|
|
|
+ this.contentOption.forEach(item => {
|
|
|
+ if (item.label == 'personNaem' || item.label == 'corpsName' || item.label == 'createBy' || item.label == 'fBillno') {
|
|
|
+ item.disabled = true
|
|
|
+ } else {
|
|
|
+ item.disabled = false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.purchaseList.columnList.forEach(item => item.disabled = false)
|
|
|
+ this.contentButton.forEach(item => item.disabled = false)
|
|
|
+ this.contentStyle.forEach(item => item.disabled = false)
|
|
|
+ },
|
|
|
returnToForm(row) {
|
|
|
},
|
|
|
//查看
|
|
|
- viewMethod(scope,res) {
|
|
|
+ viewMethod(scope,res,i) {
|
|
|
this.form = this.$refs.avatar.form
|
|
|
if(res){
|
|
|
this.contentButton.forEach(item => {
|
|
@@ -1207,7 +1223,7 @@ export default {
|
|
|
warehouseBills: res.data.warehouseBills,
|
|
|
tWarehousebillsfees: res.data.tWarehousebillsfees
|
|
|
}
|
|
|
- this.getRow(data, list)
|
|
|
+ this.getRow(data,list,'',i)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -1301,24 +1317,19 @@ export default {
|
|
|
}
|
|
|
this.contentList = res.data.tWarehousebillsCntrs
|
|
|
if (item === 3){
|
|
|
- let datae = {
|
|
|
- fId:this.$refs.avatar.form.fId,
|
|
|
- fBilltype:'XS'
|
|
|
- }
|
|
|
- copyNew(datae).then(res=> {
|
|
|
- this.$message({
|
|
|
- message: '复制新单成功',
|
|
|
- type: 'success',
|
|
|
- showClose: true
|
|
|
- });
|
|
|
- let scope = {
|
|
|
- row: {
|
|
|
- fId: res.data
|
|
|
- }
|
|
|
+ this.$refs.avatar.form.fId = ''
|
|
|
+ this.$refs.avatar.form.fBillno = ''
|
|
|
+ this.contentList.forEach(item=>item.fId = '')
|
|
|
+ this.contentOption.forEach(item => {
|
|
|
+ if (item.label == 'personNaem' || item.label == 'corpsName' || item.label == 'createBy' || item.label == 'fBillno') {
|
|
|
+ item.disabled = true
|
|
|
+ } else {
|
|
|
+ item.disabled = false
|
|
|
}
|
|
|
- this.query(this.formDataList)
|
|
|
- this.viewMethod(scope,res)
|
|
|
})
|
|
|
+ this.purchaseList.columnList.forEach(item => item.disabled = false)
|
|
|
+ this.contentButton.forEach(item => item.disabled = false)
|
|
|
+ this.contentStyle.forEach(item => item.disabled = false)
|
|
|
}else{
|
|
|
this.$message.success('保存成功')
|
|
|
}
|
|
@@ -1454,27 +1465,15 @@ export default {
|
|
|
case '复制新单':
|
|
|
if (row.nameTwo === '详情页'){
|
|
|
this.$refs.avatar.submitForm('submit',3)
|
|
|
- console.log(this.$refs.avatar.form)
|
|
|
}else {
|
|
|
if (this.selection.length > 0){
|
|
|
- let datae = {
|
|
|
- fId:this.selection[0].fId,
|
|
|
- fBilltype:'XS'
|
|
|
- }
|
|
|
- copyNew(datae).then(res=>{
|
|
|
- this.$message({
|
|
|
- message: '复制新单成功',
|
|
|
- type: 'success',
|
|
|
- showClose:true
|
|
|
- });
|
|
|
- let scope = {
|
|
|
- row:{
|
|
|
- fId:res.data
|
|
|
- }
|
|
|
+ let scope = {
|
|
|
+ row:{
|
|
|
+ fId:this.selection[0].fId
|
|
|
}
|
|
|
- this.query(this.formDataList)
|
|
|
- this.viewMethod(scope,res)
|
|
|
- })
|
|
|
+ }
|
|
|
+ this.query(this.formDataList)
|
|
|
+ this.viewMethod(scope,'',1)
|
|
|
}else {
|
|
|
this.$message.warning('未选择列表,请选择后再点击');
|
|
|
}
|