|
|
@ -1,7 +1,8 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<el-card class="el-card">
|
|
|
|
<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-row>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item class="query-form-item" label="盘点单号:">
|
|
|
|
<el-form-item class="query-form-item" label="盘点单号:">
|
|
|
@ -45,7 +46,8 @@
|
|
|
|
</el-row> -->
|
|
|
|
</el-row> -->
|
|
|
|
<el-row style=" display:flex; flex-wrap: wrap; ">
|
|
|
|
<el-row style=" display:flex; flex-wrap: wrap; ">
|
|
|
|
<template v-for="(item, index) in queryList">
|
|
|
|
<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-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true)"
|
|
|
|
|
|
|
|
:label="item.columnDesc+`:`" :key="item.id">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="filterQuery[item.columnName]"
|
|
|
|
v-model="filterQuery[item.columnName]"
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
@ -54,7 +56,8 @@
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
></el-input>
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</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]"
|
|
|
|
<el-select v-model="filterQuery[item.columnName]"
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
:disabled="executeEval(null,item.disabledFuc,false)"
|
|
|
|
:disabled="executeEval(null,item.disabledFuc,false)"
|
|
|
@ -66,10 +69,13 @@
|
|
|
|
:value="dict.value"
|
|
|
|
:value="dict.value"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
<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-select>
|
|
|
|
</el-form-item>
|
|
|
|
</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
|
|
|
|
<el-select
|
|
|
|
v-model="filterQuery[item.columnName]"
|
|
|
|
v-model="filterQuery[item.columnName]"
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
@ -85,10 +91,13 @@
|
|
|
|
:value="item.code"
|
|
|
|
:value="item.code"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
<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-select>
|
|
|
|
</el-form-item>
|
|
|
|
</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
|
|
|
|
<el-date-picker
|
|
|
|
:picker-options="pickerOptions"
|
|
|
|
:picker-options="pickerOptions"
|
|
|
|
v-model="actDateRange"
|
|
|
|
v-model="actDateRange"
|
|
|
@ -100,7 +109,8 @@
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
></el-date-picker>
|
|
|
|
></el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</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
|
|
|
|
<el-date-picker
|
|
|
|
v-model="filterQuery[item.columnName]"
|
|
|
|
v-model="filterQuery[item.columnName]"
|
|
|
|
:style="`width:${item.width+'px'}`"
|
|
|
|
:style="`width:${item.width+'px'}`"
|
|
|
@ -201,7 +211,9 @@
|
|
|
|
:key="item.columnName"
|
|
|
|
:key="item.columnName"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<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>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
@ -214,8 +226,11 @@
|
|
|
|
:key="item.columnName"
|
|
|
|
:key="item.columnName"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-tag :type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])">
|
|
|
|
<el-tag
|
|
|
|
<span>{{ item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName] }}</span>
|
|
|
|
: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>
|
|
|
|
</el-tag>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
@ -250,7 +265,9 @@
|
|
|
|
:key="item.columnName"
|
|
|
|
:key="item.columnName"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<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>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -313,7 +330,9 @@
|
|
|
|
:key="item.columnName"
|
|
|
|
:key="item.columnName"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<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>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
@ -326,8 +345,11 @@
|
|
|
|
:key="item.columnName"
|
|
|
|
:key="item.columnName"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-tag :type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])">
|
|
|
|
<el-tag
|
|
|
|
<span>{{ item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName] }}</span>
|
|
|
|
: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>
|
|
|
|
</el-tag>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
@ -362,7 +384,9 @@
|
|
|
|
:key="item.columnName"
|
|
|
|
:key="item.columnName"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<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>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -417,8 +441,8 @@ export default {
|
|
|
|
showSearch: true,
|
|
|
|
showSearch: true,
|
|
|
|
filterQuery: {
|
|
|
|
filterQuery: {
|
|
|
|
orderId: null,
|
|
|
|
orderId: null,
|
|
|
|
invStorageCode: this.$store.getters.locInvCode,
|
|
|
|
invCode: this.$store.getters.locInvCode,
|
|
|
|
invWarehouseCode: null,
|
|
|
|
invSpaceCode: null,
|
|
|
|
status: 0,
|
|
|
|
status: 0,
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
|
limit: 20,
|
|
|
|
limit: 20,
|
|
|
@ -480,8 +504,8 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.filterQuery = {
|
|
|
|
this.filterQuery = {
|
|
|
|
orderId: null,
|
|
|
|
orderId: null,
|
|
|
|
invStorageCode: this.$store.getters.locInvCode,
|
|
|
|
invCode: this.$store.getters.locInvCode,
|
|
|
|
invWarehouseCode: null,
|
|
|
|
invSpaceCode: null,
|
|
|
|
status: 0,
|
|
|
|
status: 0,
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
|
limit: 20,
|
|
|
|
limit: 20,
|
|
|
@ -529,7 +553,7 @@ export default {
|
|
|
|
_this.getSpaceList(_this);
|
|
|
|
_this.getSpaceList(_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) => {
|
|
|
|
getInvSpaceListOptimize(params).then((res) => {
|
|
|
|
_this.options.getSpaceList = res.data.list || [];
|
|
|
|
_this.options.getSpaceList = res.data.list || [];
|
|
|
|
_this.getList();
|
|
|
|
_this.getList();
|
|
|
@ -590,13 +614,13 @@ export default {
|
|
|
|
this.$message.error(error.message);
|
|
|
|
this.$message.error(error.message);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
deleteDialog(_this,rowId) {
|
|
|
|
deleteDialog(_this, row) {
|
|
|
|
_this.$confirm('此操作将永久删除该盘点单, 是否继续?', '提示', {
|
|
|
|
_this.$confirm('此操作将永久删除该盘点单, 是否继续?', '提示', {
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
type: 'warning'
|
|
|
|
type: 'warning'
|
|
|
|
}).then(() => {
|
|
|
|
}).then(() => {
|
|
|
|
let params = {id: rowId};
|
|
|
|
let params = {id: row.id};
|
|
|
|
_this.loading = true;
|
|
|
|
_this.loading = true;
|
|
|
|
deleteCountOrder(params).then((res) => {
|
|
|
|
deleteCountOrder(params).then((res) => {
|
|
|
|
_this.loading = false;
|
|
|
|
_this.loading = false;
|
|
|
|