|
@@ -3,30 +3,98 @@
|
|
|
<div class="container-box">
|
|
|
<toolList @iconCli="iconCli" :tooltit="tooltit"></toolList>
|
|
|
<div class="search">
|
|
|
- <mySearch
|
|
|
- :searchList="searchList"
|
|
|
- @searchInfo="searchInfo"
|
|
|
- ></mySearch>
|
|
|
+ <el-form
|
|
|
+ :model="searchSection"
|
|
|
+ ref="searchSection"
|
|
|
+ :rules="rules"
|
|
|
+ v-loading="loadinged"
|
|
|
+ >
|
|
|
+ <div class="info-line search-box">
|
|
|
+ <el-form-item prop="regionCode">
|
|
|
+ <span>地市名称</span>
|
|
|
+ <el-select
|
|
|
+ @change="changeSearch(1)"
|
|
|
+ clearable
|
|
|
+ v-model="searchSection.regionCode"
|
|
|
+ placeholder="地市名称"
|
|
|
+ @clear="clearSearch"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in regionOpt"
|
|
|
+ :key="item.compId"
|
|
|
+ :label="item.compName"
|
|
|
+ :value="item.compId"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="countyCode">
|
|
|
+ <span>区县名称</span>
|
|
|
+ <el-select
|
|
|
+ :popper-append-to-body="false"
|
|
|
+ v-model="searchSection.countyCode"
|
|
|
+ placeholder="区县名称"
|
|
|
+ @change="changeSearch(2, $event)"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in countyOpt"
|
|
|
+ :key="item.compId"
|
|
|
+ :label="item.compName"
|
|
|
+ :value="item.compId"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="metirialType">
|
|
|
+ <span>物料类别</span>
|
|
|
+ <el-select
|
|
|
+ @change="changeSearch(3)"
|
|
|
+ clearable
|
|
|
+ v-model="searchSection.metirialType"
|
|
|
+ placeholder="物料类别"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(items, index) in metirialTypeOpt"
|
|
|
+ :key="index"
|
|
|
+ :label="items"
|
|
|
+ :value="items"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-button class="btn-check" size="medium" type="primary" plain icon="el-icon-search" @click="searchCli">搜索
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </el-form>
|
|
|
+
|
|
|
+
|
|
|
</div>
|
|
|
<div class="section2">
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
@click="dialogApplication(1)"
|
|
|
style="width: 80px;margin-right: 20px;margin-bottom: 20px;"
|
|
|
- v-if="(wo.provinceCity == 1 && wo.nextStep != 7 && wo.nextStep != 11) || (wo.provinceCity == 2 && wo.nextStep != 11)"
|
|
|
+ v-if="
|
|
|
+ (wo.provinceCity == 1 && wo.nextStep != 7 && wo.nextStep != 11) ||
|
|
|
+ (wo.provinceCity == 2 && wo.nextStep != 9) ||
|
|
|
+ (wo.provinceCity == 3 && wo.nextStep != 10)
|
|
|
+ "
|
|
|
>审批</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
@click="dialogApplication(2)"
|
|
|
style="margin-right: 20px;margin-bottom: 20px;"
|
|
|
+ v-if="isBtnShow"
|
|
|
>审批轨迹</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
@click="dialogApplication(3)"
|
|
|
style="margin-right: 20px;margin-bottom: 20px;"
|
|
|
- >导出</el-button
|
|
|
+ >导出</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
type="primary"
|
|
@@ -34,30 +102,28 @@
|
|
|
style="margin-right: 20px;margin-bottom: 20px;"
|
|
|
v-if="
|
|
|
(step.serialNum == 3 && step.provinceCity == 1) ||
|
|
|
- (step.serialNum == 6 && step.provinceCity == 2)
|
|
|
+ (step.serialNum == 5 && step.provinceCity == 2) ||
|
|
|
+ (step.serialNum == 6 && step.provinceCity == 3)
|
|
|
"
|
|
|
- >供应商</el-button
|
|
|
+ >供应商</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
@click="dialogApplication(5)"
|
|
|
style="margin-right: 20px;margin-bottom: 20px;"
|
|
|
v-if="
|
|
|
- (step.serialNum == 7 && step.provinceCity == 1) ||
|
|
|
- (step.serialNum == 10 && step.provinceCity == 2)
|
|
|
+ (((step.serialNum == 7 || step.serialNum == 11) && step.provinceCity == 1) ||
|
|
|
+ (step.serialNum == 9 && step.provinceCity == 2) ||
|
|
|
+ (step.serialNum == 10 && step.provinceCity == 3)) && isBtnShow
|
|
|
"
|
|
|
- >任务分发</el-button
|
|
|
+ >任务分发</el-button
|
|
|
>
|
|
|
-<<<<<<< HEAD
|
|
|
<a
|
|
|
style="margin-right:50px; color:#169BD5; cursor:pointer"
|
|
|
@click="attStatus = true"
|
|
|
v-if="wo.fileUrl != null"
|
|
|
- >下载附件</a
|
|
|
+ >下载附件</a
|
|
|
>
|
|
|
-=======
|
|
|
- <a style="margin-right:50px; color:#169BD5; cursor:pointer" @click="attStatus = true;">下载附件</a>
|
|
|
->>>>>>> 3467b0ae790b859d7d683f21ae7570080f5a5210
|
|
|
|
|
|
<h3>预计总金额:{{ amountsum }}</h3>
|
|
|
<h3>总数: {{ countsum }}</h3>
|
|
@@ -120,8 +186,8 @@
|
|
|
<div>
|
|
|
{{
|
|
|
scope.row.quantity *
|
|
|
- scope.row.price *
|
|
|
- scope.row.coefficient
|
|
|
+ scope.row.price *
|
|
|
+ scope.row.coefficient
|
|
|
}}
|
|
|
</div>
|
|
|
</template>
|
|
@@ -129,7 +195,7 @@
|
|
|
<el-table-column
|
|
|
prop="supplierName"
|
|
|
label="供应商"
|
|
|
- v-if="infolist.name != null"
|
|
|
+ v-if="(infolist.name != null) || isSupplierShow"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -184,7 +250,7 @@
|
|
|
<div slot="footer" class="dialog-footer myfooter">
|
|
|
<el-button @click="closedia">取 消</el-button>
|
|
|
<el-button type="primary" @click="dialogCli(1)"
|
|
|
- >确 定</el-button
|
|
|
+ >确 定</el-button
|
|
|
>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -273,7 +339,7 @@
|
|
|
|
|
|
<div class="t-footer">
|
|
|
<el-button type="primary" @click="dialogCli(4)"
|
|
|
- >确 定</el-button
|
|
|
+ >确 定</el-button
|
|
|
>
|
|
|
<el-button @click="closedia">取 消</el-button>
|
|
|
</div>
|
|
@@ -303,7 +369,6 @@
|
|
|
v-model="infolist.distributionChoose"
|
|
|
placeholder="任务分发"
|
|
|
>
|
|
|
-<<<<<<< HEAD
|
|
|
<el-option
|
|
|
v-for="(items,
|
|
|
index) in distributionRegionOpt"
|
|
@@ -340,18 +405,10 @@
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
</el-form>
|
|
|
-=======
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
-
|
|
|
- </div>
|
|
|
- </el-form>
|
|
|
->>>>>>> 3467b0ae790b859d7d683f21ae7570080f5a5210
|
|
|
|
|
|
<div class="t-footer">
|
|
|
<el-button type="primary" @click="dialogCli(5)"
|
|
|
- >确 定</el-button
|
|
|
+ >确 定</el-button
|
|
|
>
|
|
|
<el-button @click="closedia">取 消</el-button>
|
|
|
</div>
|
|
@@ -397,10 +454,10 @@
|
|
|
|
|
|
<div class="t-footer">
|
|
|
<el-button type="primary" @click="dialogCli(6)"
|
|
|
- >确 定</el-button
|
|
|
+ >确 定</el-button
|
|
|
>
|
|
|
<el-button @click="fixedDialogStatus = false"
|
|
|
- >取 消</el-button
|
|
|
+ >取 消</el-button
|
|
|
>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -444,16 +501,12 @@
|
|
|
style="text-align: right;padding-bottom: 20px;"
|
|
|
>
|
|
|
<el-button type="primary" @click="dialogCli(7)"
|
|
|
- >确 定</el-button
|
|
|
+ >确 定</el-button
|
|
|
>
|
|
|
<el-button @click="closedia">取 消</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
-<<<<<<< HEAD
|
|
|
-=======
|
|
|
-
|
|
|
->>>>>>> 3467b0ae790b859d7d683f21ae7570080f5a5210
|
|
|
<el-dialog
|
|
|
title="附件"
|
|
|
:visible.sync="attStatus"
|
|
@@ -466,7 +519,6 @@
|
|
|
<div slot="title">
|
|
|
<div>
|
|
|
附件
|
|
|
-<<<<<<< HEAD
|
|
|
<i
|
|
|
class="el-icon-full-screen"
|
|
|
style="float: right; margin-right: 30px"
|
|
@@ -476,23 +528,11 @@
|
|
|
}
|
|
|
"
|
|
|
></i>
|
|
|
-=======
|
|
|
- <i class="el-icon-full-screen" style="float: right; margin-right: 30px" @click="
|
|
|
- () => {
|
|
|
- fullscreen = !fullscreen;
|
|
|
- }"></i>
|
|
|
->>>>>>> 3467b0ae790b859d7d683f21ae7570080f5a5210
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-loading="loadinged">
|
|
|
<div style="margin: 10px 0">
|
|
|
-<<<<<<< HEAD
|
|
|
<uploadDown :datalist="datalist"></uploadDown>
|
|
|
-=======
|
|
|
- <uploadDown
|
|
|
- :datalist="datalist"
|
|
|
- ></uploadDown>
|
|
|
->>>>>>> 3467b0ae790b859d7d683f21ae7570080f5a5210
|
|
|
</div>
|
|
|
<div class="dialog-footer myfooter">
|
|
|
<el-button @click="attStatus = false">取 消</el-button>
|
|
@@ -511,32 +551,21 @@
|
|
|
import mySearch from "../../../components/search.vue";
|
|
|
import myMessage from "../../../components/myMessage.vue";
|
|
|
import toolList from "../../../components/toolList";
|
|
|
-<<<<<<< HEAD
|
|
|
import myUpload from "../../../components/upload";
|
|
|
import deptTreeOnly from "../../../components/deptTreeOnly.vue";
|
|
|
import { MessageBox } from "element-ui";
|
|
|
import { Loading } from "element-ui";
|
|
|
-=======
|
|
|
-// import myUpload from "../../../components/upload";
|
|
|
-// import deptTreeOnly from "../../../components/deptTreeOnly.vue";
|
|
|
-// import { MessageBox } from "element-ui";
|
|
|
->>>>>>> 3467b0ae790b859d7d683f21ae7570080f5a5210
|
|
|
import uploadDown from "../../../components/uploadDown";
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
mySearch,
|
|
|
myMessage,
|
|
|
- // deptTreeOnly,
|
|
|
- // MessageBox,
|
|
|
+ deptTreeOnly,
|
|
|
+ MessageBox,
|
|
|
toolList,
|
|
|
-<<<<<<< HEAD
|
|
|
myUpload,
|
|
|
uploadDown
|
|
|
-=======
|
|
|
- // myUpload,
|
|
|
- uploadDown,
|
|
|
->>>>>>> 3467b0ae790b859d7d683f21ae7570080f5a5210
|
|
|
},
|
|
|
data() {
|
|
|
const regionName = (rule, value, callback) => {
|
|
@@ -571,35 +600,7 @@ export default {
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
- searchList: [
|
|
|
- {
|
|
|
- type: "sel",
|
|
|
- tit: "地市",
|
|
|
- value: "",
|
|
|
- width: "32%",
|
|
|
- options: []
|
|
|
- },
|
|
|
- {
|
|
|
- type: "sel",
|
|
|
- tit: "区县",
|
|
|
- value: "",
|
|
|
- width: "32%",
|
|
|
- options: []
|
|
|
- },
|
|
|
- {
|
|
|
- type: "sel",
|
|
|
- tit: "物料类别",
|
|
|
- value: "",
|
|
|
- width: "32%",
|
|
|
- options: []
|
|
|
- }
|
|
|
- // {
|
|
|
- // type: 'input',
|
|
|
- // tit: '地市名称',
|
|
|
- // value: '',
|
|
|
- // width: '98%',
|
|
|
- // },
|
|
|
- ],
|
|
|
+
|
|
|
tooltit: "物料申请审核",
|
|
|
fullscreen: false,
|
|
|
total: 0,
|
|
@@ -646,8 +647,7 @@ export default {
|
|
|
fixedDialogStatus: false,
|
|
|
userListOpt: [],
|
|
|
cMkAdvMetirialWoInfoSubmit: {},
|
|
|
- stsArr: ["待审批", "审批通过", "打回"],
|
|
|
-<<<<<<< HEAD
|
|
|
+ stsArr: ["待审批", "审批通过", "打回", "待确认", "已结束"],
|
|
|
// 分发
|
|
|
distributionDialogStatus: false,
|
|
|
distributionRegionOpt: [],
|
|
@@ -660,15 +660,37 @@ export default {
|
|
|
attStatus: false,
|
|
|
step: {},
|
|
|
passedList:[],
|
|
|
- multipleSelection:[]
|
|
|
-=======
|
|
|
- wo:{},
|
|
|
- datalist: {
|
|
|
- url: "/market/cadvBusiMetirialWo/checkExport",
|
|
|
- type: 2,
|
|
|
- },
|
|
|
- attStatus: false,
|
|
|
->>>>>>> 3467b0ae790b859d7d683f21ae7570080f5a5210
|
|
|
+ multipleSelection:[],
|
|
|
+ searchSection: {},
|
|
|
+ regionOpt:[],
|
|
|
+ countyOpt:[],
|
|
|
+ metirialTypeOpt:[],
|
|
|
+ compId:"0",
|
|
|
+ stsOpt:[
|
|
|
+ {
|
|
|
+ stsId: 0,
|
|
|
+ stsName: "待审批",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ stsId: 1,
|
|
|
+ stsName: "审批通过",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ stsId: 2,
|
|
|
+ stsName: "打回",
|
|
|
+ }
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ stsId: 3,
|
|
|
+ stsName: "待确认",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ stsId: 4,
|
|
|
+ stsName: "已结束",
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ isSupplierShow: false,
|
|
|
+ isBtnShow: false,
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -698,34 +720,72 @@ export default {
|
|
|
methods: {
|
|
|
tableSelectionChange(val, row) {
|
|
|
this.multipleSelection = val;
|
|
|
- console.log(this.multipleSelection);
|
|
|
- // console.log(val);
|
|
|
// this.woNoArr=[]
|
|
|
// this.multipleSelection.forEach(item => {
|
|
|
// this.woNoArr.push(item.woNo)
|
|
|
// });
|
|
|
- // console.log(this.multipleSelection);
|
|
|
},
|
|
|
closedia() {
|
|
|
this.infolist = {};
|
|
|
+ this.searchSection={};
|
|
|
+ // this.approvalinfolist.opinionradio = "1";
|
|
|
+ // this.approvalinfolist.opinion = "";
|
|
|
this.dialogStatus = false;
|
|
|
this.approvalDialogStatus = false;
|
|
|
- this.approvalinfolist = {};
|
|
|
+ // this.approvalinfolist = {};
|
|
|
this.supplierDialogStatus = false;
|
|
|
this.approvalStepDialogStatus = false;
|
|
|
-<<<<<<< HEAD
|
|
|
this.distributionDialogStatus = false;
|
|
|
-=======
|
|
|
->>>>>>> 3467b0ae790b859d7d683f21ae7570080f5a5210
|
|
|
this.attStatus = false;
|
|
|
+ this.fixedDialogStatus = false;
|
|
|
+ this.checkexa = false;
|
|
|
+
|
|
|
+ this.approvalinfolist.opinion = "";
|
|
|
+ this.approvalinfolist.opinionradio = 1;
|
|
|
+
|
|
|
},
|
|
|
- //搜索数据
|
|
|
- searchInfo(v) {
|
|
|
- // this.params = {};
|
|
|
- // v[0] ? this.params.metirialName = v[0] : '';
|
|
|
- v[2] ? (this.params.metirialType = v[2]) : "";
|
|
|
- // this.params.woId
|
|
|
- this.getList(this.params, this.pageSize);
|
|
|
+ changeSearch(v, e) {
|
|
|
+ if (v === 1) {
|
|
|
+ this.searchSection.countyCode = ""
|
|
|
+ let regionSingle = this.regionOpt.filter(item=>{
|
|
|
+ return item.compId == this.searchSection.regionCode
|
|
|
+ })
|
|
|
+
|
|
|
+ this.$http({
|
|
|
+ url: "/sysmgr/regionComp/queryList",
|
|
|
+ method: "post",
|
|
|
+ headers: {
|
|
|
+ "Content-Type": "application/json"
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ parentCompId: regionSingle[0].compId,
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ this.countyOpt = res.data;
|
|
|
+ });
|
|
|
+
|
|
|
+ }else if(v===2){
|
|
|
+ this.searchSection.countyCode = e;
|
|
|
+ this.$forceUpdate();
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ clearSearch(){
|
|
|
+ },
|
|
|
+ //获取地市(搜索)
|
|
|
+ getRegion() {
|
|
|
+ this.$http({
|
|
|
+ url: "/sysmgr/regionComp/queryList",
|
|
|
+ method: "post",
|
|
|
+ headers: {
|
|
|
+ "Content-Type": "application/json"
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ parentCompId: "0"
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ this.regionOpt = res.data;
|
|
|
+ });
|
|
|
},
|
|
|
//获取列表
|
|
|
getList(v, n) {
|
|
@@ -743,45 +803,51 @@ export default {
|
|
|
},
|
|
|
data: v
|
|
|
}).then(res => {
|
|
|
-<<<<<<< HEAD
|
|
|
- // console.log(res.data.body);
|
|
|
// this.tableData = res.data.body.pageList.data;
|
|
|
- res.data.body.pageList.data.forEach(item=>{
|
|
|
+ res.data.body.pageList.forEach(item=>{
|
|
|
+
|
|
|
+
|
|
|
if (item.woSts == '0') {
|
|
|
this.tableData.push(item);
|
|
|
} else if (item.woSts == '1') {
|
|
|
this.passedList.push(item);
|
|
|
}
|
|
|
+ if(item.supplierName != null){
|
|
|
+ this.isSupplierShow = true;
|
|
|
+ }
|
|
|
});
|
|
|
this.userListOpt =
|
|
|
- res.data.body.queryCurrentAndNext.next.userList;
|
|
|
+ res.data.body.step.next.userList;
|
|
|
this.total = res.data.totalRecord;
|
|
|
this.wo = res.data.body.wo;
|
|
|
this.datalist.attList = JSON.parse(this.wo.fileUrl);
|
|
|
this.step = res.data.body.step;
|
|
|
- this.searchList[2].options = [];
|
|
|
+
|
|
|
+ // this.searchSection[2].options = [];
|
|
|
// Array.from(new Set(arr))
|
|
|
let temp = [];
|
|
|
this.tableData.forEach(item=>{
|
|
|
- temp.push({dataCode: item.metirialType, dataName: item.metirialType});
|
|
|
+ temp.push(item.metirialType);
|
|
|
});
|
|
|
let map = new Map();
|
|
|
- this.searchList[2].options = temp.filter((temp) => !map.has(temp.metirialType) && map.set(temp.metirialType, 1));
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-=======
|
|
|
- // console.log(res.data);
|
|
|
- this.tableData = res.data.body.pageList.data;
|
|
|
- this.userListOpt = res.data.body.queryCurrentAndNext.next.userList;
|
|
|
- this.total = res.data.totalRecord;
|
|
|
- this.wo = res.data.body.wo;
|
|
|
- this.datalist.attList = JSON.parse(this.wo.fileUrl);
|
|
|
->>>>>>> 3467b0ae790b859d7d683f21ae7570080f5a5210
|
|
|
+ this.metirialTypeOpt = temp.filter((temp) => !map.has(temp.metirialType) && map.set(temp.metirialType, 1));
|
|
|
+
|
|
|
+
|
|
|
+ this.params.regionCode = ""
|
|
|
this.loading = false;
|
|
|
-
|
|
|
+
|
|
|
});
|
|
|
},
|
|
|
+ searchCli(){
|
|
|
+ this.params = {}
|
|
|
+
|
|
|
+ this.searchSection.regionCode ? this.params.regionCode = this.searchSection.regionCode : '';
|
|
|
+ this.searchSection.countyCode ? this.params.countyCode = this.searchSection.countyCode : '';
|
|
|
+ this.searchSection.metirialType ? this.params.metirialType = this.searchSection.metirialType : '';
|
|
|
+ this.params.woId = this.$route.query.id;
|
|
|
+
|
|
|
+ this.getList(this.params, this.pageSize);
|
|
|
+ },
|
|
|
// 分页
|
|
|
currchange(v) {
|
|
|
this.pageSize = v;
|
|
@@ -792,48 +858,44 @@ export default {
|
|
|
dialogApplication(v, n) {
|
|
|
var _this = this;
|
|
|
// if (!this.multipleSelection) this.multipleSelection = [];
|
|
|
-
|
|
|
+
|
|
|
if (v === 1) {
|
|
|
if (
|
|
|
this.multipleSelection == undefined ||
|
|
|
this.multipleSelection == ""
|
|
|
) {
|
|
|
-
|
|
|
+
|
|
|
MessageBox.alert("请至少选择一条进行审批", "温馨提示", {
|
|
|
confirmButtonText: "确定"
|
|
|
});
|
|
|
// step.serialNum == 3 && step.provinceCity == 1) || (step.serialNum == 6 && step.provinceCity == 2
|
|
|
} else {
|
|
|
- if ((this.step.serialNum == 3 &&this.step.provinceCity == 1) ||(this.step.serialNum == 6 &&this.step.provinceCity == 2)) {
|
|
|
+ if ((this.step.serialNum == 3 &&this.step.provinceCity == 1) ||(this.step.serialNum == 5 && this.step.provinceCity == 2)||(this.step.serialNum == 6 && this.step.provinceCity == 3)) {
|
|
|
let n = 0;
|
|
|
this.multipleSelection.forEach(item=>{
|
|
|
- // console.log(item);
|
|
|
if(item.supplierName == null || item.supplierName == undefined){
|
|
|
-
|
|
|
+
|
|
|
n =1;
|
|
|
return;
|
|
|
}
|
|
|
})
|
|
|
if(n==1){
|
|
|
MessageBox.alert(
|
|
|
- "请先选择供应商再进行审批",
|
|
|
- "温馨提示",
|
|
|
- {
|
|
|
- confirmButtonText: "确定"
|
|
|
- }
|
|
|
- );
|
|
|
- return;
|
|
|
+ "请先选择供应商再进行审批",
|
|
|
+ "温馨提示",
|
|
|
+ {
|
|
|
+ confirmButtonText: "确定"
|
|
|
+ }
|
|
|
+ );
|
|
|
+ return;
|
|
|
}else{
|
|
|
this.titname = "审批";
|
|
|
this.approvalDialogStatus = true;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}else{
|
|
|
this.titname = "审批";
|
|
|
this.approvalDialogStatus = true;
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
} else if (v === 2) {
|
|
|
// if (
|
|
@@ -856,16 +918,13 @@ export default {
|
|
|
headers: {
|
|
|
"Content-Type": "application/json"
|
|
|
},
|
|
|
- data: { mKAdvBusiMetirialWoStep: this.params.woId }
|
|
|
- }).then(res => {
|
|
|
- console.log(res);
|
|
|
- });
|
|
|
-<<<<<<< HEAD
|
|
|
+ data: { woId: this.params.woId }
|
|
|
+ }).then(res => {
|
|
|
+ this.rovaList = res.data;
|
|
|
+ });
|
|
|
// }
|
|
|
-=======
|
|
|
- }
|
|
|
->>>>>>> 3467b0ae790b859d7d683f21ae7570080f5a5210
|
|
|
} else if (v === 3) {
|
|
|
+ //导出
|
|
|
this.$http({
|
|
|
url: "/market/cadvBusiMetirialWo/export",
|
|
|
method: "post",
|
|
@@ -877,11 +936,7 @@ export default {
|
|
|
}).then(res => {
|
|
|
if (window.navigator && window.navigator.msSaveOrOpenBlob) {
|
|
|
let blob = new Blob([res.data], {
|
|
|
-<<<<<<< HEAD
|
|
|
type: "application/vnd.ms-excel"
|
|
|
-=======
|
|
|
- type: "application/vnd.ms-excel",
|
|
|
->>>>>>> 3467b0ae790b859d7d683f21ae7570080f5a5210
|
|
|
});
|
|
|
window.navigator.msSaveOrOpenBlob(
|
|
|
blob,
|
|
@@ -927,11 +982,20 @@ export default {
|
|
|
} else if (v === 5) {
|
|
|
this.titname = "任务分发";
|
|
|
this.distributionDialogStatus = true;
|
|
|
- let regionArr = [];
|
|
|
+ if(this.step.serialNum == 7 && this.step.provinceCity == 1){
|
|
|
+ let regionArr = [];
|
|
|
this.tableData.forEach(item => {
|
|
|
regionArr.push(item.regionName);
|
|
|
});
|
|
|
this.distributionRegionOpt = [...new Set(regionArr)];
|
|
|
+ } else if((this.step.serialNum == 11 && this.step.provinceCity == 1)||(this.step.serialNum == 9 && this.step.provinceCity == 2)||(this.step.serialNum == 10 && this.step.provinceCity == 3)){
|
|
|
+ let countyArr = [];
|
|
|
+ this.tableData.forEach(item => {
|
|
|
+ countyArr.push(item.countyName);
|
|
|
+ });
|
|
|
+ this.distributionRegionOpt = [...new Set(countyArr)];
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -941,7 +1005,7 @@ export default {
|
|
|
//添加
|
|
|
dialogCli(v) {
|
|
|
this.dialogStatus = false;
|
|
|
- // 1审批 2审批轨迹 3导出 4供应商 5任务分发 8附件
|
|
|
+ // 1审批 2审批轨迹 4供应商 5任务分发
|
|
|
if (v === 1) {
|
|
|
this.approvalDialogStatus = false;
|
|
|
// let list = {};
|
|
@@ -950,7 +1014,6 @@ export default {
|
|
|
this.cMkAdvMetirialWoInfoSubmit.remark = this.approvalinfolist.opinion;
|
|
|
if (this.approvalinfolist.opinionradio == 1) {
|
|
|
this.cMkAdvMetirialWoInfoSubmit.woSts = "1";
|
|
|
- // console.log(list);
|
|
|
if (this.userListOpt == null) {
|
|
|
// 树形审批人
|
|
|
this.checkexa = true;
|
|
@@ -969,13 +1032,12 @@ export default {
|
|
|
this.cMkAdvMetirialWoInfoSubmit.nextOpName = this.userListOpt[0].loginNameStr;
|
|
|
this.fixedDialogStatus = false;
|
|
|
|
|
|
- // console.log(this.cMkAdvMetirialWoInfoSubmit);
|
|
|
this.submitInfo(
|
|
|
"/market/cadvBusiMetirialWo/submitWo",
|
|
|
this.cMkAdvMetirialWoInfoSubmit
|
|
|
);
|
|
|
// userListSingle = "";
|
|
|
- this.approvalinfolist.opinionradio = "1";
|
|
|
+ this.approvalinfolist.opinionradio = 1;
|
|
|
this.approvalinfolist.opinion = "";
|
|
|
}else{
|
|
|
this.fixedDialogStatus = true;
|
|
@@ -1004,13 +1066,12 @@ export default {
|
|
|
this.cMkAdvMetirialWoInfoSubmit.nextOpName = this.userListOpt[0].loginNameStr;
|
|
|
this.fixedDialogStatus = false;
|
|
|
|
|
|
- // console.log(this.cMkAdvMetirialWoInfoSubmit);
|
|
|
this.submitInfo(
|
|
|
"/market/cadvBusiMetirialWo/submitWo",
|
|
|
this.cMkAdvMetirialWoInfoSubmit
|
|
|
);
|
|
|
// userListSingle = "";
|
|
|
- this.approvalinfolist.opinionradio = "1";
|
|
|
+ this.approvalinfolist.opinionradio = 1;
|
|
|
this.approvalinfolist.opinion = "";
|
|
|
}else{
|
|
|
this.fixedDialogStatus = true;
|
|
@@ -1021,7 +1082,6 @@ export default {
|
|
|
this.checkexa = false;
|
|
|
this.fixedDialogStatus = false;
|
|
|
|
|
|
- console.log(this.cMkAdvMetirialWoInfoSubmit);
|
|
|
this.submitInfo(
|
|
|
"/market/cadvBusiMetirialWo/submitWo",
|
|
|
this.cMkAdvMetirialWoInfoSubmit
|
|
@@ -1030,8 +1090,7 @@ export default {
|
|
|
}
|
|
|
} else if (v === 2) {
|
|
|
this.approvalStepDialogStatus = false;
|
|
|
- } else if (v === 3) {
|
|
|
- } else if (v === 4) {
|
|
|
+ }else if (v === 4) {
|
|
|
this.supplierDialogStatus = false;
|
|
|
let supplierChoose = this.supplierOpt.filter(item => {
|
|
|
return item.name == this.infolist.name;
|
|
@@ -1044,23 +1103,17 @@ export default {
|
|
|
});
|
|
|
// this.multipleSelection.supplierName = supplierChoose[0].name;
|
|
|
// this.multipleSelection.supplierCode = supplierChoose[0].code;
|
|
|
- // console.log(this.multipleSelection);
|
|
|
} else if (v === 5) {
|
|
|
-<<<<<<< HEAD
|
|
|
this.cWoInfoIssued.nextOpNo = this.treeListonly.leaderAuditNo;
|
|
|
this.cWoInfoIssued.nextOpName = this.treeListonly.leaderAuditName;
|
|
|
this.cWoInfoIssued.woId = this.params.woId;
|
|
|
this.cWoInfoIssued.regionName = this.infolist.distributionChoose;
|
|
|
- // console.log(this.cWoInfoIssued);
|
|
|
this.distributionDialogStatus = false;
|
|
|
this.submitInfo(
|
|
|
"/market/cadvBusiMetirialWo/issued",
|
|
|
this.cWoInfoIssued
|
|
|
);
|
|
|
} else if (v === 6) {
|
|
|
-=======
|
|
|
- }else if (v === 6) {
|
|
|
->>>>>>> 3467b0ae790b859d7d683f21ae7570080f5a5210
|
|
|
let userListSingle = "";
|
|
|
userListSingle = this.userListOpt.filter(item => {
|
|
|
return item.loginNameStr == this.infolist.loginNameStr;
|
|
@@ -1072,26 +1125,23 @@ export default {
|
|
|
userListSingle[0].loginNameStr;
|
|
|
this.fixedDialogStatus = false;
|
|
|
|
|
|
- console.log(this.cMkAdvMetirialWoInfoSubmit);
|
|
|
this.submitInfo(
|
|
|
"/market/cadvBusiMetirialWo/submitWo",
|
|
|
this.cMkAdvMetirialWoInfoSubmit
|
|
|
);
|
|
|
userListSingle = "";
|
|
|
- this.approvalinfolist.opinionradio = "1";
|
|
|
+ this.approvalinfolist.opinionradio = 1;
|
|
|
this.approvalinfolist.opinion = "";
|
|
|
- // console.log(this.cMkAdvMetirialWoInfoSubmit);
|
|
|
} else if (v === 7) {
|
|
|
this.cMkAdvMetirialWoInfoSubmit.nextOpNo = this.treeListonly.leaderAuditNo;
|
|
|
this.cMkAdvMetirialWoInfoSubmit.nextOpName = this.treeListonly.leaderAuditName;
|
|
|
- // console.log(this.cMkAdvMetirialWoInfoSubmit);
|
|
|
this.checkexa = false;
|
|
|
this.submitInfo(
|
|
|
"/market/cadvBusiMetirialWo/submitWo",
|
|
|
this.cMkAdvMetirialWoInfoSubmit
|
|
|
);
|
|
|
this.treeListonly = {};
|
|
|
- this.approvalinfolist.opinionradio = "1";
|
|
|
+ this.approvalinfolist.opinionradio = 1;
|
|
|
this.approvalinfolist.opinion = "";
|
|
|
}
|
|
|
},
|
|
@@ -1127,13 +1177,17 @@ export default {
|
|
|
|
|
|
|
|
|
if (this.tableData.length == this.multipleSelection.length) {
|
|
|
- this.$router.push("/materialApplication")
|
|
|
+ this.$router.push("/materialApplication");
|
|
|
+ return;
|
|
|
}
|
|
|
this.treeListonly = {}
|
|
|
this.infolist.distributionChoose = "";
|
|
|
_this.getList(this.params, this.pageSize);
|
|
|
}
|
|
|
// this.loading = false;
|
|
|
+ this.treeListonly = {};
|
|
|
+ this.approvalinfolist.opinionradio = 1;
|
|
|
+ this.approvalinfolist.opinion = "";
|
|
|
|
|
|
});
|
|
|
},
|
|
@@ -1176,7 +1230,6 @@ export default {
|
|
|
},
|
|
|
//文件返回值
|
|
|
uploadBack(v) {
|
|
|
- // console.log(v);
|
|
|
},
|
|
|
//功能栏
|
|
|
iconCli(v) {
|
|
@@ -1194,9 +1247,18 @@ export default {
|
|
|
mounted() {
|
|
|
if (JSON.stringify(this.$route.query) != "{}") {
|
|
|
this.params.woId = this.$route.query.id;
|
|
|
+ this.params.btnS = this.$route.query.btnS;
|
|
|
+ if(this.params.btnS == 1){
|
|
|
+ //确认结果路由
|
|
|
+ this.isBtnShow = true
|
|
|
+ }else if(this.params.btnS == 2){
|
|
|
+ //确认结果路由
|
|
|
+ this.isBtnShow = false
|
|
|
+ }
|
|
|
}
|
|
|
this.getList(this.params, 1);
|
|
|
this.getUser();
|
|
|
+ this.getRegion();
|
|
|
},
|
|
|
watch: {
|
|
|
$route() {
|
|
@@ -1276,6 +1338,21 @@ export default {
|
|
|
width: calc(100% - 100px);
|
|
|
}
|
|
|
}
|
|
|
+.search{
|
|
|
+ width: 100%;
|
|
|
+ display: unset;
|
|
|
+ margin-top: 20px;
|
|
|
+}
|
|
|
+.search-box{
|
|
|
+ margin-top: 40px;
|
|
|
+ div{
|
|
|
+ width: 20%
|
|
|
+ }
|
|
|
+ .el-form{
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
.adv-type {
|
|
|
margin-top: 20px;
|
|
|
display: flex;
|