|
@@ -87,6 +87,18 @@
|
|
|
</dic-select>
|
|
</dic-select>
|
|
|
<span v-else>{{ row.reservoirArea }}</span>
|
|
<span v-else>{{ row.reservoirArea }}</span>
|
|
|
</tempalte>
|
|
</tempalte>
|
|
|
|
|
+ <tempalte slot-scope="{ row, index }" slot="sendNum">
|
|
|
|
|
+ <el-input-number
|
|
|
|
|
+ v-if="row.$cellEdit"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ v-model="row.sendNum"
|
|
|
|
|
+ :precision="numberDecimal"
|
|
|
|
|
+ :controls="false"
|
|
|
|
|
+ :max="Number(row.goodsNum)"
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ ></el-input-number>
|
|
|
|
|
+ <span v-else>{{ row.sendNum }}</span>
|
|
|
|
|
+ </tempalte>
|
|
|
<template slot-scope="{ type, size, row, index, disabled }" slot="menu">
|
|
<template slot-scope="{ type, size, row, index, disabled }" slot="menu">
|
|
|
<!--<el-button :size="size" :disabled="disabled || isAddDisabled" :type="type"-->
|
|
<!--<el-button :size="size" :disabled="disabled || isAddDisabled" :type="type"-->
|
|
|
<!-- :icon="row.$cellEdit ? 'el-icon-plus' : 'el-icon-edit'" @click="rowEdit(row, index)">编辑-->
|
|
<!-- :icon="row.$cellEdit ? 'el-icon-plus' : 'el-icon-edit'" @click="rowEdit(row, index)">编辑-->
|
|
@@ -144,17 +156,6 @@
|
|
|
</template>
|
|
</template>
|
|
|
</avue-crud>
|
|
</avue-crud>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane label="订单信息" name="payment_details">
|
|
|
|
|
- <avue-crud
|
|
|
|
|
- :option="optionPaymentDetails"
|
|
|
|
|
- v-model="formContacts"
|
|
|
|
|
- ref="payment_details"
|
|
|
|
|
- :data="form.shipVOList"
|
|
|
|
|
- :key="key"
|
|
|
|
|
- @row-save="rowSave"
|
|
|
|
|
- @row-update="rowUpdate" >
|
|
|
|
|
- </avue-crud>
|
|
|
|
|
- </el-tab-pane>
|
|
|
|
|
<el-tab-pane label="历史记录" name="outbound_records">
|
|
<el-tab-pane label="历史记录" name="outbound_records">
|
|
|
<avue-crud
|
|
<avue-crud
|
|
|
:option="optionOutboundRecords"
|
|
:option="optionOutboundRecords"
|
|
@@ -219,7 +220,6 @@ export default {
|
|
|
isAddDisabled: false,
|
|
isAddDisabled: false,
|
|
|
form: {
|
|
form: {
|
|
|
shipItemsList: [],
|
|
shipItemsList: [],
|
|
|
- shipVOList: [],
|
|
|
|
|
historyList: [],
|
|
historyList: [],
|
|
|
},
|
|
},
|
|
|
key: 0,
|
|
key: 0,
|
|
@@ -344,7 +344,7 @@ export default {
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: "出库数量",
|
|
|
|
|
|
|
+ label: "发货数量",
|
|
|
prop: "sendTotalNum",
|
|
prop: "sendTotalNum",
|
|
|
disabled: true,
|
|
disabled: true,
|
|
|
},
|
|
},
|
|
@@ -465,14 +465,13 @@ export default {
|
|
|
prop: "inventory",
|
|
prop: "inventory",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: "出库数量",
|
|
|
|
|
|
|
+ label: "订单数量",
|
|
|
prop: "goodsNum",
|
|
prop: "goodsNum",
|
|
|
disabled: false,
|
|
disabled: false,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: "发货数量",
|
|
label: "发货数量",
|
|
|
prop: "sendNum",
|
|
prop: "sendNum",
|
|
|
- cell: true,
|
|
|
|
|
disabled: false,
|
|
disabled: false,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -491,60 +490,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
- optionPaymentDetails: {
|
|
|
|
|
- align: "center",
|
|
|
|
|
- index: true,
|
|
|
|
|
- addBtnText: "录入明细",
|
|
|
|
|
- refreshBtn: false,
|
|
|
|
|
- dialogDrag: true,
|
|
|
|
|
- addBtn: false,
|
|
|
|
|
- span: 8,
|
|
|
|
|
- height: 600,
|
|
|
|
|
- addRowBtn: false,
|
|
|
|
|
- editBtn: false,
|
|
|
|
|
- delBtn: false,
|
|
|
|
|
- menuWidth: 140,
|
|
|
|
|
- dialogTop: 25,
|
|
|
|
|
- dialogWidth: "80%",
|
|
|
|
|
- menu: false,
|
|
|
|
|
- column: [
|
|
|
|
|
- {
|
|
|
|
|
- label: "出库单号",
|
|
|
|
|
- prop: "billno",
|
|
|
|
|
- overHidden: true,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: "来源单号",
|
|
|
|
|
- prop: "ordNo",
|
|
|
|
|
- overHidden: true,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: "业务来源",
|
|
|
|
|
- prop: "bsType",
|
|
|
|
|
- overHidden: true,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: "地址",
|
|
|
|
|
- prop: "recAddress",
|
|
|
|
|
- overHidden: true,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: "联系人",
|
|
|
|
|
- prop: "contacts",
|
|
|
|
|
- overHidden: true,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: "电话",
|
|
|
|
|
- prop: "phone",
|
|
|
|
|
- overHidden: true,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: "备注",
|
|
|
|
|
- prop: "remarks",
|
|
|
|
|
- overHidden: true,
|
|
|
|
|
- },
|
|
|
|
|
- ],
|
|
|
|
|
- },
|
|
|
|
|
optionOutboundRecords: {
|
|
optionOutboundRecords: {
|
|
|
align: "center",
|
|
align: "center",
|
|
|
index: true,
|
|
index: true,
|
|
@@ -716,7 +661,6 @@ export default {
|
|
|
// this.$refs.formContacts.rowEdit(row, index)
|
|
// this.$refs.formContacts.rowEdit(row, index)
|
|
|
},
|
|
},
|
|
|
complete() {
|
|
complete() {
|
|
|
- console.log(this.form.id);
|
|
|
|
|
this.$refs["form"].validate((valid, done) => {
|
|
this.$refs["form"].validate((valid, done) => {
|
|
|
done();
|
|
done();
|
|
|
if (valid) {
|
|
if (valid) {
|
|
@@ -765,8 +709,6 @@ export default {
|
|
|
.finally(() => {
|
|
.finally(() => {
|
|
|
loading.close();
|
|
loading.close();
|
|
|
});
|
|
});
|
|
|
- } else {
|
|
|
|
|
- this.$message.error("请选择库管");
|
|
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
@@ -856,61 +798,35 @@ export default {
|
|
|
spinner: "el-icon-loading",
|
|
spinner: "el-icon-loading",
|
|
|
background: "rgba(255,255,255,0.7)",
|
|
background: "rgba(255,255,255,0.7)",
|
|
|
});
|
|
});
|
|
|
- if (!this.detailData.id) {
|
|
|
|
|
- getDetails({ id: id })
|
|
|
|
|
- .then((res) => {
|
|
|
|
|
- if (res.data.data.statusName == "已出库") {
|
|
|
|
|
- this.$set(this.optionForm, "disabled", true);
|
|
|
|
|
- this.isAddDisabled = true;
|
|
|
|
|
- this.optionContacts.column.forEach((item) => {
|
|
|
|
|
- if (item.prop == "sendNum") {
|
|
|
|
|
- item.disabled = true;
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ getDetails({ id: id })
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ if (res.data.data.statusName == "已出库") {
|
|
|
|
|
+ this.$set(this.optionForm, "disabled", true);
|
|
|
this.isAddDisabled = true;
|
|
this.isAddDisabled = true;
|
|
|
- if (res.data.data.statusName == "待出库") {
|
|
|
|
|
- this.isAddDisabled = true;
|
|
|
|
|
- this.isDisabled = true;
|
|
|
|
|
- }
|
|
|
|
|
- this.form = res.data.data;
|
|
|
|
|
- this.filesList = res.data.data.filesList;
|
|
|
|
|
- this.$nextTick(() => {
|
|
|
|
|
- this.$refs.formContacts.refreshTable();
|
|
|
|
|
|
|
+ this.optionContacts.column.forEach((item) => {
|
|
|
|
|
+ if (item.prop == "sendNum") {
|
|
|
|
|
+ item.disabled = true;
|
|
|
|
|
+ }
|
|
|
});
|
|
});
|
|
|
- loading.close();
|
|
|
|
|
- })
|
|
|
|
|
- .catch(() => {
|
|
|
|
|
- loading.close();
|
|
|
|
|
- });
|
|
|
|
|
- } else {
|
|
|
|
|
- getDetails({ id: this.detailData.id })
|
|
|
|
|
- .then((res) => {
|
|
|
|
|
- if (res.data.data.statusName == "已出库") {
|
|
|
|
|
- this.$set(this.optionForm, "disabled", true);
|
|
|
|
|
- this.isAddDisabled = true;
|
|
|
|
|
- this.optionContacts.column.forEach((item) => {
|
|
|
|
|
- if (item.prop == "sendNum") {
|
|
|
|
|
- item.disabled = true;
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ this.isAddDisabled = true;
|
|
|
|
|
+ if (res.data.data.statusName == "待出库") {
|
|
|
this.isAddDisabled = true;
|
|
this.isAddDisabled = true;
|
|
|
- if (res.data.data.statusName == "待出库") {
|
|
|
|
|
- this.isAddDisabled = true;
|
|
|
|
|
- this.isDisabled = true;
|
|
|
|
|
- }
|
|
|
|
|
- this.form = res.data.data;
|
|
|
|
|
- this.filesList = res.data.data.filesList;
|
|
|
|
|
- this.$nextTick(() => {
|
|
|
|
|
- this.$refs.formContacts.refreshTable();
|
|
|
|
|
- });
|
|
|
|
|
- loading.close();
|
|
|
|
|
- })
|
|
|
|
|
- .catch(() => {
|
|
|
|
|
- loading.close();
|
|
|
|
|
|
|
+ this.isDisabled = true;
|
|
|
|
|
+ }
|
|
|
|
|
+ res.data.data.businesDate = res.data.data.businesDate
|
|
|
|
|
+ ? res.data.data.businesDate
|
|
|
|
|
+ : dateFormat(new Date(), "yyyy-MM-dd");
|
|
|
|
|
+ this.form = res.data.data;
|
|
|
|
|
+ this.filesList = res.data.data.filesList;
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ this.$refs.formContacts.refreshTable();
|
|
|
});
|
|
});
|
|
|
- }
|
|
|
|
|
|
|
+ loading.close();
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(() => {
|
|
|
|
|
+ loading.close();
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
rowDelBox(row, index) {
|
|
rowDelBox(row, index) {
|
|
|
this.$confirm("确定将选择数据删除?", {
|
|
this.$confirm("确定将选择数据删除?", {
|
|
@@ -994,6 +910,9 @@ export default {
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
|
|
+::v-deep .el-form-item__error {
|
|
|
|
|
+ display: none !important;
|
|
|
|
|
+}
|
|
|
::v-deep .el-form-item {
|
|
::v-deep .el-form-item {
|
|
|
margin-bottom: 8px !important;
|
|
margin-bottom: 8px !important;
|
|
|
}
|
|
}
|