|
@@ -927,7 +927,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-col>
|
|
|
- <el-col :span="8">
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item>
|
|
|
<el-table
|
|
|
:data="CntrTable"
|
|
@@ -2626,7 +2626,6 @@
|
|
|
/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- d
|
|
|
<el-table-column
|
|
|
prop="fProductName"
|
|
|
header-align="center"
|
|
@@ -4635,7 +4634,8 @@ export default {
|
|
|
index === 13 ||
|
|
|
index === 10 ||
|
|
|
index === 11 ||
|
|
|
- index === 12
|
|
|
+ index === 12 ||
|
|
|
+ index === 14
|
|
|
) {
|
|
|
const values = data.map((item) => Number(item[column.property]));
|
|
|
if (!values.every((value) => isNaN(value))) {
|
|
@@ -4647,9 +4647,12 @@ export default {
|
|
|
return prev;
|
|
|
}
|
|
|
}, 0);
|
|
|
- if (index === 13 || index === 12) {
|
|
|
+ if (index === 13 || index === 14) {
|
|
|
sums[index] = (sums[index] / 1000).toFixed(2) + "(吨)";
|
|
|
}
|
|
|
+ if (index === 12) {
|
|
|
+ sums[index] = sums[index];
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -5994,6 +5997,9 @@ export default {
|
|
|
}
|
|
|
if (response.data.warehousebills) {
|
|
|
this.form = response.data.warehousebills;
|
|
|
+ this.form.fProductName = "";
|
|
|
+ this.form.fMarks = "";
|
|
|
+ this.form.fMblno = "";
|
|
|
queryUserVal().then((response) => {
|
|
|
this.userVal = response.user;
|
|
|
this.current = response.user.userName;
|
|
@@ -6032,7 +6038,7 @@ export default {
|
|
|
);
|
|
|
}
|
|
|
if (response.data.warehouseBillsItem) {
|
|
|
- this.dataList = response.data.warehouseBillsItem;
|
|
|
+ this.dataList = [];
|
|
|
for (let list in this.dataList) {
|
|
|
this.$set(this.dataList[list], "fBillstatus", 10);
|
|
|
this.$set(
|
|
@@ -6155,6 +6161,10 @@ export default {
|
|
|
}
|
|
|
if (response.data.warehouseBillsItem) {
|
|
|
this.dataList = response.data.warehouseBillsItem;
|
|
|
+ if (!this.dataList.length) {
|
|
|
+ this.form.fProductName = "";
|
|
|
+ this.form.fMarks = "";
|
|
|
+ }
|
|
|
for (let list in this.dataList) {
|
|
|
this.$set(
|
|
|
this.dataList[list],
|
|
@@ -6192,6 +6202,10 @@ export default {
|
|
|
}
|
|
|
if (response.data.warehouseBillsItem) {
|
|
|
this.dataList = response.data.warehouseBillsItem;
|
|
|
+ if (!this.dataList.length) {
|
|
|
+ this.form.fProductName = "";
|
|
|
+ this.form.fMarks = "";
|
|
|
+ }
|
|
|
for (let list in this.dataList) {
|
|
|
if (this.dataList[list].fBillstatus > 10) {
|
|
|
this.formBrowseStatus = true;
|
|
@@ -7156,6 +7170,8 @@ export default {
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
if (!this.dataList.length) {
|
|
|
+ this.form.fProductName = "";
|
|
|
+ this.form.fMarks = "";
|
|
|
// this.form.fBillstatus = status
|
|
|
this.form.fNetweight = this.fNetweight;
|
|
|
this.form.fPlanvolumn = this.fPlanvolumn;
|
|
@@ -7302,33 +7318,57 @@ export default {
|
|
|
"tWarehousebillsfeesDr",
|
|
|
JSON.stringify(this.warehouseDrList)
|
|
|
);
|
|
|
+ formDatae.append("mblnoStatus", this.mblnoStatus);
|
|
|
addWarehousebills(formDatae).then((response) => {
|
|
|
- this.msgSuccess("保存成功");
|
|
|
- this.form = response.data.warehouseBills;
|
|
|
- this.$set(this.form, "fEta", Date.parse(this.form.fEta));
|
|
|
- this.$set(this.form, "fStltypeid", this.form.fStltypeid + "");
|
|
|
- this.$set(this.form, "fBsdate", Date.parse(this.form.fBsdate));
|
|
|
- this.$set(this.form, "fTrademodeid", this.form.fTrademodeid + "");
|
|
|
- this.$set(
|
|
|
- this.form,
|
|
|
- "createTime",
|
|
|
- Date.parse(this.form.createTime)
|
|
|
- );
|
|
|
- this.dataList = response.data.warehousebillsitems;
|
|
|
- for (let list in this.dataList) {
|
|
|
+ if (response.data == false) {
|
|
|
+ this.$confirm(response.msg, "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.mblnoStatus = true;
|
|
|
+ this.preservation();
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: "info",
|
|
|
+ message: "已取消",
|
|
|
+ });
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.mblnoStatus = "";
|
|
|
+ this.msgSuccess("保存成功");
|
|
|
+ this.form = response.data.warehouseBills;
|
|
|
+ this.$set(this.form, "fEta", Date.parse(this.form.fEta));
|
|
|
+ this.$set(this.form, "fStltypeid", this.form.fStltypeid + "");
|
|
|
+ this.$set(this.form, "fBsdate", Date.parse(this.form.fBsdate));
|
|
|
this.$set(
|
|
|
- this.dataList[list],
|
|
|
- "fBsdate",
|
|
|
- Date.parse(this.dataList[list].fBsdate)
|
|
|
+ this.form,
|
|
|
+ "fTrademodeid",
|
|
|
+ this.form.fTrademodeid + ""
|
|
|
);
|
|
|
this.$set(
|
|
|
- this.dataList[list],
|
|
|
- "fBusinessType",
|
|
|
- this.dataList[list].fBusinessType + ""
|
|
|
+ this.form,
|
|
|
+ "createTime",
|
|
|
+ Date.parse(this.form.createTime)
|
|
|
);
|
|
|
+ this.dataList = response.data.warehousebillsitems;
|
|
|
+ for (let list in this.dataList) {
|
|
|
+ this.$set(
|
|
|
+ this.dataList[list],
|
|
|
+ "fBsdate",
|
|
|
+ Date.parse(this.dataList[list].fBsdate)
|
|
|
+ );
|
|
|
+ this.$set(
|
|
|
+ this.dataList[list],
|
|
|
+ "fBusinessType",
|
|
|
+ this.dataList[list].fBusinessType + ""
|
|
|
+ );
|
|
|
+ }
|
|
|
+ this.fid = response.data.warehouseBills.fId;
|
|
|
+ this.getList();
|
|
|
}
|
|
|
- this.fid = response.data.warehouseBills.fId;
|
|
|
- this.getList();
|
|
|
});
|
|
|
}
|
|
|
}
|
|
@@ -7534,6 +7574,8 @@ export default {
|
|
|
this.mum = sum;
|
|
|
|
|
|
if (this.dataList.length === 0) {
|
|
|
+ this.form.fProductName = "";
|
|
|
+ this.form.fMarks = "";
|
|
|
this.formBrowseStatus = false;
|
|
|
this.contrOl = false;
|
|
|
return false;
|