Commit aa319e31 by wangweidong

土工试验Lims

parent c4cf6033
...@@ -149,6 +149,8 @@ export default { ...@@ -149,6 +149,8 @@ export default {
http.post('soil/v1/alone_sample/', data).then(res => res), http.post('soil/v1/alone_sample/', data).then(res => res),
aloneSampleGetById: data => aloneSampleGetById: data =>
http.get('soil/v1/alone_sample/' + data).then(res => res), http.get('soil/v1/alone_sample/' + data).then(res => res),
getAloneVOById: data =>
http.get('soil/v1/alone_sample/vo/' + data).then(res => res),
aloneSampleEdit: data => aloneSampleEdit: data =>
http.put('soil/v1/alone_sample/' + data.id, data).then(res => res), http.put('soil/v1/alone_sample/' + data.id, data).then(res => res),
aloneSampleDelete: data => aloneSampleDelete: data =>
......
...@@ -393,7 +393,7 @@ export default { ...@@ -393,7 +393,7 @@ export default {
} }
}, },
_getDetailById: async function(id) { _getDetailById: async function(id) {
const result = await soilEntrust.aloneSampleGetById(id) const result = await soilEntrust.getAloneVOById(id)
if (result) { if (result) {
this.$refs.refModal._open(result) this.$refs.refModal._open(result)
this.$refs.pageTable._hideLoading() this.$refs.pageTable._hideLoading()
...@@ -409,7 +409,7 @@ export default { ...@@ -409,7 +409,7 @@ export default {
}) })
}, },
_getById: async function(id) { _getById: async function(id) {
const result = await soilEntrust.aloneSampleGetById(id) const result = await soilEntrust.getAloneVOById(id)
if (result) { if (result) {
this.$refs.refModal._openEdit(result) this.$refs.refModal._openEdit(result)
this.$refs.pageTable._hideLoading() this.$refs.pageTable._hideLoading()
......
...@@ -183,7 +183,7 @@ export default { ...@@ -183,7 +183,7 @@ export default {
} }
}, },
_getDetailById: async function(id) { _getDetailById: async function(id) {
const result = await soilEntrust.aloneSampleGetById(id) const result = await soilEntrust.getAloneVOById(id)
if (result) { if (result) {
this.$refs.refModal._open(result) this.$refs.refModal._open(result)
this.$refs.pageTable._hideLoading() this.$refs.pageTable._hideLoading()
......
...@@ -31,6 +31,23 @@ ...@@ -31,6 +31,23 @@
<th>登记日期</th> <th>登记日期</th>
<td>{{$dateformat(obj.registTime,'yyyy-mm-dd')}}</td> <td>{{$dateformat(obj.registTime,'yyyy-mm-dd')}}</td>
</tr> </tr>
<tr>
<th>库房号</th>
<td>{{obj.storehouse}}</td>
<th>货架号</th>
<td>{{obj.shelfCode}}</td>
</tr>
<tr>
<th>入库人</th>
<td>{{obj.inStocker}}</td>
<th>入库时间</th>
<td>{{$dateformat(obj.instockTime,'yyyy-mm-dd')}}</td>
</tr>
<tr>
<th>留存有效期</th>
<td>{{$dateformat(obj.keepLimitTime,'yyyy-mm-dd')}}</td>
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>
...@@ -69,7 +86,7 @@ export default { ...@@ -69,7 +86,7 @@ export default {
} else { } else {
this.showMoney = false this.showMoney = false
} }
this.height = '220px' this.height = '320px'
} }
} }
} }
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
<el-tab-pane label="历史记录" name="his"></el-tab-pane> <el-tab-pane label="历史记录" name="his"></el-tab-pane>
</el-tabs> </el-tabs>
<keep-alive> <keep-alive>
<!-- eslint-disable-next-line vue/require-component-is -->
<component ref="refModal" :is="currentComponent"></component> <component ref="refModal" :is="currentComponent"></component>
</keep-alive> </keep-alive>
</div> </div>
......
...@@ -381,7 +381,7 @@ export default { ...@@ -381,7 +381,7 @@ export default {
} }
}, },
_getDetailById: async function(id) { _getDetailById: async function(id) {
const result = await soilEntrust.aloneSampleGetById(id) const result = await soilEntrust.getAloneVOById(id)
if (result) { if (result) {
this.$refs.refModal._open(result) this.$refs.refModal._open(result)
this.$refs.pageTable._hideLoading() this.$refs.pageTable._hideLoading()
...@@ -397,7 +397,7 @@ export default { ...@@ -397,7 +397,7 @@ export default {
}) })
}, },
_getById: async function(id) { _getById: async function(id) {
const result = await soilEntrust.aloneSampleGetById(id) const result = await soilEntrust.getAloneVOById(id)
if (result) { if (result) {
this.$refs.refModal._openEdit(result) this.$refs.refModal._openEdit(result)
this.$refs.pageTable._hideLoading() this.$refs.pageTable._hideLoading()
......
...@@ -172,7 +172,7 @@ export default { ...@@ -172,7 +172,7 @@ export default {
} }
}, },
_getDetailById: async function(id) { _getDetailById: async function(id) {
const result = await soilEntrust.aloneSampleGetById(id) const result = await soilEntrust.getAloneVOById(id)
if (result) { if (result) {
this.$refs.refModal._open(result) this.$refs.refModal._open(result)
this.$refs.pageTable._hideLoading() this.$refs.pageTable._hideLoading()
......
...@@ -31,6 +31,34 @@ ...@@ -31,6 +31,34 @@
<th>登记日期</th> <th>登记日期</th>
<td>{{$dateformat(obj.registTime,'yyyy-mm-dd')}}</td> <td>{{$dateformat(obj.registTime,'yyyy-mm-dd')}}</td>
</tr> </tr>
<tr>
<th>库房号</th>
<td>{{obj.storehouse}}</td>
<th>货架号</th>
<td>{{obj.shelfCode}}</td>
</tr>
<tr>
<th>入库人</th>
<td>{{obj.inStocker}}</td>
<th>入库时间</th>
<td>{{$dateformat(obj.instockTime,'yyyy-mm-dd')}}</td>
</tr>
<tr>
<th>留存有效期</th>
<td>{{$dateformat(obj.keepLimitTime,'yyyy-mm-dd')}}</td>
<th>出库人</th>
<td>{{obj.outStocker}}</td>
</tr>
<tr>
<th>出库时间</th>
<td>{{$dateformat(obj.outStock,'yyyy-mm-dd')}}</td>
<th>出库接收人</th>
<td>{{obj.outStockReceiver}}</td>
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>
......
...@@ -249,7 +249,7 @@ export default { ...@@ -249,7 +249,7 @@ export default {
} }
}, },
_getDetailById: async function(id) { _getDetailById: async function(id) {
const result = await soilEntrust.aloneSampleGetById(id) const result = await soilEntrust.getAloneVOById(id)
if (result) { if (result) {
this.$refs.viewDetail._open(result) this.$refs.viewDetail._open(result)
this.$refs.pageTable._hideLoading() this.$refs.pageTable._hideLoading()
...@@ -273,7 +273,7 @@ export default { ...@@ -273,7 +273,7 @@ export default {
} }
}, },
_getById: async function(id) { _getById: async function(id) {
const result = await soilEntrust.aloneSampleGetById(id) const result = await soilEntrust.getAloneVOById(id)
if (result) { if (result) {
this.$refs.editModal._openEdit(result) this.$refs.editModal._openEdit(result)
this.$refs.pageTable._hideLoading() this.$refs.pageTable._hideLoading()
......
...@@ -260,7 +260,7 @@ export default { ...@@ -260,7 +260,7 @@ export default {
} }
}, },
_getDetailById: async function(id) { _getDetailById: async function(id) {
const result = await soilEntrust.aloneSampleGetById(id) const result = await soilEntrust.getAloneVOById(id)
if (result) { if (result) {
this.$refs.viewDetail._open(result) this.$refs.viewDetail._open(result)
this.$refs.pageTable._hideLoading() this.$refs.pageTable._hideLoading()
...@@ -284,7 +284,7 @@ export default { ...@@ -284,7 +284,7 @@ export default {
} }
}, },
_getById: async function(id) { _getById: async function(id) {
const result = await soilEntrust.aloneSampleGetById(id) const result = await soilEntrust.getAloneVOById(id)
if (result) { if (result) {
this.$refs.editModal._openEdit(result) this.$refs.editModal._openEdit(result)
this.$refs.pageTable._hideLoading() this.$refs.pageTable._hideLoading()
......
...@@ -364,7 +364,7 @@ export default { ...@@ -364,7 +364,7 @@ export default {
} }
}, },
_getDetailById: async function(id) { _getDetailById: async function(id) {
const result = await soilEntrust.aloneSampleGetById(id) const result = await soilEntrust.getAloneVOById(id)
if (result) { if (result) {
this.$refs.refModal._open(result) this.$refs.refModal._open(result)
this.$refs.pageTable._hideLoading() this.$refs.pageTable._hideLoading()
...@@ -380,7 +380,7 @@ export default { ...@@ -380,7 +380,7 @@ export default {
}) })
}, },
_getById: async function(id) { _getById: async function(id) {
const result = await soilEntrust.aloneSampleGetById(id) const result = await soilEntrust.getAloneVOById(id)
if (result) { if (result) {
this.$refs.refModal._openEdit(result) this.$refs.refModal._openEdit(result)
this.$refs.pageTable._hideLoading() this.$refs.pageTable._hideLoading()
......
...@@ -172,7 +172,7 @@ export default { ...@@ -172,7 +172,7 @@ export default {
} }
}, },
_getDetailById: async function(id) { _getDetailById: async function(id) {
const result = await soilEntrust.aloneSampleGetById(id) const result = await soilEntrust.getAloneVOById(id)
if (result) { if (result) {
this.$refs.refModal._open(result) this.$refs.refModal._open(result)
this.$refs.pageTable._hideLoading() this.$refs.pageTable._hideLoading()
......
...@@ -31,6 +31,24 @@ ...@@ -31,6 +31,24 @@
<th>登记日期</th> <th>登记日期</th>
<td>{{$dateformat(obj.registTime,'yyyy-mm-dd')}}</td> <td>{{$dateformat(obj.registTime,'yyyy-mm-dd')}}</td>
</tr> </tr>
<tr>
<th>库房号</th>
<td>{{obj.storehouse}}</td>
<th>货架号</th>
<td>{{obj.shelfCode}}</td>
</tr>
<tr>
<th>入库人</th>
<td>{{obj.inStocker}}</td>
<th>入库时间</th>
<td>{{$dateformat(obj.instockTime,'yyyy-mm-dd')}}</td>
</tr>
<tr>
<th>留存有效期</th>
<td>{{$dateformat(obj.keepLimitTime,'yyyy-mm-dd')}}</td>
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>
...@@ -68,7 +86,7 @@ export default { ...@@ -68,7 +86,7 @@ export default {
} else { } else {
this.showMoney = false this.showMoney = false
} }
this.height = '250px' this.height = '390px'
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment