|
|
@@ -2,8 +2,23 @@
|
|
|
<div>
|
|
|
<Toptitle :title="type==1?'新增':type==2?'编辑':'详情'">
|
|
|
<Button @click="$router.go(-1)" style="margin-right:10px">取消</Button>
|
|
|
- <Button type='error' style="margin-right:10px" @click="handleDel">强制删除</Button>
|
|
|
- <Button @click="handleTakeApart" style="margin-right:10px" type='primary' v-show="type==2">批量拆单</Button>
|
|
|
+ <Dropdown style="margin-right: 10px" @on-click='handleBtn'>
|
|
|
+ <Button type="primary">
|
|
|
+ 全选
|
|
|
+ <Icon type="ios-arrow-down"></Icon>
|
|
|
+ </Button>
|
|
|
+ <DropdownMenu slot="list" >
|
|
|
+ <DropdownItem :name='1' v-show="type==2">全选可拆单数据</DropdownItem>
|
|
|
+ <DropdownItem :name='2' v-show="type==2">全选可修改内部图号数据</DropdownItem>
|
|
|
+ <DropdownItem :name='3'>全选可强制删除数据</DropdownItem>
|
|
|
+ <DropdownItem :name='4' v-show="type==3">全选可下生产数据</DropdownItem>
|
|
|
+ <DropdownItem :name='5' v-show="type==3" >全选可用料统计数据</DropdownItem>
|
|
|
+ </DropdownMenu>
|
|
|
+ </Dropdown>
|
|
|
+ <Button type="warning" style="margin-right:10px" @click="cancelTotalChoose">取消全选</Button>
|
|
|
+ <Button type='error' style="margin-right:10px" @click="handleDel" :disabled='delState'>强制删除</Button>
|
|
|
+ <Button @click="handleTakeApart(1)" style="margin-right:10px" type='primary' v-show="type==2" :disabled='takeApartState'>批量拆单</Button>
|
|
|
+ <Button @click="handleTakeApart(2)" style="margin-right:10px" type='primary' v-show="type==2" :disabled='takeApartState'>批量修改内部图号</Button>
|
|
|
<Upload
|
|
|
ref="upload"
|
|
|
name="your_file"
|
|
|
@@ -16,7 +31,8 @@
|
|
|
v-show="false"
|
|
|
>
|
|
|
</Upload>
|
|
|
- <Button @click="handleExport" type="primary" v-if="type==3" style="margin-right:10px">批量下生产</Button>
|
|
|
+ <Button @click="handleExport" type="primary" v-if="type==3" style="margin-right:10px" :disabled='exportState'>批量下生产</Button>
|
|
|
+ <Button @click="handleTotal" type="primary" v-if="type==3" style="margin-right:10px" :disabled='totalState'>用料统计</Button>
|
|
|
<Button type="primary" @click="handleSubmit('formValidate')" v-if="type!=3">保存</Button>
|
|
|
</Toptitle>
|
|
|
<Form ref="formValidate" :model="formData" :rules="ruleValidate" class="form_content" :label-width='120'>
|
|
|
@@ -26,10 +42,10 @@
|
|
|
<FormItem label='项目名称:' prop='residential_name'>
|
|
|
<Input v-model="formData.residential_name" clearable class="form_item" placeholder="请输入项目名称" :disabled='type==3'/>
|
|
|
</FormItem>
|
|
|
- <FormItem label="项目简称:" prop='abbreviation'>
|
|
|
+ <FormItem label="项目简称:">
|
|
|
<Input v-model="formData.abbreviation" clearable class="form_item" placeholder="请输入项目简称" :disabled='type==3'/>
|
|
|
</FormItem>
|
|
|
- <FormItem label="客户:" prop='custom_id'>
|
|
|
+ <FormItem label="客户:">
|
|
|
<Select v-model="formData.custom_id" clearable class="form_item" :disabled='type==3'>
|
|
|
<Option v-for="item in customList" :key="item.id" :value="item.id" :label="item.nickname" :disabled='type==3'/>
|
|
|
</Select>
|
|
|
@@ -81,12 +97,12 @@
|
|
|
</Select>
|
|
|
</FormItem>
|
|
|
<FormItem label='楼层:'>
|
|
|
- <Select filterable clearable class="form_item" v-model="searchData.layer">
|
|
|
+ <Select filterable class="form_item" v-model="searchData.layer" multiple>
|
|
|
<Option v-for="(item,index) in TableLayerList" :key="index" :value="item" :label="item"/>
|
|
|
</Select>
|
|
|
</FormItem>
|
|
|
<FormItem label='房号:'>
|
|
|
- <Select filterable clearable class="form_item" v-model="searchData.number">
|
|
|
+ <Select filterable multiple class="form_item" v-model="searchData.number">
|
|
|
<Option v-for="(item,index) in TableNumberList" :key="index" :value="item" :label="item"/>
|
|
|
</Select>
|
|
|
</FormItem>
|
|
|
@@ -95,13 +111,13 @@
|
|
|
<Option v-for="(item,index) in productTypeList" :key="index" :value="item" :label="item"/>
|
|
|
</Select>
|
|
|
</FormItem>
|
|
|
- <FormItem label='图号:'>
|
|
|
- <Select filterable clearable class="form_item" v-model="searchData.url_number">
|
|
|
+ <FormItem label='产品名称:'>
|
|
|
+ <Select filterable clearable class="form_item" v-model="searchData.title">
|
|
|
<Option v-for="(item,index) in productTitleList" :key="index" :value="item" :label="item"/>
|
|
|
</Select>
|
|
|
</FormItem>
|
|
|
- <FormItem label='产品名称:'>
|
|
|
- <Select filterable clearable class="form_item" v-model="searchData.title">
|
|
|
+ <FormItem label='图号:'>
|
|
|
+ <Select filterable class="form_item" v-model="searchData.url_number" multiple>
|
|
|
<Option v-for="(item,index) in urlNumberList" :key="index" :value="item" :label="item"/>
|
|
|
</Select>
|
|
|
</FormItem>
|
|
|
@@ -161,10 +177,20 @@
|
|
|
:data="tableData"
|
|
|
:column-config="{resizable: true}"
|
|
|
:edit-config="{trigger: 'click', mode: 'row'}"
|
|
|
- @checkbox-change='handleSelectTable'
|
|
|
- @checkbox-all='handleSelectAll'
|
|
|
+
|
|
|
>
|
|
|
- <vxe-column type="checkbox" width="80" title="选择"></vxe-column>
|
|
|
+ <!-- @checkbox-change='handleSelectTable'
|
|
|
+ @checkbox-all='handleSelectAll'
|
|
|
+ :checkbox-config="{checkMethod: ({row})=>(row.status==0), highlight: true}" -->
|
|
|
+ <!-- <vxe-column type="checkbox" width="80" title="选择"></vxe-column> -->
|
|
|
+ <vxe-column field="checkBox" width="80" title="选择">
|
|
|
+ <!-- <template #header>
|
|
|
+ <vxe-checkbox v-model="selectTrue" content="用料统计选择" @change='handleTotalChange'></vxe-checkbox>
|
|
|
+ </template> -->
|
|
|
+ <template #default="{row,rowIndex}">
|
|
|
+ <vxe-checkbox v-model="row.checked" @change="handleSingleCheck(row,rowIndex)"></vxe-checkbox>
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
<vxe-column field="order_number" width="120" title="订单编号"></vxe-column>
|
|
|
<vxe-column field="area" width="60" title="区域"></vxe-column>
|
|
|
<vxe-column field="house" width="60" title="楼栋"></vxe-column>
|
|
|
@@ -194,6 +220,16 @@
|
|
|
<vxe-input v-model="row.url_number" type="text"></vxe-input>
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
+ <vxe-column field="in_url_number" title="内部图号" min-width="80">
|
|
|
+ <!-- <template #default="{ row }"> -->
|
|
|
+ <!-- <span>{{row.in_url_number?inUrlNumber.find(v=>(v.id==row.in_url_number)).url_number:''}}</span>
|
|
|
+ </template> -->
|
|
|
+ <!-- <template #edit="{ row }">
|
|
|
+ <vxe-select v-model="row.in_url_number" :filterable='true' clearable transfer @change="handleInUrlNumber">
|
|
|
+ <vxe-option v-for="(item,index) in inUrlNumber" :key="index" :value="item.id" :label="item.url_number"></vxe-option>
|
|
|
+ </vxe-select> -->
|
|
|
+ <!-- </template> -->
|
|
|
+ </vxe-column>
|
|
|
<!-- <vxe-column field="measure" title="型号" :edit-render="{enabled:type==3?false:true}" min-width="80">
|
|
|
<template #edit="{ row }">
|
|
|
<vxe-input v-model="row.measure" type="text" placeholder="请输入型号"></vxe-input>
|
|
|
@@ -219,16 +255,18 @@
|
|
|
<vxe-input v-model="row.high" type="text" placeholder="请输入高" transfer></vxe-input>
|
|
|
</template>
|
|
|
</vxe-column> -->
|
|
|
- <!-- <vxe-column field="url" title="图纸" min-width="80">
|
|
|
+ <vxe-column field="url" title="图纸" min-width="80">
|
|
|
<template #default="{ row }">
|
|
|
<img
|
|
|
+ v-for="(item,index) in row.url"
|
|
|
+ :key="index"
|
|
|
@click="looks(row.url)"
|
|
|
- :src="$store.state.ip + row.url"
|
|
|
+ :src="$store.state.ip + item"
|
|
|
alt=""
|
|
|
style="width:40px;height:auto"
|
|
|
/>
|
|
|
</template>
|
|
|
- </vxe-column> -->
|
|
|
+ </vxe-column>
|
|
|
<!-- <vxe-column field="fashion" title="左右式" min-width="80">
|
|
|
<template #default='{row}'>
|
|
|
<span>{{row.fashion==1?'左':row.fashion==2?'右':''}}</span>
|
|
|
@@ -260,9 +298,9 @@
|
|
|
<template #default="{ row }">
|
|
|
<!-- <a style="margin-right:10px" @click="handleSet(row,1)" v-show="type==2&&row.status==0&&row.split_state==1">拆单</a> -->
|
|
|
<!-- <a style="margin-right:10px" @click="handleSet(row,2)" v-show="type!=3">复制</a> -->
|
|
|
- <a style="margin-right:10px" @click="handleSet(row,3)">详情</a>
|
|
|
+ <a style="margin-right:10px" @click="handleSet(row,3)" :disabled='row.explode_status==0'>详情</a>
|
|
|
<!-- <a @click="handleSet(row,4,$rowIndex)" v-show="type!=3">删除</a> -->
|
|
|
- <a @click="handleSet(row,5)" v-show="type==3&&row.explode_status==1&&row.status==0">下生产</a>
|
|
|
+ <a @click="handleSet(row,5)" v-show="type==3&&row.explode_status==1" :disabled='row.status==1'>下生产</a>
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
</vxe-table>
|
|
|
@@ -361,12 +399,61 @@
|
|
|
<Button type="primary" @click="handleDelSure">确认</Button>
|
|
|
</div>
|
|
|
</Modal>
|
|
|
+ <Modal title="批量修改内部图号" width='30' :closable='false' :mask-closable='false' v-model="showChangeUrlNumber">
|
|
|
+ <Select v-model="urlModalData.id" filterable clearable transfer>
|
|
|
+ <Option v-for="(item,index) in inUrlNumber" :key="index" :value="item.id" :label="item.url_number"></Option>
|
|
|
+ </Select>
|
|
|
+ <div slot="footer">
|
|
|
+ <Button @click="showChangeUrlNumber=false">取消</Button>
|
|
|
+ <Button type="primary" @click="handleUrlSure">确认</Button>
|
|
|
+ </div>
|
|
|
+ </Modal>
|
|
|
+ <Modal title="用料统计" width='50' v-model="show_total" :closable='false' :mask-closable='false'>
|
|
|
+ <Table :data='totalData' :columns='totalColumns' border max-height='550'></Table>
|
|
|
+ <Page
|
|
|
+ style="text-align:center;margin-top:10px"
|
|
|
+ :page-size-opts="[10, 20, 30, 40, 100]"
|
|
|
+ @on-page-size-change="TotalChangeSize"
|
|
|
+ @on-change="TotalChangePage"
|
|
|
+ :current="TotalPageIndex"
|
|
|
+ show-total
|
|
|
+ :total="TotalTotal"
|
|
|
+ show-sizer
|
|
|
+ :page-size="TotalPageSize"
|
|
|
+ transfer
|
|
|
+ />
|
|
|
+ <div slot="footer" style="text-align:center">
|
|
|
+ <Button @click="show_total=false" style="width:200px" type="primary">取消</Button>
|
|
|
+ </div>
|
|
|
+ </Modal>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
export default {
|
|
|
data(){
|
|
|
return{
|
|
|
+ delState:true,
|
|
|
+ totalState:true,
|
|
|
+ exportState:true,
|
|
|
+ takeApartState:true,
|
|
|
+ chooseData:[],
|
|
|
+ TotalPageSize:10,
|
|
|
+ TotalTotal:0,
|
|
|
+ TotalPageIndex:1,
|
|
|
+ totalData:[],
|
|
|
+ totalColumns:[
|
|
|
+ {title:'物料名称',align:'center',minWidth:120,key:'title'},
|
|
|
+ {title:'尺寸',align:'center',minWidth:120,key:'measure'},
|
|
|
+ {title:'面积',align:'center',minWidth:120,key:'area'},
|
|
|
+ {title:'长度',align:'center',minWidth:120,key:'long'},
|
|
|
+ {title:'数量',align:'center',minWidth:120,key:'num'}
|
|
|
+ ],
|
|
|
+ show_total:false,
|
|
|
+ urlModalData:{
|
|
|
+ id:''
|
|
|
+ },
|
|
|
+ showChangeUrlNumber:false,
|
|
|
+ inUrlNumber:[],
|
|
|
delData:{
|
|
|
user_name:'',
|
|
|
password:''
|
|
|
@@ -422,13 +509,13 @@ export default {
|
|
|
urlNumberList:[],
|
|
|
productTitleList:[],
|
|
|
searchData:{
|
|
|
- layer:'',
|
|
|
+ layer:[],
|
|
|
unit:'',
|
|
|
- number:'',
|
|
|
+ number:[],
|
|
|
area:'',
|
|
|
house:'',
|
|
|
product_type:'',
|
|
|
- url_number:'',
|
|
|
+ url_number:[],
|
|
|
title:'',
|
|
|
fashion:'',
|
|
|
explode_status:'',
|
|
|
@@ -500,6 +587,163 @@ export default {
|
|
|
this.initData();
|
|
|
},
|
|
|
methods:{
|
|
|
+ handleBtn(e){
|
|
|
+ switch(e){
|
|
|
+ case 1:
|
|
|
+ case 2:
|
|
|
+ this.handleChangeTakeApart()
|
|
|
+ break;
|
|
|
+ case 3:
|
|
|
+ this.handleChangeDel()
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ this.handleChangeExport()
|
|
|
+ break;
|
|
|
+ case 5:
|
|
|
+ this.handleChangeTotal()
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ handleSureState(){
|
|
|
+ let arr = this.tableData.filter(v=>(v.checked));
|
|
|
+this.takeApartState = false;
|
|
|
+this.delState = false;
|
|
|
+this.totalState = false;
|
|
|
+this.exportState = false;
|
|
|
+if(arr.length==0){
|
|
|
+ this.takeApartState = true;
|
|
|
+this.delState = true;
|
|
|
+this.totalState = true;
|
|
|
+this.exportState = true;
|
|
|
+ return;
|
|
|
+}
|
|
|
+ if(arr.find(v=>(v.status==0))){
|
|
|
+ this.delState = true;
|
|
|
+ }
|
|
|
+ if(arr.find(v=>(v.explode_status==0))){
|
|
|
+ this.totalState = true;
|
|
|
+ }
|
|
|
+ if(arr.find(v=>(v.status==1||v.explode_status==0))){
|
|
|
+ this.exportState=true;
|
|
|
+ }
|
|
|
+ if(arr.find(v=>(v.status==1))){
|
|
|
+ this.takeApartState=true;
|
|
|
+ }
|
|
|
+
|
|
|
+ this.$forceUpdate();
|
|
|
+ },
|
|
|
+ cancelTotalChoose(){
|
|
|
+ this.tableData.forEach((v,index)=>{
|
|
|
+ v.checked = false;
|
|
|
+ this.tableData.splice(index,1,JSON.parse(JSON.stringify(v)));
|
|
|
+ })
|
|
|
+ this.handleSureState();
|
|
|
+ },
|
|
|
+ handleChangeTotal(){
|
|
|
+ this.tableData.forEach((v,index)=>{
|
|
|
+ if(v.explode_status==1){
|
|
|
+ v.checked = true;
|
|
|
+ }else{
|
|
|
+ v.checked = false;
|
|
|
+ }
|
|
|
+ this.tableData.splice(index,1,JSON.parse(JSON.stringify(v)));
|
|
|
+ })
|
|
|
+ this.handleSureState();
|
|
|
+ },
|
|
|
+ handleChangeExport(){
|
|
|
+ this.tableData.forEach((v,index)=>{
|
|
|
+ if(v.status==0&&v.explode_status==1){
|
|
|
+ v.checked = true;
|
|
|
+ }else{
|
|
|
+ v.checked = false;
|
|
|
+ }
|
|
|
+ this.tableData.splice(index,1,JSON.parse(JSON.stringify(v)));
|
|
|
+ })
|
|
|
+ this.handleSureState();
|
|
|
+ },
|
|
|
+ handleChangeTakeApart(){
|
|
|
+ this.tableData.forEach((v,index)=>{
|
|
|
+ if(v.status==0){
|
|
|
+ v.checked = true;
|
|
|
+ }else{
|
|
|
+ v.checked = false;
|
|
|
+ }
|
|
|
+ this.tableData.splice(index,1,JSON.parse(JSON.stringify(v)));
|
|
|
+ })
|
|
|
+ this.handleSureState();
|
|
|
+ },
|
|
|
+ handleChangeDel(){
|
|
|
+ this.tableData.forEach((v,index)=>{
|
|
|
+ if(v.status==1){
|
|
|
+ v.checked = true;
|
|
|
+ }else{
|
|
|
+ v.checked = false;
|
|
|
+ }
|
|
|
+ this.tableData.splice(index,1,JSON.parse(JSON.stringify(v)));
|
|
|
+ })
|
|
|
+ this.handleSureState();
|
|
|
+ },
|
|
|
+ handleSingleCheck(row,index){
|
|
|
+ this.tableData.splice(index,1,row);
|
|
|
+ this.handleSureState();
|
|
|
+ },
|
|
|
+ handleTotalChange(e){
|
|
|
+ if(this.selectTrue){
|
|
|
+ this.tableData.forEach((v,index)=>{
|
|
|
+ v.checked = true;
|
|
|
+ this.tableData.splice(index,1,JSON.parse(JSON.stringify(v)))
|
|
|
+ })
|
|
|
+ this.chooseData = JSON.parse(JSON.stringify(this.tableData));
|
|
|
+ }else{
|
|
|
+ this.tableData.forEach((v,index)=>{
|
|
|
+ v.checked = false;
|
|
|
+ this.tableData.splice(index,1,JSON.parse(JSON.stringify(v)))
|
|
|
+ })
|
|
|
+ this.chooseData = [];
|
|
|
+ }
|
|
|
+ },
|
|
|
+ totalInitData(){
|
|
|
+ let id =[];
|
|
|
+ this.selectData.forEach(v=>{
|
|
|
+ id.push(v.id);
|
|
|
+ })
|
|
|
+ this.axios.post('/api/report_product_detail',{page_size:this.TotalPageSize,page_index:this.TotalPageIndex,id}).then(res=>{
|
|
|
+ this.totalData = res.data.data;
|
|
|
+ this.TotalTotal = res.data.total;
|
|
|
+ })
|
|
|
+ },
|
|
|
+ TotalChangePage(e){
|
|
|
+ this.TotalPageIndex = e;
|
|
|
+ this.totalInitData();
|
|
|
+ },
|
|
|
+ TotalChangeSize(e){
|
|
|
+ this.TotalPageSize = e;
|
|
|
+ this.TotalPageIndex = 1;
|
|
|
+ this.totalInitData();
|
|
|
+ },
|
|
|
+ handleTotal(){
|
|
|
+ // if(this.chooseData.length==0){
|
|
|
+ // return this.$Message.warning('请先选择数据!')
|
|
|
+ // }
|
|
|
+ this.selectData = this.tableData.filter(v=>(v.checked));
|
|
|
+ this.totalInitData();
|
|
|
+ this.TotalPageSize=10;
|
|
|
+ this.TotalPageIndex=1;
|
|
|
+ this.show_total=true;
|
|
|
+ },
|
|
|
+ handleUrlSure(){
|
|
|
+ if(!this.urlModalData.id){
|
|
|
+ return this.$Message.warning('请选择内部图号!');
|
|
|
+ }
|
|
|
+ this.axios.post('/api/split_import_news',{list:this.selectData,consult_detail_id:this.urlModalData.id}).then(res=>{
|
|
|
+ if(res.code==200){
|
|
|
+ this.$Message.success(res.msg);
|
|
|
+ this.showChangeUrlNumber=false;
|
|
|
+ this.initData(this.proxyData);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
handleDelSure(){
|
|
|
if(!this.delData.password||!this.delData.user_name){
|
|
|
return this.$Message.warning('请输入完整信息!')
|
|
|
@@ -519,6 +763,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
handleDel(){
|
|
|
+ this.selectData = this.tableData.filter(v=>(v.checked));
|
|
|
if(this.selectData.length==0){
|
|
|
return this.$Message.warning('请选择要强制删除的数据!');
|
|
|
}
|
|
|
@@ -529,6 +774,7 @@ export default {
|
|
|
this.show_del=true;
|
|
|
},
|
|
|
handleExport(){
|
|
|
+ this.selectData = this.tableData.filter(v=>(v.checked));
|
|
|
if(this.selectData.length==0){
|
|
|
return this.$Message.warning('请选择要下生产的数据!');
|
|
|
}
|
|
|
@@ -540,7 +786,7 @@ export default {
|
|
|
this.selectData.forEach(v=>{
|
|
|
data.push({
|
|
|
url_number:[v.url_number],
|
|
|
- cut_order_product_ids:v.cut_order_product_ids,
|
|
|
+ cut_order_product_ids:v.cut_order_product_id,
|
|
|
measure:[v.measure],
|
|
|
house_id:[v.house_id],
|
|
|
order_no:v.order_no
|
|
|
@@ -596,17 +842,29 @@ export default {
|
|
|
this.selectData = data;
|
|
|
|
|
|
},
|
|
|
- handleTakeApart(){
|
|
|
+ handleTakeApart(type){
|
|
|
+ this.selectData = this.tableData.filter(v=>(v.checked));
|
|
|
if(this.selectData.length==0){
|
|
|
return this.$Message.warning('请选择需要拆单的数据!');
|
|
|
}
|
|
|
- if(!this.selectData.every(v=>(v.url_number==this.selectData[0].url_number))){
|
|
|
- return this.$Message.warning('批量拆单只能选择一个图号!')
|
|
|
- }
|
|
|
- if(!this.selectData.every(v=>(v.status==0))){
|
|
|
- return this.$Message.warning('选择的数据中有不能拆单的数据!')
|
|
|
+ // if(!this.selectData.every(v=>(v.url_number==this.selectData[0].url_number))){
|
|
|
+ // return this.$Message.warning('批量拆单只能选择一种图号!')
|
|
|
+ // }
|
|
|
+ // if(!this.selectData.every(v=>(v.status==0))){
|
|
|
+ // return this.$Message.warning('选择的数据中有不能拆单的数据!')
|
|
|
+ // }
|
|
|
+ if(type==1){
|
|
|
+ document.getElementsByClassName('ivu-upload-input')[0].click();
|
|
|
+ }else{
|
|
|
+ this.urlModalData.id='';
|
|
|
+ //获取内部图号
|
|
|
+ this.axios.post('/api/consult_number_list',{order_no:this.$route.query}).then(res=>{
|
|
|
+ this.inUrlNumber = res.data.data;
|
|
|
+ this.showChangeUrlNumber = true;
|
|
|
+ })
|
|
|
+
|
|
|
}
|
|
|
- document.getElementsByClassName('ivu-upload-input')[0].click();
|
|
|
+
|
|
|
},
|
|
|
handleNumSearch(){
|
|
|
let obj = JSON.parse(JSON.stringify(this.modalNumData));
|
|
|
@@ -668,12 +926,16 @@ export default {
|
|
|
this.initData(obj);
|
|
|
},
|
|
|
looks(img) {
|
|
|
- const array = [{ img_url: img }];
|
|
|
+ const array = [];
|
|
|
+ img.forEach(v=>{
|
|
|
+ array.push({img_url:v})
|
|
|
+ })
|
|
|
this.$previewImg({
|
|
|
list: array,
|
|
|
baseUrl: this.$store.state.ip,
|
|
|
baseImgField: "img_url",
|
|
|
baseTitleField: "",
|
|
|
+ showPrint:true
|
|
|
});
|
|
|
},
|
|
|
initData(row){
|
|
|
@@ -689,7 +951,8 @@ export default {
|
|
|
this.TableNumberList = res.data.number;
|
|
|
this.TableLayerList = res.data.layer;
|
|
|
this.tableData.forEach((v,index)=>{
|
|
|
- v.index = index+1
|
|
|
+ v.index = index+1;
|
|
|
+ v.checked = false;
|
|
|
})
|
|
|
this.formData = JSON.parse(JSON.stringify(res.data));
|
|
|
delete this.formData.detail;
|