|
|
|
@ -19,24 +19,50 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="失效日期" width="120" prop="expireDate" show-overflow-tooltip>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<template slot-scope="scope"12
|
|
|
|
|
、>
|
|
|
|
|
<span>{{ convertDateFun(scope.row.expireDate) }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="扫码数量" width="80" prop="count" show-overflow-tooltip></el-table-column>
|
|
|
|
|
<el-table-column label="实际数量" width="80" prop="reCount" show-overflow-tooltip></el-table-column>
|
|
|
|
|
<!-- <el-table-column width="120" label="价格"-->
|
|
|
|
|
<!-- v-if="curAction.mainAction=='WareHouseIn' && curAction.corpType==2">-->
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
<!-- <el-input v-model="scope.row.price"-->
|
|
|
|
|
<!-- type='number'-->
|
|
|
|
|
<!-- :disabled="scope.row.index !== selectedIndex"-->
|
|
|
|
|
<!-- placeholder="请输入价格"-->
|
|
|
|
|
<!-- ></el-input>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
<!-- <el-table-column label="价格" width="120" prop="price" show-overflow-tooltip-->
|
|
|
|
|
<!-- v-if="!(curAction.mainAction=='WareHouseIn' && curAction.corpType==2)"></el-table-column>-->
|
|
|
|
|
<el-table-column label="价格" width="150" prop="price" show-overflow-tooltip></el-table-column>
|
|
|
|
|
<el-table-column width="100" label="计量单位" prop="measname">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="生产企业" width="150" prop="manufacturer" show-overflow-tooltip></el-table-column>
|
|
|
|
|
<el-table-column label="注册/备案号" width="150" prop="certCode" show-overflow-tooltip></el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="操作" width="160" fixed="right"
|
|
|
|
|
v-if="curAction.mainAction=='WareHouseIn' && curAction.corpType==2">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="text" size="small" v-if="scope.row.index == selectedIndex" @click.stop="true"
|
|
|
|
|
@click.native="saveChange(scope.row)">保存
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="text" size="small" v-if="scope.row.index != selectedIndex" @click.stop="true"
|
|
|
|
|
@click.native="rowChange(scope.row)">编辑
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
</el-table>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {convertDate} from "@/utils/date";
|
|
|
|
|
import {getDetailCodes} from "@/api/inout/orderDetailCode";
|
|
|
|
|
import {getDetailCodes, updateBizProduct, updateCodeProduct} from "@/api/inout/orderDetailCode";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "IoCreateOrderCodeDetail",
|
|
|
|
@ -49,6 +75,10 @@ export default {
|
|
|
|
|
type: Object,
|
|
|
|
|
required: true,
|
|
|
|
|
},
|
|
|
|
|
curAction: {
|
|
|
|
|
type: Object,
|
|
|
|
|
required: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
@ -66,6 +96,15 @@ export default {
|
|
|
|
|
editCodeVisible: false,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
watch: {
|
|
|
|
|
"curAction": {
|
|
|
|
|
handler(newVal, oldVal) {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
immediate: true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getOrderDetails() {
|
|
|
|
|
this.loading = true;
|
|
|
|
@ -91,6 +130,36 @@ export default {
|
|
|
|
|
return rowBackground;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
saveChange(row) {
|
|
|
|
|
if (row.batchNo == '') {
|
|
|
|
|
row.batchNo = null;
|
|
|
|
|
}
|
|
|
|
|
updateCodeProduct(row)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.$message.success("保存成功!");
|
|
|
|
|
this.selectedIndex = null;
|
|
|
|
|
this.refreshPanel();
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.dataList = [];
|
|
|
|
|
this.pageTotal = 0;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
rowChange(val) {
|
|
|
|
|
this.currentRow = val;
|
|
|
|
|
if (this.currentRow.batchNo == '')
|
|
|
|
|
this.currentRow.batchNo = null;
|
|
|
|
|
this.selectedIndex = val.index;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
if (this.idQuery.billNo != null)
|
|
|
|
|