|
|
@@ -152,12 +152,7 @@
|
|
|
:data="form.shipVOList"
|
|
|
:key="key"
|
|
|
@row-save="rowSave"
|
|
|
- @row-update="rowUpdate"
|
|
|
- @resetColumn="
|
|
|
- resetColumnTwo('payment_details', 'optionPaymentDetails', 'optionPaymentDetailsBack', 270.2)
|
|
|
- "
|
|
|
- @saveColumn="saveColumnTwo('payment_details', 'optionPaymentDetails', 'optionPaymentDetailsBack', 270.2)"
|
|
|
- >
|
|
|
+ @row-update="rowUpdate" >
|
|
|
</avue-crud>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="历史记录" name="outbound_records">
|
|
|
@@ -169,12 +164,6 @@
|
|
|
:key="key"
|
|
|
@row-save="rowSave"
|
|
|
@row-update="rowUpdate"
|
|
|
- @resetColumn="
|
|
|
- resetColumnTwo('outbound_records', 'optionOutboundRecords', 'optionOutboundRecordsBack', 270.3)
|
|
|
- "
|
|
|
- @saveColumn="
|
|
|
- saveColumnTwo('outbound_records', 'optionOutboundRecords', 'optionOutboundRecordsBack', 270.3)
|
|
|
- "
|
|
|
>
|
|
|
</avue-crud>
|
|
|
</el-tab-pane>
|
|
|
@@ -414,21 +403,6 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
column: [
|
|
|
- // {
|
|
|
- // label: '商品名称',
|
|
|
- // prop: 'goodsId',
|
|
|
- // disabled: true,
|
|
|
- // width: 200,
|
|
|
- // overHidden: true,
|
|
|
- // hide: true,
|
|
|
- // type: 'select',
|
|
|
- // remote: true,
|
|
|
- // props: {
|
|
|
- // label: 'cname',
|
|
|
- // value: 'id'
|
|
|
- // },
|
|
|
- // dicUrl: '/api/gubersail-admin/goodsDesc/list?current=1&size=10&cname={{key}}&enableOrNot=1'
|
|
|
- // },
|
|
|
{
|
|
|
label: "商品名称",
|
|
|
prop: "goodsName",
|
|
|
@@ -499,7 +473,7 @@ export default {
|
|
|
{
|
|
|
label: "库区",
|
|
|
prop: "reservoirArea",
|
|
|
- width:100,
|
|
|
+ width: 100,
|
|
|
},
|
|
|
{
|
|
|
label: "库存",
|
|
|
@@ -632,20 +606,6 @@ export default {
|
|
|
detailData: Object,
|
|
|
},
|
|
|
async created() {
|
|
|
- isProcurement({ param: "whether.model" }).then((res) => {
|
|
|
- if (res.data.data == 1) {
|
|
|
- this.findObject(this.optionContacts.column, "pattern").label = "规格型号1";
|
|
|
- }
|
|
|
- });
|
|
|
- this.key++;
|
|
|
- // if (this.onLoad.id && this.detailData.id) {
|
|
|
- // console.log(1);
|
|
|
- // this.refresh(this.onLoad.id, true);
|
|
|
- // this.$set(this.optionForm, "disabled", true);
|
|
|
- // } else if (this.onLoad.id) {
|
|
|
- // console.log(2);
|
|
|
- // this.refresh(this.onLoad.id, true);
|
|
|
- // }
|
|
|
if (this.detailData.id) {
|
|
|
this.refresh(this.detailData.id, true);
|
|
|
this.$set(this.optionForm, "disabled", true);
|
|
|
@@ -784,40 +744,40 @@ export default {
|
|
|
this.form.shipItemsList.forEach((item) => {
|
|
|
item.goodsName = item.$goodsId;
|
|
|
});
|
|
|
- submit({
|
|
|
+ // submit({
|
|
|
+ // ...this.form,
|
|
|
+ // bizTypeName: "FHGD",
|
|
|
+ // })
|
|
|
+ // .then((res) => {
|
|
|
+ // if (res.data.code === 601) {
|
|
|
+ // if (this.onLoad.id && this.detailData.id) {
|
|
|
+ // console.log(1);
|
|
|
+ // this.refresh(this.onLoad.id, true);
|
|
|
+ // this.$set(this.optionForm, "disabled", true);
|
|
|
+ // } else if (this.onLoad.id) {
|
|
|
+ // console.log(2);
|
|
|
+ // this.refresh(this.onLoad.id, true);
|
|
|
+ // }
|
|
|
+ // this.$message({
|
|
|
+ // type: "error",
|
|
|
+ // message: res.data.msg,
|
|
|
+ // });
|
|
|
+ // return true;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // .catch(() => {
|
|
|
+ // loading.close();
|
|
|
+ // });
|
|
|
+ warehousingComplete({
|
|
|
...this.form,
|
|
|
bizTypeName: "FHGD",
|
|
|
})
|
|
|
.then((res) => {
|
|
|
- if (res.data.code === 601) {
|
|
|
- if (this.onLoad.id && this.detailData.id) {
|
|
|
- console.log(1);
|
|
|
- this.refresh(this.onLoad.id, true);
|
|
|
- this.$set(this.optionForm, "disabled", true);
|
|
|
- } else if (this.onLoad.id) {
|
|
|
- console.log(2);
|
|
|
- this.refresh(this.onLoad.id, true);
|
|
|
- }
|
|
|
- this.$message({
|
|
|
- type: "error",
|
|
|
- message: res.data.msg,
|
|
|
- });
|
|
|
- return true;
|
|
|
- }
|
|
|
- warehousingComplete({
|
|
|
- ...this.form,
|
|
|
- bizTypeName: "FHGD",
|
|
|
- })
|
|
|
- .then((res) => {
|
|
|
- this.$message.success("出库完成");
|
|
|
- this.refresh(res.data.data.id);
|
|
|
- loading.close();
|
|
|
- })
|
|
|
- .finally(() => {
|
|
|
- loading.close();
|
|
|
- });
|
|
|
+ this.$message.success("出库完成");
|
|
|
+ this.refresh(res.data.data.id);
|
|
|
+ loading.close();
|
|
|
})
|
|
|
- .catch(() => {
|
|
|
+ .finally(() => {
|
|
|
loading.close();
|
|
|
});
|
|
|
} else {
|
|
|
@@ -874,22 +834,22 @@ export default {
|
|
|
filesList: this.filesList,
|
|
|
})
|
|
|
.then((res) => {
|
|
|
- if (res.data.code === 601) {
|
|
|
- console.info("11111111111----", res);
|
|
|
- if (this.onLoad.id && this.detailData.id) {
|
|
|
- console.log(1);
|
|
|
- this.refresh(this.onLoad.id, true);
|
|
|
- this.$set(this.optionForm, "disabled", true);
|
|
|
- } else if (this.onLoad.id) {
|
|
|
- console.log(2);
|
|
|
- this.refresh(this.onLoad.id, true);
|
|
|
- }
|
|
|
- this.$message({
|
|
|
- type: "error",
|
|
|
- message: res.data.msg,
|
|
|
- });
|
|
|
- return true;
|
|
|
- }
|
|
|
+ // if (res.data.code === 601) {
|
|
|
+ // console.info("11111111111----", res);
|
|
|
+ // if (this.onLoad.id && this.detailData.id) {
|
|
|
+ // console.log(1);
|
|
|
+ // this.refresh(this.onLoad.id, true);
|
|
|
+ // this.$set(this.optionForm, "disabled", true);
|
|
|
+ // } else if (this.onLoad.id) {
|
|
|
+ // console.log(2);
|
|
|
+ // this.refresh(this.onLoad.id, true);
|
|
|
+ // }
|
|
|
+ // this.$message({
|
|
|
+ // type: "error",
|
|
|
+ // message: res.data.msg,
|
|
|
+ // });
|
|
|
+ // return true;
|
|
|
+ // }
|
|
|
this.$message.success("保存成功");
|
|
|
this.refresh(res.data.data.id);
|
|
|
loading.close();
|
|
|
@@ -1007,11 +967,10 @@ export default {
|
|
|
if (
|
|
|
item.prop == "storageId" ||
|
|
|
item.prop == "remarks" ||
|
|
|
- item.prop == "createTime" ||
|
|
|
item.prop == "stockClerkId" ||
|
|
|
item.prop == "shipType" ||
|
|
|
item.prop == "logisticsCorpName" ||
|
|
|
- item.prop == "expressNo"||
|
|
|
+ item.prop == "expressNo" ||
|
|
|
item.prop == "businesDate"
|
|
|
) {
|
|
|
item.disabled = false;
|