|
|
@@ -451,13 +451,13 @@
|
|
|
<div class="content_header">
|
|
|
<h2>产品信息</h2>
|
|
|
<div>
|
|
|
- <Button
|
|
|
+ <!-- <Button
|
|
|
type="primary"
|
|
|
style="margin-right: 10px"
|
|
|
v-show="type != 3"
|
|
|
@click="handleMetalAdd"
|
|
|
>新增五金</Button
|
|
|
- >
|
|
|
+ > -->
|
|
|
<Button
|
|
|
type="primary"
|
|
|
style="margin-right: 10px"
|
|
|
@@ -465,20 +465,20 @@
|
|
|
@click="handleShowMaterial"
|
|
|
>{{ is_material_show ? "收起" : "查看" }}原材料</Button
|
|
|
>
|
|
|
- <Button
|
|
|
+ <!-- <Button
|
|
|
type="primary"
|
|
|
style="margin-right: 10px"
|
|
|
v-show="type != 3"
|
|
|
@click="handleTableAdd"
|
|
|
>新增产品(简)</Button
|
|
|
- >
|
|
|
- <Button
|
|
|
+ > -->
|
|
|
+ <!-- <Button
|
|
|
type="primary"
|
|
|
style="margin-right: 10px"
|
|
|
v-show="type != 3"
|
|
|
@click="handleSet({}, null, 1)"
|
|
|
>新增产品(详)</Button
|
|
|
- >
|
|
|
+ > -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -2581,25 +2581,12 @@ export default {
|
|
|
let sendData = JSON.parse(JSON.stringify(this.info));
|
|
|
// sendData.custom_detail_id = sendData.custom_id
|
|
|
// let sendList = JSON.parse(JSON.stringify(this.tableData));
|
|
|
- let sendList = this.tableData.filter((v) => !v.is_metal);
|
|
|
+ let sendList = this.tableData.filter((v) => !v.is_metal && v.product_id);
|
|
|
let _save_metal = this.tableData.filter((v) => v.is_metal && v.id);
|
|
|
_save_metal.map((v) => {
|
|
|
v.type = 1;
|
|
|
v.material_id = v.product_id;
|
|
|
});
|
|
|
- // this.tableData.map((item, index) => {
|
|
|
- // if (!item.is_metal) {
|
|
|
- // item.part.map((it, idx) => {
|
|
|
- // if (!it.is_metal) {
|
|
|
- // if (!sendList[index].part) {
|
|
|
- // sendList[index].part = [];
|
|
|
- // }
|
|
|
- // sendList[index].part[idx] = it;
|
|
|
- // }
|
|
|
- // });
|
|
|
- // }
|
|
|
- // });
|
|
|
- // sendList= this.tableData.filter(item)
|
|
|
sendList.map((element, index) => {
|
|
|
element.part.map((elem) => {
|
|
|
if (!elem.is_metal) {
|
|
|
@@ -2671,7 +2658,7 @@ export default {
|
|
|
this.tableData.forEach((element) => {
|
|
|
//表格编辑用数据
|
|
|
element.num_temp_save = element.num || 1;
|
|
|
- if (element.length > 0) {
|
|
|
+ if (element.ext.length > 0) {
|
|
|
element.ext.map((v, k) => {
|
|
|
if (v.type == 2) {
|
|
|
v.id = v.ext_id;
|
|
|
@@ -3243,6 +3230,7 @@ export default {
|
|
|
this.info.custom_detail_id = this.clientDetailList_respon[0].id || 0;
|
|
|
this.info.service_id = res.data.detail.service_id;
|
|
|
this.fax = res.data.detail.fax;
|
|
|
+ this.HandleAutoCreateNewLine();
|
|
|
this.$forceUpdate();
|
|
|
});
|
|
|
} else {
|
|
|
@@ -3699,19 +3687,6 @@ export default {
|
|
|
measure: this._measure, //测量字段数组
|
|
|
support_remark: this.support_remark, //备注列表
|
|
|
is_metal: false,
|
|
|
- ext: [],
|
|
|
- extArray: [
|
|
|
- {
|
|
|
- num: 0,
|
|
|
- price: 0,
|
|
|
- total_price: 0,
|
|
|
- type: 2,
|
|
|
- remark: "",
|
|
|
- title: "",
|
|
|
- id: "",
|
|
|
- is_metal: true,
|
|
|
- },
|
|
|
- ],
|
|
|
process_obj: JSON.parse(JSON.stringify(this.process_obj)), //工艺属性含选项对象
|
|
|
};
|
|
|
obj.process_obj.map(
|
|
|
@@ -3811,7 +3786,9 @@ export default {
|
|
|
if (!row.is_metal) {
|
|
|
this.route_id_at_copy = row.route_id;
|
|
|
}
|
|
|
- this.pre_process_obj = JSON.parse(JSON.stringify(row.procedure_properties))
|
|
|
+ this.pre_process_obj = JSON.parse(
|
|
|
+ JSON.stringify(row.procedure_properties)
|
|
|
+ );
|
|
|
this.tableData.splice(index + 1, 0, obj);
|
|
|
this.handleCalcCount();
|
|
|
break;
|
|
|
@@ -4238,7 +4215,7 @@ export default {
|
|
|
} else {
|
|
|
for (const key in this.pre_process_obj) {
|
|
|
const item = this.pre_process_obj[key];
|
|
|
- row[key] = item*1;
|
|
|
+ row[key] = item * 1;
|
|
|
}
|
|
|
element.change_id = element.change[0].id;
|
|
|
}
|