优化单据,增加退货单的链接和列表提示
This commit is contained in:
@@ -176,15 +176,7 @@
|
|||||||
align:"center", width: 150,
|
align:"center", width: 150,
|
||||||
scopedSlots: { customRender: 'action' },
|
scopedSlots: { customRender: 'action' },
|
||||||
},
|
},
|
||||||
{ title: '单据编号', dataIndex: 'number',width:160,
|
{ title: '单据编号', dataIndex: 'number',width:160},
|
||||||
customRender:function (text,record,index) {
|
|
||||||
if(record.linkNumber) {
|
|
||||||
return text + "[转]";
|
|
||||||
} else {
|
|
||||||
return text;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{ title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true,
|
{ title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true,
|
||||||
customRender:function (text,record,index) {
|
customRender:function (text,record,index) {
|
||||||
if(text) {
|
if(text) {
|
||||||
|
|||||||
@@ -176,15 +176,7 @@
|
|||||||
align:"center", width: 150,
|
align:"center", width: 150,
|
||||||
scopedSlots: { customRender: 'action' },
|
scopedSlots: { customRender: 'action' },
|
||||||
},
|
},
|
||||||
{ title: '单据编号', dataIndex: 'number',width:160,
|
{ title: '单据编号', dataIndex: 'number',width:160},
|
||||||
customRender:function (text,record,index) {
|
|
||||||
if(record.linkNumber) {
|
|
||||||
return text + "[转]";
|
|
||||||
} else {
|
|
||||||
return text;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{ title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true,
|
{ title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true,
|
||||||
customRender:function (text,record,index) {
|
customRender:function (text,record,index) {
|
||||||
if(text) {
|
if(text) {
|
||||||
|
|||||||
@@ -176,15 +176,7 @@
|
|||||||
align:"center", width: 150,
|
align:"center", width: 150,
|
||||||
scopedSlots: { customRender: 'action' },
|
scopedSlots: { customRender: 'action' },
|
||||||
},
|
},
|
||||||
{ title: '单据编号', dataIndex: 'number',width:160,
|
{ title: '单据编号', dataIndex: 'number',width:160},
|
||||||
customRender:function (text,record,index) {
|
|
||||||
if(record.linkNumber) {
|
|
||||||
return text + "[转]";
|
|
||||||
} else {
|
|
||||||
return text;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{ title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true,
|
{ title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true,
|
||||||
customRender:function (text,record,index) {
|
customRender:function (text,record,index) {
|
||||||
if(text) {
|
if(text) {
|
||||||
|
|||||||
@@ -193,15 +193,7 @@
|
|||||||
scopedSlots: { customRender: 'action' },
|
scopedSlots: { customRender: 'action' },
|
||||||
},
|
},
|
||||||
{ title: '供应商', dataIndex: 'organName',width:120, ellipsis:true},
|
{ title: '供应商', dataIndex: 'organName',width:120, ellipsis:true},
|
||||||
{ title: '单据编号', dataIndex: 'number',width:160,
|
{ title: '单据编号', dataIndex: 'number',width:160},
|
||||||
customRender:function (text,record,index) {
|
|
||||||
if(record.linkNumber) {
|
|
||||||
return text + "[转]";
|
|
||||||
} else {
|
|
||||||
return text;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{ title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true,
|
{ title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true,
|
||||||
customRender:function (text,record,index) {
|
customRender:function (text,record,index) {
|
||||||
if(text) {
|
if(text) {
|
||||||
|
|||||||
@@ -193,15 +193,7 @@
|
|||||||
scopedSlots: { customRender: 'action' },
|
scopedSlots: { customRender: 'action' },
|
||||||
},
|
},
|
||||||
{ title: '客户', dataIndex: 'organName',width:120, ellipsis:true},
|
{ title: '客户', dataIndex: 'organName',width:120, ellipsis:true},
|
||||||
{ title: '单据编号', dataIndex: 'number',width:160,
|
{ title: '单据编号', dataIndex: 'number',width:160},
|
||||||
customRender:function (text,record,index) {
|
|
||||||
if(record.linkNumber) {
|
|
||||||
return text + "[转]";
|
|
||||||
} else {
|
|
||||||
return text;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{ title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true,
|
{ title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true,
|
||||||
customRender:function (text,record,index) {
|
customRender:function (text,record,index) {
|
||||||
if(text) {
|
if(text) {
|
||||||
|
|||||||
@@ -205,11 +205,8 @@
|
|||||||
{ title: '供应商', dataIndex: 'organName',width:120, ellipsis:true},
|
{ title: '供应商', dataIndex: 'organName',width:120, ellipsis:true},
|
||||||
{ title: '单据编号', dataIndex: 'number',width:160,
|
{ title: '单据编号', dataIndex: 'number',width:160,
|
||||||
customRender:function (text,record,index) {
|
customRender:function (text,record,index) {
|
||||||
if(record.linkNumber) {
|
text = record.linkNumber?text+"[转]":text
|
||||||
return text + "[转]";
|
return text
|
||||||
} else {
|
|
||||||
return text;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true,
|
{ title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true,
|
||||||
|
|||||||
@@ -221,11 +221,9 @@
|
|||||||
{ title: '供应商', dataIndex: 'organName',width:120, ellipsis:true},
|
{ title: '供应商', dataIndex: 'organName',width:120, ellipsis:true},
|
||||||
{ title: '单据编号', dataIndex: 'number',width:160,
|
{ title: '单据编号', dataIndex: 'number',width:160,
|
||||||
customRender:function (text,record,index) {
|
customRender:function (text,record,index) {
|
||||||
if(record.linkNumber) {
|
text = record.linkNumber?text+"[订]":text
|
||||||
return text + "[订]";
|
text = record.hasBackFlag?text+"[退]":text
|
||||||
} else {
|
return text
|
||||||
return text;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true,
|
{ title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true,
|
||||||
|
|||||||
@@ -185,11 +185,8 @@
|
|||||||
{ title: '供应商', dataIndex: 'organName',width:120, ellipsis:true},
|
{ title: '供应商', dataIndex: 'organName',width:120, ellipsis:true},
|
||||||
{ title: '单据编号', dataIndex: 'number',width:160,
|
{ title: '单据编号', dataIndex: 'number',width:160,
|
||||||
customRender:function (text,record,index) {
|
customRender:function (text,record,index) {
|
||||||
if(record.linkNumber) {
|
text = record.linkNumber?text+"[转]":text
|
||||||
return text + "[转]";
|
return text
|
||||||
} else {
|
|
||||||
return text;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true,
|
{ title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true,
|
||||||
|
|||||||
@@ -205,11 +205,8 @@
|
|||||||
{ title: '会员', dataIndex: 'organName',width:120, ellipsis:true},
|
{ title: '会员', dataIndex: 'organName',width:120, ellipsis:true},
|
||||||
{ title: '单据编号', dataIndex: 'number',width:160,
|
{ title: '单据编号', dataIndex: 'number',width:160,
|
||||||
customRender:function (text,record,index) {
|
customRender:function (text,record,index) {
|
||||||
if(record.linkNumber) {
|
text = record.linkNumber?text+"[转]":text
|
||||||
return text + "[转]";
|
return text
|
||||||
} else {
|
|
||||||
return text;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true,
|
{ title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true,
|
||||||
|
|||||||
@@ -199,11 +199,8 @@
|
|||||||
{ title: '会员', dataIndex: 'organName',width:120, ellipsis:true},
|
{ title: '会员', dataIndex: 'organName',width:120, ellipsis:true},
|
||||||
{ title: '单据编号', dataIndex: 'number',width:160,
|
{ title: '单据编号', dataIndex: 'number',width:160,
|
||||||
customRender:function (text,record,index) {
|
customRender:function (text,record,index) {
|
||||||
if(record.linkNumber) {
|
text = record.hasBackFlag?text+"[退]":text
|
||||||
return text + "[转]";
|
return text
|
||||||
} else {
|
|
||||||
return text;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true,
|
{ title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true,
|
||||||
|
|||||||
@@ -205,11 +205,8 @@
|
|||||||
{ title: '客户', dataIndex: 'organName',width:120, ellipsis:true},
|
{ title: '客户', dataIndex: 'organName',width:120, ellipsis:true},
|
||||||
{ title: '单据编号', dataIndex: 'number',width:160,
|
{ title: '单据编号', dataIndex: 'number',width:160,
|
||||||
customRender:function (text,record,index) {
|
customRender:function (text,record,index) {
|
||||||
if(record.linkNumber) {
|
text = record.linkNumber?text+"[转]":text
|
||||||
return text + "[转]";
|
return text
|
||||||
} else {
|
|
||||||
return text;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true,
|
{ title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true,
|
||||||
|
|||||||
@@ -221,11 +221,9 @@
|
|||||||
{ title: '客户', dataIndex: 'organName',width:120, ellipsis:true},
|
{ title: '客户', dataIndex: 'organName',width:120, ellipsis:true},
|
||||||
{ title: '单据编号', dataIndex: 'number',width:160,
|
{ title: '单据编号', dataIndex: 'number',width:160,
|
||||||
customRender:function (text,record,index) {
|
customRender:function (text,record,index) {
|
||||||
if(record.linkNumber) {
|
text = record.linkNumber?text+"[订]":text
|
||||||
return text + "[订]";
|
text = record.hasBackFlag?text+"[退]":text
|
||||||
} else {
|
return text
|
||||||
return text;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true,
|
{ title: '商品信息', dataIndex: 'materialsList',width:220, ellipsis:true,
|
||||||
|
|||||||
@@ -95,6 +95,13 @@
|
|||||||
{{model.accountName}}
|
{{model.accountName}}
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
<a-col v-if="model.hasBackFlag" :lg="24" :md="6" :sm="6">
|
||||||
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="退货单号">
|
||||||
|
<template v-for="(item, index) in linkNumberList">
|
||||||
|
<a @click="myHandleDetail(item.number)">{{item.number}}</a><br/>
|
||||||
|
</template>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
@@ -346,6 +353,15 @@
|
|||||||
{{model.debt}}
|
{{model.debt}}
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
<a-col v-if="model.hasBackFlag" :span="6">
|
||||||
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="退货单号">
|
||||||
|
<template v-for="(item, index) in linkNumberList">
|
||||||
|
<a @click="myHandleDetail(item.number)">{{item.number}}</a><br/>
|
||||||
|
</template>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col v-if="financialBillNoList.length" :span="6">
|
<a-col v-if="financialBillNoList.length" :span="6">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款单号">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款单号">
|
||||||
<template v-for="(item, index) in financialBillNoList">
|
<template v-for="(item, index) in financialBillNoList">
|
||||||
@@ -608,7 +624,13 @@
|
|||||||
{{model.debt}}
|
{{model.debt}}
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="6"></a-col>
|
<a-col v-if="model.hasBackFlag" :span="6">
|
||||||
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="退货单号">
|
||||||
|
<template v-for="(item, index) in linkNumberList">
|
||||||
|
<a @click="myHandleDetail(item.number)">{{item.number}}</a><br/>
|
||||||
|
</template>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :span="6">
|
<a-col :span="6">
|
||||||
@@ -1003,6 +1025,7 @@
|
|||||||
billPrintFlag: false,
|
billPrintFlag: false,
|
||||||
fileList: [],
|
fileList: [],
|
||||||
purchaseBySaleFlag: false,
|
purchaseBySaleFlag: false,
|
||||||
|
linkNumberList: [],
|
||||||
financialBillNoList: [],
|
financialBillNoList: [],
|
||||||
tableWidth: {
|
tableWidth: {
|
||||||
'width': '1500px'
|
'width': '1500px'
|
||||||
@@ -1415,6 +1438,13 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getBillListByLinkNumber(number) {
|
||||||
|
getAction('/depotHead/getBillListByLinkNumber', {number: number}).then(res => {
|
||||||
|
if(res && res.code === 200){
|
||||||
|
this.linkNumberList = res.data
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
getFinancialBillNoByBillId(billId) {
|
getFinancialBillNoByBillId(billId) {
|
||||||
getAction('/accountHead/getFinancialBillNoByBillId', {billId: billId}).then(res => {
|
getAction('/accountHead/getFinancialBillNoByBillId', {billId: billId}).then(res => {
|
||||||
if(res && res.code === 200){
|
if(res && res.code === 200){
|
||||||
@@ -1453,6 +1483,7 @@
|
|||||||
this.requestSubTableData(record, type, url, params);
|
this.requestSubTableData(record, type, url, params);
|
||||||
this.initPlatform()
|
this.initPlatform()
|
||||||
this.getSystemConfig()
|
this.getSystemConfig()
|
||||||
|
this.getBillListByLinkNumber(this.model.number)
|
||||||
this.getFinancialBillNoByBillId(this.model.id)
|
this.getFinancialBillNoByBillId(this.model.id)
|
||||||
},
|
},
|
||||||
requestSubTableData(record, type, url, params, success) {
|
requestSubTableData(record, type, url, params, success) {
|
||||||
|
|||||||
Reference in New Issue
Block a user