|
@@ -76,17 +76,17 @@
|
|
label="称重时间"
|
|
label="称重时间"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <sapn
|
|
|
|
|
|
+ <div
|
|
v-if="
|
|
v-if="
|
|
scope.row.status == '已称毛重'
|
|
scope.row.status == '已称毛重'
|
|
"
|
|
"
|
|
- > {{scope.row.grossDate}}</sapn
|
|
|
|
|
|
+ > {{scope.row.grossDate}}</div
|
|
>
|
|
>
|
|
- <sapn
|
|
|
|
|
|
+ <div
|
|
v-if="
|
|
v-if="
|
|
scope.row.status == '已称皮重'
|
|
scope.row.status == '已称皮重'
|
|
"
|
|
"
|
|
- > {{scope.row.tareDate}}</sapn
|
|
|
|
|
|
+ > {{scope.row.tareDate}}</div
|
|
>
|
|
>
|
|
</template></el-table-column>
|
|
</template></el-table-column>
|
|
<el-table-column prop="status" label="状态"></el-table-column>
|
|
<el-table-column prop="status" label="状态"></el-table-column>
|
|
@@ -99,10 +99,12 @@
|
|
"
|
|
"
|
|
>毛重</el-button
|
|
>毛重</el-button
|
|
>
|
|
>
|
|
|
|
+ <!-- scope.row.paymentManagement.status == '待结算' && -->
|
|
<el-button
|
|
<el-button
|
|
|
|
+ :disabled = "scope.row.allow == 2"
|
|
@click="weightCheck(scope.row, 2)"
|
|
@click="weightCheck(scope.row, 2)"
|
|
v-if="
|
|
v-if="
|
|
- scope.row.status == '已称毛重' || scope.row.status == '已称皮重'
|
|
|
|
|
|
+ scope.row.status == '已称毛重' || scope.row.status == '已称皮重'
|
|
"
|
|
"
|
|
>皮重</el-button
|
|
>皮重</el-button
|
|
>
|
|
>
|
|
@@ -174,6 +176,8 @@ export default {
|
|
qualityInspectionManagement:{},
|
|
qualityInspectionManagement:{},
|
|
},
|
|
},
|
|
purchasePriceList:[],
|
|
purchasePriceList:[],
|
|
|
|
+ allowEdit:"",
|
|
|
|
+ disabled:false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated() {
|
|
activated() {
|
|
@@ -210,6 +214,7 @@ export default {
|
|
if (this.warehouseList[i].value == e) {
|
|
if (this.warehouseList[i].value == e) {
|
|
this.warehouseId = this.warehouseList[i].warehouseId
|
|
this.warehouseId = this.warehouseList[i].warehouseId
|
|
this.purchasePriceList = this.warehouseList[i].warehouseList
|
|
this.purchasePriceList = this.warehouseList[i].warehouseList
|
|
|
|
+ this.allowEdit = this.warehouseList[i].allowEdit
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.getList()
|
|
this.getList()
|
|
@@ -231,7 +236,8 @@ export default {
|
|
netWeight: row.netWeight,
|
|
netWeight: row.netWeight,
|
|
relationId: row.relationId,
|
|
relationId: row.relationId,
|
|
warehouseId: this.warehouseId,
|
|
warehouseId: this.warehouseId,
|
|
- purchasePriceList: this.purchasePriceList
|
|
|
|
|
|
+ purchasePriceList: this.purchasePriceList,
|
|
|
|
+ allowEdit:this.allowEdit
|
|
},
|
|
},
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -265,9 +271,11 @@ export default {
|
|
this.warehouseList.push({
|
|
this.warehouseList.push({
|
|
value: response[i].warehouseName,
|
|
value: response[i].warehouseName,
|
|
warehouseId: response[i].id,
|
|
warehouseId: response[i].id,
|
|
- warehouseList:response[i].purchasePriceList
|
|
|
|
|
|
+ warehouseList:response[i].purchasePriceList,
|
|
|
|
+ allowEdit:response[i].allowEdit
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+ this.allowEdit = this.warehouseList[0].allowEdit
|
|
this.warehouseName = this.warehouseList[0].value
|
|
this.warehouseName = this.warehouseList[0].value
|
|
this.warehouseId = this.warehouseList[0].warehouseId
|
|
this.warehouseId = this.warehouseList[0].warehouseId
|
|
this.purchasePriceList = this.warehouseList[0].warehouseList
|
|
this.purchasePriceList = this.warehouseList[0].warehouseList
|
|
@@ -286,8 +294,20 @@ export default {
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
|
|
+ for(let i = 0 ; i < response.records.length ; i++){
|
|
|
|
+ if(response.records[i].paymentManagement){
|
|
|
|
+ if(response.records[i].paymentManagement.status == '待结算'){
|
|
|
|
+ response.records[i].allow = 1
|
|
|
|
+ }else{
|
|
|
|
+ response.records[i].allow = 2
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ response.records[i].allow = 1
|
|
|
|
+ }
|
|
|
|
+ }
|
|
this.weighingList = response.records
|
|
this.weighingList = response.records
|
|
this.deptBudgetTotal = response.total
|
|
this.deptBudgetTotal = response.total
|
|
|
|
+
|
|
})
|
|
})
|
|
.catch((response) => {
|
|
.catch((response) => {
|
|
// EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
// EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|