|
@@ -74,7 +74,7 @@
|
|
|
</el-select>
|
|
|
</ws-form-item>
|
|
|
<ws-form-item label="类型" span="1" prop="type">
|
|
|
- <ws-select v-model="deptBudgetList.type" disabled>
|
|
|
+ <ws-select v-model="deptBudgetList.type" >
|
|
|
<ws-option v-for="item in typeList" :key="'leixin'+item" :label="item" :value="item" />
|
|
|
</ws-select>
|
|
|
</ws-form-item>
|
|
@@ -157,7 +157,12 @@
|
|
|
<ws-input v-model="deptBudgetList.contractNo" placeholder="自动获取,不可编辑" maxlength="100" disabled size="small" />
|
|
|
</ws-form-item>
|
|
|
<ws-form-item v-if='serviceManagementType==1' label="成本(元/吨)" span="1" prop="cost">
|
|
|
- <ws-input v-model="deptBudgetList.cost" placeholder="自动获取,不可编辑" maxlength="100" disabled size="small" />
|
|
|
+ <ws-input v-model="deptBudgetList.cost" placeholder="自动获取,不可编辑" maxlength="100" size="small" />
|
|
|
+ <img width="17" height="18" style="
|
|
|
+ vertical-align: text-top;
|
|
|
+ position: relative;
|
|
|
+ top: -1px;
|
|
|
+ " src="../../../public/img/edit.png" @click="editClick(1)" alt="" />
|
|
|
</ws-form-item>
|
|
|
<ws-form-item v-if='serviceManagementType==1' label="提示" span="1" prop="tips">
|
|
|
<ws-input v-model="deptBudgetList.tips" placeholder="自动获取,不可编辑" maxlength="100" disabled size="small" />
|
|
@@ -174,7 +179,7 @@
|
|
|
</ws-form-item>
|
|
|
|
|
|
<ws-form-item v-if='statusTypetext=="初检"&&serviceManagementType==1' label="运费(元/吨)" span="1" prop="freight">
|
|
|
- <ws-input :disabled="disabledfright" v-model="deptBudgetList.freight" placeholder="请输入运费" size="small" type="number" @mousewheel.native.prevent />
|
|
|
+ <ws-input v-model="deptBudgetList.freight" placeholder="请输入运费" size="small" type="number" @mousewheel.native.prevent />
|
|
|
<img width="17" height="18" style="
|
|
|
vertical-align: text-top;
|
|
|
position: relative;
|
|
@@ -396,7 +401,38 @@
|
|
|
components: {
|
|
|
inspectInfoPrint
|
|
|
},
|
|
|
- watch: {},
|
|
|
+ watch: {
|
|
|
+ '$route' (to, from) {
|
|
|
+ console.log(this)
|
|
|
+ this.selectWarehouse()
|
|
|
+ var _saomaData = JSON.parse(localStorage.getItem('saoma_data'))
|
|
|
+ if(_saomaData){//缓存中有值,证明扫码进来的
|
|
|
+ this.warehouseName = _saomaData.warehouseName
|
|
|
+ this.warehouseNameChange(this.warehouseName)
|
|
|
+ let ids={}
|
|
|
+ ids.id = _saomaData.id
|
|
|
+ this.listclick(ids)
|
|
|
+ if(_saomaData.type == 1){
|
|
|
+ this.statusTypetext = '初检'
|
|
|
+ }else if(_saomaData.type == 2){
|
|
|
+ this.statusTypetext = '确认'
|
|
|
+ }else if(_saomaData.type == 3){
|
|
|
+ this.statusTypetext = '复检'
|
|
|
+ }
|
|
|
+ this.serviceManagementType = _saomaData.managementType
|
|
|
+ localStorage.removeItem('saoma_data');//第一次进来结束后清除缓存
|
|
|
+ }else{
|
|
|
+ let _WarehouseName = localStorage.getItem('houseSelfCollect_house1')
|
|
|
+ _WarehouseName = JSON.parse(_WarehouseName)
|
|
|
+ if (_WarehouseName) {
|
|
|
+ this.warehouseNameChange(_WarehouseName.value)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 对路由变化作出响应...
|
|
|
+ // this.routerParms.id=to.query.id
|
|
|
+ // this.reload()
|
|
|
+ },
|
|
|
+},
|
|
|
data() {
|
|
|
return {
|
|
|
//分页
|
|
@@ -439,10 +475,9 @@
|
|
|
grossWeight: 0,
|
|
|
tare: 0,
|
|
|
grade:'',
|
|
|
- inOutDate: '',
|
|
|
+ inOutDate: new Date(),
|
|
|
netWeight:0,
|
|
|
pureWeight:0,
|
|
|
- deductionWeight:0,
|
|
|
waterContent:'',
|
|
|
reWaterContent:'',
|
|
|
reGrade:'',
|
|
@@ -471,6 +506,7 @@
|
|
|
disabled2:false,
|
|
|
disabled1:false,
|
|
|
disabledfright:true,
|
|
|
+ disabledcost:true,
|
|
|
recheck:false,
|
|
|
storageType:[],
|
|
|
multiSelector1:[],
|
|
@@ -495,6 +531,7 @@
|
|
|
outContractNo:[],
|
|
|
carNumberList:[],
|
|
|
warehouseTradeCount:0,
|
|
|
+ warehouseTradeCount1:0,
|
|
|
options1:[],
|
|
|
editcar:false,
|
|
|
isGetCost:'',
|
|
@@ -525,7 +562,7 @@
|
|
|
// searchKeyWord:''
|
|
|
}
|
|
|
},
|
|
|
- activated(){
|
|
|
+ activated(){debugger
|
|
|
this.selectWarehouse()
|
|
|
var _saomaData = JSON.parse(localStorage.getItem('saoma_data'))
|
|
|
if(_saomaData){//缓存中有值,证明扫码进来的
|
|
@@ -551,7 +588,9 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+ mounted (){
|
|
|
+ debugger
|
|
|
+ },
|
|
|
methods: {
|
|
|
binNumberChange(e){
|
|
|
for (let i = 0; i < this.positionInfos.length; i++) {
|
|
@@ -591,11 +630,11 @@
|
|
|
this.goodsdisabled=false
|
|
|
}
|
|
|
},
|
|
|
- printSmall() {
|
|
|
- window.open('../../../static/inspectionnew.html?type=1&dataList=' + JSON.stringify(this.deptBudgetList))
|
|
|
+ printSmall() {
|
|
|
+ window.open('../../../static/inspection.html?type=1&dataList=' + JSON.stringify(this.deptBudgetList))
|
|
|
},
|
|
|
printBig() {
|
|
|
- window.open('../../../static/inspectionnew.html?type=2&dataList=' + JSON.stringify(this.deptBudgetList))
|
|
|
+ window.open('../../../static/inspection.html?type=2&dataList=' + JSON.stringify(this.deptBudgetList))
|
|
|
},
|
|
|
record(){
|
|
|
this.$router.push({path: 'inspectionManagementrecord' })
|
|
@@ -820,7 +859,7 @@
|
|
|
grossWeight: 0,
|
|
|
tare: 0,
|
|
|
grade:'',
|
|
|
- inOutDate: '',
|
|
|
+ inOutDate: new Date(),
|
|
|
netWeight:0,
|
|
|
pureWeight:0,
|
|
|
deductionWeight:0,
|
|
@@ -906,7 +945,7 @@
|
|
|
grossWeight: 0,
|
|
|
tare: 0,
|
|
|
grade:'',
|
|
|
- inOutDate: '',
|
|
|
+ inOutDate: new Date(),
|
|
|
netWeight:0,
|
|
|
pureWeight:0,
|
|
|
deductionWeight:0,
|
|
@@ -1075,10 +1114,9 @@
|
|
|
grossWeight: 0,
|
|
|
tare: 0,
|
|
|
grade:'',
|
|
|
- inOutDate: '',
|
|
|
+ inOutDate: new Date(),
|
|
|
netWeight:0,
|
|
|
pureWeight:0,
|
|
|
- deductionWeight:0,
|
|
|
waterContent:'',
|
|
|
reWaterContent:'',
|
|
|
reGrade:'',
|
|
@@ -1098,6 +1136,8 @@
|
|
|
boxNoOther:'',
|
|
|
titleNo:'',
|
|
|
titleNoOther:'',
|
|
|
+ inOutType:'',
|
|
|
+ inOutTypeKey:1
|
|
|
}
|
|
|
if(this.serviceManagementType==3){
|
|
|
var count=''
|
|
@@ -1177,10 +1217,9 @@
|
|
|
grossWeight: 0,
|
|
|
tare: 0,
|
|
|
grade:'',
|
|
|
- inOutDate: '',
|
|
|
+ inOutDate: new Date(),
|
|
|
netWeight:0,
|
|
|
pureWeight:0,
|
|
|
- deductionWeight:0,
|
|
|
waterContent:'',
|
|
|
reWaterContent:'',
|
|
|
reGrade:'',
|
|
@@ -1200,6 +1239,8 @@
|
|
|
boxNoOther:'',
|
|
|
titleNo:'',
|
|
|
titleNoOther:'',
|
|
|
+ inOutType:'',
|
|
|
+ inOutTypeKey:1
|
|
|
}
|
|
|
if(this.serviceManagementType==3){
|
|
|
var count=''
|
|
@@ -1313,6 +1354,7 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ this.deptBudgetList.dryGrainPrice = parseFloat(this.deptBudgetList.cost/1000).toFixed(3)
|
|
|
if (
|
|
|
this.deptBudgetList.cost < 0 ||
|
|
|
this.deptBudgetList.cost > 20000 ||
|
|
@@ -1889,6 +1931,9 @@
|
|
|
}
|
|
|
if(this.serviceManagementType==3){
|
|
|
this.warehouseCount+=1
|
|
|
+ }else{
|
|
|
+ this.warehouseTradeCount=Number(this.warehouseTradeCount)+1
|
|
|
+ this.warehouseTradeCount1=Number(this.warehouseTradeCount1)+1
|
|
|
}
|
|
|
|
|
|
this.$message.success('添加成功')
|
|
@@ -1970,7 +2015,7 @@
|
|
|
grossWeight: 0,
|
|
|
tare: 0,
|
|
|
grade:'',
|
|
|
- inOutDate: '',
|
|
|
+ inOutDate: new Date(),
|
|
|
netWeight:0,
|
|
|
pureWeight:0,
|
|
|
deductionWeight:0,
|
|
@@ -2042,10 +2087,9 @@
|
|
|
grossWeight: 0,
|
|
|
tare: 0,
|
|
|
grade:'',
|
|
|
- inOutDate: '',
|
|
|
+ inOutDate: new Date(),
|
|
|
netWeight:0,
|
|
|
pureWeight:0,
|
|
|
- deductionWeight:0,
|
|
|
waterContent:'',
|
|
|
reWaterContent:'',
|
|
|
reGrade:'',
|
|
@@ -2111,6 +2155,9 @@
|
|
|
}else if(status==2){
|
|
|
this.disabledfright=!this.disabledfright
|
|
|
}
|
|
|
+ else if(status==1){
|
|
|
+ this.disabledcost=!this.disabledcost
|
|
|
+ }
|
|
|
},
|
|
|
selectWarehouse() {
|
|
|
selectWarehouseSelf({
|
|
@@ -2128,6 +2175,7 @@
|
|
|
this.warehouseCount = response[i].count
|
|
|
console.log(response[i].tradeCount)
|
|
|
this.warehouseTradeCount = response[i].tradeCount
|
|
|
+ this.warehouseTradeCount1 = response[i].tradeCount
|
|
|
this.allowEdit = response[i].allowEdit
|
|
|
this.cangid = _wareHouse.warehouseId
|
|
|
this.warehouseName = response[i].warehouseName
|
|
@@ -2148,17 +2196,21 @@
|
|
|
this.warehouseName = response[i].warehouseName
|
|
|
this.warehouseCount = response[i].count
|
|
|
this.warehouseTradeCount = response[i].tradeCount
|
|
|
+ this.warehouseTradeCount1 = response[i].tradeCount
|
|
|
this.warehouseNo = response[i].commonWarehouseNo
|
|
|
this.allowEdit = response[i].allowEdit
|
|
|
+ this.positionInfos=response[i].positionInfos
|
|
|
}
|
|
|
if (this.warehouseList.length > 0 && !this.cangid) {
|
|
|
this.warehouseName = this.warehouseList[0].value
|
|
|
this.warehouseCount = this.warehouseList[0].count
|
|
|
this.warehouseTradeCount = this.warehouseList[0].tradeCount
|
|
|
+ this.warehouseTradeCount1 = this.warehouseList[0].tradeCount
|
|
|
this.warehouseNo = this.warehouseList[0].No
|
|
|
this.cangid = this.warehouseList[0].warehouseId
|
|
|
this.allowEdit = this.warehouseList[0].allowEdit
|
|
|
this.WAREHOUSE[1].payname = this.warehouseList[0].value
|
|
|
+ this.positionInfos=response[0].positionInfos
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -2234,8 +2286,8 @@
|
|
|
if (this.outContractNo[i].inOutType == '采购入库') {
|
|
|
this.customerName=this.outContractNo[i].buyer
|
|
|
this.customerPhone=this.outContractNo[i].buyerPhone
|
|
|
- console.log(this.warehouseTradeCount)
|
|
|
- this.warehouseTradeCount = '000' + Number(this.warehouseTradeCount + 1)
|
|
|
+ this.warehouseTradeCount=this.warehouseTradeCount1
|
|
|
+ this.warehouseTradeCount = '000' + (Number(this.warehouseTradeCount) + 1)
|
|
|
this.deptBudgetList.qualityNo='CGRK'+this.getTime()+this.warehouseNo+this.warehouseTradeCount.substring(this.warehouseTradeCount.length - 4)
|
|
|
if (!this.outContractNo[i].unitContractPrice) {
|
|
|
this.deptBudgetList.tips = '卖方' + this.outContractNo[i].seller
|
|
@@ -2245,7 +2297,7 @@
|
|
|
this.deptBudgetList.inOutTypeKey = 1
|
|
|
} else if (this.outContractNo[i].inOutType == '移库入库') {
|
|
|
this.customerName=localStorage.getItem('ws-pf_compName')
|
|
|
- this.warehouseTradeCount = '000' + Number(this.warehouseTradeCount + 1)
|
|
|
+ this.warehouseTradeCount = '000' + (Number(this.warehouseTradeCount) + 1)
|
|
|
this.deptBudgetList.qualityNo='YKRK'+this.getTime()+this.warehouseNo+this.warehouseTradeCount.substring(this.warehouseTradeCount.length - 4)
|
|
|
this.deptBudgetList.goodsName = data.goodsName
|
|
|
this.deptBudgetList.goodsNameKey = data.goodsNameKey
|
|
@@ -2315,6 +2367,8 @@
|
|
|
if (this.warehouseList[i].value == e) {
|
|
|
this.warehouseName = this.warehouseList[i].value
|
|
|
this.warehouseCount = this.warehouseList[i].count
|
|
|
+ this.warehouseTradeCount = this.warehouseList[i].tradeCount
|
|
|
+ this.warehouseTradeCount1 = this.warehouseList[i].tradeCount
|
|
|
this.warehouseNo = this.warehouseList[i].No
|
|
|
this.cangid = this.warehouseList[i].warehouseId
|
|
|
this.allowEdit = this.warehouseList[i].allowEdit
|
|
@@ -2361,7 +2415,7 @@
|
|
|
grossWeight: 0,
|
|
|
tare: 0,
|
|
|
grade:'',
|
|
|
- inOutDate: '',
|
|
|
+ inOutDate: new Date(),
|
|
|
netWeight:0,
|
|
|
pureWeight:0,
|
|
|
deductionWeight:0,
|