|
@@ -63,6 +63,7 @@
|
|
|
@deletRows="deletRows"
|
|
|
@feedback="feedback"
|
|
|
@totalAmount="totalAmount"
|
|
|
+ @change="change"
|
|
|
:seachButton="confirmButton"
|
|
|
:customButton="detailButton"
|
|
|
:listStyle="detailStyle"
|
|
@@ -627,7 +628,7 @@ export default {
|
|
|
index:'6',
|
|
|
span:6,
|
|
|
label: 'fSbu',
|
|
|
- name:"出票单位",
|
|
|
+ name:"开票公司",
|
|
|
form:1,
|
|
|
width:200,
|
|
|
labelSize:'80',
|
|
@@ -666,19 +667,22 @@ export default {
|
|
|
icon:'el-icon-plus',
|
|
|
name:'新增',
|
|
|
disabled:false,
|
|
|
+ hasPermi:['warehouseBusiness:inStock:export']
|
|
|
},{
|
|
|
type:'success',
|
|
|
size:'mini',
|
|
|
icon:'el-icon-edit',
|
|
|
name:'修改',
|
|
|
res:0,
|
|
|
- disabled:true
|
|
|
+ disabled:true,
|
|
|
+ hasPermi:['warehouseBusiness:inStock:export']
|
|
|
},{
|
|
|
type:'info',
|
|
|
size:'mini',
|
|
|
icon:'el-icon-plus',
|
|
|
name:'复制新增',
|
|
|
- disabled:true
|
|
|
+ disabled:true,
|
|
|
+ hasPermi:['warehouseBusiness:inStock:export']
|
|
|
},
|
|
|
],
|
|
|
seachButton:[
|
|
@@ -784,6 +788,15 @@ export default {
|
|
|
this.selectMethods()
|
|
|
},
|
|
|
methods:{
|
|
|
+ change(scope){
|
|
|
+ for(let item in this.detailData){
|
|
|
+ for(let li in this.listData.fFeeid){
|
|
|
+ if(this.detailData[item].fFeeid == this.listData.fFeeid[li].value){
|
|
|
+ this.$set(this.detailData[item],'fFeeunitid',JSON.stringify(this.listData.fFeeid[li].fFeeunitid))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
//确认打印
|
|
|
Printing(){
|
|
|
this.$print(this.$refs.print)
|
|
@@ -880,7 +893,8 @@ export default {
|
|
|
|
|
|
}
|
|
|
})
|
|
|
- }else if(this.detailOption[li].name == '供应商'){
|
|
|
+ }
|
|
|
+ if(this.detailOption[li].name == '供应商'){
|
|
|
//获取供应商
|
|
|
let queryParams = { pageNum: 1, fTypeid: 1}
|
|
|
getustomer(queryParams).then(res => {
|
|
@@ -891,10 +905,12 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
- }else if(this.detailOption[li].name == '付款单位'){
|
|
|
+ }
|
|
|
+ if(this.detailOption[li].name == '开票公司'){
|
|
|
//获取付款单位
|
|
|
- let queryParams = { pageNum: 1, fTypeid: 1}
|
|
|
+ let queryParams = { pageNum: 1, fTypeid: 2}
|
|
|
getustomer(queryParams).then(res => {
|
|
|
+ console.log(res)
|
|
|
for(let item in res.data){
|
|
|
this.detailOption[li].data.push({
|
|
|
label:res.data[item].fName,
|
|
@@ -902,7 +918,8 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
- }else if(this.detailOption[li].name == '库管员'){
|
|
|
+ }
|
|
|
+ if(this.detailOption[li].name == '库管员'){
|
|
|
let queryParams = { pageNum: 1,roleName:'库管'}
|
|
|
getWarehousekeeper(queryParams).then(res=>{
|
|
|
for(let item in res.rows){
|
|
@@ -912,7 +929,8 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
- }else if(this.detailOption[li].name == '采购人'){
|
|
|
+ }
|
|
|
+ if(this.detailOption[li].name == '采购人'){
|
|
|
getliable().then((res) => {
|
|
|
console.log(res)
|
|
|
for(let item in res.rows){
|
|
@@ -973,7 +991,8 @@ export default {
|
|
|
for(let item in res.rows){
|
|
|
this.listData.fFeeid.push({
|
|
|
label:res.rows[item].fName,
|
|
|
- value:res.rows[item].fId
|
|
|
+ value:res.rows[item].fId,
|
|
|
+ fFeeunitid: res.rows[item].fFeeunitid
|
|
|
})
|
|
|
}
|
|
|
})
|
|
@@ -1194,7 +1213,7 @@ export default {
|
|
|
fFeeid:null,
|
|
|
fUnitprice:null,
|
|
|
fQty:null,
|
|
|
- fFeeunitid:'1',
|
|
|
+ fFeeunitid:null,
|
|
|
fWarehouseid:null,
|
|
|
fAmount:null,
|
|
|
fStltypeid:'1',
|