|
@@ -932,21 +932,23 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
//更换仓库
|
|
|
- changeWarehouse() {
|
|
|
- if (this.detailData.length != 0) {
|
|
|
- for (let li in this.detailData) {
|
|
|
- this.detailData[li].fWarehouseid = ''
|
|
|
+ changeWarehouse(item) {
|
|
|
+ if (item.label == "fWarehouseid"){
|
|
|
+ if (this.detailData.length != 0) {
|
|
|
+ for (let li in this.detailData) {
|
|
|
+ this.detailData[li].fWarehouseid = ''
|
|
|
+ }
|
|
|
}
|
|
|
+ getArea(this.detailForm.fWarehouseid).then(res => {
|
|
|
+ this.listData.fWarehouseid = []
|
|
|
+ for (let item in res.data) {
|
|
|
+ this.listData.fWarehouseid.push({
|
|
|
+ label: res.data[item].fWarehouseInformation,
|
|
|
+ value: res.data[item].id
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
- getArea(this.detailForm.fWarehouseid).then(res => {
|
|
|
- this.listData.fWarehouseid = []
|
|
|
- for (let item in res.data) {
|
|
|
- this.listData.fWarehouseid.push({
|
|
|
- label: res.data[item].fWarehouseInformation,
|
|
|
- value: res.data[item].id
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
},
|
|
|
//自动合计金额
|
|
|
totalAmount(scope,item) {
|