|
@@ -21,7 +21,9 @@
|
|
|
clearable
|
|
clearable
|
|
|
@change="handleBizSceneChange"
|
|
@change="handleBizSceneChange"
|
|
|
:disabled="
|
|
:disabled="
|
|
|
- !!(warehousingMaterialList && warehousingMaterialList.length)
|
|
|
|
|
|
|
+ !!(
|
|
|
|
|
+ warehousingMaterialList && warehousingMaterialList.length
|
|
|
|
|
+ ) || isTask
|
|
|
"
|
|
"
|
|
|
>
|
|
>
|
|
|
<el-option
|
|
<el-option
|
|
@@ -133,12 +135,15 @@
|
|
|
ref="trees"
|
|
ref="trees"
|
|
|
class="form-ipt"
|
|
class="form-ipt"
|
|
|
:isBindPlan="
|
|
:isBindPlan="
|
|
|
- !!(warehousingMaterialList && warehousingMaterialList.length)
|
|
|
|
|
|
|
+ !!(
|
|
|
|
|
+ warehousingMaterialList && warehousingMaterialList.length
|
|
|
|
|
+ ) || isTask
|
|
|
"
|
|
"
|
|
|
size="medium"
|
|
size="medium"
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
clearable
|
|
clearable
|
|
|
:options="codeList"
|
|
:options="codeList"
|
|
|
|
|
+ :value="formData.extInfo.assetType"
|
|
|
:props="{
|
|
:props="{
|
|
|
value: 'id',
|
|
value: 'id',
|
|
|
label: 'name',
|
|
label: 'name',
|
|
@@ -321,8 +326,10 @@
|
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
|
|
<div class="material">
|
|
<div class="material">
|
|
|
- <div style="width: 100%; text-align: right" v-if="!isTask"
|
|
|
|
|
- ><el-button type="primary" @click="addStock">添加</el-button></div
|
|
|
|
|
|
|
+ <div style="width: 100%; text-align: right"
|
|
|
|
|
+ ><el-button type="primary" @click="addStock" v-if="!isTask"
|
|
|
|
|
+ >添加</el-button
|
|
|
|
|
+ ></div
|
|
|
>
|
|
>
|
|
|
<div v-if="dimension != 4">
|
|
<div v-if="dimension != 4">
|
|
|
<div class="flex">
|
|
<div class="flex">
|
|
@@ -796,8 +803,8 @@
|
|
|
return {
|
|
return {
|
|
|
...item,
|
|
...item,
|
|
|
packingCountBase:
|
|
packingCountBase:
|
|
|
- dimension == 4 || dimension == 3 ? 1 : item.packingCountBase,
|
|
|
|
|
- weight: 0
|
|
|
|
|
|
|
+ dimension == 4 || dimension == 3 ? 1 : item.packingCountBase,
|
|
|
|
|
+ // weight: 0
|
|
|
};
|
|
};
|
|
|
});
|
|
});
|
|
|
//物料维度数据
|
|
//物料维度数据
|
|
@@ -843,7 +850,7 @@
|
|
|
return {
|
|
return {
|
|
|
...item,
|
|
...item,
|
|
|
packingCountBase: dimension == 3 ? 1 : item.packingCountBase,
|
|
packingCountBase: dimension == 3 ? 1 : item.packingCountBase,
|
|
|
- weight: 0
|
|
|
|
|
|
|
+ // weight: 0
|
|
|
};
|
|
};
|
|
|
});
|
|
});
|
|
|
//物料维度数据
|
|
//物料维度数据
|
|
@@ -871,7 +878,7 @@
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- handleNewSave() {
|
|
|
|
|
|
|
+ handleNewSave(type) {
|
|
|
this.$refs.formName.validate(async (valid) => {
|
|
this.$refs.formName.validate(async (valid) => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
if (!this.warehousingMaterialList?.length) {
|
|
if (!this.warehousingMaterialList?.length) {
|
|
@@ -894,8 +901,9 @@
|
|
|
try {
|
|
try {
|
|
|
const res = await outin.saveNew(obj);
|
|
const res = await outin.saveNew(obj);
|
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
|
- await await outin.outApprove({ outInId: res.data });
|
|
|
|
|
|
|
+ await outin.outApprove({ outInId: res.data });
|
|
|
this.$message.success('保存成功!');
|
|
this.$message.success('保存成功!');
|
|
|
|
|
+ this.$emit('success');
|
|
|
}
|
|
}
|
|
|
this.$router.push('/warehouseManagement/outgoingManagement');
|
|
this.$router.push('/warehouseManagement/outgoingManagement');
|
|
|
if (res?.success) {
|
|
if (res?.success) {
|
|
@@ -909,9 +917,6 @@
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- save() {
|
|
|
|
|
- this.handleNewSave();
|
|
|
|
|
- },
|
|
|
|
|
|
|
|
|
|
onClear() {
|
|
onClear() {
|
|
|
this.formData.sourceBizNo = '';
|
|
this.formData.sourceBizNo = '';
|
|
@@ -925,7 +930,7 @@
|
|
|
},
|
|
},
|
|
|
eomSuccess(row) {
|
|
eomSuccess(row) {
|
|
|
console.log(row);
|
|
console.log(row);
|
|
|
- this.formData.extInfo.assetType = 9;
|
|
|
|
|
|
|
+ this.formData.extInfo.assetType = '9';
|
|
|
this.formData.bizType = '3';
|
|
this.formData.bizType = '3';
|
|
|
this.isTask = true;
|
|
this.isTask = true;
|
|
|
this.$refs.trees.valueTitle = '产品';
|
|
this.$refs.trees.valueTitle = '产品';
|
|
@@ -937,6 +942,9 @@
|
|
|
this.formData.clientUser = row.linkName;
|
|
this.formData.clientUser = row.linkName;
|
|
|
this.formData.clientPhone = row.linkPhone;
|
|
this.formData.clientPhone = row.linkPhone;
|
|
|
this.onSelectTableData(row.tableData || row.productList, 1);
|
|
this.onSelectTableData(row.tableData || row.productList, 1);
|
|
|
|
|
+ if (row.productList.length > 0) {
|
|
|
|
|
+ this.$refs.assetsDialogRef.confirm(row.productList, '3');
|
|
|
|
|
+ }
|
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
|
},
|
|
},
|
|
|
pickOrderRow(row) {
|
|
pickOrderRow(row) {
|