|
|
@@ -58,6 +58,11 @@
|
|
|
<el-button v-if="info.status == 3" type="danger" @click="confirmIn">仅入库不改价</el-button>
|
|
|
<el-button v-if="info.status != 3" type="primary" @click="commitChange(2)">确认改价</el-button>
|
|
|
<el-button v-if="info.status == 3" type="primary" @click="commitChange(1)">改价并入库</el-button>
|
|
|
+
|
|
|
+
|
|
|
+ <el-button type="primary" @click="printOrder()" style="margin-left:100px;" v-if="info.status != 5">打小票</el-button>
|
|
|
+ <el-button disabled v-else>打小票</el-button>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -90,6 +95,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ printOrder(){
|
|
|
+ this.$service.purchaseOrder.printBill({id:this.id}).then(data => {
|
|
|
+ this.$notify({ title: '已打印', message: '操作成功', type: 'success'})
|
|
|
+ })
|
|
|
+ },
|
|
|
confirmIn(){
|
|
|
let that = this
|
|
|
this.$confirm('确认只入库不改价?', '提示', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning' }).then(() => {
|