|
@@ -431,6 +431,7 @@
|
|
fleetNameList:[],
|
|
fleetNameList:[],
|
|
outContractNo:[],
|
|
outContractNo:[],
|
|
carNumberList:[],
|
|
carNumberList:[],
|
|
|
|
+ warehouseTradeCount:0,
|
|
options1:[],
|
|
options1:[],
|
|
editcar:false,
|
|
editcar:false,
|
|
isGetCost:'',
|
|
isGetCost:'',
|
|
@@ -781,16 +782,16 @@
|
|
titleNo:'',
|
|
titleNo:'',
|
|
titleNoOther:'',
|
|
titleNoOther:'',
|
|
}
|
|
}
|
|
|
|
+ var count=''
|
|
if(this.serviceManagementType==3){
|
|
if(this.serviceManagementType==3){
|
|
- var count=''
|
|
|
|
- if(this.warehouseCount<10){
|
|
|
|
- count='000'+(this.warehouseCount+1)
|
|
|
|
|
|
+ if(this.warehouseTradeCount<10){
|
|
|
|
+ count='000'+(this.warehouseTradeCount+1)
|
|
}
|
|
}
|
|
- if(this.warehouseCount<100&&this.warehouseCount>=10){
|
|
|
|
- count='00'+(this.warehouseCount+1)
|
|
|
|
|
|
+ if(this.warehouseTradeCount<100&&this.warehouseTradeCount>=10){
|
|
|
|
+ count='00'+(this.warehouseTradeCount+1)
|
|
}
|
|
}
|
|
- if(this.warehouseCount<1000&&this.warehouseCount>=100){
|
|
|
|
- count='0'+(this.warehouseCount+1)
|
|
|
|
|
|
+ if(this.warehouseTradeCount<1000&&this.warehouseTradeCount>=100){
|
|
|
|
+ count='0'+(this.warehouseTradeCount+1)
|
|
}
|
|
}
|
|
this.deptBudgetList.qualityNo='SGRK'+this.getTime()+this.warehouseNo+count
|
|
this.deptBudgetList.qualityNo='SGRK'+this.getTime()+this.warehouseNo+count
|
|
}
|
|
}
|
|
@@ -869,14 +870,14 @@
|
|
}
|
|
}
|
|
if(this.serviceManagementType==3){
|
|
if(this.serviceManagementType==3){
|
|
var count=''
|
|
var count=''
|
|
- if(this.warehouseCount<10){
|
|
|
|
- count='000'+(this.warehouseCount+1)
|
|
|
|
|
|
+ if(this.warehouseTradeCount<10){
|
|
|
|
+ count='000'+(this.warehouseTradeCount+1)
|
|
}
|
|
}
|
|
- if(this.warehouseCount<100&&this.warehouseCount>=10){
|
|
|
|
- count='00'+(this.warehouseCount+1)
|
|
|
|
|
|
+ if(this.warehouseTradeCount<100&&this.warehouseTradeCount>=10){
|
|
|
|
+ count='00'+(this.warehouseTradeCount+1)
|
|
}
|
|
}
|
|
- if(this.warehouseCount<1000&&this.warehouseCount>=100){
|
|
|
|
- count='0'+(this.warehouseCount+1)
|
|
|
|
|
|
+ if(this.warehouseTradeCount<1000&&this.warehouseTradeCount>=100){
|
|
|
|
+ count='0'+(this.warehouseTradeCount+1)
|
|
}
|
|
}
|
|
this.deptBudgetList.qualityNo='SGRK'+this.getTime()+this.warehouseNo+count
|
|
this.deptBudgetList.qualityNo='SGRK'+this.getTime()+this.warehouseNo+count
|
|
}
|
|
}
|
|
@@ -1027,14 +1028,14 @@
|
|
}
|
|
}
|
|
if(this.serviceManagementType==3){
|
|
if(this.serviceManagementType==3){
|
|
var count=''
|
|
var count=''
|
|
- if(this.warehouseCount<10){
|
|
|
|
- count='000'+(this.warehouseCount+1)
|
|
|
|
|
|
+ if(this.warehouseTradeCount<10){
|
|
|
|
+ count='000'+(this.warehouseTradeCount+1)
|
|
}
|
|
}
|
|
- if(this.warehouseCount<100&&this.warehouseCount>=10){
|
|
|
|
- count='00'+(this.warehouseCount+1)
|
|
|
|
|
|
+ if(this.warehouseTradeCount<100&&this.warehouseTradeCount>=10){
|
|
|
|
+ count='00'+(this.warehouseTradeCount+1)
|
|
}
|
|
}
|
|
- if(this.warehouseCount<1000&&this.warehouseCount>=100){
|
|
|
|
- count='0'+(this.warehouseCount+1)
|
|
|
|
|
|
+ if(this.warehouseTradeCount<1000&&this.warehouseTradeCount>=100){
|
|
|
|
+ count='0'+(this.warehouseTradeCount+1)
|
|
}
|
|
}
|
|
this.deptBudgetList.qualityNo='SGRK'+this.getTime()+this.warehouseNo+count
|
|
this.deptBudgetList.qualityNo='SGRK'+this.getTime()+this.warehouseNo+count
|
|
}
|
|
}
|
|
@@ -1702,7 +1703,10 @@
|
|
if (this.reader) {
|
|
if (this.reader) {
|
|
this.reader.cancel()
|
|
this.reader.cancel()
|
|
}
|
|
}
|
|
- this.warehouseCount+=1
|
|
|
|
|
|
+ if(this.serviceManagementType==3){
|
|
|
|
+ this.warehouseTradeCount+=1
|
|
|
|
+ }
|
|
|
|
+
|
|
this.$message.success('添加成功')
|
|
this.$message.success('添加成功')
|
|
this.getList()
|
|
this.getList()
|
|
// this.$router.push({
|
|
// this.$router.push({
|
|
@@ -1937,6 +1941,7 @@
|
|
for (let i = 0; i < response.length; i++) {
|
|
for (let i = 0; i < response.length; i++) {
|
|
if (_wareHouse && response[i].warehouseName == _wareHouse.value) {
|
|
if (_wareHouse && response[i].warehouseName == _wareHouse.value) {
|
|
this.warehouseCount = response[i].count
|
|
this.warehouseCount = response[i].count
|
|
|
|
+ this.warehouseTradeCount = response[i].tradeCount
|
|
this.allowEdit = response[i].allowEdit
|
|
this.allowEdit = response[i].allowEdit
|
|
this.cangid = _wareHouse.warehouseId
|
|
this.cangid = _wareHouse.warehouseId
|
|
this.warehouseName = response[i].warehouseName
|
|
this.warehouseName = response[i].warehouseName
|
|
@@ -1947,6 +1952,7 @@
|
|
value: response[i].warehouseName,
|
|
value: response[i].warehouseName,
|
|
warehouseId: response[i].id,
|
|
warehouseId: response[i].id,
|
|
count: response[i].count,
|
|
count: response[i].count,
|
|
|
|
+ tradeCount : response[i].tradeCount,
|
|
No: response[i].commonWarehouseNo,
|
|
No: response[i].commonWarehouseNo,
|
|
allowEdit: response[i].allowEdit,
|
|
allowEdit: response[i].allowEdit,
|
|
compId: localStorage.getItem('ws-pf_compId')
|
|
compId: localStorage.getItem('ws-pf_compId')
|
|
@@ -1955,12 +1961,14 @@
|
|
if (this.cangid && this.cangid == response[i].id) {
|
|
if (this.cangid && this.cangid == response[i].id) {
|
|
this.warehouseName = response[i].warehouseName
|
|
this.warehouseName = response[i].warehouseName
|
|
this.warehouseCount = response[i].count
|
|
this.warehouseCount = response[i].count
|
|
|
|
+ this.warehouseTradeCount = response[i].tradeCount
|
|
this.warehouseNo = response[i].commonWarehouseNo
|
|
this.warehouseNo = response[i].commonWarehouseNo
|
|
this.allowEdit = response[i].allowEdit
|
|
this.allowEdit = response[i].allowEdit
|
|
}
|
|
}
|
|
if (this.warehouseList.length > 0 && !this.cangid) {
|
|
if (this.warehouseList.length > 0 && !this.cangid) {
|
|
this.warehouseName = this.warehouseList[0].value
|
|
this.warehouseName = this.warehouseList[0].value
|
|
this.warehouseCount = this.warehouseList[0].count
|
|
this.warehouseCount = this.warehouseList[0].count
|
|
|
|
+ this.warehouseTradeCount = this.warehouseList[0][0].tradeCount
|
|
this.warehouseNo = this.warehouseList[0].No
|
|
this.warehouseNo = this.warehouseList[0].No
|
|
this.cangid = this.warehouseList[0].warehouseId
|
|
this.cangid = this.warehouseList[0].warehouseId
|
|
this.allowEdit = this.warehouseList[0].allowEdit
|
|
this.allowEdit = this.warehouseList[0].allowEdit
|
|
@@ -1989,8 +1997,8 @@
|
|
this.serviceManagementType=status
|
|
this.serviceManagementType=status
|
|
if(status==3){
|
|
if(status==3){
|
|
//解决冲突别解决没了(注意)
|
|
//解决冲突别解决没了(注意)
|
|
- this.warehouseCount = '000' + Number(this.warehouseCount + 1)
|
|
|
|
- this.deptBudgetList.qualityNo='SGRK'+this.getTime()+this.warehouseNo+this.warehouseCount.substring(this.warehouseCount.length - 4)
|
|
|
|
|
|
+ this.warehouseTradeCount = '000' + Number(this.warehouseTradeCount + 1)
|
|
|
|
+ this.deptBudgetList.qualityNo='SGRK'+this.getTime()+this.warehouseNo+this.warehouseTradeCount.substring(this.warehouseTradeCount.length - 4)
|
|
}
|
|
}
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
@@ -2040,7 +2048,8 @@
|
|
if (this.outContractNo[i].inOutType == '采购入库') {
|
|
if (this.outContractNo[i].inOutType == '采购入库') {
|
|
this.customerName=this.carNumberList[e].buyer
|
|
this.customerName=this.carNumberList[e].buyer
|
|
this.customerPhone=this.carNumberList[e].buyerPhone
|
|
this.customerPhone=this.carNumberList[e].buyerPhone
|
|
- this.deptBudgetList.qualityNo='CGRK'+this.getTime()+this.warehouseNo+this.warehouseCount
|
|
|
|
|
|
+ this.warehouseCount = '000' + Number(this.warehouseCount + 1)
|
|
|
|
+ this.deptBudgetList.qualityNo='CGRK'+this.getTime()+this.warehouseNo+this.warehouseCount.substring(this.warehouseCount.length - 4)
|
|
if (!this.outContractNo[i].unitContractPrice) {
|
|
if (!this.outContractNo[i].unitContractPrice) {
|
|
this.deptBudgetList.tips = '卖方' + this.outContractNo[i].seller
|
|
this.deptBudgetList.tips = '卖方' + this.outContractNo[i].seller
|
|
} else {
|
|
} else {
|
|
@@ -2049,7 +2058,8 @@
|
|
this.deptBudgetList.inOutTypeKey = 1
|
|
this.deptBudgetList.inOutTypeKey = 1
|
|
} else if (this.outContractNo[i].inOutType == '移库入库') {
|
|
} else if (this.outContractNo[i].inOutType == '移库入库') {
|
|
this.customerName=localStorage.getItem('ws-pf_compName')
|
|
this.customerName=localStorage.getItem('ws-pf_compName')
|
|
- this.deptBudgetList.qualityNo='YKRK'+this.getTime()+this.warehouseNo+this.warehouseCount
|
|
|
|
|
|
+ this.warehouseCount = '000' + Number(this.warehouseCount + 1)
|
|
|
|
+ this.deptBudgetList.qualityNo='YKRK'+this.getTime()+this.warehouseNo+this.warehouseCount.substring(this.warehouseCount.length - 4)
|
|
this.deptBudgetList.goodsName = data.goodsName
|
|
this.deptBudgetList.goodsName = data.goodsName
|
|
this.deptBudgetList.goodsNameKey = data.goodsNameKey
|
|
this.deptBudgetList.goodsNameKey = data.goodsNameKey
|
|
this.deptBudgetList.grade = data.grade
|
|
this.deptBudgetList.grade = data.grade
|
|
@@ -2186,6 +2196,19 @@
|
|
titleNo:'',
|
|
titleNo:'',
|
|
titleNoOther:'',
|
|
titleNoOther:'',
|
|
}
|
|
}
|
|
|
|
+ if(this.serviceManagementType==3){
|
|
|
|
+ var count=''
|
|
|
|
+ if(this.warehouseTradeCount<10){
|
|
|
|
+ count='000'+(this.warehouseTradeCount+1)
|
|
|
|
+ }
|
|
|
|
+ if(this.warehouseTradeCount<100&&this.warehouseTradeCount>=10){
|
|
|
|
+ count='00'+(this.warehouseTradeCount+1)
|
|
|
|
+ }
|
|
|
|
+ if(this.warehouseTradeCount<1000&&this.warehouseTradeCount>=100){
|
|
|
|
+ count='0'+(this.warehouseTradeCount+1)
|
|
|
|
+ }
|
|
|
|
+ this.deptBudgetList.qualityNo='SGRK'+this.getTime()+this.warehouseNo+count
|
|
|
|
+ }
|
|
this.getList()
|
|
this.getList()
|
|
}
|
|
}
|
|
}
|
|
}
|