|
@@ -2210,7 +2210,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="fUnitprice"
|
|
|
+ prop="fQty"
|
|
|
header-align="center"
|
|
|
align="center"
|
|
|
width="130px"
|
|
@@ -2219,7 +2219,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
|
|
|
- v-model="scope.row.fUnitprice"
|
|
|
+ v-model="scope.row.fQty"
|
|
|
placeholder="数量"
|
|
|
:disabled="browseStatus || scope.row.fBillstatus == 6 || form.warehouseStatus > 3"
|
|
|
@change="changeContractAmt(scope.row)"
|
|
@@ -2228,7 +2228,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="fQty"
|
|
|
+ prop="fUnitprice"
|
|
|
header-align="center"
|
|
|
align="center"
|
|
|
width="130px"
|
|
@@ -2237,7 +2237,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
|
|
|
- v-model="scope.row.fQty"
|
|
|
+ v-model="scope.row.fUnitprice"
|
|
|
placeholder="单价"
|
|
|
:disabled="browseStatus || scope.row.fSrcTypeId !== 0 || scope.row.fBillstatus == 6 || form.warehouseStatus > 3"
|
|
|
@change="changeContractAmt(scope.row)"
|
|
@@ -5452,6 +5452,90 @@ export default {
|
|
|
revoke(this.form.fId).then((data) => {
|
|
|
if (data.code === 200) {
|
|
|
this.browseStatus = false;
|
|
|
+ getWarehousebills(this.chiId).then((response) => {
|
|
|
+ this.form = response.data.warehousebills;
|
|
|
+ if (this.form.fBillstatus > 3) {
|
|
|
+ this.approvalStatus = false;
|
|
|
+ this.browseStatus = true;
|
|
|
+ } else {
|
|
|
+ this.approvalStatus = true;
|
|
|
+ this.browseStatus = false;
|
|
|
+ }
|
|
|
+ this.$set(this.form, "fBsdate", Date.parse(this.form.fBsdate));
|
|
|
+ this.$set(this.form, "fBstifime", Date.parse(this.form.fBstime));
|
|
|
+ this.$set(this.form, "createTime", Date.parse(this.form.createTime));
|
|
|
+ this.$set(this.form, "fFeetUnit", this.form.fFeetunit);
|
|
|
+ this.tfNetweightnum = (this.form.fPlannetweight / 1000).toFixed(4);
|
|
|
+ this.tfGrossweightnum = (this.form.fPlangrossweight / 1000).toFixed(4);
|
|
|
+ if (this.form.fCartype || this.form.fCartype == 0) {
|
|
|
+ this.$set(this.form, "fCartype", this.form.fCartype.toString());
|
|
|
+ }
|
|
|
+ if (this.form.fStltypeid || this.form.fStltypeid == 0) {
|
|
|
+ this.$set(this.form, "fStltypeid", this.form.fStltypeid.toString());
|
|
|
+ }
|
|
|
+ if (this.form.fTrademodeid) {
|
|
|
+ this.$set(
|
|
|
+ this.form,
|
|
|
+ "fTrademodeid",
|
|
|
+ this.form.fTrademodeid.toString()
|
|
|
+ );
|
|
|
+ }
|
|
|
+ if (!this.copyStatus) {
|
|
|
+ if (response.data.warehouseBillsItem) {
|
|
|
+ response.data.warehouseBillsItem.map((e) => {
|
|
|
+ e.fBsdate = Date.parse(e.fBsdate);
|
|
|
+ e.fBusinessType = e.fBusinessType.toString();
|
|
|
+ e.fLntype = e.fLntype ? e.fLntype.toString() : null;
|
|
|
+ });
|
|
|
+ response.data.warehouseBillsItem.forEach(item => {
|
|
|
+ item.fCntrtype = parseInt(item.fCntrtype)
|
|
|
+ item.disabled = true
|
|
|
+ })
|
|
|
+ this.detailList1 = response.data.warehouseBillsItem.filter(item=>item.fDc=='D');
|
|
|
+ this.detailList = response.data.warehouseBillsItem.filter(item=>item.fDc=='C');
|
|
|
+ } else {
|
|
|
+ this.detailList = [];
|
|
|
+ }
|
|
|
+ response.data.warehousebillsfeesCr.map((e) => {
|
|
|
+ if (e.fFeeunitid) {
|
|
|
+ e.fFeeUnitid = e.fFeeunitid.toString();
|
|
|
+ }
|
|
|
+ if (e.fStltypeid || e.fStltypeid == 0) {
|
|
|
+ e.fStltypeid = e.fStltypeid.toString();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.warehouseCrList = response.data.warehousebillsfeesCr;
|
|
|
+ response.data.warehousebillsfeesDr.map((e) => {
|
|
|
+ if (e.fFeeunitid) {
|
|
|
+ e.fFeeUnitid = e.fFeeunitid.toString();
|
|
|
+ }
|
|
|
+ if (e.fStltypeid || e.fStltypeid == 0) {
|
|
|
+ e.fStltypeid = e.fStltypeid.toString();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.warehouseDrList = response.data.warehousebillsfeesDr;
|
|
|
+ this.warehouseDrList.forEach(item => item.fBillingway = JSON.stringify(item.fBillingway))
|
|
|
+ if (response.data.tCntrList) {
|
|
|
+ this.CntrTable = response.data.tCntrList;
|
|
|
+ } else {
|
|
|
+ this.CntrTable = [];
|
|
|
+ }
|
|
|
+ if (response.data.enclosures) {
|
|
|
+ this.relevantAttachments = response.data.enclosures;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$set(this.form, "fId", null);
|
|
|
+ this.$set(this.form, "fMblno", null);
|
|
|
+ this.$set(this.form, "fMarks", null);
|
|
|
+ this.$set(this.form, "fProductName",null);
|
|
|
+ this.$set(this.form, "fNetweight", 0);
|
|
|
+ this.$set(this.form, "fPlanvolumn", 0);
|
|
|
+ this.$set(this.form, "fGrossweight", 0);
|
|
|
+ }
|
|
|
+ treeselect(this.form.fWarehouseid).then((response) => {
|
|
|
+ this.fWarehouseidOptions = response.data;
|
|
|
+ });
|
|
|
+ });
|
|
|
this.msgSuccess("撤销成功");
|
|
|
}
|
|
|
});
|
|
@@ -7510,6 +7594,7 @@ export default {
|
|
|
if (!row.fFeeUnitid) {
|
|
|
return false;
|
|
|
}
|
|
|
+ console.log(row.fFeeUnitid)
|
|
|
if (row.fFeeUnitid === "2") {
|
|
|
this.$set(row, "fQty", (this.fGrossweight / 1000).toFixed(2));
|
|
|
} else if (row.fFeeUnitid === "1") {
|