| | |
| | | label-width="80px" |
| | | > |
| | | <el-form-item label="编号" prop="number" class="form-item"> |
| | | <el-input v-model="form.number" placeholder="请输入"> </el-input> |
| | | <el-input v-model="form.number" :disabled="title=='修改'?true:false" placeholder="请输入"> </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="落丝时间" prop="finishDate" class="form-item"> |
| | | <el-date-picker |
| | |
| | | :detail-enter="isView ? true : false" |
| | | :selectBox="false" |
| | | :detailEnter="true" |
| | | :isBorder="true" |
| | | :show-summary="showSummary" |
| | | :product-table-list="tableList" |
| | | @inputContent="inputContent" |
| | |
| | | tooltip-effect="dark" |
| | | style="width: 100%" |
| | | :height="'calc(100% - 0px)'" |
| | | :header-cell-style="{ background: '#f1f3f8',color: '#000009', 'font-size': '12px', 'font-family': 'PingFangSC' }" |
| | | border |
| | | > |
| | | <el-table-column label="车号" prop="ID" width="100"> |
| | | </el-table-column> |
| | |
| | | computed: {}, |
| | | data() { |
| | | return { |
| | | title:'', |
| | | loading: false, |
| | | activeName: "first", |
| | | searchOptions: [], |
| | |
| | | { |
| | | label: "纤度合计", |
| | | prop: "sum", |
| | | inputNumber: true, |
| | | isRequird: true, |
| | | }, // 下次回访日期 |
| | | ], |
| | | }, |
| | |
| | | this.activeName = query.activeName ? query.activeName : "first"; |
| | | this.registerId = query.id ? query.id : ""; |
| | | this.inspectID = query.inspectID ? query.inspectID : ""; |
| | | this.title= query.title ? query.title : ""; |
| | | } |
| | | this.getSelectDataList(); |
| | | this.keyword = ""; |
| | |
| | | JSON.stringify(response.data ? response.data : {}) |
| | | ); |
| | | this.form = config; |
| | | this.getGroupNumber() |
| | | this.getGroupNumber('','edit') |
| | | let finenessList=config.finenessList |
| | | ? config.finenessList |
| | | : []; |
| | |
| | | } |
| | | }); |
| | | }, |
| | | async getGroupNumber(val) { |
| | | async getGroupNumber(val,type) { |
| | | if (this.form.name) { |
| | | //组别 |
| | | let number = ""; |
| | |
| | | break; |
| | | } |
| | | } |
| | | await getWorkshopManageGroup({ number: number }).then((res) => { |
| | | if (res.code == 200) { |
| | | this.workshopGroupList = []; |
| | | let workshopGroupList = res.data || {}; |
| | | this.workshopGroupList=[] |
| | | if(val=='name'){ |
| | | this.form.workshopGroup='' |
| | | } |
| | | if (Object.keys(workshopGroupList).length > 0) { |
| | | for (let i in workshopGroupList) { |
| | | this.workshopGroupList.push(workshopGroupList[i]); |
| | | if(number){ |
| | | await getWorkshopManageGroup({ number: number }).then((res) => { |
| | | if (res.code == 200) { |
| | | this.workshopGroupList = []; |
| | | let workshopGroupList = res.data || {}; |
| | | this.workshopGroupList=[] |
| | | if(val=='name'){ |
| | | this.form.workshopGroup='' |
| | | } |
| | | if (Object.keys(workshopGroupList).length > 0) { |
| | | for (let i in workshopGroupList) { |
| | | this.workshopGroupList.push(workshopGroupList[i]); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }) |
| | | if(this.form.workshopGroup&&this.form.market){ |
| | | getCarNumber({ |
| | | }) |
| | | } |
| | | if(this.form.workshopGroup&&this.form.market&&type!='edit'){ |
| | | await getCarNumber({ |
| | | workshopName:this.form.name, |
| | | marketName:this.form.market, |
| | | groupNumber:this.form.workshopGroup, |
| | |
| | | if (item.productId === row.productId) { |
| | | item[prop] = val; |
| | | } |
| | | if(item.fineness&&item.quantity){ |
| | | item.sum=Number(item.fineness)*Number(item.quantity).toFixed(2) |
| | | } |
| | | }); |
| | | this.tableList.tableData= this.tableData |
| | | }, |