|
@@ -7,47 +7,23 @@
|
|
</el-button>
|
|
</el-button>
|
|
<el-button class="btn-check" size="medium" type="primary" @click="exportTempletelist">下载导入模板
|
|
<el-button class="btn-check" size="medium" type="primary" @click="exportTempletelist">下载导入模板
|
|
</el-button>
|
|
</el-button>
|
|
- <myUpload style="display:inline-block;" :fileInfo="fileInfot"
|
|
|
|
- :fileList="fileInfot.fileList" @uploadBack='uploadBack'></myUpload>
|
|
|
|
- <el-button
|
|
|
|
- class="btn-check"
|
|
|
|
- size="medium"
|
|
|
|
- type="primary"
|
|
|
|
- @click="dialogCheck(3)"
|
|
|
|
- v-if="
|
|
|
|
- userInfo.countyName != null || userInfo.cityName != null
|
|
|
|
- "
|
|
|
|
- >添加
|
|
|
|
|
|
+ <myUpload style="display:inline-block;" :fileInfo="fileInfot" :fileList="fileInfot.fileList"
|
|
|
|
+ @uploadBack='uploadBack'></myUpload>
|
|
|
|
+ <el-button class="btn-check" size="medium" type="primary" @click="dialogCheck(3)" v-if="
|
|
|
|
+ userInfo.countyName != null || userInfo.cityName != null
|
|
|
|
+ ">添加
|
|
</el-button>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
<div class="search">
|
|
<div class="search">
|
|
- <mySearch
|
|
|
|
- :searchList="searchList"
|
|
|
|
- @searchInfo="searchInfo"
|
|
|
|
- ></mySearch>
|
|
|
|
- <el-button
|
|
|
|
- class="btn-check"
|
|
|
|
- size="medium"
|
|
|
|
- type="primary"
|
|
|
|
- @click="dialogCheck(3)"
|
|
|
|
- v-if="
|
|
|
|
- userInfo.countyName != null || userInfo.cityName != null
|
|
|
|
- "
|
|
|
|
- >添加
|
|
|
|
|
|
+ <mySearch :searchList="searchList" @searchInfo="searchInfo"></mySearch>
|
|
|
|
+ <el-button class="btn-check" size="medium" type="primary" @click="dialogCheck(3)" v-if="
|
|
|
|
+ userInfo.countyName != null || userInfo.cityName != null
|
|
|
|
+ ">添加
|
|
</el-button>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
<div class="tabbox">
|
|
<div class="tabbox">
|
|
- <el-table
|
|
|
|
- height="calc(100% - 40px)"
|
|
|
|
- class="com-table"
|
|
|
|
- ref="multipleTable"
|
|
|
|
- :data="tableData"
|
|
|
|
- tooltip-effect="dark"
|
|
|
|
- size="small"
|
|
|
|
- border
|
|
|
|
- style="width: 100%"
|
|
|
|
- v-loading="loading"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-table height="calc(100% - 40px)" class="com-table" ref="multipleTable" :data="tableData"
|
|
|
|
+ tooltip-effect="dark" size="small" border style="width: 100%" v-loading="loading">
|
|
<el-table-column prop="regionName" label="公司">
|
|
<el-table-column prop="regionName" label="公司">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="regionCode" label="公司编码">
|
|
<el-table-column prop="regionCode" label="公司编码">
|
|
@@ -60,11 +36,11 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="countyType" label="表单类型">
|
|
<el-table-column prop="countyType" label="表单类型">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
-<!-- <el-table-column prop="countyCityCode" label="渠道/小区编码">-->
|
|
|
|
-<!--<!– 待更改–>-->
|
|
|
|
-<!-- </el-table-column>-->
|
|
|
|
-<!-- <el-table-column prop="countyCityCodeName" label="渠道/小区/校园名称">-->
|
|
|
|
-<!-- </el-table-column>-->
|
|
|
|
|
|
+ <!-- <el-table-column prop="countyCityCode" label="渠道/小区编码">-->
|
|
|
|
+ <!--<!– 待更改–>-->
|
|
|
|
+ <!-- </el-table-column>-->
|
|
|
|
+ <!-- <el-table-column prop="countyCityCodeName" label="渠道/小区/校园名称">-->
|
|
|
|
+ <!-- </el-table-column>-->
|
|
<el-table-column prop="channelCode" label="渠道/小区编码">
|
|
<el-table-column prop="channelCode" label="渠道/小区编码">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="channelName" label="渠道/小区/校园名称">
|
|
<el-table-column prop="channelName" label="渠道/小区/校园名称">
|
|
@@ -73,30 +49,15 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="sceneName" label="使用场景">
|
|
<el-table-column prop="sceneName" label="使用场景">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
-<!-- <el-table-column prop="metirialType" label="物料类别">-->
|
|
|
|
-<!-- </el-table-column>-->
|
|
|
|
- <el-table-column
|
|
|
|
- prop="metirialCode"
|
|
|
|
- label="物料编码"
|
|
|
|
- width="100"
|
|
|
|
- show-overflow-tooltip
|
|
|
|
- >
|
|
|
|
|
|
+ <!-- <el-table-column prop="metirialType" label="物料类别">-->
|
|
|
|
+ <!-- </el-table-column>-->
|
|
|
|
+ <el-table-column prop="metirialCode" label="物料编码" width="100" show-overflow-tooltip>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column
|
|
|
|
- prop="metirialName"
|
|
|
|
- label="物料名称"
|
|
|
|
- width="100"
|
|
|
|
- show-overflow-tooltip
|
|
|
|
- >
|
|
|
|
|
|
+ <el-table-column prop="metirialName" label="物料名称" width="100" show-overflow-tooltip>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="unit" label="物料单位">
|
|
<el-table-column prop="unit" label="物料单位">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column
|
|
|
|
- prop="size"
|
|
|
|
- label="规格尺寸"
|
|
|
|
- width="100"
|
|
|
|
- show-overflow-tooltip
|
|
|
|
- >
|
|
|
|
|
|
+ <el-table-column prop="size" label="规格尺寸" width="100" show-overflow-tooltip>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="length" label="长(米)">
|
|
<el-table-column prop="length" label="长(米)">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -105,372 +66,211 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="coefficient" label="系数">
|
|
<el-table-column prop="coefficient" label="系数">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column
|
|
|
|
- prop="priority"
|
|
|
|
- label="优先级-仅灯箱画面填报"
|
|
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column prop="quantity" label="数量">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column prop="settlementAmount" label="结算金额">
|
|
|
|
|
|
+ <el-table-column prop="priority" label="优先级-仅灯箱画面填报">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <!-- <el-table-column prop="quantity" label="数量">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="settlementAmount" label="结算金额">
|
|
|
|
+ </el-table-column> -->
|
|
<!-- <el-table-column prop="price" label="单价">
|
|
<!-- <el-table-column prop="price" label="单价">
|
|
- </el-table-column> -->
|
|
|
|
|
|
+ </el-table-column> -->
|
|
|
|
|
|
- <el-table-column
|
|
|
|
- label="操作"
|
|
|
|
- width="160px"
|
|
|
|
- align="center"
|
|
|
|
- fixed="right"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-table-column label="操作" width="160px" align="center" fixed="right">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button
|
|
|
|
- size="mini"
|
|
|
|
- type="primary"
|
|
|
|
- @click="dialogCheck(1, scope.row)"
|
|
|
|
- >查看</el-button
|
|
|
|
- >
|
|
|
|
- <el-button
|
|
|
|
- size="mini"
|
|
|
|
- type="primary"
|
|
|
|
- @click="dialogCheck(2, scope.row)"
|
|
|
|
- v-if="
|
|
|
|
- userInfo.countyName != null ||
|
|
|
|
- userInfo.cityName != null
|
|
|
|
- "
|
|
|
|
- >修改</el-button
|
|
|
|
- >
|
|
|
|
- <el-button
|
|
|
|
- size="mini"
|
|
|
|
- type="danger"
|
|
|
|
- @click="delLine(scope.row)"
|
|
|
|
- v-if="
|
|
|
|
- userInfo.countyName != null ||
|
|
|
|
- userInfo.cityName != null
|
|
|
|
- "
|
|
|
|
- >删除</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ <el-button size="mini" type="primary" @click="dialogCheck(1, scope.row)">查看</el-button>
|
|
|
|
+ <el-button size="mini" type="primary" @click="dialogCheck(2, scope.row)" v-if="
|
|
|
|
+ userInfo.countyName != null ||
|
|
|
|
+ userInfo.cityName != null
|
|
|
|
+ ">修改</el-button>
|
|
|
|
+ <el-button size="mini" type="danger" @click="delLine(scope.row)" v-if="
|
|
|
|
+ userInfo.countyName != null ||
|
|
|
|
+ userInfo.cityName != null
|
|
|
|
+ ">删除</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
- <el-pagination
|
|
|
|
- class="pageBox"
|
|
|
|
- @current-change="currchange"
|
|
|
|
- layout="prev, pager, next"
|
|
|
|
- background
|
|
|
|
- :total="total"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-pagination class="pageBox" @current-change="currchange" layout="prev, pager, next" background
|
|
|
|
+ :total="total">
|
|
</el-pagination>
|
|
</el-pagination>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <el-dialog
|
|
|
|
- :title="titname"
|
|
|
|
- :visible.sync="dialogStatus"
|
|
|
|
- width="100%"
|
|
|
|
- :destroy-on-close="true"
|
|
|
|
- :modal-append-to-body="false"
|
|
|
|
- :close-on-click-modal="false"
|
|
|
|
- :before-close="closedia"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-dialog :title="titname" :visible.sync="dialogStatus" width="100%" :destroy-on-close="true"
|
|
|
|
+ :modal-append-to-body="false" :close-on-click-modal="false" :before-close="closedia">
|
|
<div v-loading="loadinged">
|
|
<div v-loading="loadinged">
|
|
- <el-form
|
|
|
|
- :model="infolist"
|
|
|
|
- ref="infolist"
|
|
|
|
- :rules="rules"
|
|
|
|
- style="height: 50vh; overflow-y: scroll"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-form :model="infolist" ref="infolist" :rules="rules" style="height: 50vh; overflow-y: scroll">
|
|
<div class="info-line">
|
|
<div class="info-line">
|
|
<el-form-item prop="regionName">
|
|
<el-form-item prop="regionName">
|
|
<span>公司</span>
|
|
<span>公司</span>
|
|
- <el-select
|
|
|
|
- :popper-append-to-body="false"
|
|
|
|
- v-model="infolist.regionCode"
|
|
|
|
- placeholder="公司"
|
|
|
|
- @change="verifcheck"
|
|
|
|
- :disabled="disableStatus"
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in regionOpt"
|
|
|
|
- :key="item.compId"
|
|
|
|
- :label="item.compName"
|
|
|
|
- :value="item.compId"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-select :popper-append-to-body="false" v-model="infolist.regionCode" placeholder="公司"
|
|
|
|
+ @change="verifcheck" :disabled="disableStatus">
|
|
|
|
+ <el-option v-for="item in regionOpt" :key="item.compId" :label="item.compName"
|
|
|
|
+ :value="item.compId">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<span>公司编码</span>
|
|
<span>公司编码</span>
|
|
- <el-input
|
|
|
|
- v-model="infolist.regionCode"
|
|
|
|
- placeholder="公司编码"
|
|
|
|
- disabled
|
|
|
|
- ></el-input>
|
|
|
|
|
|
+ <el-input v-model="infolist.regionCode" placeholder="公司编码" disabled></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item prop="countyName">
|
|
<el-form-item prop="countyName">
|
|
<span>区县名称</span>
|
|
<span>区县名称</span>
|
|
- <el-select
|
|
|
|
- :popper-append-to-body="false"
|
|
|
|
- v-model="infolist.countyCode"
|
|
|
|
- placeholder="区县名称"
|
|
|
|
- @change="verifcheck(2)"
|
|
|
|
- :disabled="disableStatus"
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in countyOpt"
|
|
|
|
- :key="item.compId"
|
|
|
|
- :label="item.compName"
|
|
|
|
- :value="item.compId"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-select :popper-append-to-body="false" v-model="infolist.countyCode" placeholder="区县名称"
|
|
|
|
+ @change="verifcheck(2)" :disabled="disableStatus">
|
|
|
|
+ <el-option v-for="item in countyOpt" :key="item.compId" :label="item.compName"
|
|
|
|
+ :value="item.compId">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<span>区县编码</span>
|
|
<span>区县编码</span>
|
|
- <el-input
|
|
|
|
- v-model="infolist.countyCode"
|
|
|
|
- placeholder="区县编码"
|
|
|
|
- disabled
|
|
|
|
- ></el-input>
|
|
|
|
|
|
+ <el-input v-model="infolist.countyCode" placeholder="区县编码" disabled></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<span>日期</span>
|
|
<span>日期</span>
|
|
- <el-date-picker
|
|
|
|
- type="date"
|
|
|
|
- placeholder="选择日期"
|
|
|
|
- v-model="infolist.countyTime"
|
|
|
|
- style="width: 57%;"
|
|
|
|
- ></el-date-picker>
|
|
|
|
|
|
+ <el-date-picker type="date" placeholder="选择日期" v-model="infolist.countyTime"
|
|
|
|
+ style="width: 57%;"></el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<span>表单类型</span>
|
|
<span>表单类型</span>
|
|
<el-select v-model="infolist.countyType" placeholder="请选择表单类型">
|
|
<el-select v-model="infolist.countyType" placeholder="请选择表单类型">
|
|
- <el-option v-for="(item,index) in optionList" :label="item.value" :value="item.id" :key="index"></el-option>
|
|
|
|
|
|
+ <el-option v-for="(item, index) in optionList" :label="item.value" :value="item.id"
|
|
|
|
+ :key="index"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item prop="channelCode">
|
|
<el-form-item prop="channelCode">
|
|
<span>渠道/小区编码</span>
|
|
<span>渠道/小区编码</span>
|
|
- <el-input
|
|
|
|
- v-model="infolist.channelCode"
|
|
|
|
- placeholder="渠道编码"
|
|
|
|
- :disabled="disableStatus"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-input v-model="infolist.channelCode" placeholder="渠道编码" :disabled="disableStatus">
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item prop="channelName">
|
|
<el-form-item prop="channelName">
|
|
<span>渠道/小区/校园名称</span>
|
|
<span>渠道/小区/校园名称</span>
|
|
- <el-input
|
|
|
|
- v-model="infolist.channelName"
|
|
|
|
- placeholder="渠道/校园/小区名称"
|
|
|
|
- :disabled="disableStatus"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-input v-model="infolist.channelName" placeholder="渠道/校园/小区名称" :disabled="disableStatus">
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item prop="sts">
|
|
<el-form-item prop="sts">
|
|
<span>营业状态</span>
|
|
<span>营业状态</span>
|
|
- <el-select
|
|
|
|
- :popper-append-to-body="false"
|
|
|
|
- v-model="infolist.sts"
|
|
|
|
- placeholder="营业状态"
|
|
|
|
- :disabled="disableStatus"
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in stsOpt"
|
|
|
|
- :key="item.dataName"
|
|
|
|
- :label="item.dataName"
|
|
|
|
- :value="item.dataName"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-select :popper-append-to-body="false" v-model="infolist.sts" placeholder="营业状态"
|
|
|
|
+ :disabled="disableStatus">
|
|
|
|
+ <el-option v-for="item in stsOpt" :key="item.dataName" :label="item.dataName"
|
|
|
|
+ :value="item.dataName">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item prop="sceneName">
|
|
<el-form-item prop="sceneName">
|
|
<span>使用场景</span>
|
|
<span>使用场景</span>
|
|
- <el-select
|
|
|
|
- @change="accountcho"
|
|
|
|
- :popper-append-to-body="false"
|
|
|
|
- v-model="infolist.sceneName"
|
|
|
|
- placeholder="使用场景"
|
|
|
|
- :disabled="disableStatus"
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in sceneOpt"
|
|
|
|
- :key="item.dataCode"
|
|
|
|
- :label="item.dataName"
|
|
|
|
- :value="item.dataName"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-select @change="accountcho" :popper-append-to-body="false" v-model="infolist.sceneName"
|
|
|
|
+ placeholder="使用场景" :disabled="disableStatus">
|
|
|
|
+ <el-option v-for="item in sceneOpt" :key="item.dataCode" :label="item.dataName"
|
|
|
|
+ :value="item.dataName">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
-<!-- <el-form-item prop="metirialType">-->
|
|
|
|
-<!-- <span>物料类别</span>-->
|
|
|
|
-<!-- <el-select-->
|
|
|
|
-<!-- :disabled="disableStatus"-->
|
|
|
|
-<!-- :popper-append-to-body="false"-->
|
|
|
|
-<!-- v-model="infolist.metirialType"-->
|
|
|
|
-<!-- placeholder="物料类别"-->
|
|
|
|
-<!-- >-->
|
|
|
|
-<!-- <el-option-->
|
|
|
|
-<!-- v-for="(item, index) in metirialTypeopt"-->
|
|
|
|
-<!-- :key="index"-->
|
|
|
|
-<!-- :label="item.dataName"-->
|
|
|
|
-<!-- :value="item.dataName"-->
|
|
|
|
-<!-- >-->
|
|
|
|
-<!-- </el-option>-->
|
|
|
|
-<!-- </el-select>-->
|
|
|
|
-<!-- </el-form-item>-->
|
|
|
|
|
|
+ <!-- <el-form-item prop="metirialType">-->
|
|
|
|
+ <!-- <span>物料类别</span>-->
|
|
|
|
+ <!-- <el-select-->
|
|
|
|
+ <!-- :disabled="disableStatus"-->
|
|
|
|
+ <!-- :popper-append-to-body="false"-->
|
|
|
|
+ <!-- v-model="infolist.metirialType"-->
|
|
|
|
+ <!-- placeholder="物料类别"-->
|
|
|
|
+ <!-- >-->
|
|
|
|
+ <!-- <el-option-->
|
|
|
|
+ <!-- v-for="(item, index) in metirialTypeopt"-->
|
|
|
|
+ <!-- :key="index"-->
|
|
|
|
+ <!-- :label="item.dataName"-->
|
|
|
|
+ <!-- :value="item.dataName"-->
|
|
|
|
+ <!-- >-->
|
|
|
|
+ <!-- </el-option>-->
|
|
|
|
+ <!-- </el-select>-->
|
|
|
|
+ <!-- </el-form-item>-->
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<span>物料编码</span>
|
|
<span>物料编码</span>
|
|
- <el-input
|
|
|
|
- v-model="infolist.metirialCode"
|
|
|
|
- disabled
|
|
|
|
- ></el-input>
|
|
|
|
|
|
+ <el-input v-model="infolist.metirialCode" disabled></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item prop="metirialName">
|
|
<el-form-item prop="metirialName">
|
|
<span>物料名称</span>
|
|
<span>物料名称</span>
|
|
- <el-select
|
|
|
|
- :disabled="disableStatus"
|
|
|
|
- :popper-append-to-body="false"
|
|
|
|
- v-model="infolist.metirialName"
|
|
|
|
- placeholder="物料名称"
|
|
|
|
- @change="materialNameChange"
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="(item, index) in materialNameopt"
|
|
|
|
- :key="index"
|
|
|
|
- :label="item.metirialName"
|
|
|
|
- :value="item.metirialName"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-select :disabled="disableStatus" :popper-append-to-body="false"
|
|
|
|
+ v-model="infolist.metirialName" placeholder="物料名称" @change="materialNameChange">
|
|
|
|
+ <el-option v-for="(item, index) in materialNameopt" :key="index" :label="item.metirialName"
|
|
|
|
+ :value="item.metirialName">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<span>物料单位</span>
|
|
<span>物料单位</span>
|
|
- <el-input
|
|
|
|
- v-model="infolist.unit"
|
|
|
|
- disabled
|
|
|
|
- ></el-input>
|
|
|
|
|
|
+ <el-input v-model="infolist.unit" disabled></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<span>规格尺寸</span>
|
|
<span>规格尺寸</span>
|
|
- <el-input
|
|
|
|
- v-model="infolist.size"
|
|
|
|
-
|
|
|
|
- ></el-input>
|
|
|
|
|
|
+ <el-input v-model="infolist.size"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item
|
|
|
|
- prop="length"
|
|
|
|
- v-if="
|
|
|
|
- infolist.unit == '平方米' ||
|
|
|
|
- infolist.unit == '延长米'
|
|
|
|
- "
|
|
|
|
- >
|
|
|
|
|
|
+ <el-form-item prop="length" v-if="
|
|
|
|
+ infolist.unit == '平方米' ||
|
|
|
|
+ infolist.unit == '延长米'
|
|
|
|
+ ">
|
|
<span>长(米)</span>
|
|
<span>长(米)</span>
|
|
- <el-input
|
|
|
|
- type="number"
|
|
|
|
- v-model="infolist.length"
|
|
|
|
- placeholder="长"
|
|
|
|
- :disabled="disableStatus"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-input type="number" v-model="infolist.length" placeholder="长" :disabled="disableStatus">
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item
|
|
|
|
- prop="width"
|
|
|
|
- v-if="infolist.unit == '平方米'"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-form-item prop="width" v-if="infolist.unit == '平方米'">
|
|
<span>宽(米)</span>
|
|
<span>宽(米)</span>
|
|
- <el-input
|
|
|
|
- type="number"
|
|
|
|
- v-model="infolist.width"
|
|
|
|
- placeholder="宽"
|
|
|
|
- :disabled="disableStatus"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-input type="number" v-model="infolist.width" placeholder="宽" :disabled="disableStatus">
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item prop="direction">
|
|
<el-form-item prop="direction">
|
|
<span>横/竖</span>
|
|
<span>横/竖</span>
|
|
- <el-input
|
|
|
|
- :disabled="disableStatus"
|
|
|
|
- :popper-append-to-body="false"
|
|
|
|
- v-model="infolist.direction"
|
|
|
|
- placeholder="横/竖"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-input :disabled="disableStatus" :popper-append-to-body="false" v-model="infolist.direction"
|
|
|
|
+ placeholder="横/竖">
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<span>系数</span>
|
|
<span>系数</span>
|
|
- <el-input
|
|
|
|
- :value="coefficient"
|
|
|
|
- placeholder="系数"
|
|
|
|
- disabled
|
|
|
|
- ></el-input>
|
|
|
|
|
|
+ <el-input :value="coefficient" placeholder="系数" disabled></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<span>单价</span>
|
|
<span>单价</span>
|
|
- <el-input
|
|
|
|
- :value="coefficient"
|
|
|
|
- placeholder="单价"
|
|
|
|
- disabled
|
|
|
|
- ></el-input>
|
|
|
|
|
|
+ <el-input :value="coefficient" placeholder="单价" disabled></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item
|
|
|
|
-
|
|
|
|
- >
|
|
|
|
|
|
+ <el-form-item>
|
|
<span>优先级-仅灯箱画面填报</span>
|
|
<span>优先级-仅灯箱画面填报</span>
|
|
- <el-input
|
|
|
|
- v-model="infolist.priority"
|
|
|
|
- placeholder="优先级-仅灯箱画面填报"
|
|
|
|
- @keyup.native="numberVertify"
|
|
|
|
- ></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item prop="quantity">
|
|
|
|
- <span>数量</span>
|
|
|
|
- <el-input
|
|
|
|
- v-model="infolist.quantity"
|
|
|
|
- placeholder="数量"
|
|
|
|
- :disabled="quantityDisabled"
|
|
|
|
- ></el-input>
|
|
|
|
|
|
+ <el-input v-model="infolist.priority" placeholder="优先级-仅灯箱画面填报"
|
|
|
|
+ @keyup.native="numberVertify"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <!-- <el-form-item prop="quantity">
|
|
|
|
+ <span>数量</span>
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="infolist.quantity"
|
|
|
|
+ placeholder="数量"
|
|
|
|
+ :disabled="quantityDisabled"
|
|
|
|
+ ></el-input>
|
|
|
|
+ </el-form-item> -->
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<span>物料单价(不含税)</span>
|
|
<span>物料单价(不含税)</span>
|
|
- <el-input
|
|
|
|
- v-model="infolist.price"
|
|
|
|
- disabled
|
|
|
|
- ></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item prop="settlementAmount">
|
|
|
|
- <span>结算金额</span>
|
|
|
|
- <el-input
|
|
|
|
- v-model="infolist.settlementAmount"
|
|
|
|
- placeholder="结算金额"
|
|
|
|
- disabled
|
|
|
|
- ></el-input>
|
|
|
|
|
|
+ <el-input v-model="infolist.price" disabled></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <!-- <el-form-item prop="settlementAmount">
|
|
|
|
+ <span>结算金额</span>
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="infolist.settlementAmount"
|
|
|
|
+ placeholder="结算金额"
|
|
|
|
+ disabled
|
|
|
|
+ ></el-input>
|
|
|
|
+ </el-form-item> -->
|
|
</div>
|
|
</div>
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
<div slot="footer" class="dialog-footer myfooter">
|
|
<div slot="footer" class="dialog-footer myfooter">
|
|
- <el-button
|
|
|
|
- type="primary"
|
|
|
|
- @click="dialogCli(2)"
|
|
|
|
- v-if="titname !== '查看'"
|
|
|
|
- >确 定</el-button
|
|
|
|
- >
|
|
|
|
- <el-button @click="dialogCli(1)" v-if="titname === '查看'"
|
|
|
|
- >确 定</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ <el-button type="primary" @click="dialogCli(2)" v-if="titname !== '查看'">确 定</el-button>
|
|
|
|
+ <el-button @click="dialogCli(1)" v-if="titname === '查看'">确 定</el-button>
|
|
<el-button @click="dialogCli(1)">取 消</el-button>
|
|
<el-button @click="dialogCli(1)">取 消</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
- <myMessage
|
|
|
|
- :messTit="messTit"
|
|
|
|
- @closeMessage="closeMessage"
|
|
|
|
- :centerDialogVisible="centerDialogVisible"
|
|
|
|
- v-if="centerDialogVisible"
|
|
|
|
- ></myMessage>
|
|
|
|
- </fullscreen>
|
|
|
|
|
|
+ <myMessage :messTit="messTit" @closeMessage="closeMessage" :centerDialogVisible="centerDialogVisible"
|
|
|
|
+ v-if="centerDialogVisible"></myMessage>
|
|
|
|
+</fullscreen>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import mySearch from "../../../components/search.vue";
|
|
import mySearch from "../../../components/search.vue";
|
|
@@ -595,21 +395,21 @@ export default {
|
|
// };
|
|
// };
|
|
|
|
|
|
return {
|
|
return {
|
|
- optionList:[{
|
|
|
|
- id:'自有渠道',
|
|
|
|
- value:'自有渠道'
|
|
|
|
- },{
|
|
|
|
- id:'合作渠道',
|
|
|
|
- value:'合作渠道'
|
|
|
|
- },{
|
|
|
|
- id:'家庭市场',
|
|
|
|
- value:'家庭市场'
|
|
|
|
- },{
|
|
|
|
- id:'个人市场',
|
|
|
|
- value:'个人市场'
|
|
|
|
- },{
|
|
|
|
- id:'政企市场',
|
|
|
|
- value:'政企市场'
|
|
|
|
|
|
+ optionList: [{
|
|
|
|
+ id: '自有渠道',
|
|
|
|
+ value: '自有渠道'
|
|
|
|
+ }, {
|
|
|
|
+ id: '合作渠道',
|
|
|
|
+ value: '合作渠道'
|
|
|
|
+ }, {
|
|
|
|
+ id: '家庭市场',
|
|
|
|
+ value: '家庭市场'
|
|
|
|
+ }, {
|
|
|
|
+ id: '个人市场',
|
|
|
|
+ value: '个人市场'
|
|
|
|
+ }, {
|
|
|
|
+ id: '政企市场',
|
|
|
|
+ value: '政企市场'
|
|
}],
|
|
}],
|
|
rules: {
|
|
rules: {
|
|
regionName: [
|
|
regionName: [
|
|
@@ -877,18 +677,18 @@ export default {
|
|
metirialInfoSingle: [],
|
|
metirialInfoSingle: [],
|
|
quantityDisabled: true,
|
|
quantityDisabled: true,
|
|
fileInfot: {
|
|
fileInfot: {
|
|
- type: 'btn',
|
|
|
|
- typename: '导入',
|
|
|
|
- btntype: 'primary',
|
|
|
|
- limit: 1,
|
|
|
|
- url: '/market/cadvBusiMetirial/import',
|
|
|
|
- fileList: [],
|
|
|
|
- woNo: "",
|
|
|
|
- },
|
|
|
|
|
|
+ type: 'btn',
|
|
|
|
+ typename: '导入',
|
|
|
|
+ btntype: 'primary',
|
|
|
|
+ limit: 1,
|
|
|
|
+ url: '/market/cadvBusiMetirial/import',
|
|
|
|
+ fileList: [],
|
|
|
|
+ woNo: "",
|
|
|
|
+ },
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
- coefficient: function() {
|
|
|
|
|
|
+ coefficient: function () {
|
|
if (
|
|
if (
|
|
this.infolist.width == undefined &&
|
|
this.infolist.width == undefined &&
|
|
this.infolist.length == undefined
|
|
this.infolist.length == undefined
|
|
@@ -910,7 +710,7 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// 结算金额
|
|
// 结算金额
|
|
- settlementAmount: function() {
|
|
|
|
|
|
+ settlementAmount: function () {
|
|
this.infolist.settlementAmount =
|
|
this.infolist.settlementAmount =
|
|
this.infolist.price *
|
|
this.infolist.price *
|
|
this.infolist.coefficient *
|
|
this.infolist.coefficient *
|
|
@@ -1057,7 +857,7 @@ export default {
|
|
} else if (v === 3) {
|
|
} else if (v === 3) {
|
|
this.titname = "添加";
|
|
this.titname = "添加";
|
|
this.disableStatus = false;
|
|
this.disableStatus = false;
|
|
- this.infolist.countyTime = this.$formatDate(new Date(),"YYYY-MM-DD")
|
|
|
|
|
|
+ this.infolist.countyTime = this.$formatDate(new Date(), "YYYY-MM-DD")
|
|
// this.infolist.unit = "延长米";
|
|
// this.infolist.unit = "延长米";
|
|
}
|
|
}
|
|
// this.infolist.opNo = this.userInfo.loginNo;
|
|
// this.infolist.opNo = this.userInfo.loginNo;
|
|
@@ -1073,7 +873,10 @@ export default {
|
|
parentCompId: this.infolist.regionCode
|
|
parentCompId: this.infolist.regionCode
|
|
}
|
|
}
|
|
}).then(res => {
|
|
}).then(res => {
|
|
- this.countyOpt = res.data;
|
|
|
|
|
|
+ if (v !== 3) {
|
|
|
|
+ this.countyOpt = res.data;
|
|
|
|
+ }
|
|
|
|
+
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//添加
|
|
//添加
|
|
@@ -1087,7 +890,7 @@ export default {
|
|
new Date(),
|
|
new Date(),
|
|
"YYYY-MM-DD"
|
|
"YYYY-MM-DD"
|
|
);
|
|
);
|
|
- this.infolist.countyTime = this.$formatDate(this.infolist.countyTime,"YYYY-MM-DD")
|
|
|
|
|
|
+ this.infolist.countyTime = this.$formatDate(this.infolist.countyTime, "YYYY-MM-DD")
|
|
|
|
|
|
if (this.titname === "添加") {
|
|
if (this.titname === "添加") {
|
|
this.submitInfo("/market/cadvBusiMetirial/add");
|
|
this.submitInfo("/market/cadvBusiMetirial/add");
|
|
@@ -1180,7 +983,7 @@ export default {
|
|
uploadBack(v) {
|
|
uploadBack(v) {
|
|
let that = this;
|
|
let that = this;
|
|
console.log(v);
|
|
console.log(v);
|
|
- if(v.data.result==0){
|
|
|
|
|
|
+ if (v.data.result == 0) {
|
|
that.getList({}, 1);
|
|
that.getList({}, 1);
|
|
that.getUser();
|
|
that.getUser();
|
|
that.getMetirialType();
|
|
that.getMetirialType();
|
|
@@ -1223,7 +1026,7 @@ export default {
|
|
} else if (this.userInfo.cityName != null && this.userInfo.countyName != null) {
|
|
} else if (this.userInfo.cityName != null && this.userInfo.countyName != null) {
|
|
// this.countyOpt = res.data;
|
|
// this.countyOpt = res.data;
|
|
this.countyOpt = res.data.filter(item => {
|
|
this.countyOpt = res.data.filter(item => {
|
|
- return ( item.compName == this.userInfo.countyName );
|
|
|
|
|
|
+ return (item.compName == this.userInfo.countyName);
|
|
});
|
|
});
|
|
// this.countyOpt = res.data;
|
|
// this.countyOpt = res.data;
|
|
}
|
|
}
|
|
@@ -1380,7 +1183,7 @@ export default {
|
|
this.getMetirialType();
|
|
this.getMetirialType();
|
|
this.getMetirialInfo();
|
|
this.getMetirialInfo();
|
|
},
|
|
},
|
|
- created() {}
|
|
|
|
|
|
+ created() { }
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
@@ -1453,6 +1256,7 @@ export default {
|
|
width: calc(100% - 120px);
|
|
width: calc(100% - 120px);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
.search-box .box-l .box-info {
|
|
.search-box .box-l .box-info {
|
|
margin-right: 20px !important;
|
|
margin-right: 20px !important;
|
|
}
|
|
}
|