|
@@ -133,23 +133,33 @@
|
|
<el-table-column label="采购数量" prop="purcCnt" />
|
|
<el-table-column label="采购数量" prop="purcCnt" />
|
|
<el-table-column label="采购价" prop="purcPric" />
|
|
<el-table-column label="采购价" prop="purcPric" />
|
|
<el-table-column label="总金额" prop="purcAmt" />
|
|
<el-table-column label="总金额" prop="purcAmt" />
|
|
- <el-table-column label="备注" prop="memo" />
|
|
|
|
- <el-table-column label="驳回原因" prop="memo" width="200">
|
|
|
|
|
|
+ <el-table-column label="驳回原因" prop="rejtRea" width="200">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-form-item
|
|
<el-form-item
|
|
label-width="0"
|
|
label-width="0"
|
|
class="item"
|
|
class="item"
|
|
- :prop="scope.$index + '.memo'"
|
|
|
|
|
|
+ :prop="scope.$index + '.rejtRea'"
|
|
>
|
|
>
|
|
- <el-input placeholder="请输入" v-model="scope.row.memo" :readonly="!returnInfo"></el-input>
|
|
|
|
|
|
+ <el-input placeholder="请输入" v-model="scope.row.rejtRea" :readonly="!scope.row.flag"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</template>
|
|
</template>
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="是否驳回" width="100">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <el-switch v-model="scope.row.flag" @change="handleSwitch(scope.$index,scope.row)" :disabled="!isShow"></el-switch>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="是否驳回" width="100">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-switch v-model="scope.row.flag" @change="handleSwitch(scope.$index,scope.row)" :disabled="!isShow"></el-switch>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="备注" prop="memo" width="200">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-form-item
|
|
|
|
+ label-width="0"
|
|
|
|
+ class="item"
|
|
|
|
+ :prop="scope.$index + '.memo'"
|
|
|
|
+ >
|
|
|
|
+ <el-input placeholder="请输入" v-model="scope.row.memo"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
@@ -190,7 +200,6 @@ export default {
|
|
list: [],
|
|
list: [],
|
|
aaLoad: false,
|
|
aaLoad: false,
|
|
isShow: false,
|
|
isShow: false,
|
|
- returnInfo: false,
|
|
|
|
stasOptions: [
|
|
stasOptions: [
|
|
{ value: "A", lable: "未受理" },
|
|
{ value: "A", lable: "未受理" },
|
|
{ value: "B", lable: "已受理" },
|
|
{ value: "B", lable: "已受理" },
|
|
@@ -200,7 +209,6 @@ export default {
|
|
{ value: "Y", lable: "已入库" },
|
|
{ value: "Y", lable: "已入库" },
|
|
{ value: "P", lable: "部分入库" },
|
|
{ value: "P", lable: "部分入库" },
|
|
],
|
|
],
|
|
- essdrugOptions: ["非基药", "基药"],
|
|
|
|
listQuery:{
|
|
listQuery:{
|
|
prodEntp: "",
|
|
prodEntp: "",
|
|
isFas: "",
|
|
isFas: "",
|
|
@@ -247,10 +255,9 @@ export default {
|
|
.then((res) => {
|
|
.then((res) => {
|
|
this.list = res.data;
|
|
this.list = res.data;
|
|
this.list.forEach((i) => {
|
|
this.list.forEach((i) => {
|
|
- if (i.memo) {
|
|
|
|
|
|
+ if (i.rejtRea) {
|
|
i.flag = true;
|
|
i.flag = true;
|
|
}
|
|
}
|
|
- i.essdrugType = this.essdrugOptions[i.essdrugType * 1];
|
|
|
|
});
|
|
});
|
|
this.listLoading = false;
|
|
this.listLoading = false;
|
|
})
|
|
})
|
|
@@ -260,27 +267,17 @@ export default {
|
|
},
|
|
},
|
|
// 是否驳回开关
|
|
// 是否驳回开关
|
|
handleSwitch(index, row) {
|
|
handleSwitch(index, row) {
|
|
|
|
+ console.log(row.flag);
|
|
console.log(row);
|
|
console.log(row);
|
|
if (row.flag == false) {
|
|
if (row.flag == false) {
|
|
- row.memo = "";
|
|
|
|
- this.returnInfo = false;
|
|
|
|
|
|
+ row.rejtRea = "";
|
|
} else {
|
|
} else {
|
|
- this.returnInfo = true;
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- // 驳回
|
|
|
|
- handleReject(row) {
|
|
|
|
- this.$refs.listRef.validate((valid) => {
|
|
|
|
- if (valid) {
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- // 取消驳回
|
|
|
|
- handleNoReject(row) {},
|
|
|
|
// 受理
|
|
// 受理
|
|
handleAccept() {
|
|
handleAccept() {
|
|
this.list.forEach((e) => {
|
|
this.list.forEach((e) => {
|
|
- if (e.flag == true && !e.memo) {
|
|
|
|
|
|
+ if (e.flag == true && !e.rejtRea) {
|
|
this.$message({
|
|
this.$message({
|
|
message: "选择是否驳回后请填写驳回原因",
|
|
message: "选择是否驳回后请填写驳回原因",
|
|
type: "warning",
|
|
type: "warning",
|
|
@@ -307,9 +304,9 @@ export default {
|
|
let arr1 =[]
|
|
let arr1 =[]
|
|
this.list.forEach((i)=>{
|
|
this.list.forEach((i)=>{
|
|
if (i.flag == true) {
|
|
if (i.flag == true) {
|
|
- arr.push({ id: i.id, memo: i.memo, stas:"R" })
|
|
|
|
|
|
+ arr.push({ id: i.id, rejtRea: i.rejtRea,memo:i.memo, stas:"R" })
|
|
}
|
|
}
|
|
- else{ arr1.push({ id: i.id, stas:"B" })
|
|
|
|
|
|
+ else{ arr1.push({ id: i.id, stas:"B",memo:i.memo, })
|
|
}
|
|
}
|
|
})
|
|
})
|
|
let data2 = arr.concat(arr1);
|
|
let data2 = arr.concat(arr1);
|