|
@@ -776,13 +776,13 @@
|
|
|
this.$refs.weightChild.openPort()
|
|
|
},
|
|
|
|
|
|
- listclick(row) {debugger
|
|
|
+ listclick(row) {
|
|
|
this.id = row.id
|
|
|
getweighing({
|
|
|
id: row.id,
|
|
|
})
|
|
|
.toPromise()
|
|
|
- .then((response) => {debugger
|
|
|
+ .then((response) => {
|
|
|
this.weighingList = response
|
|
|
// this.weighingList.grossWeight = this.weighingList.grossWeight * 1000
|
|
|
// this.weighingList.tare = this.weighingList.tare * 1000
|
|
@@ -889,6 +889,12 @@
|
|
|
}
|
|
|
},
|
|
|
print() {
|
|
|
+ if(this.tpyeNo==2){
|
|
|
+ if(this.weighingList.qualityInspectionManagement.status != '已质检'){
|
|
|
+ this.$message.error("该条信息未质检!")
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
this.weighingList.carNumber = this.weighingList.carNo
|
|
|
if (this.types == 1 || this.types == 2) {
|
|
|
if (!this.weighingList.contractNo) {
|
|
@@ -1575,9 +1581,13 @@
|
|
|
},
|
|
|
contractNoChange(e) {
|
|
|
this.warehouseCount = this.warehouseCount1
|
|
|
- console.log(this.warehouseCount)
|
|
|
for (let i = 0; i < this.taskNolist.length; i++) {
|
|
|
if (this.taskNolist[i].inOutTaskNo == e) {
|
|
|
+ // this.weighingList.number = this.taskNolist[i].inOutTaskNo
|
|
|
+ this.warehouseCount = '000' + (Number(this.warehouseCount) + 1)
|
|
|
+ this.weighingList.number = 'XSCK' + this.getTime() + this.warehouseNo + this.warehouseCount.substring(this.warehouseCount.length - 4)
|
|
|
+ this.weighingList.goodsName = this.taskNolist[i].goodsName
|
|
|
+ this.weighingList.tips = this.taskNolist[i].businessDescribe
|
|
|
var data = this.taskNolist[i]
|
|
|
if (this.taskNolist[i].contractNo) {
|
|
|
// console.log(this.taskNolist[i])
|
|
@@ -1601,11 +1611,7 @@
|
|
|
this.weighingList.inOutType = this.outContractNo[i].inOutType
|
|
|
if (this.outContractNo[i].inOutType == '销售出库') {
|
|
|
this.warehouseCount = '000' + (Number(this.warehouseCount) + 1)
|
|
|
- this.weighingList.number =
|
|
|
- 'XSCK' +
|
|
|
- this.getTime() +
|
|
|
- this.warehouseNo +
|
|
|
- this.warehouseCount.substring(this.warehouseCount.length - 4)
|
|
|
+ this.weighingList.number = 'XSCK' + this.getTime() + this.warehouseNo + this.warehouseCount.substring(this.warehouseCount.length - 4)
|
|
|
this.weighingList.buyer = this.outContractNo[i].buyer
|
|
|
this.weighingList.seller = localStorage.getItem('ws-pf_compName')
|
|
|
if (!this.outContractNo[i].unitContractPrice) {
|