光子问题修复
This commit is contained in:
parent
5980db9a50
commit
a33d5d06ff
|
|
@ -228,7 +228,7 @@ export default {
|
||||||
},
|
},
|
||||||
state_xj: {
|
state_xj: {
|
||||||
S: "析晶",
|
S: "析晶",
|
||||||
K: "不析晶",
|
R: "不析晶",
|
||||||
θ: "未化",
|
θ: "未化",
|
||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
|
|
|
||||||
|
|
@ -262,6 +262,13 @@ export default {
|
||||||
trigger: "blur",
|
trigger: "blur",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
sample_number:[
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入样品编号",
|
||||||
|
trigger: "blur"
|
||||||
|
},
|
||||||
|
],
|
||||||
test_user: [
|
test_user: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
|
|
@ -297,7 +304,7 @@ export default {
|
||||||
],
|
],
|
||||||
xjOptios: [
|
xjOptios: [
|
||||||
{ id: "S", name: "析晶" },
|
{ id: "S", name: "析晶" },
|
||||||
{ id: "K", name: "不析晶" },
|
{ id: "R", name: "不析晶" },
|
||||||
{ id: "θ", name: "未化" },
|
{ id: "θ", name: "未化" },
|
||||||
],
|
],
|
||||||
visible: false,
|
visible: false,
|
||||||
|
|
|
||||||
|
|
@ -17,23 +17,18 @@
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :md="12" :sm="24">
|
<el-col :md="12" :sm="24">
|
||||||
<el-form-item label="物料批次" prop="batch">
|
<el-form-item label="物料批次" prop="batch">
|
||||||
<el-select
|
<xtSelect
|
||||||
v-model="form.batch"
|
:apiObj="apiObjBatch"
|
||||||
placeholder="物料批次"
|
v-model="form.batch"
|
||||||
clearable
|
v-model:obj="selectBatch"
|
||||||
filterable
|
:valueField="'batch'"
|
||||||
style="width: 100%"
|
:labelField="'batch'"
|
||||||
@change="handleChange"
|
style="width:100%"
|
||||||
:disabled="mode != 'add'"
|
@change="handleBatchChange"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-table-column label="物料批次" prop="batch"></el-table-column>
|
||||||
v-for="item in options"
|
<el-table-column label="数量" prop="count"></el-table-column>
|
||||||
:key="item.id"
|
</xtSelect>
|
||||||
:label="item.batch"
|
|
||||||
:value="item.id"
|
|
||||||
>
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :md="12" :sm="24">
|
<el-col :md="12" :sm="24">
|
||||||
|
|
@ -104,6 +99,7 @@ export default {
|
||||||
emits: ["success", "closed"],
|
emits: ["success", "closed"],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
apiObjBatch:this.$API.inm.warehouse.batch,
|
||||||
apiUserObj: this.$API.system.user.list,
|
apiUserObj: this.$API.system.user.list,
|
||||||
loading: false,
|
loading: false,
|
||||||
form: {
|
form: {
|
||||||
|
|
@ -126,6 +122,7 @@ export default {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
selectBatch:null,
|
||||||
visible: false,
|
visible: false,
|
||||||
isSaveing: false,
|
isSaveing: false,
|
||||||
options: [],
|
options: [],
|
||||||
|
|
@ -170,17 +167,12 @@ export default {
|
||||||
that.options = res;
|
that.options = res;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleChange(val) {
|
handleBatchChange() {
|
||||||
let that = this;
|
let that = this;
|
||||||
console.log(val);
|
that.form.count = that.selectBatch.count;
|
||||||
that.options.forEach((item) => {
|
that.form.batch = that.selectBatch.batch;
|
||||||
if (item.id == val) {
|
that.form.material = that.selectBatch.material;
|
||||||
that.form.count = item.count;
|
that.form.mb = that.selectBatch.id;
|
||||||
that.form.batch = item.batch;
|
|
||||||
that.form.material = item.material;
|
|
||||||
that.form.mb = item.id;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
//提交
|
//提交
|
||||||
submit() {
|
submit() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue