|
|
|
@ -14,30 +14,6 @@ |
|
|
|
<span slot="label" style="" @click="getBaseList(18)"><a herf="#">{{labels.site}}</a></span> |
|
|
|
<el-input v-model="searchData.site" style="width: 130px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<!-- <el-form-item :label="labels.reportDate">--> |
|
|
|
<!-- <el-date-picker--> |
|
|
|
<!-- style="width: 130px"--> |
|
|
|
<!-- v-model="searchData.date1"--> |
|
|
|
<!-- value-format="yyyy-MM-dd"--> |
|
|
|
<!-- :placeholder="labels.placeholder">--> |
|
|
|
<!-- </el-date-picker>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<!-- <el-form-item :label="labels.to">--> |
|
|
|
<!-- <el-date-picker--> |
|
|
|
<!-- style="width: 130px"--> |
|
|
|
<!-- v-model="searchData.date2"--> |
|
|
|
<!-- value-format="yyyy-MM-dd"--> |
|
|
|
<!-- :placeholder="labels.placeholder">--> |
|
|
|
<!-- </el-date-picker>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<!-- <el-form-item >--> |
|
|
|
<!-- <span slot="label" style="" @click="getBaseList(5)"><a herf="#">{{labels.partNo}}</a></span>--> |
|
|
|
<!-- <el-input v-model="searchData.partNo" style="width: 130px"></el-input>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<!-- <el-form-item :label="labels.partDescription">--> |
|
|
|
<!-- <el-input v-model="searchData.partDescription" style="width: 130px"></el-input>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> |
|
|
|
<el-form-item label='消耗工单号'> |
|
|
|
@ -65,20 +41,7 @@ |
|
|
|
:placeholder="labels.placeholder"> |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
<!-- <el-form-item :label="labels.orderNo">--> |
|
|
|
<!-- <el-input v-model="searchData.orderNo" style="width: 273px"></el-input>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<!-- <el-form-item >--> |
|
|
|
<!-- <span slot="label" style="" @click="getBaseList(26)"><a herf="#">{{labels.operatorID}}</a></span>--> |
|
|
|
<!-- <el-input v-model="searchData.operatorID" style="width: 130px"></el-input>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<!-- <el-form-item >--> |
|
|
|
<!-- <span slot="label" style="" @click="getBaseList(24)"><a herf="#">{{labels.workCenterNo}}</a></span>--> |
|
|
|
<!-- <el-input v-model="searchData.workCenterNo" style="width: 130px"></el-input>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<el-form-item > |
|
|
|
<!-- <span slot="label" style="" @click="getBaseList(88)"><a herf="#">{{labels.sResourceID}}</a></span>--> |
|
|
|
<!-- <el-input v-model="searchData.sResourceID" style="width: 130px"></el-input>--> |
|
|
|
<el-button @click="getData()" type="primary" style="margin-left: 2px;margin-top: 20px">{{buttons.search}}</el-button> |
|
|
|
<download-excel |
|
|
|
:fields="fields()" |
|
|
|
@ -94,6 +57,7 @@ |
|
|
|
class="el-button el-button--primary el-button--medium"> |
|
|
|
{{ buttons.download }} |
|
|
|
</download-excel> |
|
|
|
<el-button @click="openAttributeChangeDialog()" type="warning">属性变动</el-button> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</el-form> |
|
|
|
@ -101,8 +65,14 @@ |
|
|
|
:height="height" |
|
|
|
:data="dataList" |
|
|
|
border |
|
|
|
@selection-change="handleSelectionChange" |
|
|
|
v-loading="dataListLoading" |
|
|
|
style="width: 100%;"> |
|
|
|
<el-table-column |
|
|
|
type="selection" |
|
|
|
width="50" |
|
|
|
align="center"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
v-for="(item,index) in columnList" :key="index" |
|
|
|
:sortable="item.columnSortable" |
|
|
|
@ -121,6 +91,32 @@ |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|
|
|
<!-- 属性变动对话框 --> |
|
|
|
<el-dialog title="属性变动" :close-on-click-modal="false" v-drag :visible.sync="attributeChangeDialogVisible" width="450px"> |
|
|
|
<el-form :model="attributeChangeForm" label-position="top" style="margin-top: -5px;"> |
|
|
|
<el-row :gutter="20"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="上级标签号"> |
|
|
|
<el-input v-model="attributeChangeForm.parentRollNo" placeholder="请输入上级标签号"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="合约号码"> |
|
|
|
<el-input v-model="attributeChangeForm.batchNo" placeholder="请输入合约号码"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="备注说明"> |
|
|
|
<el-input type="textarea" :rows="3" v-model="attributeChangeForm.remark" placeholder="请输入备注说明"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
<el-footer style="height:35px;margin-top: 55px;text-align:center"> |
|
|
|
<el-button type="success" @click="saveAttributeChange()">保存</el-button> |
|
|
|
<el-button type="primary" @click="attributeChangeDialogVisible=false">关闭</el-button> |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
@ -141,7 +137,8 @@ import { |
|
|
|
searchFunctionButtonList, |
|
|
|
|
|
|
|
} from "@/api/sysLanguage.js" |
|
|
|
import {searchSfdcRollsReport} from "../../../../api/shopOrder/productionReport"; |
|
|
|
import {searchSfdcRollsReport, updateSfdcRollsAttribute} from "../../../../api/shopOrder/productionReport"; |
|
|
|
import {updateInventoryStockAttribute} from "../../../../api/wms/wms"; |
|
|
|
var functionId='104003003'; |
|
|
|
export default { |
|
|
|
//查询-产线产量报告 |
|
|
|
@ -216,6 +213,14 @@ import {searchSfdcRollsReport} from "../../../../api/shopOrder/productionReport" |
|
|
|
modelFlag:false, |
|
|
|
modelInputFlag:true, |
|
|
|
selectList:[], |
|
|
|
selectionDataList:[], |
|
|
|
// 属性变动相关 |
|
|
|
attributeChangeDialogVisible: false, |
|
|
|
attributeChangeForm: { |
|
|
|
parentRollNo: '', |
|
|
|
batchNo: '', |
|
|
|
remark: '' |
|
|
|
}, |
|
|
|
searchData: { |
|
|
|
site:'', |
|
|
|
partNo:'', |
|
|
|
@ -226,7 +231,8 @@ import {searchSfdcRollsReport} from "../../../../api/shopOrder/productionReport" |
|
|
|
workCenterNo:'', |
|
|
|
date1:'', |
|
|
|
date2:'', |
|
|
|
user:this.$store.state.user.name |
|
|
|
user:this.$store.state.user.name, |
|
|
|
createdDate2: new Date(), |
|
|
|
}, |
|
|
|
dataList:[], |
|
|
|
dataListLoading: false, |
|
|
|
@ -579,6 +585,46 @@ import {searchSfdcRollsReport} from "../../../../api/shopOrder/productionReport" |
|
|
|
return this.dataList; |
|
|
|
|
|
|
|
}, |
|
|
|
handleSelectionChange(val){ |
|
|
|
this.selectionDataList = val |
|
|
|
console.log(this.selectionDataList) |
|
|
|
}, |
|
|
|
// 打开属性变动对话框 |
|
|
|
openAttributeChangeDialog() { |
|
|
|
if(this.selectionDataList.length === 0){ |
|
|
|
this.$message.warning('请先勾选要变动属性的标签!'); |
|
|
|
return false; |
|
|
|
} |
|
|
|
// 重置表单 |
|
|
|
this.attributeChangeForm = { |
|
|
|
parentRollNo: '', |
|
|
|
batchNo: '', |
|
|
|
remark: '' |
|
|
|
}; |
|
|
|
this.attributeChangeDialogVisible = true; |
|
|
|
}, |
|
|
|
saveAttributeChange(){ |
|
|
|
// 构建更新数据列表 |
|
|
|
const updateList = this.selectionDataList.map(item => { |
|
|
|
return { |
|
|
|
site: item.site, |
|
|
|
rollNo: item.rollNo, |
|
|
|
orderNo: item.orderNo, |
|
|
|
parentRollNo: this.attributeChangeForm.parentRollNo, |
|
|
|
batchNo: this.attributeChangeForm.batchNo, |
|
|
|
remark: this.attributeChangeForm.remark |
|
|
|
} |
|
|
|
}) |
|
|
|
updateSfdcRollsAttribute(updateList).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.$message.success('属性变动成功!'); |
|
|
|
this.attributeChangeDialogVisible = false; |
|
|
|
this.getData(); // 刷新数据 |
|
|
|
} else { |
|
|
|
this.$message.error(data.message || '属性变动失败!'); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
startDownload() { |
|
|
|
// this.exportData = this.dataList |
|
|
|
|
|
|
|
|