|
@ -22,28 +22,21 @@ |
|
|
<el-input v-model="queryParams.params.billNo" placeholder="" clearable/> |
|
|
<el-input v-model="queryParams.params.billNo" placeholder="" clearable/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="单据日期"> |
|
|
<el-form-item label="单据日期"> |
|
|
<el-date-picker v-model="queryParams.params.createStartTime" type="date" placeholder="选择日期" |
|
|
<el-date-picker v-model="queryParams.params.createStartTime" type="date" placeholder="选择日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;" /> |
|
|
format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;"> |
|
|
<span style="padding: 0 8px">至</span> |
|
|
</el-date-picker>至 |
|
|
<el-date-picker v-model="queryParams.params.createEndTime" type="date" placeholder="选择日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;" /> |
|
|
<el-date-picker v-model="queryParams.params.createEndTime" type="date" placeholder="选择日期" |
|
|
|
|
|
format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;"> |
|
|
|
|
|
</el-date-picker> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="办结日期"> |
|
|
<el-form-item label="办结日期"> |
|
|
<el-date-picker v-model="queryParams.params.finishStartTime" type="date" placeholder="选择日期" |
|
|
<el-date-picker v-model="queryParams.params.finishStartTime" type="date" placeholder="选择日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;" /> |
|
|
format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;"> |
|
|
<span style="padding: 0 8px">至</span> |
|
|
</el-date-picker> |
|
|
<el-date-picker v-model="queryParams.params.finishEndTime" type="date" placeholder="选择日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;" /> |
|
|
至 |
|
|
|
|
|
<el-date-picker v-model="queryParams.params.finishEndTime" type="date" placeholder="选择日期" |
|
|
|
|
|
format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;"> |
|
|
|
|
|
</el-date-picker> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<!-- <el-form-item label="厂家确认结果"> |
|
|
<el-form-item label="厂家确认结果"> |
|
|
<el-select v-model="queryParams.params.billState" placeholder="请选择"> |
|
|
<el-select v-model="queryParams.params.confirmResult" placeholder="请选择"> |
|
|
<el-option v-for="(item,i) in confirmResultsList" :key="i" :label="item.name" :value="item.sid"> |
|
|
<el-option v-for="(item,i) in confirmResultsList" :key="i" :label="item.name" :value="item.sid"> |
|
|
</el-option> |
|
|
</el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> --> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<div class="btn" style="text-align: center;"> |
|
|
<div class="btn" style="text-align: center;"> |
|
|
<el-button type="primary" size="small" icon="el-icon-search" @click="dosearch">查询</el-button> |
|
|
<el-button type="primary" size="small" icon="el-icon-search" @click="dosearch">查询</el-button> |
|
@ -58,14 +51,11 @@ |
|
|
<!-- End 项目列表头部 --> |
|
|
<!-- End 项目列表头部 --> |
|
|
<!-- Start 项目列表 --> |
|
|
<!-- Start 项目列表 --> |
|
|
<div class=""> |
|
|
<div class=""> |
|
|
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%" |
|
|
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%" @selection-change="selectionLineChangeHandle"> |
|
|
@selection-change="selectionLineChangeHandle"> |
|
|
|
|
|
<el-table-column fixed width="50" type="selection" align="center"/> |
|
|
<el-table-column fixed width="50" type="selection" align="center"/> |
|
|
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center"/> |
|
|
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center"/> |
|
|
<el-table-column fixed label="操作" align="center" width="100"> |
|
|
<el-table-column fixed label="操作" align="center" width="100"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<!-- <el-button type="primary" size="mini" :disabled="scope.row.nodeState!='待提交'" |
|
|
|
|
|
@click="toEdit(scope.row)">办理</el-button> --> |
|
|
|
|
|
<el-button type="primary" size="mini" @click="toRelevancy(scope.row)">查看</el-button> |
|
|
<el-button type="primary" size="mini" @click="toRelevancy(scope.row)">查看</el-button> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
@ -84,22 +74,13 @@ |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="confirmCount" label="厂家确认数量" width="180" align="center"/> |
|
|
<el-table-column prop="confirmCount" label="厂家确认数量" width="180" align="center"/> |
|
|
<!-- <el-table-column label="厂家确认结果" align="center"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<div style="color: #1890FF; text-decoration: underline ;" @click="showResult(scope.row)"> |
|
|
|
|
|
{{ scope.row.confirmResult }} |
|
|
|
|
|
</div> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> --> |
|
|
|
|
|
|
|
|
|
|
|
</el-table> |
|
|
</el-table> |
|
|
</div> |
|
|
</div> |
|
|
<!-- End 项目列表 --> |
|
|
<!-- End 项目列表 --> |
|
|
<div class="pages"> |
|
|
<div class="pages"> |
|
|
<div class="tit"/> |
|
|
<div class="tit"/> |
|
|
<!-- 翻页 --> |
|
|
<!-- 翻页 --> |
|
|
<pagination v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current" |
|
|
<pagination v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current" :limit.sync="queryParams.size" class="pagination" @pagination="loadList"/> |
|
|
:limit.sync="queryParams.size" class="pagination" @pagination="loadList" /> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -108,126 +89,16 @@ |
|
|
<divAdd v-show="viewState == 2 || viewState == 3" ref="divadd" @doback="resetState" @reloadlist="loadList"/> |
|
|
<divAdd v-show="viewState == 2 || viewState == 3" ref="divadd" @doback="resetState" @reloadlist="loadList"/> |
|
|
<divInfo v-show="viewState == 4" ref="divinfo" @doback="resetState" @reloadlist="loadList"/> |
|
|
<divInfo v-show="viewState == 4" ref="divinfo" @doback="resetState" @reloadlist="loadList"/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog title="附件" :visible.sync="dialogVisible" :before-close="handleClose"> |
|
|
<el-dialog title="附件" :visible.sync="dialogVisible" :before-close="handleClose"> |
|
|
|
|
|
|
|
|
<el-form ref="dataForm1" class="formadd" style="margin-top: -30px;"> |
|
|
<el-form ref="dataForm1" class="formadd" style="margin-top: -30px;"> |
|
|
|
|
|
|
|
|
<el-row class="first_row"> |
|
|
<el-row class="first_row"> |
|
|
<el-col :span="24" class="trightb"> |
|
|
<el-col :span="24" class="trightb"> |
|
|
<el-image style="width: 120px;height: 120px; margin: 10px; background: #f0f;" |
|
|
<el-image style="width: 120px;height: 120px; margin: 10px; background: #f0f;" v-for="(item,index) in fileList" :key="index" :src="item" :preview-src-list="[item]"> |
|
|
v-for="(item,index) in fileList" :src="item" :preview-src-list="[item]"> |
|
|
|
|
|
</el-image> |
|
|
</el-image> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
|
|
|
|
|
|
</el-form> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog title="旧件返厂厂家确认详情" :visible.sync="dialogVisible2" :before-close="handleClose2"> |
|
|
|
|
|
<el-form ref="dataForm1" class="formadd" style="margin-top: -40px;" :model="orderInfo"> |
|
|
|
|
|
|
|
|
|
|
|
<el-row class="first_row"> |
|
|
|
|
|
<el-col :span="8" class="trightb"> |
|
|
|
|
|
<el-form-item class="trightb_item"> |
|
|
|
|
|
<span slot="label">返件数量确认</span> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="16"> |
|
|
|
|
|
<el-form-item class="trightb_item"> |
|
|
|
|
|
<el-radio-group v-model="orderInfo.isUnanimous" size="small" :disabled="true"> |
|
|
|
|
|
<el-radio :label="0">一致</el-radio> |
|
|
|
|
|
<el-radio :label="1">不一致</el-radio> |
|
|
|
|
|
</el-radio-group> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="8" class="trightb"> |
|
|
|
|
|
<el-form-item class="trightb_item"> |
|
|
|
|
|
<span slot="label">备注</span> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="16"> |
|
|
|
|
|
<el-form-item class="trightb_item"> |
|
|
|
|
|
<span class="addinputw" style="width:100%">{{orderInfo.remarks}}</span> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="8" class="trightb"> |
|
|
|
|
|
<el-form-item class="trightb_item"> |
|
|
|
|
|
<span slot="label">附件</span> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="16" class="trightb"> |
|
|
|
|
|
<el-form-item class="trightb_item"> |
|
|
|
|
|
<el-image style="width: 120px;height: 120px; margin: 10px; " v-for="(item,index) in orderInfo.filePaths" |
|
|
|
|
|
:src="item" :preview-src-list="[item]"> |
|
|
|
|
|
</el-image> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
</el-form> |
|
|
</el-form> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<el-dialog title="旧件返厂厂家确认" :visible.sync="dialogVisible3" :before-close="handleClose3"> |
|
|
|
|
|
<el-form ref="dataForm1" class="formadd" style="margin-top: -40px;" :model="orderInfo"> |
|
|
|
|
|
|
|
|
|
|
|
<el-row class="first_row"> |
|
|
|
|
|
<el-col :span="8" class="trightb"> |
|
|
|
|
|
<el-form-item class="trightb_item"> |
|
|
|
|
|
<span slot="label">返件数量确认</span> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="16"> |
|
|
|
|
|
<el-form-item class="trightb_item"> |
|
|
|
|
|
<el-radio-group v-model="orderInfo.isUnanimous" size="small"> |
|
|
|
|
|
<el-radio :label="0">一致</el-radio> |
|
|
|
|
|
<el-radio :label="1">不一致</el-radio> |
|
|
|
|
|
</el-radio-group> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="8" class="trightb"> |
|
|
|
|
|
<el-form-item class="trightb_item"> |
|
|
|
|
|
<span slot="label">备注</span> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="16"> |
|
|
|
|
|
<el-form-item class="trightb_item"> |
|
|
|
|
|
<!-- <span class="addinputw" style="width:100%">{{orderInfo.remarks}}</span> --> |
|
|
|
|
|
<el-input v-model="orderInfo.remarks" placeholder="" class="addinputw addinputInfo" clearable /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="8" class="trightb"> |
|
|
|
|
|
<el-form-item class="trightb_item"> |
|
|
|
|
|
<span slot="label">附件</span> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="16" class="trightb"> |
|
|
|
|
|
<el-form-item class="trightb_item"> |
|
|
|
|
|
<upload-img ref="uploadImg" class="addinputw" v-model="imgList" :limit="50" bucket="map" |
|
|
|
|
|
:upload-data="{ type: '0001' }" @change="backData" /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
|
|
|
|
|
|
<div class="btn" style="text-align: center; margin-top: 20px;"> |
|
|
|
|
|
<el-button type="primary" size="mini" @click="saveResult()">保存</el-button> |
|
|
|
|
|
<el-button type="primary" size="mini" @click="handleClose3()">关闭</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -235,36 +106,29 @@ |
|
|
import req from '@/api/storage/manufacturerconfirm.js' |
|
|
import req from '@/api/storage/manufacturerconfirm.js' |
|
|
import ButtonBar from '@/components/ButtonBar' |
|
|
import ButtonBar from '@/components/ButtonBar' |
|
|
import Pagination from '@/components/pagination' |
|
|
import Pagination from '@/components/pagination' |
|
|
import pageye from '@/components/pagination/pageye' |
|
|
|
|
|
import divAdd from './manufacturerconfirmAdd.vue' |
|
|
import divAdd from './manufacturerconfirmAdd.vue' |
|
|
import divInfo from './manufacturerconfirmInfo.vue' |
|
|
import divInfo from './manufacturerconfirmInfo.vue' |
|
|
import uploadImg from '@/components/uploadFile/uploadImg' |
|
|
|
|
|
export default { |
|
|
export default { |
|
|
|
|
|
|
|
|
components: { |
|
|
components: { |
|
|
ButtonBar, |
|
|
ButtonBar, |
|
|
Pagination, |
|
|
Pagination, |
|
|
pageye, |
|
|
|
|
|
divAdd, |
|
|
divAdd, |
|
|
divInfo, |
|
|
divInfo |
|
|
uploadImg |
|
|
|
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
dialogVisible: false, |
|
|
dialogVisible: false, |
|
|
dialogVisible2: false, |
|
|
|
|
|
dialogVisible3: false, |
|
|
|
|
|
fileList: [], |
|
|
fileList: [], |
|
|
orderInfo: { |
|
|
|
|
|
filePaths: [] |
|
|
|
|
|
}, |
|
|
|
|
|
btndisabled: false, |
|
|
btndisabled: false, |
|
|
viewState: 1, // 1、列表 2、添加 3、修改 4、查看 |
|
|
viewState: 1, // 1、列表 2、添加 3、修改 4、查看 |
|
|
isSearchShow: false, |
|
|
isSearchShow: false, |
|
|
searchxianshitit: '显示查询条件', |
|
|
searchxianshitit: '显示查询条件', |
|
|
tableLoading: false, |
|
|
tableLoading: false, |
|
|
dataList: [], |
|
|
dataList: [], |
|
|
btnList: [{ |
|
|
btnList: [ |
|
|
|
|
|
{ |
|
|
type: 'primary', |
|
|
type: 'primary', |
|
|
size: 'small', |
|
|
size: 'small', |
|
|
icon: 'plus', |
|
|
icon: 'plus', |
|
@ -285,22 +149,32 @@ |
|
|
size: 10, |
|
|
size: 10, |
|
|
total: 0, |
|
|
total: 0, |
|
|
params: { |
|
|
params: { |
|
|
name: '' |
|
|
useOrgName: '', |
|
|
|
|
|
deptName: '', |
|
|
|
|
|
createByName: '', |
|
|
|
|
|
billNo: '', |
|
|
|
|
|
createStartTime: '', |
|
|
|
|
|
createEndTime: '', |
|
|
|
|
|
finishStartTime: '', |
|
|
|
|
|
finishEndTime: '', |
|
|
|
|
|
confirmResult: '', |
|
|
|
|
|
userSid: '', |
|
|
|
|
|
orgPath: '', |
|
|
|
|
|
menuUrl: '' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
sids: [], |
|
|
sids: [], |
|
|
selectionList: [], |
|
|
selectionList: [], |
|
|
confirmResultsList: [{ |
|
|
confirmResultsList: [ |
|
|
name: "一致", |
|
|
{ |
|
|
sid: "1" |
|
|
name: '未确认', |
|
|
|
|
|
sid: '1' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: "不一致", |
|
|
name: '已确认', |
|
|
sid: "2" |
|
|
sid: '2' |
|
|
} |
|
|
} |
|
|
], |
|
|
] |
|
|
pathList: [], |
|
|
|
|
|
imgList: [] |
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
@ -313,67 +187,17 @@ |
|
|
handleClose() { |
|
|
handleClose() { |
|
|
this.dialogVisible = false |
|
|
this.dialogVisible = false |
|
|
}, |
|
|
}, |
|
|
handleClose2() { |
|
|
|
|
|
this.dialogVisible2 = false |
|
|
|
|
|
}, |
|
|
|
|
|
handleClose3() { |
|
|
|
|
|
this.dialogVisible3 = false |
|
|
|
|
|
}, |
|
|
|
|
|
showAdjunct(paths) { |
|
|
showAdjunct(paths) { |
|
|
this.fileList = paths |
|
|
this.fileList = paths |
|
|
this.dialogVisible = true |
|
|
this.dialogVisible = true |
|
|
}, |
|
|
|
|
|
saveResult() { |
|
|
|
|
|
console.log("saveResult", this.orderInfo); |
|
|
|
|
|
|
|
|
|
|
|
req.saveConfirmResult(this.orderInfo).then((resp) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.dialogVisible3 = false |
|
|
|
|
|
this.orderInfo = { |
|
|
|
|
|
filePaths: [] |
|
|
|
|
|
} |
|
|
|
|
|
this.loadList() |
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
showResult(row) { |
|
|
|
|
|
|
|
|
|
|
|
if (row.confirmResult == '未确认') { |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
type: 'warning', |
|
|
|
|
|
showClose: true, |
|
|
|
|
|
message: '厂家暂未确认' |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
|
req.fetchDetailsByMainSid(row.sid).then((resp) => { |
|
|
|
|
|
|
|
|
|
|
|
console.log("fetchDetailsByMainSid", resp); |
|
|
|
|
|
|
|
|
|
|
|
this.orderInfo = resp.data |
|
|
|
|
|
|
|
|
|
|
|
this.dialogVisible2 = true |
|
|
|
|
|
|
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
selectionLineChangeHandle(val) { |
|
|
selectionLineChangeHandle(val) { |
|
|
console.log("val", val); |
|
|
|
|
|
|
|
|
|
|
|
this.selectionList = val |
|
|
this.selectionList = val |
|
|
const aa = [] |
|
|
const aa = [] |
|
|
val.forEach(element => { |
|
|
val.forEach(element => { |
|
|
aa.push(element.sid) |
|
|
aa.push(element.sid) |
|
|
}) |
|
|
}) |
|
|
this.sids = aa |
|
|
this.sids = aa |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
// 搜索条件效果 |
|
|
// 搜索条件效果 |
|
|
clicksearchShow() { |
|
|
clicksearchShow() { |
|
@ -386,9 +210,6 @@ |
|
|
}, |
|
|
}, |
|
|
btnHandle(btnKey) { |
|
|
btnHandle(btnKey) { |
|
|
switch (btnKey) { |
|
|
switch (btnKey) { |
|
|
case 'doDel': |
|
|
|
|
|
this.doDel() |
|
|
|
|
|
break |
|
|
|
|
|
case 'toAdd': |
|
|
case 'toAdd': |
|
|
this.toAdd() |
|
|
this.toAdd() |
|
|
break |
|
|
break |
|
@ -436,61 +257,26 @@ |
|
|
size: 10, |
|
|
size: 10, |
|
|
total: 0, |
|
|
total: 0, |
|
|
params: { |
|
|
params: { |
|
|
name: '' |
|
|
useOrgName: '', |
|
|
|
|
|
deptName: '', |
|
|
|
|
|
createByName: '', |
|
|
|
|
|
billNo: '', |
|
|
|
|
|
createStartTime: '', |
|
|
|
|
|
createEndTime: '', |
|
|
|
|
|
finishStartTime: '', |
|
|
|
|
|
finishEndTime: '', |
|
|
|
|
|
confirmResult: '', |
|
|
|
|
|
userSid: '', |
|
|
|
|
|
orgPath: '', |
|
|
|
|
|
menuUrl: '' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
this.loadList() |
|
|
this.loadList() |
|
|
}, |
|
|
}, |
|
|
doDel() { |
|
|
|
|
|
|
|
|
|
|
|
if (this.sids.length > 0) { |
|
|
|
|
|
const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?' |
|
|
|
|
|
this.$confirm(tip, '提示', { |
|
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
|
type: 'warning' |
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
const loading = this.$loading({ |
|
|
|
|
|
lock: true, |
|
|
|
|
|
text: 'Loading', |
|
|
|
|
|
spinner: 'el-icon-loading', |
|
|
|
|
|
background: 'rgba(0, 0, 0, 0.7)' |
|
|
|
|
|
}) |
|
|
|
|
|
req.deleteBySids(this.sids).then((resp) => { |
|
|
|
|
|
loading.close() |
|
|
|
|
|
if (resp.success) { |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
type: 'success', |
|
|
|
|
|
message: resp.msg, |
|
|
|
|
|
showClose: true |
|
|
|
|
|
}) |
|
|
|
|
|
this.loadList() |
|
|
|
|
|
} else { |
|
|
|
|
|
// 根据resp.code进行异常情况处理 |
|
|
|
|
|
} |
|
|
|
|
|
}).catch(e => { |
|
|
|
|
|
loading.close() |
|
|
|
|
|
}) |
|
|
|
|
|
}).catch(() => {}) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
type: 'warning', |
|
|
|
|
|
showClose: true, |
|
|
|
|
|
message: '请至少选择一条记录进行删除操作' |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
toAdd() { |
|
|
toAdd() { |
|
|
|
|
|
if (this.sids.length === 1) { |
|
|
if (this.sids.length == 1) { |
|
|
|
|
|
// this.dialogVisible3 = true |
|
|
|
|
|
|
|
|
|
|
|
// this.orderInfo.mainSid = this.sids[0] |
|
|
|
|
|
|
|
|
|
|
|
this.viewState = 2 |
|
|
this.viewState = 2 |
|
|
this.$refs['divadd'].showAdd(this.sids[0]) |
|
|
this.$refs['divadd'].showAdd(this.sids[0]) |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
type: 'warning', |
|
|
type: 'warning', |
|
@ -498,16 +284,11 @@ |
|
|
message: '请选择一条记录' |
|
|
message: '请选择一条记录' |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
toEdit(row) { |
|
|
toEdit(row) { |
|
|
|
|
|
|
|
|
this.viewState = 3 |
|
|
this.viewState = 3 |
|
|
this.$refs['divadd'].showEdit(row) |
|
|
this.$refs['divadd'].showEdit(row) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
doClose() { |
|
|
doClose() { |
|
|
this.$store.dispatch('tagsView/delView', this.$route) |
|
|
this.$store.dispatch('tagsView/delView', this.$route) |
|
|
this.$router.go(-1) |
|
|
this.$router.go(-1) |
|
@ -516,21 +297,9 @@ |
|
|
this.viewState = 4 |
|
|
this.viewState = 4 |
|
|
this.$refs['divinfo'].showEdit(row) |
|
|
this.$refs['divinfo'].showEdit(row) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
resetState() { |
|
|
resetState() { |
|
|
this.viewState = 1 |
|
|
this.viewState = 1 |
|
|
}, |
|
|
|
|
|
backData(value) { |
|
|
|
|
|
console.log('backData》》》》', value) |
|
|
|
|
|
console.log('imgList', this.imgList) |
|
|
|
|
|
|
|
|
|
|
|
for (var i = 0; i < this.imgList.length; i++) { |
|
|
|
|
|
this.orderInfo.filePaths.push(this.imgList[i].url) |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|