|
@@ -169,7 +169,7 @@
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <el-table ref="singleTable" :data="carList" highlight-current-row @current-change="handleCurrentChange"
|
|
|
|
|
|
+ <el-table ref="singleTable" :data="carList" highlight-current-row @current-change="handleCurrentChange"
|
|
style="width: 100%; overflow-y: scroll !important;; height: calc(100vh - 54vh);margin-top:20px">
|
|
style="width: 100%; overflow-y: scroll !important;; height: calc(100vh - 54vh);margin-top:20px">
|
|
<el-table-column property="number" label="业务编号">
|
|
<el-table-column property="number" label="业务编号">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -374,23 +374,20 @@
|
|
submitAllow: false,
|
|
submitAllow: false,
|
|
id: '',
|
|
id: '',
|
|
inOutDate: {},
|
|
inOutDate: {},
|
|
- idPrint:'',
|
|
|
|
|
|
+ idPrint: '',
|
|
ewCustomerOptions: [{
|
|
ewCustomerOptions: [{
|
|
- value: '中央储备粮宾县直属库有限公司',
|
|
|
|
- label: '中央储备粮宾县直属库有限公司'
|
|
|
|
- },{
|
|
|
|
- value: '黑龙江利润元粮食贸易有限公司',
|
|
|
|
- label: '黑龙江利润元粮食贸易有限公司'
|
|
|
|
- }, {
|
|
|
|
- value: '黑龙江众利合粮食贸易有限公司',
|
|
|
|
- label: '黑龙江众利合粮食贸易有限公司'
|
|
|
|
- }, {
|
|
|
|
- value: '黑龙江鑫满仓粮食贸易有限公司',
|
|
|
|
- label: '黑龙江鑫满仓粮食贸易有限公司'
|
|
|
|
- }, {
|
|
|
|
- value: '黑龙江中天昊元贸易有限公司',
|
|
|
|
- label: '黑龙江中天昊元贸易有限公司'
|
|
|
|
- }],
|
|
|
|
|
|
+ value: '黑龙江利润元粮食贸易有限公司',
|
|
|
|
+ label: '黑龙江利润元粮食贸易有限公司'
|
|
|
|
+ }, {
|
|
|
|
+ value: '黑龙江众利合粮食贸易有限公司',
|
|
|
|
+ label: '黑龙江众利合粮食贸易有限公司'
|
|
|
|
+ }, {
|
|
|
|
+ value: '黑龙江鑫满仓粮食贸易有限公司',
|
|
|
|
+ label: '黑龙江鑫满仓粮食贸易有限公司'
|
|
|
|
+ }, {
|
|
|
|
+ value: '黑龙江中天昊元贸易有限公司',
|
|
|
|
+ label: '黑龙江中天昊元贸易有限公司'
|
|
|
|
+ }],
|
|
companyNameOptions: [{
|
|
companyNameOptions: [{
|
|
value: '黑龙江利润元粮食贸易有限公司',
|
|
value: '黑龙江利润元粮食贸易有限公司',
|
|
label: '黑龙江利润元粮食贸易有限公司'
|
|
label: '黑龙江利润元粮食贸易有限公司'
|
|
@@ -411,14 +408,14 @@
|
|
companyName: '黑龙江利润元粮食贸易有限公司',
|
|
companyName: '黑龙江利润元粮食贸易有限公司',
|
|
companyNameEW: '厦门建发物产有限公司',
|
|
companyNameEW: '厦门建发物产有限公司',
|
|
ewCustomer: '黑龙江利润元粮食贸易有限公司',
|
|
ewCustomer: '黑龙江利润元粮食贸易有限公司',
|
|
- ewradio: '',
|
|
|
|
|
|
+ ewradio: '',
|
|
ddchecked: false,
|
|
ddchecked: false,
|
|
checked: false,
|
|
checked: false,
|
|
- isShowPrintType:false,
|
|
|
|
- dialogDataList:[],
|
|
|
|
- statusType:1,
|
|
|
|
- jjSelectPrintList:[],
|
|
|
|
- printSeparately:false,
|
|
|
|
|
|
+ isShowPrintType: false,
|
|
|
|
+ dialogDataList: [],
|
|
|
|
+ statusType: 1,
|
|
|
|
+ jjSelectPrintList: [],
|
|
|
|
+ printSeparately: false,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated() {
|
|
activated() {
|
|
@@ -454,7 +451,7 @@
|
|
this.tpyeNo = _saomaData.typeNo
|
|
this.tpyeNo = _saomaData.typeNo
|
|
this.inWarehouseType = _saomaData.managementType
|
|
this.inWarehouseType = _saomaData.managementType
|
|
localStorage.removeItem('saoma_data'); //第一次进来结束后清除缓存
|
|
localStorage.removeItem('saoma_data'); //第一次进来结束后清除缓存
|
|
- } else if ( localStorage.getItem('houseSelfCollect_house1')) {
|
|
|
|
|
|
+ } else if (localStorage.getItem('houseSelfCollect_house1')) {
|
|
this.warehouseName = JSON.parse(localStorage.getItem('houseSelfCollect_house1')).value
|
|
this.warehouseName = JSON.parse(localStorage.getItem('houseSelfCollect_house1')).value
|
|
for (var i = 0; i < response.length; i++) {
|
|
for (var i = 0; i < response.length; i++) {
|
|
if (this.warehouseName == this.warehouseList[i].warehouseName) {
|
|
if (this.warehouseName == this.warehouseList[i].warehouseName) {
|
|
@@ -466,12 +463,14 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- localStorage.setItem('houseSelfCollect_house1',JSON.stringify({ value: this.warehouseList[0].warehouseName,
|
|
|
|
- warehouseId: this.warehouseList[0].id,
|
|
|
|
- count: this.warehouseList[0].count,
|
|
|
|
- No: this.warehouseList[0].commonWarehouseNo,
|
|
|
|
- allowEdit: this.warehouseList[0].allowEdit,
|
|
|
|
- compId: localStorage.getItem('ws-pf_compId')}))
|
|
|
|
|
|
+ localStorage.setItem('houseSelfCollect_house1', JSON.stringify({
|
|
|
|
+ value: this.warehouseList[0].warehouseName,
|
|
|
|
+ warehouseId: this.warehouseList[0].id,
|
|
|
|
+ count: this.warehouseList[0].count,
|
|
|
|
+ No: this.warehouseList[0].commonWarehouseNo,
|
|
|
|
+ allowEdit: this.warehouseList[0].allowEdit,
|
|
|
|
+ compId: localStorage.getItem('ws-pf_compId')
|
|
|
|
+ }))
|
|
this.warehouseName = this.warehouseList[0].warehouseName
|
|
this.warehouseName = this.warehouseList[0].warehouseName
|
|
localStorage.setItem('ck', this.warehouseName)
|
|
localStorage.setItem('ck', this.warehouseName)
|
|
this.cangid = this.warehouseList[0].id
|
|
this.cangid = this.warehouseList[0].id
|
|
@@ -479,7 +478,7 @@
|
|
this.monitorUrl1 = this.warehouseList[0].monitorUrl1
|
|
this.monitorUrl1 = this.warehouseList[0].monitorUrl1
|
|
this.monitorUrl2 = this.warehouseList[0].monitorUrl2
|
|
this.monitorUrl2 = this.warehouseList[0].monitorUrl2
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
this.deptBudgetList.warehouseName = this.warehouseName
|
|
this.deptBudgetList.warehouseName = this.warehouseName
|
|
if (this.allowEdit == 0) {
|
|
if (this.allowEdit == 0) {
|
|
this.disabled = true
|
|
this.disabled = true
|
|
@@ -506,7 +505,7 @@
|
|
this.printSeparately = false
|
|
this.printSeparately = false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- changeEwDD(e) {
|
|
|
|
|
|
+ changeEwDD(e) {
|
|
this.checked = false
|
|
this.checked = false
|
|
if (e) {
|
|
if (e) {
|
|
this.printSeparately = true
|
|
this.printSeparately = true
|
|
@@ -514,43 +513,44 @@
|
|
this.printSeparately = false
|
|
this.printSeparately = false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- typePrintCannelClick() {
|
|
|
|
- this.ddchecked = false,
|
|
|
|
- this.checked = false,
|
|
|
|
- this.dialogDataList = []//打个打印取消时数组至空
|
|
|
|
|
|
+ typePrintCannelClick() {
|
|
|
|
+ this.ddchecked = false,
|
|
|
|
+ this.checked = false,
|
|
|
|
+ this.dialogDataList = [] //打个打印取消时数组至空
|
|
this.isShowPrintType = false
|
|
this.isShowPrintType = false
|
|
},
|
|
},
|
|
async typePrintClick(type) {
|
|
async typePrintClick(type) {
|
|
- getPrint({
|
|
|
|
- id: this.idPrint
|
|
|
|
- })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.dialogDataList = []//点击确认时先清空要打印的数组
|
|
|
|
- this.dialogData = response
|
|
|
|
- if (response.compName == '黑龙江秋收有限公司') {
|
|
|
|
- this.dialogData.compName = '黑龙江中天昊元贸易有限公司'
|
|
|
|
- }
|
|
|
|
- if (this.checked) {
|
|
|
|
- this.dialogDataList.push( this.dialogData)
|
|
|
|
- var _datas = JSON.stringify(this.dialogData)
|
|
|
|
- _datas = JSON.parse(_datas)
|
|
|
|
- _datas.compName = this.companyNameEW;
|
|
|
|
- _datas.customer = this.ewCustomer
|
|
|
|
- this.dialogDataList.push(_datas)
|
|
|
|
- }else if(this.ddchecked){
|
|
|
|
- _datas = this.dialogData
|
|
|
|
- _datas.compName = this.companyNameEW;
|
|
|
|
- _datas.customer = this.ewCustomer
|
|
|
|
- this.dialogDataList.push(_datas)
|
|
|
|
- }else{
|
|
|
|
- this.dialogData.compName = this.companyName
|
|
|
|
- this.dialogDataList.push( this.dialogData)
|
|
|
|
- }
|
|
|
|
- window.open('../../../../static/weightCheck.html?type=2&tableData=' + JSON.stringify(this.dialogDataList))
|
|
|
|
- // this.printBig("", this.radio)
|
|
|
|
- })
|
|
|
|
- .catch((response) => {})
|
|
|
|
|
|
+ getPrint({
|
|
|
|
+ id: this.idPrint
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.dialogDataList = [] //点击确认时先清空要打印的数组
|
|
|
|
+ this.dialogData = response
|
|
|
|
+ if (response.compName == '黑龙江秋收有限公司') {
|
|
|
|
+ this.dialogData.compName = '黑龙江中天昊元贸易有限公司'
|
|
|
|
+ }
|
|
|
|
+ if (this.checked) {
|
|
|
|
+ this.dialogDataList.push(this.dialogData)
|
|
|
|
+ var _datas = JSON.stringify(this.dialogData)
|
|
|
|
+ _datas = JSON.parse(_datas)
|
|
|
|
+ _datas.compName = this.companyNameEW;
|
|
|
|
+ _datas.customer = this.ewCustomer
|
|
|
|
+ this.dialogDataList.push(_datas)
|
|
|
|
+ } else if (this.ddchecked) {
|
|
|
|
+ _datas = this.dialogData
|
|
|
|
+ _datas.compName = this.companyNameEW;
|
|
|
|
+ _datas.customer = this.ewCustomer
|
|
|
|
+ this.dialogDataList.push(_datas)
|
|
|
|
+ } else {
|
|
|
|
+ this.dialogData.compName = this.companyName
|
|
|
|
+ this.dialogDataList.push(this.dialogData)
|
|
|
|
+ }
|
|
|
|
+ window.open('../../../../static/weightCheck.html?type=2&tableData=' + JSON.stringify(this
|
|
|
|
+ .dialogDataList))
|
|
|
|
+ // this.printBig("", this.radio)
|
|
|
|
+ })
|
|
|
|
+ .catch((response) => {})
|
|
},
|
|
},
|
|
warehouseNameChange() {
|
|
warehouseNameChange() {
|
|
localStorage.setItem('ck', this.warehouseName)
|
|
localStorage.setItem('ck', this.warehouseName)
|
|
@@ -558,12 +558,14 @@
|
|
this.deptBudgetList.warehouseName = this.warehouseName
|
|
this.deptBudgetList.warehouseName = this.warehouseName
|
|
for (var i = 0; i < this.warehouseList.length; i++) {
|
|
for (var i = 0; i < this.warehouseList.length; i++) {
|
|
if (this.warehouseName == this.warehouseList[i].warehouseName) {
|
|
if (this.warehouseName == this.warehouseList[i].warehouseName) {
|
|
- localStorage.setItem('houseSelfCollect_house1',JSON.stringify({ value: this.warehouseList[i].warehouseName,
|
|
|
|
- warehouseId: this.warehouseList[i].id,
|
|
|
|
- count: this.warehouseList[i].count,
|
|
|
|
- No: this.warehouseList[i].commonWarehouseNo,
|
|
|
|
- allowEdit: this.warehouseList[i].allowEdit,
|
|
|
|
- compId: localStorage.getItem('ws-pf_compId')}))
|
|
|
|
|
|
+ localStorage.setItem('houseSelfCollect_house1', JSON.stringify({
|
|
|
|
+ value: this.warehouseList[i].warehouseName,
|
|
|
|
+ warehouseId: this.warehouseList[i].id,
|
|
|
|
+ count: this.warehouseList[i].count,
|
|
|
|
+ No: this.warehouseList[i].commonWarehouseNo,
|
|
|
|
+ allowEdit: this.warehouseList[i].allowEdit,
|
|
|
|
+ compId: localStorage.getItem('ws-pf_compId')
|
|
|
|
+ }))
|
|
this.cangid = this.warehouseList[i].id
|
|
this.cangid = this.warehouseList[i].id
|
|
this.monitorUrl1 = this.warehouseList[i].monitorUrl1
|
|
this.monitorUrl1 = this.warehouseList[i].monitorUrl1
|
|
this.monitorUrl2 = this.warehouseList[i].monitorUrl2
|
|
this.monitorUrl2 = this.warehouseList[i].monitorUrl2
|
|
@@ -594,7 +596,6 @@
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
setVal(data) {
|
|
setVal(data) {
|
|
- debugger
|
|
|
|
if (this.information == '毛重') {
|
|
if (this.information == '毛重') {
|
|
this.weighingList.grossWeight = data
|
|
this.weighingList.grossWeight = data
|
|
} else {
|
|
} else {
|
|
@@ -608,29 +609,29 @@
|
|
this.status = status
|
|
this.status = status
|
|
if (status == 2) {
|
|
if (status == 2) {
|
|
if (this.tpyeNo == 1) {
|
|
if (this.tpyeNo == 1) {
|
|
- this.statusType=1
|
|
|
|
- this.getList( )
|
|
|
|
|
|
+ this.statusType = 1
|
|
|
|
+ this.getList()
|
|
// this.carList = this.carList1.filter(function(item) {
|
|
// this.carList = this.carList1.filter(function(item) {
|
|
// return item.status == '已称毛重'
|
|
// return item.status == '已称毛重'
|
|
// })
|
|
// })
|
|
} else {
|
|
} else {
|
|
- this.statusType=3
|
|
|
|
- this.getList( )
|
|
|
|
|
|
+ this.statusType = 3
|
|
|
|
+ this.getList()
|
|
// this.carList = this.carList1.filter(function(item) {
|
|
// this.carList = this.carList1.filter(function(item) {
|
|
// return item.status == '已称皮重'
|
|
// return item.status == '已称皮重'
|
|
// })
|
|
// })
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
if (this.tpyeNo == 1) {
|
|
if (this.tpyeNo == 1) {
|
|
- this.statusType=1
|
|
|
|
- this.getList( )
|
|
|
|
|
|
+ this.statusType = 1
|
|
|
|
+ this.getList()
|
|
// this.mListTop.concat(this.mListBottom)
|
|
// this.mListTop.concat(this.mListBottom)
|
|
// this.carList = this.carList1.filter(function(item) {
|
|
// this.carList = this.carList1.filter(function(item) {
|
|
// return item.status == '已质检'
|
|
// return item.status == '已质检'
|
|
// })
|
|
// })
|
|
} else {
|
|
} else {
|
|
- this.statusType=2
|
|
|
|
- this.getList( )
|
|
|
|
|
|
+ this.statusType = 2
|
|
|
|
+ this.getList()
|
|
// this.carList = this.carList1.filter(function(item) {
|
|
// this.carList = this.carList1.filter(function(item) {
|
|
// return item.status == '已称毛重'
|
|
// return item.status == '已称毛重'
|
|
// })
|
|
// })
|
|
@@ -651,7 +652,7 @@
|
|
.then((response) => {
|
|
.then((response) => {
|
|
this.purchasePriceList = response
|
|
this.purchasePriceList = response
|
|
})
|
|
})
|
|
- getweighingList({
|
|
|
|
|
|
+ getweighingList({
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
currentPage: this.currentPage,
|
|
currentPage: this.currentPage,
|
|
pageSize: 99,
|
|
pageSize: 99,
|
|
@@ -674,7 +675,7 @@
|
|
currentPage: this.currentPage,
|
|
currentPage: this.currentPage,
|
|
pageSize: this.pageSize,
|
|
pageSize: this.pageSize,
|
|
searchKeyWord: '',
|
|
searchKeyWord: '',
|
|
- statusType:this.statusType,
|
|
|
|
|
|
+ statusType: this.statusType,
|
|
warehouseName: this.warehouseName,
|
|
warehouseName: this.warehouseName,
|
|
managementType: 1,
|
|
managementType: 1,
|
|
serviceManagementType: this.inWarehouseType,
|
|
serviceManagementType: this.inWarehouseType,
|
|
@@ -682,7 +683,7 @@
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
- this.deptBudgetTotal =response.total
|
|
|
|
|
|
+ this.deptBudgetTotal = response.total
|
|
this.weighingList = response.records
|
|
this.weighingList = response.records
|
|
})
|
|
})
|
|
.catch((response) => {
|
|
.catch((response) => {
|
|
@@ -996,8 +997,7 @@
|
|
},
|
|
},
|
|
handleCurrentChange(val) {
|
|
handleCurrentChange(val) {
|
|
this.submitAllow = false
|
|
this.submitAllow = false
|
|
- if (this.tpyeNo == 2 && this.status == 1 && val && val.qualityInspectionManagement.confirm == 0
|
|
|
|
- ) {
|
|
|
|
|
|
+ if (this.tpyeNo == 2 && this.status == 1 && val && val.qualityInspectionManagement.confirm == 0) {
|
|
this.submitAllow = true
|
|
this.submitAllow = true
|
|
this.$message({
|
|
this.$message({
|
|
message: '该条质检信息未确认',
|
|
message: '该条质检信息未确认',
|
|
@@ -1087,14 +1087,14 @@
|
|
this.weighingList = this.inOutDate
|
|
this.weighingList = this.inOutDate
|
|
this.weighingList.pictureAddress = response.data.url
|
|
this.weighingList.pictureAddress = response.data.url
|
|
tare(this.weighingList)
|
|
tare(this.weighingList)
|
|
- .toPromise()
|
|
|
|
- .then((response) => {})
|
|
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {})
|
|
|
|
|
|
} else {
|
|
} else {
|
|
this.weighingList.pictureAddress = response.data.url
|
|
this.weighingList.pictureAddress = response.data.url
|
|
tare(this.weighingList)
|
|
tare(this.weighingList)
|
|
- .toPromise()
|
|
|
|
- .then((response) => {})
|
|
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {})
|
|
}
|
|
}
|
|
})
|
|
})
|
|
this.dialogTableVisible = true
|
|
this.dialogTableVisible = true
|
|
@@ -1105,8 +1105,27 @@
|
|
closePrint() {
|
|
closePrint() {
|
|
this.isShowPrint = false
|
|
this.isShowPrint = false
|
|
},
|
|
},
|
|
|
|
+ check(name, type) {
|
|
|
|
+ if (type == 1) {
|
|
|
|
+ for (var _tmp = 0; _tmp < this.ewCustomerOptions.length; _tmp++) {
|
|
|
|
+ if (this.ewCustomerOptions[_tmp].label == name) {
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return true
|
|
|
|
+ } else if (type == 2) {
|
|
|
|
+ for (var _tmp = 0; _tmp < this.companyNameEWOptions.length; _tmp++) {
|
|
|
|
+ if (this.companyNameEWOptions[_tmp].label == name) {
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return true
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ },
|
|
print() {
|
|
print() {
|
|
-
|
|
|
|
|
|
+
|
|
if (this.reader) {
|
|
if (this.reader) {
|
|
this.reader.cancel()
|
|
this.reader.cancel()
|
|
}
|
|
}
|
|
@@ -1189,11 +1208,11 @@
|
|
return
|
|
return
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if(this.tpyeNo == 2) {
|
|
|
|
- if(this.submitAllow){
|
|
|
|
- this.$message.error('该条质检信息未确认')
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ if (this.tpyeNo == 2) {
|
|
|
|
+ if (this.submitAllow) {
|
|
|
|
+ this.$message.error('该条质检信息未确认')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
}
|
|
}
|
|
this.$confirm('确定保存检斤信息?', '提示', {
|
|
this.$confirm('确定保存检斤信息?', '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
@@ -1225,86 +1244,86 @@
|
|
}
|
|
}
|
|
if (this.tpyeNo == 1) {
|
|
if (this.tpyeNo == 1) {
|
|
// console.log(this.weighingList)
|
|
// console.log(this.weighingList)
|
|
- if(this.weighingList.customerNumberCard){
|
|
|
|
|
|
+ if (this.weighingList.customerNumberCard) {
|
|
//毛检保存前进行校验
|
|
//毛检保存前进行校验
|
|
getamount({
|
|
getamount({
|
|
- compId: localStorage.getItem('ws-pf_compId'),
|
|
|
|
- customerNumberCard: this.weighingList.customerNumberCard,
|
|
|
|
- goodsName: this.weighingList.goodsName,
|
|
|
|
- })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- for (let i = 0; i < this.purchasePriceList.length; i++) {
|
|
|
|
- if (
|
|
|
|
- this.weighingList.goodsName ==
|
|
|
|
- this.purchasePriceList[i].goodsName
|
|
|
|
- ) {
|
|
|
|
- //累计售粮超上限不能完成毛检保存
|
|
|
|
- let count = (
|
|
|
|
- this.purchasePriceList[i].saleLimit -
|
|
|
|
- response / 1000
|
|
|
|
- ).toFixed(2)
|
|
|
|
- // console.log(this.weighingList.grossWeight / 1000, '毛重转吨')
|
|
|
|
- // this.weighingList.grossWeight/=1000
|
|
|
|
- if (count - this.weighingList.grossWeight / 1000 < 0) {
|
|
|
|
- this.$alert(
|
|
|
|
- '该客户累计销售' +
|
|
|
|
- this.weighingList.goodsName +
|
|
|
|
- (response / 1000).toFixed(2) +
|
|
|
|
- '吨,还可售粮' +
|
|
|
|
- count +
|
|
|
|
- '吨',
|
|
|
|
- '提示', {
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- callback: (action) => {
|
|
|
|
- this.$message({
|
|
|
|
- type: 'info',
|
|
|
|
- message: `累计售粮已超出上限`,
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- }
|
|
|
|
- )
|
|
|
|
- } else {
|
|
|
|
- //累计售粮没有超上限完成毛检保存
|
|
|
|
- // this.weighingList.relationId = this.relationId;
|
|
|
|
- grossWeight(this.weighingList)
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- if (this.reader) {
|
|
|
|
- this.reader.cancel()
|
|
|
|
|
|
+ compId: localStorage.getItem('ws-pf_compId'),
|
|
|
|
+ customerNumberCard: this.weighingList.customerNumberCard,
|
|
|
|
+ goodsName: this.weighingList.goodsName,
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ for (let i = 0; i < this.purchasePriceList.length; i++) {
|
|
|
|
+ if (
|
|
|
|
+ this.weighingList.goodsName ==
|
|
|
|
+ this.purchasePriceList[i].goodsName
|
|
|
|
+ ) {
|
|
|
|
+ //累计售粮超上限不能完成毛检保存
|
|
|
|
+ let count = (
|
|
|
|
+ this.purchasePriceList[i].saleLimit -
|
|
|
|
+ response / 1000
|
|
|
|
+ ).toFixed(2)
|
|
|
|
+ // console.log(this.weighingList.grossWeight / 1000, '毛重转吨')
|
|
|
|
+ // this.weighingList.grossWeight/=1000
|
|
|
|
+ if (count - this.weighingList.grossWeight / 1000 < 0) {
|
|
|
|
+ this.$alert(
|
|
|
|
+ '该客户累计销售' +
|
|
|
|
+ this.weighingList.goodsName +
|
|
|
|
+ (response / 1000).toFixed(2) +
|
|
|
|
+ '吨,还可售粮' +
|
|
|
|
+ count +
|
|
|
|
+ '吨',
|
|
|
|
+ '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ callback: (action) => {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'info',
|
|
|
|
+ message: `累计售粮已超出上限`,
|
|
|
|
+ })
|
|
|
|
+ },
|
|
}
|
|
}
|
|
- this.$notify.success({
|
|
|
|
- title: '成功',
|
|
|
|
- message: '保存成功',
|
|
|
|
- })
|
|
|
|
- this.getList()
|
|
|
|
- //贸易入库需要再走入库接口
|
|
|
|
- if (this.inWarehouseType == 1) {
|
|
|
|
- warehousing.grossWeight /= 1000
|
|
|
|
- warehousing.tare /= 1000
|
|
|
|
- warehousing.netWeight /= 1000
|
|
|
|
- warehousing.pureWeight = 1000
|
|
|
|
- warehousing.deductionAmount *= 1000
|
|
|
|
- warehousing.deductionWeight /= 1000
|
|
|
|
- warehousing.statusFlag = 1
|
|
|
|
- warehousing.inOutFlag =
|
|
|
|
- warehousing.id=warehousing.warehouseInOutId
|
|
|
|
- addstorageputList(warehousing).toPromise().then((response) => {
|
|
|
|
- if(response == 'OK'){
|
|
|
|
- this.getList()
|
|
|
|
- }
|
|
|
|
|
|
+ )
|
|
|
|
+ } else {
|
|
|
|
+ //累计售粮没有超上限完成毛检保存
|
|
|
|
+ // this.weighingList.relationId = this.relationId;
|
|
|
|
+ grossWeight(this.weighingList)
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ if (this.reader) {
|
|
|
|
+ this.reader.cancel()
|
|
|
|
+ }
|
|
|
|
+ this.$notify.success({
|
|
|
|
+ title: '成功',
|
|
|
|
+ message: '保存成功',
|
|
})
|
|
})
|
|
- }
|
|
|
|
- })
|
|
|
|
- .catch((response) => {
|
|
|
|
- // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
|
- })
|
|
|
|
|
|
+ this.getList()
|
|
|
|
+ //贸易入库需要再走入库接口
|
|
|
|
+ if (this.inWarehouseType == 1) {
|
|
|
|
+ warehousing.grossWeight /= 1000
|
|
|
|
+ warehousing.tare /= 1000
|
|
|
|
+ warehousing.netWeight /= 1000
|
|
|
|
+ warehousing.pureWeight = 1000
|
|
|
|
+ warehousing.deductionAmount *= 1000
|
|
|
|
+ warehousing.deductionWeight /= 1000
|
|
|
|
+ warehousing.statusFlag = 1
|
|
|
|
+ warehousing.inOutFlag =
|
|
|
|
+ warehousing.id = warehousing.warehouseInOutId
|
|
|
|
+ addstorageputList(warehousing).toPromise().then((response) => {
|
|
|
|
+ if (response == 'OK') {
|
|
|
|
+ this.getList()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .catch((response) => {
|
|
|
|
+ // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }
|
|
|
|
- })
|
|
|
|
- }else{
|
|
|
|
- grossWeight(this.weighingList)
|
|
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ grossWeight(this.weighingList)
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
if (this.reader) {
|
|
if (this.reader) {
|
|
@@ -1326,9 +1345,9 @@
|
|
warehousing.statusFlag = 1
|
|
warehousing.statusFlag = 1
|
|
warehousing.inOutFlag = 2
|
|
warehousing.inOutFlag = 2
|
|
delete warehousing.status
|
|
delete warehousing.status
|
|
- warehousing.id=warehousing.warehouseInOutId
|
|
|
|
|
|
+ warehousing.id = warehousing.warehouseInOutId
|
|
addstorageputList(warehousing).toPromise().then((response) => {
|
|
addstorageputList(warehousing).toPromise().then((response) => {
|
|
- if(response == 'OK'){
|
|
|
|
|
|
+ if (response == 'OK') {
|
|
this.getList()
|
|
this.getList()
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -1339,7 +1358,7 @@
|
|
})
|
|
})
|
|
}
|
|
}
|
|
} else if (this.tpyeNo == 2) {
|
|
} else if (this.tpyeNo == 2) {
|
|
- console.log(this.inWarehouseType )
|
|
|
|
|
|
+ console.log(this.inWarehouseType)
|
|
this.weighingList.warehouseId = this.cangid;
|
|
this.weighingList.warehouseId = this.cangid;
|
|
this.weighingList.skinInspector = localStorage.getItem('ws-pf_staffName')
|
|
this.weighingList.skinInspector = localStorage.getItem('ws-pf_staffName')
|
|
tare(this.weighingList)
|
|
tare(this.weighingList)
|
|
@@ -1354,9 +1373,26 @@
|
|
message: '保存成功',
|
|
message: '保存成功',
|
|
})
|
|
})
|
|
this.idPrint = response
|
|
this.idPrint = response
|
|
|
|
+ if (this.weighingList.serviceManagementType == 1 && (this.warehouseName == '鲅鱼圈金信库' || this
|
|
|
|
+ .warehouseName == '白城内陆港')) {
|
|
|
|
+ if (this.weighingList.seller && this.weighingList.buyer) {
|
|
|
|
+ let cang = {}
|
|
|
|
+ cang.value = this.weighingList.seller
|
|
|
|
+ cang.label = this.weighingList.seller
|
|
|
|
+ if (this.check(this.weighingList.seller, 1)) {
|
|
|
|
+ this.ewCustomerOptions.push(cang)
|
|
|
|
+ }
|
|
|
|
+ let cang1 = {}
|
|
|
|
+ cang1.value = this.weighingList.buyer
|
|
|
|
+ cang1.label = this.weighingList.buyer
|
|
|
|
+ if (this.check(this.weighingList.buyer, 2)) {
|
|
|
|
+ this.companyNameEWOptions.push(cang1)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
this.isShowPrintType = true
|
|
this.isShowPrintType = true
|
|
this.getList()
|
|
this.getList()
|
|
-
|
|
|
|
|
|
+
|
|
//贸易入库需要再走入库接口
|
|
//贸易入库需要再走入库接口
|
|
if (this.inWarehouseType == 1) {
|
|
if (this.inWarehouseType == 1) {
|
|
|
|
|
|
@@ -1373,18 +1409,17 @@
|
|
warehousing.deductionWeight /= 1000
|
|
warehousing.deductionWeight /= 1000
|
|
warehousing.inOutFlag = 2
|
|
warehousing.inOutFlag = 2
|
|
console.log(that.weighingList)
|
|
console.log(that.weighingList)
|
|
- warehousing.inOutTypeKey=that.weighingList.inOutTypeKey
|
|
|
|
- warehousing.inOutType=that.weighingList.inOutType
|
|
|
|
- warehousing.deductionAmount=that.weighingList.deductionAmount
|
|
|
|
- warehousing.id=warehousing.warehouseInOutId
|
|
|
|
|
|
+ warehousing.inOutTypeKey = that.weighingList.inOutTypeKey
|
|
|
|
+ warehousing.inOutType = that.weighingList.inOutType
|
|
|
|
+ warehousing.deductionAmount = that.weighingList.deductionAmount
|
|
|
|
+ warehousing.id = warehousing.warehouseInOutId
|
|
// delete that.inOutDate.status
|
|
// delete that.inOutDate.status
|
|
that.inOutDate = Object.assign(that.inOutDate, warehousing)
|
|
that.inOutDate = Object.assign(that.inOutDate, warehousing)
|
|
addstorageputList(that.inOutDate).toPromise().then((response) => {})
|
|
addstorageputList(that.inOutDate).toPromise().then((response) => {})
|
|
})
|
|
})
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- .catch((response) => {
|
|
|
|
- })
|
|
|
|
|
|
+ .catch((response) => {})
|
|
}
|
|
}
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
@@ -1820,6 +1855,7 @@
|
|
font-weight: 600;
|
|
font-weight: 600;
|
|
text-align: left;
|
|
text-align: left;
|
|
}
|
|
}
|
|
|
|
+
|
|
.mask {
|
|
.mask {
|
|
background: black;
|
|
background: black;
|
|
width: 100vw;
|
|
width: 100vw;
|
|
@@ -1937,16 +1973,19 @@
|
|
padding: 0 20px;
|
|
padding: 0 20px;
|
|
margin-top: 20px;
|
|
margin-top: 20px;
|
|
}
|
|
}
|
|
- /deep/.el-table__body .current-row td{
|
|
|
|
- border-top: 4px solid #2aff7c ;
|
|
|
|
- border-bottom: 4px solid #2aff7c ;
|
|
|
|
|
|
+
|
|
|
|
+ /deep/.el-table__body .current-row td {
|
|
|
|
+ border-top: 4px solid #2aff7c;
|
|
|
|
+ border-bottom: 4px solid #2aff7c;
|
|
}
|
|
}
|
|
- /deep/.el-table__body .current-row td:first-child{
|
|
|
|
- border-left: 4px solid #2aff7c ;
|
|
|
|
|
|
+
|
|
|
|
+ /deep/.el-table__body .current-row td:first-child {
|
|
|
|
+ border-left: 4px solid #2aff7c;
|
|
// border-bottom: 1px solid #2aff7c ;
|
|
// border-bottom: 1px solid #2aff7c ;
|
|
}
|
|
}
|
|
- /deep/.el-table__body .current-row td:last-child{
|
|
|
|
- border-right: 4px solid #2aff7c ;
|
|
|
|
|
|
+
|
|
|
|
+ /deep/.el-table__body .current-row td:last-child {
|
|
|
|
+ border-right: 4px solid #2aff7c;
|
|
// border-bottom: 1px solid #2aff7c ;
|
|
// border-bottom: 1px solid #2aff7c ;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|