|
|
@@ -335,7 +335,9 @@
|
|
|
|
|
|
<div class="material">
|
|
|
<header-title title="产品信息">
|
|
|
- <el-button type="primary" @click="addStock">添加</el-button>
|
|
|
+ <el-button type="primary" @click="addStock" v-if="!isTask"
|
|
|
+ >添加</el-button
|
|
|
+ >
|
|
|
</header-title>
|
|
|
|
|
|
<div class="mt10 form-table">
|
|
|
@@ -760,7 +762,10 @@
|
|
|
@click="chooseAssets(row, $index)"
|
|
|
>选择资产编号</el-button
|
|
|
>
|
|
|
- <el-button type="text" @click="listDel(row, $index)"
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ @click="listDel(row, $index)"
|
|
|
+ v-if="!isTask"
|
|
|
>删除</el-button
|
|
|
>
|
|
|
</template>
|
|
|
@@ -1098,7 +1103,11 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="center mt20">
|
|
|
- <el-button type="primary" v-if="!isTask" @click="handleSave" :loading="saveLoading"
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ v-if="!isTask"
|
|
|
+ @click="handleSave"
|
|
|
+ :loading="saveLoading"
|
|
|
>保存</el-button
|
|
|
>
|
|
|
<el-button @click="$router.go(-1)" v-if="!isTask">返回</el-button>
|
|
|
@@ -1387,12 +1396,12 @@
|
|
|
},
|
|
|
async pickerSuccess(row) {
|
|
|
this.formData.bizType = '2';
|
|
|
- this.codeListValue(row.categoryLevelTopId)
|
|
|
+ this.codeListValue(row.categoryLevelTopId);
|
|
|
this.isTask = true;
|
|
|
this.pickerRow = row;
|
|
|
this.formData.extInfo.documentSource = row.orderNo;
|
|
|
- this.formData.sourceBizNo=row.orderNo;
|
|
|
- this.formData.fromId=row.id;
|
|
|
+ this.formData.sourceBizNo = row.receiveNo;
|
|
|
+ this.formData.fromId = row.id;
|
|
|
this.formData.clientName = row.partaName;
|
|
|
this.formData.clientCode = row.partaId;
|
|
|
this.formData.extInfo.supplierName = row.supplierName;
|
|
|
@@ -1424,10 +1433,10 @@
|
|
|
this.$refs.pickerRef.open();
|
|
|
},
|
|
|
codeListValue(val) {
|
|
|
- this.formData.extInfo.assetType = val.id||val;
|
|
|
+ this.formData.extInfo.assetType = val.id || val;
|
|
|
this.$forceUpdate();
|
|
|
this.title = val?.name;
|
|
|
- this.selectEquiType = val?.id||val;
|
|
|
+ this.selectEquiType = val?.id || val;
|
|
|
},
|
|
|
//计算生产设备重量
|
|
|
deviceWeight(row, num) {
|
|
|
@@ -1934,10 +1943,12 @@
|
|
|
this.formatWarehouseMaterialList();
|
|
|
|
|
|
let arr = this.warehousingMaterialList.map((item) => {
|
|
|
+ console.log(item,'item')
|
|
|
return {
|
|
|
netWeight: item.netWeight,
|
|
|
num: item.num,
|
|
|
batchNo: item.batchNo,
|
|
|
+ code:item.productCode,
|
|
|
categoryId:
|
|
|
this.formData.bizType == 2
|
|
|
? item.categoryId
|
|
|
@@ -1961,7 +1972,6 @@
|
|
|
weight: item.weight
|
|
|
};
|
|
|
});
|
|
|
-
|
|
|
arr.forEach((item) => {
|
|
|
if (item.outInDetailRecordAddPOList.length > 0) {
|
|
|
let list = item.outInDetailRecordAddPOList.map((it) => {
|