|
|
|
@ -1,7 +1,8 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<el-card class="el-card">
|
|
|
|
|
<el-form v-if="queryList && queryList.length > 0 && showSearch" :model="filterQuery" size="mini" label-width="120px">
|
|
|
|
|
<el-form v-if="queryList && queryList.length > 0 && showSearch" :model="filterQuery" size="mini"
|
|
|
|
|
label-width="120px">
|
|
|
|
|
<!-- <el-row>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item class="query-form-item" label="盘点单号:">
|
|
|
|
@ -44,8 +45,9 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row> -->
|
|
|
|
|
<el-row style=" display:flex; flex-wrap: wrap; ">
|
|
|
|
|
<template v-for="(item, index) in queryList" >
|
|
|
|
|
<el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`" :key="item.id">
|
|
|
|
|
<template v-for="(item, index) in queryList">
|
|
|
|
|
<el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true)"
|
|
|
|
|
:label="item.columnDesc+`:`" :key="item.id">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="filterQuery[item.columnName]"
|
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
@ -54,7 +56,8 @@
|
|
|
|
|
clearable
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="item.columnType == 'select' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
|
|
|
|
|
<el-form-item v-if="item.columnType == 'select' && executeEval(row,item.expression,true)"
|
|
|
|
|
:label="item.columnDesc+`:`">
|
|
|
|
|
<el-select v-model="filterQuery[item.columnName]"
|
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
|
:disabled="executeEval(null,item.disabledFuc,false)"
|
|
|
|
@ -66,10 +69,13 @@
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
|
<span v-if="item.isShowXx == '1'" style="float: right; color: #8492a6; font-size: 13px">{{ item.code }}</span>
|
|
|
|
|
<span v-if="item.isShowXx == '1'" style="float: right; color: #8492a6; font-size: 13px">{{
|
|
|
|
|
item.code
|
|
|
|
|
}}</span>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="item.columnType == 'selectServer' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
|
|
|
|
|
<el-form-item v-if="item.columnType == 'selectServer' && executeEval(row,item.expression,true)"
|
|
|
|
|
:label="item.columnDesc+`:`">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="filterQuery[item.columnName]"
|
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
@ -85,10 +91,13 @@
|
|
|
|
|
:value="item.code"
|
|
|
|
|
/>
|
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
|
<span v-if="item.isShowXx == '1'" style="float: right; color: #8492a6; font-size: 13px">{{ item.code }}</span>
|
|
|
|
|
<span v-if="item.isShowXx == '1'" style="float: right; color: #8492a6; font-size: 13px">{{
|
|
|
|
|
item.code
|
|
|
|
|
}}</span>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="item.columnType == 'datePicker' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
|
|
|
|
|
<el-form-item v-if="item.columnType == 'datePicker' && executeEval(row,item.expression,true)"
|
|
|
|
|
:label="item.columnDesc+`:`">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
:picker-options="pickerOptions"
|
|
|
|
|
v-model="actDateRange"
|
|
|
|
@ -100,7 +109,8 @@
|
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
|
></el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="item.columnType == 'date' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
|
|
|
|
|
<el-form-item v-if="item.columnType == 'date' && executeEval(row,item.expression,true)"
|
|
|
|
|
:label="item.columnDesc+`:`">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="filterQuery[item.columnName]"
|
|
|
|
|
:style="`width:${item.width+'px'}`"
|
|
|
|
@ -201,7 +211,9 @@
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span :style="{color: executeFuc(scope.row,'4',item.lableRuleObj[scope.row[item.columnName]])}">{{ item.lableRuleObj[scope.row[item.columnName]] }}</span>
|
|
|
|
|
<span :style="{color: executeFuc(scope.row,'4',item.lableRuleObj[scope.row[item.columnName]])}">{{
|
|
|
|
|
item.lableRuleObj[scope.row[item.columnName]]
|
|
|
|
|
}}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
@ -214,8 +226,11 @@
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-tag :type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])">
|
|
|
|
|
<span>{{ item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName] }}</span>
|
|
|
|
|
<el-tag
|
|
|
|
|
:type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])">
|
|
|
|
|
<span>{{
|
|
|
|
|
item.lableRuleObj ? item.lableRuleObj[scope.row[item.columnName]] : scope.row[item.columnName]
|
|
|
|
|
}}</span>
|
|
|
|
|
</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -250,7 +265,9 @@
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{ scope.row[item.columnName] }}</span>
|
|
|
|
|
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{
|
|
|
|
|
scope.row[item.columnName]
|
|
|
|
|
}}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
@ -313,7 +330,9 @@
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span :style="{color: executeFuc(scope.row,'4',item.lableRuleObj[scope.row[item.columnName]])}">{{ item.lableRuleObj[scope.row[item.columnName]] }}</span>
|
|
|
|
|
<span :style="{color: executeFuc(scope.row,'4',item.lableRuleObj[scope.row[item.columnName]])}">{{
|
|
|
|
|
item.lableRuleObj[scope.row[item.columnName]]
|
|
|
|
|
}}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
@ -326,8 +345,11 @@
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-tag :type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])">
|
|
|
|
|
<span>{{ item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName] }}</span>
|
|
|
|
|
<el-tag
|
|
|
|
|
:type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])">
|
|
|
|
|
<span>{{
|
|
|
|
|
item.lableRuleObj ? item.lableRuleObj[scope.row[item.columnName]] : scope.row[item.columnName]
|
|
|
|
|
}}</span>
|
|
|
|
|
</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -362,7 +384,9 @@
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{ scope.row[item.columnName] }}</span>
|
|
|
|
|
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{
|
|
|
|
|
scope.row[item.columnName]
|
|
|
|
|
}}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
@ -407,7 +431,7 @@ import {
|
|
|
|
|
} from "@/api/inventory/invCountOrder";
|
|
|
|
|
import invCountOrderModify from "@/views/inventory/count/InvCountOrderModify.vue";
|
|
|
|
|
import {
|
|
|
|
|
getHead,executeFuc
|
|
|
|
|
getHead, executeFuc
|
|
|
|
|
} from "@/utils/customConfig";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
@ -417,23 +441,23 @@ export default {
|
|
|
|
|
showSearch: true,
|
|
|
|
|
filterQuery: {
|
|
|
|
|
orderId: null,
|
|
|
|
|
invStorageCode: this.$store.getters.locInvCode,
|
|
|
|
|
invWarehouseCode: null,
|
|
|
|
|
invCode: this.$store.getters.locInvCode,
|
|
|
|
|
invSpaceCode: null,
|
|
|
|
|
status: 0,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 20,
|
|
|
|
|
},
|
|
|
|
|
list: [],
|
|
|
|
|
total: 0,
|
|
|
|
|
tableHeader:[],
|
|
|
|
|
queryList:[],
|
|
|
|
|
fromList:[],
|
|
|
|
|
tableHeader2:[],
|
|
|
|
|
queryList2:[],
|
|
|
|
|
fromList2:[],
|
|
|
|
|
tableHeader: [],
|
|
|
|
|
queryList: [],
|
|
|
|
|
fromList: [],
|
|
|
|
|
tableHeader2: [],
|
|
|
|
|
queryList2: [],
|
|
|
|
|
fromList2: [],
|
|
|
|
|
options: {
|
|
|
|
|
getInvList:[],
|
|
|
|
|
getSpaceList:[],
|
|
|
|
|
getInvList: [],
|
|
|
|
|
getSpaceList: [],
|
|
|
|
|
},
|
|
|
|
|
invList: [],
|
|
|
|
|
spaceList: [],
|
|
|
|
@ -480,8 +504,8 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
this.filterQuery = {
|
|
|
|
|
orderId: null,
|
|
|
|
|
invStorageCode: this.$store.getters.locInvCode,
|
|
|
|
|
invWarehouseCode: null,
|
|
|
|
|
invCode: this.$store.getters.locInvCode,
|
|
|
|
|
invSpaceCode: null,
|
|
|
|
|
status: 0,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 20,
|
|
|
|
@ -529,7 +553,7 @@ export default {
|
|
|
|
|
_this.getSpaceList(_this);
|
|
|
|
|
},
|
|
|
|
|
getSpaceList(_this) {
|
|
|
|
|
let params = {invWarehouseCode: _this.filterQuery.invStorageCode, status: 1};
|
|
|
|
|
let params = {invWarehouseCode: _this.filterQuery.invCode, status: 1};
|
|
|
|
|
getInvSpaceListOptimize(params).then((res) => {
|
|
|
|
|
_this.options.getSpaceList = res.data.list || [];
|
|
|
|
|
_this.getList();
|
|
|
|
@ -543,7 +567,7 @@ export default {
|
|
|
|
|
countType: this.countType
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
printOrder(_this,row) {
|
|
|
|
|
printOrder(_this, row) {
|
|
|
|
|
let query = {moduleId: 6};
|
|
|
|
|
_this.loading = true;
|
|
|
|
|
verifyTemplateFile(query).then((res) => {
|
|
|
|
@ -572,7 +596,7 @@ export default {
|
|
|
|
|
_this.$message.error(error.message);
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
editOrder(_this,row) {
|
|
|
|
|
editOrder(_this, row) {
|
|
|
|
|
_this.formVisible = true;
|
|
|
|
|
_this.formName = "edit_" + row.countType;
|
|
|
|
|
_this.countOrder = row;
|
|
|
|
@ -590,13 +614,13 @@ export default {
|
|
|
|
|
this.$message.error(error.message);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
deleteDialog(_this,rowId) {
|
|
|
|
|
deleteDialog(_this, row) {
|
|
|
|
|
_this.$confirm('此操作将永久删除该盘点单, 是否继续?', '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning'
|
|
|
|
|
}).then(() => {
|
|
|
|
|
let params = {id: rowId};
|
|
|
|
|
let params = {id: row.id};
|
|
|
|
|
_this.loading = true;
|
|
|
|
|
deleteCountOrder(params).then((res) => {
|
|
|
|
|
_this.loading = false;
|
|
|
|
@ -615,7 +639,7 @@ export default {
|
|
|
|
|
this.formVisible = false;
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
handleChange(_this,row) {
|
|
|
|
|
handleChange(_this, row) {
|
|
|
|
|
_this.detailQuery.orderIdFk = row.orderId;
|
|
|
|
|
_this.detailQuery.page = 1;
|
|
|
|
|
_this.getCountOrderDetailList()
|
|
|
|
@ -637,11 +661,11 @@ export default {
|
|
|
|
|
this.detailTotal = 0;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
executeFuc(row,type,clickFuc,value){
|
|
|
|
|
return executeFuc(this,row,type,clickFuc,value);
|
|
|
|
|
executeFuc(row, type, clickFuc, value) {
|
|
|
|
|
return executeFuc(this, row, type, clickFuc, value);
|
|
|
|
|
},
|
|
|
|
|
executeEval(row,expression,defaultRet){
|
|
|
|
|
if(expression){
|
|
|
|
|
executeEval(row, expression, defaultRet) {
|
|
|
|
|
if (expression) {
|
|
|
|
|
return eval(expression);
|
|
|
|
|
}
|
|
|
|
|
return defaultRet;
|
|
|
|
@ -658,14 +682,14 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getInvList(this);
|
|
|
|
|
getHead("InvCountOrderNew-1","1").then((re) => {
|
|
|
|
|
getHead("InvCountOrderNew-1", "1").then((re) => {
|
|
|
|
|
// 处理返回的数据
|
|
|
|
|
this.tableObj = re.data;
|
|
|
|
|
this.tableHeader = re.data.tableList;
|
|
|
|
|
this.queryList = re.data.queryList;
|
|
|
|
|
this.fromList = re.data.fromList;
|
|
|
|
|
});
|
|
|
|
|
getHead("InvCountOrderNew-2","1").then((re) => {
|
|
|
|
|
getHead("InvCountOrderNew-2", "1").then((re) => {
|
|
|
|
|
// 处理返回的数据
|
|
|
|
|
this.tableObj2 = re.data;
|
|
|
|
|
this.tableHeader2 = re.data.tableList;
|
|
|
|
|