| | |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="tell" label="要求描述" min-width="220px"> |
| | | <template slot-scope="scope"> |
| | | <el-input size="small" placeholder="要求描述" v-model="scope.row.tell" clearable type="textarea" |
| | | :autosize="{ minRows: 1, maxRows: 3}" @change="e=>requestChange(e,scope.row,'tell')" |
| | | v-if="active==1&&isAskOnlyRead"></el-input> |
| | | <span v-else> |
| | | <template >{{ scope.row.tell }}</template> |
| | | </span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="ask" label="要求值" min-width="220px" v-if="isAskOnlyRead"> |
| | | <template slot-scope="scope"> |
| | | <el-input size="small" placeholder="要求值" v-model="scope.row.ask" clearable type="textarea" |
| | |
| | | </template> |
| | | <template v-else>{{ scope.row.ask }}</template> --> |
| | | <template >{{ scope.row.ask }}</template> |
| | | </span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="tell" label="要求描述" min-width="220px"> |
| | | <template slot-scope="scope"> |
| | | <el-input size="small" placeholder="要求描述" v-model="scope.row.tell" clearable type="textarea" |
| | | :autosize="{ minRows: 1, maxRows: 3}" @change="e=>requestChange(e,scope.row,'tell')" |
| | | v-if="active==1&&isAskOnlyRead"></el-input> |
| | | <span v-else> |
| | | <template >{{ scope.row.tell }}</template> |
| | | </span> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | entity: { |
| | | orderBy: { |
| | | field: 'id', |
| | | order: 'asc' |
| | | order: 'desc' |
| | | } |
| | | }, |
| | | isIndex: true, |
| | |
| | | let obj = this.productList.find(m => m.id == a.id) |
| | | if(obj){ |
| | | a.state = obj.state |
| | | a.section = obj.section |
| | | a.ask = obj.ask |
| | | a.manHour = obj.manHour |
| | | a.price = obj.price |
| | | a.tell = obj.tell |
| | | } |
| | | }) |
| | | }, |
| | |
| | | this.sampleIds.push(row.id) |
| | | } |
| | | this.productList = row.insProduct |
| | | this.productList0 = JSON.parse(JSON.stringify(this.productList)) |
| | | setTimeout(() => { |
| | | this.productList.forEach(a => { |
| | | if (a.state == 1) this.toggleSelection(a) |
| | |
| | | name: this.templateName, |
| | | thing: JSON.stringify({ |
| | | addObj: this.addObj, |
| | | sampleList: this.sampleList |
| | | sampleList: this.sampleList, |
| | | selectTree:this.selectTree |
| | | }) |
| | | }, { |
| | | headers: { |
| | |
| | | let obj = JSON.parse(res.data) |
| | | this.addObj = obj.addObj; |
| | | this.sampleList = obj.sampleList; |
| | | this.selectTree = obj.selectTree |
| | | }) |
| | | }, |
| | | delSampleAndProduct() { |
| | |
| | | } |
| | | }, |
| | | upBsmAll (item) { |
| | | let sections = JSON.parse(item.bsmRow.section); |
| | | let asks = JSON.parse(item.bsmRow.ask); |
| | | let tells = JSON.parse(item.bsmRow.tell); |
| | | let manHours = JSON.parse(item.bsmRow.manHour); |
| | | let prices = JSON.parse(item.bsmRow.price); |
| | | for (var a in sections) { |
| | | if (item.bsm1Val === sections[a]) { |
| | | this.productList.forEach(p => { |
| | | if (p.id === item.bsmRow.id) { |
| | | p.section = sections[a] |
| | | p.ask = asks[a] |
| | | p.tell = tells[a] |
| | | p.manHour = manHours[a] |
| | | p.price = prices[a] |
| | | } |
| | | }) |
| | | break |
| | | // console.log(1111,item,this.bsm1DiaList) |
| | | for (let i =0;i<this.bsm1DiaList.length;i++){ |
| | | this.bsm1DiaList[i].bsm1Val = item.bsm1Val |
| | | let sections = JSON.parse(this.bsm1DiaList[i].bsmRow.section); |
| | | let asks = JSON.parse(this.bsm1DiaList[i].bsmRow.ask); |
| | | let tells = JSON.parse(this.bsm1DiaList[i].bsmRow.tell); |
| | | let manHours = JSON.parse(this.bsm1DiaList[i].bsmRow.manHour); |
| | | let prices = JSON.parse(this.bsm1DiaList[i].bsmRow.price); |
| | | for (var a in sections) { |
| | | if (this.bsm1DiaList[i].bsm1Val === sections[a]) { |
| | | this.productList.forEach(p => { |
| | | if (p.id === this.bsm1DiaList[i].bsmRow.id) { |
| | | p.section = sections[a] |
| | | p.ask = asks[a] |
| | | p.tell = tells[a] |
| | | p.manHour = manHours[a] |
| | | p.price = prices[a] |
| | | } |
| | | }) |
| | | break |
| | | } |
| | | } |
| | | } |
| | | this.changeProductList0() |
| | | this.currentMethod.insProduct = this.productList0 |
| | | }, |
| | | beforeClose(done) { |
| | | // if (this.bsm1) { |