|
@@ -12,7 +12,7 @@
|
|
|
v-model="startTime"
|
|
v-model="startTime"
|
|
|
type="datetime"
|
|
type="datetime"
|
|
|
placeholder="入库时间"
|
|
placeholder="入库时间"
|
|
|
- style="width: 180px;"
|
|
|
|
|
|
|
+ style="width: 200px;"
|
|
|
value-format="timestamp"
|
|
value-format="timestamp"
|
|
|
>
|
|
>
|
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
@@ -21,7 +21,7 @@
|
|
|
v-model="endTime"
|
|
v-model="endTime"
|
|
|
type="datetime"
|
|
type="datetime"
|
|
|
placeholder="入库时间"
|
|
placeholder="入库时间"
|
|
|
- style="width: 180px;"
|
|
|
|
|
|
|
+ style="width: 200px;"
|
|
|
value-format="timestamp"
|
|
value-format="timestamp"
|
|
|
>
|
|
>
|
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
@@ -60,6 +60,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-button type="primary" @click="search">查询</el-button>
|
|
<el-button type="primary" @click="search">查询</el-button>
|
|
|
<el-button type="primary" @click="exportExcel">导出</el-button>
|
|
<el-button type="primary" @click="exportExcel">导出</el-button>
|
|
|
|
|
+ <el-button type="danger" icon="el-icon-delete" @click="deleteResult">删除</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
type="primary"
|
|
type="primary"
|
|
|
@click="back"
|
|
@click="back"
|
|
@@ -74,6 +75,7 @@
|
|
|
<dilTable
|
|
<dilTable
|
|
|
@func="func"
|
|
@func="func"
|
|
|
v-bind.sync="options"
|
|
v-bind.sync="options"
|
|
|
|
|
+ @radio-change="radioChange"
|
|
|
:showSummaryList="showSummaryList"
|
|
:showSummaryList="showSummaryList"
|
|
|
:isshowSummary="true"
|
|
:isshowSummary="true"
|
|
|
:showIndex="false"
|
|
:showIndex="false"
|
|
@@ -104,7 +106,8 @@ export default {
|
|
|
return {
|
|
return {
|
|
|
options: {
|
|
options: {
|
|
|
requestUrl: '',
|
|
requestUrl: '',
|
|
|
- requestQuery: {}
|
|
|
|
|
|
|
+ requestQuery: {},
|
|
|
|
|
+ selectionType: 'radio'
|
|
|
},
|
|
},
|
|
|
selectOptions: [
|
|
selectOptions: [
|
|
|
{
|
|
{
|
|
@@ -142,6 +145,7 @@ export default {
|
|
|
screen1: '',
|
|
screen1: '',
|
|
|
startTime: generateStartDate(),
|
|
startTime: generateStartDate(),
|
|
|
endTime: generateEndDate(),
|
|
endTime: generateEndDate(),
|
|
|
|
|
+ insertTime: null,
|
|
|
apiId: '529',
|
|
apiId: '529',
|
|
|
orgCode: null,
|
|
orgCode: null,
|
|
|
loginName: null,
|
|
loginName: null,
|
|
@@ -275,6 +279,53 @@ export default {
|
|
|
},
|
|
},
|
|
|
radioChange(row) {
|
|
radioChange(row) {
|
|
|
this.selectedRowData = row
|
|
this.selectedRowData = row
|
|
|
|
|
+ },
|
|
|
|
|
+ deleteResult(){
|
|
|
|
|
+ if (Object.keys(this.selectedRowData).length == 0) {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'error',
|
|
|
|
|
+ message: '请选择一条入库记录!'
|
|
|
|
|
+ })
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
|
|
+ if(this.selectedRowData.capacityNumber !== '新厂钢材入库'){
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'error',
|
|
|
|
|
+ message: '只允许删除手动入库记录!'
|
|
|
|
|
+ })
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$confirm("确定删除{"+ this.selectedRowData.inboundWarehouse
|
|
|
|
|
+ + "-" + this.selectedRowData.consigneeName
|
|
|
|
|
+ + "-" + this.selectedRowData.materialName
|
|
|
|
|
+ + "-" + this.selectedRowData.materialNumber +"件}吗?", '提示', {
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ }).then(() => {
|
|
|
|
|
+ const deletedRowData = this.selectedRowData;
|
|
|
|
|
+ deletedRowData.deletedUser = getCookie('loginName');
|
|
|
|
|
+ this.axios
|
|
|
|
|
+ .post('/api/v1/wms/deleteInResult', deletedRowData)
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ if (res.data.status == 'succeed') {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: '刪除成功'
|
|
|
|
|
+ })
|
|
|
|
|
+ this.getRequestUrl()
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'error',
|
|
|
|
|
+ message: res.data.data
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }).catch(error => {
|
|
|
|
|
+ console.log(error)
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'info',
|
|
|
|
|
+ message: '已取消操作'
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|