shish 2 лет назад
Родитель
Сommit
4906353752
2 измененных файлов с 11 добавлено и 1 удалено
  1. 10 0
      ghs/src/views/in/change.vue
  2. 1 1
      ghs/src/views/in/list.vue

+ 10 - 0
ghs/src/views/in/change.vue

@@ -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(() => {

+ 1 - 1
ghs/src/views/in/list.vue

@@ -173,7 +173,7 @@ export default {
     printOrder(item){
       this.$service.purchaseOrder.printBill({id:item.id}).then(data => {
           this.$notify({ title: '已打印', message: '操作成功', type: 'success'})
-        })
+      })
     },
     cancelOrder(item){
 			this.$confirm('确认取消?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => {