|
@@ -122,13 +122,15 @@
|
|
|
title="产品装箱"
|
|
|
v-model="dialogVisible"
|
|
|
width="800"
|
|
|
- v-loading="loading"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ destroy-on-close
|
|
|
>
|
|
|
<el-form
|
|
|
:model="formData.data"
|
|
|
:rules="rules"
|
|
|
ref="formDom"
|
|
|
label-position="top"
|
|
|
+ v-loading="loading"
|
|
|
>
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="8">
|
|
@@ -210,7 +212,16 @@
|
|
|
v-for="(item, index) in formData.data.packDetailList"
|
|
|
:key="index"
|
|
|
>
|
|
|
- <div ref="">箱规</div>
|
|
|
+ <div style="position: relative">
|
|
|
+ <span>箱规</span>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ style="position: absolute; right: 0px; top: 0px"
|
|
|
+ @click="clickDelete(index)"
|
|
|
+ text
|
|
|
+ >删除</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="5">
|
|
|
<el-form-item
|
|
@@ -1151,6 +1162,10 @@ const handleChangePackQuantity = (val, index) => {
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
+const clickDelete = (index) => {
|
|
|
+ formData.data.packDetailList.splice(index, 1);
|
|
|
+ handleChangePackQuantity();
|
|
|
+};
|
|
|
const handleCustomPush = (index) => {
|
|
|
formData.data.packDetailList[index].packDetailGoodsList.push({
|
|
|
unit: "",
|