|
@@ -40,7 +40,7 @@
|
|
<Button
|
|
<Button
|
|
type="primary"
|
|
type="primary"
|
|
ghost
|
|
ghost
|
|
- @click="showModal = true"
|
|
|
|
|
|
+ @click="replaceItem"
|
|
style="margin-right:10px;"
|
|
style="margin-right:10px;"
|
|
>批改替换项</Button
|
|
>批改替换项</Button
|
|
>
|
|
>
|
|
@@ -144,13 +144,19 @@
|
|
<Button type="primary" ghost style="border-radius:10px"
|
|
<Button type="primary" ghost style="border-radius:10px"
|
|
>无</Button
|
|
>无</Button
|
|
>
|
|
>
|
|
|
|
+ <Button type="primary" ghost style="border-radius:10px;margin-left:20px" @click="add"
|
|
|
|
+ ><Icon type="md-add" :size='20'/></Button
|
|
|
|
+ >
|
|
</div>
|
|
</div>
|
|
- <div v-else class="show_modal_content_left_item_detail_warp">
|
|
|
|
|
|
+ <div v-else class="show_modal_content_left_item_detail_warp" >
|
|
<div
|
|
<div
|
|
class="show_modal_content_left_item_detail"
|
|
class="show_modal_content_left_item_detail"
|
|
v-for="part in productPartList"
|
|
v-for="part in productPartList"
|
|
:key="part.id"
|
|
:key="part.id"
|
|
|
|
+ id="content_left_item"
|
|
>
|
|
>
|
|
|
|
+ <svg t="1638267575516" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3395" width="200" height="200" style="position: relative;left: 6px;top: -10px;" @click="edit(part)"><path d="M1005.037624 158.992107 899.701554 264.044722 759.214916 123.967406 864.587825 18.915815c19.389606-19.335371 50.835805-19.335371 70.225411 0l70.224388 70.047356C1024.42723 108.297518 1024.42723 139.656737 1005.037624 158.992107zM267.31879 614.19145l140.484591 140.091642-187.231265 46.62183L267.31879 614.19145zM864.587825 299.04998l-421.387259 420.210457L302.75179 579.203588l421.352467-420.211481L864.587825 299.04998zM113.70518 181.723831l0 728.575594 728.57764 0L842.28282 363.868241l109.289102-72.858378 0 692.146916c0 27.535123-8.895601 36.429701-36.432771 36.429701L54.296115 1019.58648c-27.535123 0-49.875944-22.305005-49.875944-49.841152L4.420171 108.866477c0-27.535123 8.858762-36.429701 36.428677-36.429701l692.14794 0L623.709733 181.723831 113.70518 181.723831z" p-id="3396" fill="#707070"></path></svg>
|
|
|
|
+ <!-- <Icon type="md-create" style="position: relative;left: 10px;top: -8px;" color='black' :size='10'/> -->
|
|
<Button
|
|
<Button
|
|
type="primary"
|
|
type="primary"
|
|
:ghost="!part.isSelect"
|
|
:ghost="!part.isSelect"
|
|
@@ -158,7 +164,12 @@
|
|
@click="handlePartClick(part, 3)"
|
|
@click="handlePartClick(part, 3)"
|
|
>{{ part.title }}</Button
|
|
>{{ part.title }}</Button
|
|
>
|
|
>
|
|
|
|
+ <svg t="1638267935515" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5634" width="200" height="200" style="position: relative;left: -8px;top: -10px;" @click="del"><path d="M585.412525 512.594747L973.601616 124.418586c19.600808-19.600808 19.600808-51.898182 0-71.49899l-2.120404-2.120404c-19.600808-19.600808-51.898182-19.600808-71.49899 0L511.793131 439.518384 123.61697 50.799192c-19.600808-19.600808-51.898182-19.600808-71.49899 0l-2.120404 2.120404c-20.11798 19.600808-20.11798 51.898182 0 71.49899l388.189091 388.189091L49.997576 900.783838c-19.587879 19.600808-19.587879 51.898182 0 71.49899l2.120404 2.120404c19.600808 19.600808 51.898182 19.600808 71.49899 0L511.793131 586.214141l388.189091 388.176162c19.600808 19.600808 51.898182 19.600808 71.49899 0l2.120404-2.120404c19.600808-19.600808 19.600808-51.898182 0-71.49899L585.412525 512.594747z m0 0" p-id="5635" fill="#707070"></path></svg>
|
|
|
|
+ <!-- <Icon type="md-close" style="position: relative;left: -10px;top: -8px;" color='black' :size='20'/> -->
|
|
</div>
|
|
</div>
|
|
|
|
+ <Button type="primary" ghost style="border-radius:10px;margin-left:10px" @click="add"
|
|
|
|
+ ><Icon type="md-add" :size='20'/></Button
|
|
|
|
+ >
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -224,6 +235,68 @@
|
|
</div>
|
|
</div>
|
|
<div slot="footer"></div>
|
|
<div slot="footer"></div>
|
|
</Modal>
|
|
</Modal>
|
|
|
|
+
|
|
|
|
+ <Modal
|
|
|
|
+ v-model="edit_showModel"
|
|
|
|
+ title="批量修改部件"
|
|
|
|
+ width="400"
|
|
|
|
+ :draggable='true'
|
|
|
|
+ >
|
|
|
|
+ <Form :model='formData' >
|
|
|
|
+ <FormItem >
|
|
|
|
+ <span>默认部件:</span>
|
|
|
|
+ <Select v-model="formData.edit_part" style="width:140px">
|
|
|
|
+ <Option v-for="item in productPartList" :key="item.id" :value="item.id">
|
|
|
|
+ {{item.title}}
|
|
|
|
+ </Option>
|
|
|
|
+ </Select>
|
|
|
|
+ </FormItem>
|
|
|
|
+ <FormItem >
|
|
|
|
+ <span>高:</span><Input type="number" style='width:60px;margin-right:20px' v-model="defaultPart.formula_l"/>
|
|
|
|
+ <span>宽:</span><Input type="number" style='width:60px;margin-right:20px' v-model="defaultPart.formula_w"/>
|
|
|
|
+ <span>厚:</span><Input type="number" style='width:60px' v-model="defaultPart.formula_h"/>
|
|
|
|
+ </FormItem>
|
|
|
|
+ <FormItem>
|
|
|
|
+ <span>是否为空: <vxe-switch v-model="defaultPart.is_null"></vxe-switch> </span>
|
|
|
|
+ </FormItem>
|
|
|
|
+ </Form>
|
|
|
|
+ </Modal>
|
|
|
|
+
|
|
|
|
+ <Modal title="批量修改部件"
|
|
|
|
+ width="400"
|
|
|
|
+ v-model="del_showModel"
|
|
|
|
+
|
|
|
|
+ >
|
|
|
|
+ <div style="text-align:center">是否确定删除该部件?</div>
|
|
|
|
+
|
|
|
|
+ </Modal>
|
|
|
|
+
|
|
|
|
+ <Modal
|
|
|
|
+ v-model="add_showModel"
|
|
|
|
+ title="批量增加部件"
|
|
|
|
+ width="400"
|
|
|
|
+ :draggable='true'
|
|
|
|
+ >
|
|
|
|
+ <Form :model='formData' >
|
|
|
|
+ <FormItem >
|
|
|
|
+ <span>默认部件:</span>
|
|
|
|
+ <Select v-model="formData.edit_part" style="width:140px">
|
|
|
|
+ <Option v-for="item in productPartList" :key="item.id" :value="item.id">
|
|
|
|
+ {{item.title}}
|
|
|
|
+ </Option>
|
|
|
|
+ </Select>
|
|
|
|
+ </FormItem>
|
|
|
|
+ <FormItem >
|
|
|
|
+ <span>高:</span><Input type="number" style='width:60px;margin-right:20px' v-model="defaultPart.formula_l"/>
|
|
|
|
+ <span>宽:</span><Input type="number" style='width:60px;margin-right:20px' v-model="defaultPart.formula_w"/>
|
|
|
|
+ <span>厚:</span><Input type="number" style='width:60px' v-model="defaultPart.formula_h"/>
|
|
|
|
+ </FormItem>
|
|
|
|
+ <FormItem>
|
|
|
|
+ <span>是否为空: <vxe-switch v-model="defaultPart.is_null"></vxe-switch> </span>
|
|
|
|
+ </FormItem>
|
|
|
|
+ </Form>
|
|
|
|
+ </Modal>
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -234,6 +307,12 @@ export default {
|
|
components: { KeyBoard },
|
|
components: { KeyBoard },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ add_showModel:false,
|
|
|
|
+ edit_showModel:false,
|
|
|
|
+ del_showModel:false,
|
|
|
|
+ formData:{
|
|
|
|
+ edit_part:null,
|
|
|
|
+ },
|
|
list: [
|
|
list: [
|
|
{
|
|
{
|
|
title: "产品名称",
|
|
title: "产品名称",
|
|
@@ -563,6 +642,15 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ replaceItem(){
|
|
|
|
+ this.showModal = true;
|
|
|
|
+ },
|
|
|
|
+ add(){
|
|
|
|
+ this.add_showModel = true;
|
|
|
|
+ },
|
|
|
|
+ del(){
|
|
|
|
+ this.del_showModel = true;
|
|
|
|
+ },
|
|
init(row) {
|
|
init(row) {
|
|
this.pageIndex = 1;
|
|
this.pageIndex = 1;
|
|
row.page_index = this.pageIndex;
|
|
row.page_index = this.pageIndex;
|
|
@@ -731,6 +819,14 @@ export default {
|
|
// this.proxyObj.sortList = sortList;
|
|
// this.proxyObj.sortList = sortList;
|
|
this.getData(this.proxyObj);
|
|
this.getData(this.proxyObj);
|
|
},
|
|
},
|
|
|
|
+ edit(val){
|
|
|
|
+ this.productPartList.forEach(v=>{
|
|
|
|
+ v.isSelect = false;
|
|
|
|
+ })
|
|
|
|
+ val.isSelect = !val.isSelect
|
|
|
|
+ console.log(val)
|
|
|
|
+ this.edit_showModel = true;
|
|
|
|
+ },
|
|
goPage(n, row) {
|
|
goPage(n, row) {
|
|
//n = 1 新增 2 编辑 3 查看
|
|
//n = 1 新增 2 编辑 3 查看
|
|
let id = row ? row.id : "";
|
|
let id = row ? row.id : "";
|