|
|
@@ -22,6 +22,7 @@
|
|
|
</template>
|
|
|
<template v-slot:opreation="scope">
|
|
|
<slot name="download" :data="scope.data"></slot>
|
|
|
+ <el-button type="text" size="mini" @click="compile(scope.data)">单据生成</el-button>
|
|
|
</template>
|
|
|
</tableLayout>
|
|
|
</div>
|
|
|
@@ -64,6 +65,8 @@ export default {
|
|
|
options:[
|
|
|
],
|
|
|
productList:'',
|
|
|
+ visible:false,
|
|
|
+ tableData:''
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
@@ -74,6 +77,17 @@ export default {
|
|
|
this.total = res.total
|
|
|
console.log(this.list)
|
|
|
},
|
|
|
+ async compile (data) {
|
|
|
+ this.visible = true
|
|
|
+ let res = await this.$api.requested({
|
|
|
+ "accesstoken": "47c8f0fc1e89bf9c9977e36bd7f73351",
|
|
|
+ "id": "20230211105803",
|
|
|
+ "version":1,
|
|
|
+ "content": {
|
|
|
+ "sa_workorder_confirmationid":1
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
handleSizeChange(val) {
|
|
|
// console.log(`每页 ${val} 条`);
|
|
|
this.params.content.pageSize = val
|