| | |
| | | :before-close="handleClose"> |
| | | <el-form :inline="true" label-width="20%" style="width: 100%;" :model="editConfig.infomitton" :rules="rules" |
| | | ref="ruleForm"> |
| | | <el-form-item prop="marketNumber" label="庄口" style="width: 100%;"> |
| | | <el-select :disabled="this.editConfig.dialogTitle === '查看'" v-model="editConfig.infomitton.marketNumber" |
| | | <el-form-item prop="market" label="庄口" style="width: 100%;"> |
| | | <el-select :disabled="this.editConfig.dialogTitle === '查看'" v-model="editConfig.infomitton.market" value-key="ID" |
| | | placeholder="请选择庄口"> |
| | | <el-option v-for="item in shanguchiList" :key="item.ID" :label="item.name" :value="item.ID"> |
| | | <el-option v-for="item in shanguchiList" :key="item.name" :label="item.name" :value="item"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | ], |
| | | classList: [], |
| | | rules: { |
| | | marketNumber: [ |
| | | market: [ |
| | | { required: true, message: '请选择庄口', trigger: 'change' } |
| | | ], |
| | | rawSilkGrade: [ |
| | |
| | | }, |
| | | setParams() { |
| | | let params = { |
| | | marketNumber: this.editConfig.infomitton.marketNumber + '', |
| | | marketId: this.editConfig.infomitton.market.ID, |
| | | marketName: this.editConfig.infomitton.market.name, |
| | | unit: this.editConfig.infomitton.unit, |
| | | payStandard: Number(this.editConfig.infomitton.payStandard), |
| | | rawSilkGrade: this.editConfig.infomitton.rawSilkGrade, |
| | |
| | | this.$refs[formName].validate((valid) => { |
| | | if (valid) { |
| | | let params = this.setParams() |
| | | console.log(this.editConfig.infomitton.market,params,"看那") |
| | | if (this.editConfig.dialogTitle === "新增") { |
| | | savePriceStandard(params).then((res) => { |
| | | if (res && res.code === 200) { |
| | |
| | | }) |
| | | } else if (this.editConfig.dialogTitle === "修改") { |
| | | this.editConfig.infomitton.workshopNumber = this.editConfig.infomitton.workshopNumber + "" |
| | | savePriceStandard(this.editConfig.infomitton).then((res) => { |
| | | savePriceStandard({...params,id:this.editConfig.infomitton.ID}).then((res) => { |
| | | if (res && res.code === 200) { |
| | | this.editConfig.visible = false |
| | | this.$message({ |