|
@@ -92,6 +92,13 @@
|
|
<el-button @click="carNoTypechange" v-if="tpyeNo == 2">{{ cartips }}
|
|
<el-button @click="carNoTypechange" v-if="tpyeNo == 2">{{ cartips }}
|
|
</el-button>
|
|
</el-button>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
+ <ws-form-item v-if="tpyeNo == 2 && warehouseType == 1" label="仓位号" span="1" prop="inOutTaskNo">
|
|
|
|
+ <el-select @change="binNumberchange" filterable clearable
|
|
|
|
+ v-model="weighingList.binNumber" placeholder="请选择仓位号" class="typeselect">
|
|
|
|
+ <el-option v-for="item in positionInfos" :key="item.id" :label="item.binNumber"
|
|
|
|
+ :value="item.binNumber" />
|
|
|
|
+ </el-select>
|
|
|
|
+ </ws-form-item>
|
|
<ws-form-item label="毛重(KG)" span="1" prop="grossWeight">
|
|
<ws-form-item label="毛重(KG)" span="1" prop="grossWeight">
|
|
<ws-input type="number" @mousewheel.native.prevent
|
|
<ws-input type="number" @mousewheel.native.prevent
|
|
v-model="weighingList.grossWeight" @input="calculation"
|
|
v-model="weighingList.grossWeight" @input="calculation"
|
|
@@ -237,6 +244,7 @@ export default {
|
|
tare: '',
|
|
tare: '',
|
|
netWeight: 0
|
|
netWeight: 0
|
|
},
|
|
},
|
|
|
|
+ positionInfos:[],
|
|
deptBudgetList: {},
|
|
deptBudgetList: {},
|
|
warehouseList: [],
|
|
warehouseList: [],
|
|
goodsNameList: [],
|
|
goodsNameList: [],
|
|
@@ -335,7 +343,7 @@ export default {
|
|
this.selectWarehouse()
|
|
this.selectWarehouse()
|
|
this.getGoodsList()
|
|
this.getGoodsList()
|
|
this.isShowBalance = true
|
|
this.isShowBalance = true
|
|
- this.openPort()
|
|
|
|
|
|
+ console.log(localStorage.getItem('compNameoptions'))
|
|
if(localStorage.getItem('compNameoptions')){
|
|
if(localStorage.getItem('compNameoptions')){
|
|
var company=JSON.parse(localStorage.getItem('compNameoptions'))
|
|
var company=JSON.parse(localStorage.getItem('compNameoptions'))
|
|
|
|
|
|
@@ -350,6 +358,7 @@ export default {
|
|
&&item!='黑龙江益储益运粮食贸易有限公司'
|
|
&&item!='黑龙江益储益运粮食贸易有限公司'
|
|
&&item!='黑龙江启兴粮食贸易有限公司'
|
|
&&item!='黑龙江启兴粮食贸易有限公司'
|
|
})
|
|
})
|
|
|
|
+ console.log(extra,1111111111111111)
|
|
if(extra.length>0){
|
|
if(extra.length>0){
|
|
this.companyNameOptions=[
|
|
this.companyNameOptions=[
|
|
{
|
|
{
|
|
@@ -460,6 +469,7 @@ export default {
|
|
}else{
|
|
}else{
|
|
this.ewCustomer=extra[0]
|
|
this.ewCustomer=extra[0]
|
|
}
|
|
}
|
|
|
|
+
|
|
for (let i = 0; i < extra.length; i++) {
|
|
for (let i = 0; i < extra.length; i++) {
|
|
this.ewCustomerOptions.push({value: extra[i],label:extra[i]})
|
|
this.ewCustomerOptions.push({value: extra[i],label:extra[i]})
|
|
this.companyNameOptions.push({value: extra[i],label:extra[i]})
|
|
this.companyNameOptions.push({value: extra[i],label:extra[i]})
|
|
@@ -467,8 +477,17 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ this.openPort()
|
|
|
|
+
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ binNumberchange(e) {
|
|
|
|
+ for (let i = 0; i < this.positionInfos.length; i++) {
|
|
|
|
+ if (this.positionInfos[i].binNumber == e) {
|
|
|
|
+ this.weighingList.positionId = this.positionInfos[i].id
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
changeEw(e) {
|
|
changeEw(e) {
|
|
this.ddchecked = false
|
|
this.ddchecked = false
|
|
if (e) {
|
|
if (e) {
|
|
@@ -755,10 +774,10 @@ export default {
|
|
this.weighingList.netWeight = ''
|
|
this.weighingList.netWeight = ''
|
|
getdrylist({id:this.weighingList.id}).toPromise()
|
|
getdrylist({id:this.weighingList.id}).toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
- console.log(1111111111)
|
|
|
|
this.printData=response
|
|
this.printData=response
|
|
this.isShowPrintTypeBills=true
|
|
this.isShowPrintTypeBills=true
|
|
})
|
|
})
|
|
|
|
+ console.log(this.weighingList)
|
|
this.getList()
|
|
this.getList()
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -770,6 +789,14 @@ export default {
|
|
},
|
|
},
|
|
tabClick(val) {
|
|
tabClick(val) {
|
|
this.weighingList = {}
|
|
this.weighingList = {}
|
|
|
|
+ for (let i = 0; i < this.warehouseList.length; i++) {
|
|
|
|
+ if (this.warehouseList[i].warehouseName == this.warehouseName) {
|
|
|
|
+ this.warehouseId = this.warehouseList[i].id
|
|
|
|
+ this.weighingList.baseId = this.warehouseList[i].id
|
|
|
|
+ this.weighingList.warehouseNo = this.warehouseList[i].commonWarehouseNo
|
|
|
|
+ this.positionInfos = this.warehouseList[i].positionInfos
|
|
|
|
+ }
|
|
|
|
+ }
|
|
this.index = val
|
|
this.index = val
|
|
if (val == 0) {
|
|
if (val == 0) {
|
|
this.information = '皮重'
|
|
this.information = '皮重'
|
|
@@ -787,6 +814,7 @@ export default {
|
|
this.warehouseId = this.warehouseList[i].id
|
|
this.warehouseId = this.warehouseList[i].id
|
|
this.weighingList.baseId = this.warehouseList[i].id
|
|
this.weighingList.baseId = this.warehouseList[i].id
|
|
this.weighingList.warehouseNo = this.warehouseList[i].commonWarehouseNo
|
|
this.weighingList.warehouseNo = this.warehouseList[i].commonWarehouseNo
|
|
|
|
+ this.positionInfos = this.warehouseList[i].positionInfos
|
|
// if (this.warehouseList[i].allowEdit == 1) {
|
|
// if (this.warehouseList[i].allowEdit == 1) {
|
|
// this.disabled = false
|
|
// this.disabled = false
|
|
// } else {
|
|
// } else {
|
|
@@ -831,11 +859,16 @@ export default {
|
|
this.weighingList.warehouseNo = obj.No
|
|
this.weighingList.warehouseNo = obj.No
|
|
this.getCarXiaLa()
|
|
this.getCarXiaLa()
|
|
this.getList()
|
|
this.getList()
|
|
|
|
+ for (let i = 0; i < response.length; i++) {
|
|
|
|
+ this.positionInfos = response[i].positionInfos
|
|
|
|
+
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
this.warehouseName = response[0].warehouseName
|
|
this.warehouseName = response[0].warehouseName
|
|
this.weighingList.baseId = response[0].id
|
|
this.weighingList.baseId = response[0].id
|
|
this.warehouseId = response[0].id
|
|
this.warehouseId = response[0].id
|
|
this.weighingList.warehouseNo = response[0].commonWarehouseNo
|
|
this.weighingList.warehouseNo = response[0].commonWarehouseNo
|
|
|
|
+ this.positionInfos = response[0].positionInfos
|
|
if (response[0].allowEdit == 1) {
|
|
if (response[0].allowEdit == 1) {
|
|
this.disabled = false
|
|
this.disabled = false
|
|
} else {
|
|
} else {
|
|
@@ -845,6 +878,7 @@ export default {
|
|
this.getList()
|
|
this.getList()
|
|
}
|
|
}
|
|
this.deptBudgetList.warehouseName = this.warehouseName
|
|
this.deptBudgetList.warehouseName = this.warehouseName
|
|
|
|
+
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getList() {
|
|
getList() {
|