流程 二维码页面

master
lion 2 years ago
parent 7c0cf93ddd
commit d949dc8840

@ -2,9 +2,11 @@
ENV='development'
# base api
VUE_APP_BASE_API = http://192.168.60.100:9002/
VUE_APP_UPLOAD_API = http://192.168.60.100:9002/api/admin/upload-file
#VUE_APP_BASE_API = http://hd-wuziguanli-test.ali251.langye.net/
#VUE_APP_UPLOAD_API = http://hd-wuziguanli-test.ali251.langye.net/api/admin/upload-file
#VUE_APP_BASE_API = http://192.168.60.100:9002/
#VUE_APP_UPLOAD_API = http://192.168.60.100:9002/api/admin/upload-file
VUE_APP_BASE_API = http://hd-wuziguanli-test.ali251.langye.net/
VUE_APP_UPLOAD_API = http://hd-wuziguanli-test.ali251.langye.net/api/admin/upload-file
VUE_APP_OUT_URL = http://192.168.60.18:2021
VUE_APP_OUT_URL_test= http://suzhouhedaooa.langye.net

@ -15,11 +15,14 @@
var qrcodetop = 50;
//canvas宽高
var canvaswidth = 302;
var canvasheight = 188;
var canvasheight = 188;
var VUE_APP_BASE_API = window.location.protocol+"//"+window.location.host
// var VUE_APP_BASE_API="http://hd-wuziguanli-test.ali251.langye.net"
//文字描述位置
var textleft = qrcodewidth / 2;
var texttop = qrcodeheight + 70;
$(function() {
$(function() {
console.log(VUE_APP_BASE_API)
$(".wrap").html("")
var ids = getIds('ids').split(",")
for (var i = 0; i < ids.length; i++) {
@ -37,7 +40,7 @@
id: id,
table_name: 'inventorys'
},
url: 'http://hd-wuziguanli-test.ali251.langye.net/api/admin/base-form/show',
url: VUE_APP_BASE_API+'/api/admin/base-form/show',
dataType: "json",
success: function(result) {
var printObj = result
@ -77,7 +80,7 @@
// alert(id)
var qrcode = $(id).qrcode({
render: 'canvas',
text: utf16to8(printObji['wuzibianma'] + "-" + printObji['id']),
text:VUE_APP_BASE_API+'/admin/printShow.html',
width: qrcodewidth,
height: qrcodeheight,
background: '#ffffff',

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
123
</body>
</html>

@ -23,3 +23,11 @@ export function getOatoken(params) {
params
})
}
export function getOutboundsStatus(params) {
return request({
method: "get",
url: "/api/admin/other/sync-outbounds-status",
params
})
}

@ -51,6 +51,10 @@ export default {
default: () => [],
},
tableName: String,
istrueimport:{
type:Boolean,
default:true
}
},
data() {
return {
@ -104,16 +108,21 @@ export default {
},
imports() {
imports({
table_name: this.tableName,
data: this.tableList
}).then(res => {
console.log(res)
this.$message({
type: 'success',
message: `成功导入${res.total}`
if(this.istrueimport){
imports({
table_name: this.tableName,
data: this.tableList
}).then(res => {
console.log(res)
this.$message({
type: 'success',
message: `成功导入${res.total}`
})
})
})
}else{
console.log('importdata',this.tableList)
this.$emit('importdata',this.tableList)
}
this.hidden();
this.$emit('refresh')
}

@ -100,10 +100,22 @@
prop: 'wuzibianma',
align: 'center'
},
{
label: "固定资产编号",
width: 180,
prop: 'gudingzichanbianhao',
align: 'center'
},
{
label: "资产名称",
prop: 'zichanmingcheng',
align: 'center'
},
{
label: "规格型号",
prop: 'guigexinghao',
align: 'center',
width: 180
},
{
label: "物资类型",

@ -1,6 +1,6 @@
<template>
<div>
<xy-dialog ref="dialog" :width='70' :is-show.sync="isShow" type="form" :title="type === 'add' ? `新增${chukuType}出库` : `编辑${chukuType}出库`" :form="form" :rules="rules" @submit="submit">
<xy-dialog ref="dialog" :width='70' :is-show.sync="isShow" type="form" :title="titleName" :form="form" :rules="rules" @submit="submit">
<template v-slot:chukushijian>
<div class="xy-table-item">
<div class="xy-table-item-label">
@ -75,10 +75,20 @@
<template v-slot:jilurenyuan>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>记录人员
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>经办人
</div>
<div class="xy-table-item-content">
<el-input v-model="form.jilurenyuan" placeholder="请输入记录人员" clearable style="width: 300px;"></el-input>
<el-input v-model="form.jilurenyuan" placeholder="请输入经办人" clearable style="width: 300px;"></el-input>
</div>
</div>
</template>
<template v-slot:baofeiyuanyin v-if="chukuType=='处置'">
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>报废原因
</div>
<div class="xy-table-item-content">
<el-input type="textarea" v-model="form.baofeiyuanyin" placeholder="请输入报废原因" clearable style="width: 300px;"></el-input>
</div>
</div>
</template>
@ -121,7 +131,7 @@
</xy-dialog>
<!-- 新增明细 -->
<Modal v-model="isShowMingxi" width='650' title="新增明细" :loading='showLoading' @on-cancel='mingxiCancel' @on-ok="mingxiConfirm">
<Modal v-model="isShowMingxi" width='600' title="新增明细" :loading='showLoading' @on-cancel='mingxiCancel' @on-ok="mingxiConfirm">
<div class="mingxiwrap">
<div class="xy-table-item">
<div class="xy-table-item-label">
@ -141,6 +151,15 @@
style="width: 300px;"></el-input>
</div>
</div>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>规格型号
</div>
<div class="xy-table-item-content">
<el-input type="text" v-model="mingxiObj.guigexinghao"placeholder="请选择规格型号" disabled
style="width: 300px;"></el-input>
</div>
</div>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>物资类型
@ -240,6 +259,7 @@ export default {
isShow:false,
type:'add',
id:'',
titleName:'',
keyword:'',
chukuType:'',
tableName:'outbounds',
@ -267,6 +287,7 @@ export default {
jieyongbumen:'',
jieyongren:'',
jilurenyuan:'',
baofeiyuanyin:'',
beizhu:'',
chukumingxi:''
},
@ -285,7 +306,7 @@ export default {
}],
jilurenyuan: [{
required: true,
message: '请选择记录人员'
message: '请输入经办人'
}],
},
isShowMingxi:false,
@ -303,40 +324,45 @@ export default {
{
label: "物资编码",
prop: "wuzibianma",
width: 200
width: 180
},
{
label: "资产名称",
prop: "zichanmingcheng",
width: 200
width: 180
},
{
label: "规格型号",
prop: "guigexinghao",
width: 180
},{
label: "物资类型",
prop: "wuzileixing",
width: 200
width: 180
},{
label: "计量单位",
prop: "jiliangdanwei",
width: 200
width: 180
},{
label: "入库批次",
prop: "rukupici",
width: 200
width: 180
},,{
label: "在库数量",
prop: "zaikushuliang",
width: 200
width: 180
},{
label: "借用数量",
prop: "jieyongshuliang",
width: 200
width: 180
},{
label: "是否回库",
prop: "shifouhuiku",
width: 200
width: 180
},,{
label: "回库时间",
prop: "huikushijian",
width: 200
width: 180
}],
//
isShowWuzi:false,
@ -397,6 +423,7 @@ export default {
return false
}
},
//
mingxiConfirm(){
setTimeout(() => {
this.showLoading = false
@ -413,12 +440,6 @@ export default {
return
}
if(this.mingxiIndex!=''){
//
// let isTrue = this.isEqual(this.mingxiObjBefore,this.mingxiObj)
// if(this.type=='editor'&&!isTrue){
// this.submitMingxi(this.mingxiObj)
// }
this.mingxiList[this.mingxiIndex-1]=this.mingxiObj
}else{
this.mingxiList.push(this.mingxiObj)
@ -490,22 +511,15 @@ export default {
this.mingxiObj.zaikushuliang = e.zaikushuliang
this.mingxiObj.jiliangdanwei = e.jiliangdanwei
this.mingxiObj.inventorys_id = e.id
this.mingxiObj.guigexinghao = e.guigexinghao
}
});
// this.$nextTick(function(){
// this.wuziList.forEach((items) => {
// this.$set(items, 'isSelect', false)
// });
// })
},
wuziPageChange(e){
this.wuziPageIndex = e
this.getWuzi()
},
showWuzimingxi(){
},
async getCangku() {
let res = await index({
@ -519,31 +533,22 @@ export default {
const res = await show({id:this.id,table_name:this.tableName})
this.form = {
chukushijian:res?.chukushijian,
zhuangtai:res?.zhuangtai,
jieyongcangku:res?.jieyongcangku,
jieyongbumen:res?.jieyongbumen,
jieyongren:res?.jieyongren,
jilurenyuan:res?.jilurenyuan,
baofeiyuanyin:res?.baofeiyuanyin,
beizhu:res?.beizhu,
chukumingxi:''
}
this.mingxiList = res.id_outbounds_items_outbounds_id_relation
},
//
async getindex(){
const res = await index({
rows:this.select.pageSize,
page:this.select.pageIndex,
table_name:this.tableName,
keyword:this.select.keyword
})
this.list = res.data
this.total = res.total
},
submit(){
this.form.id_outbounds_items_outbounds_id_relation = this.mingxiList
console.log(this.mingxiList)
// return
if(this.type === 'add'){
this.form.zhuangtai = '待处理'
save({
table_name:this.tableName,
...this.form
@ -557,7 +562,10 @@ export default {
})
return
}
if(this.type === 'editor'){
if(this.type === 'editor' || this.type==='outbounds'){
if(this.type==='outbounds'){
this.form.zhuangtai = '已出库'
}
save({
id:this.id,
table_name:this.tableName,
@ -576,8 +584,9 @@ export default {
watch:{
isShow(newVal){
if(newVal){
this.titleName = this.type === 'add' ? `新增${this.chukuType}出库` : (this.type === 'editor'?`编辑${this.chukuType}出库`:'出库')
this.form.chukuleixing = this.chukuType
if(this.type === 'editor'){
if(this.type === 'editor'|| this.type==='outbounds'){
this.getDetail()
}
}else{

@ -0,0 +1,207 @@
<template>
<div class="printwrap">
<Modal v-model="isShow" width='70' title="打印" @on-ok='handlePrint'>
<div id='printmodal' class='print' v-if="chukuType==='领用'">
<div class='printtitle'>苏州市河道管理处物资领用审批表</div>
<div class="printtop">
<span>业务科室:{{form.jieyongbumen}}</span>
<span>编号:</span>
</div>
<table width='100%'>
<tr>
<td>物资名称</td>
<td>领用时间</td>
<td>数量</td>
<td>型号规格</td>
<td>业务科室</td>
<td>备注</td>
</tr>
<tr v-for="item in mingxiList">
<td>{{item.zichanmingcheng}}</td>
<td>{{form.chukushijian}}</td>
<td>{{item.jieyongshuliang}}</td>
<td>{{item.xinghaoguige}}</td>
<td>{{form.jieyongbumen}}</td>
<td>{{form.beizhu}}</td>
</tr>
<tr class="printbottom">
<td colspan='3' rowspan='3'>
<p>经办人</p>
<p>
<span></span>
<span></span>
<span></span>
</p>
</td>
<td colspan='3' rowspan='3'>
<p>综合科意见</p>
<p><span></span>
<span></span>
<span></span>
</p>
</td>
</tr>
</table>
</div>
<div id='printmodal1' class='print' v-if="chukuType==='处置'">
<div class='printtitle'>苏州市河道管理处报废申请单</div>
<div class="printtop">
<span>上报科室:{{form.jieyongbumen}}</span>
<span>上报时间:{{form.chukushijian}}</span>
</div>
<table width='100%'>
<tr>
<td>物资名称</td>
<td>固定资产编号</td>
<td>数量</td>
<td>报废原因</td>
<td>备注</td>
</tr>
<tr v-for="item in mingxiList">
<td>{{item.zichanmingcheng}}</td>
<td>{{form.gudingzichanbianhao}}</td>
<td>{{item.jieyongshuliang}}</td>
<td>{{form.baofeiyuanyin}}</td>
<td>{{form.beizhu}}</td>
</tr>
<tr class="printbottom">
<td colspan='3' rowspan='3'>
<p>申请科室</p>
<p>
<span></span>
<span></span>
<span></span>
</p>
</td>
<td colspan='2' rowspan='2'>
<p>申请科室分管领导</p>
<p><span></span>
<span></span>
<span></span>
</p>
</td>
</tr>
</table>
</div>
</Modal>
</div>
</template>
<script>
import {
show
} from "@/api/system/baseForm.js"
import {
Message
} from 'element-ui'
export default {
data() {
return {
isShow: false,
type: 'add',
id: '',
chukuType:'',
tableName: 'outbounds',
form: {
chukushijian: "",
chukuleixing: '',
jieyongcangku: "",
jieyongbumen: '',
jieyongren: '',
jilurenyuan: '',
beizhu: '',
chukumingxi: ''
},
mingxiList: []
}
},
created() {},
methods: {
async getDetail() {
const res = await show({
id: this.id,
table_name: this.tableName
})
this.form = res
this.mingxiList = res.id_outbounds_items_outbounds_id_relation
},
handlePrint() {
if(this.chukuType=='领用'){
this.$Print('#printmodal');
}else if(this.chukuType=='处置'){
this.$Print('#printmodal1');
}
},
submit() {
}
},
watch: {
isShow(newVal) {
if (newVal) {
if (this.type === 'print') {
this.getDetail()
}
} else {
this.id = ''
this.type = ''
this.mingxiList = []
}
}
}
}
</script>
<style scoped>
.print {}
.printtitle {
text-align: center;
font-size: 24px;
font-weight: bold;
}
.printtop {
display: flex;
justify-content: space-between;
font-size: 18px
}
.print table {
font-size: 18px;
border-collapse: collapse;
margin-top: 20px;
}
.print table tr {}
.print table td {
padding: 10px;
border: 1px solid #ddd;
}
.printbottom {}
.printbottom td {}
.printbottom td p {
text-align: left;
}
.printbottom td>p:first-child+p {
padding-top: 80px;
text-align: right;
}
.printbottom td p span{
margin-left:30px;
display: inline-block;
}
</style>

@ -22,11 +22,12 @@
<template v-slot:btns>
<el-table-column fixed="right" label="操作" width="260" header-align="center">
<template slot-scope="scope">
<Button type="primary" size="small" @click="editorRuku(scope.row.id,'editor')"></Button>
<!-- <Button type="primary" size="small" @click="editorActivity(scope.row.id,'editor')"></Button>
<Button style="margin-left: 10px;" type="primary" size="small" @click="checkActivity(scope.row.id)"></Button>
<Button type="primary" size="small" style="margin-left: 10px;" @click="editorActivity(scope.row.id,'copy')"></Button> -->
<Poptip transfer confirm title="确认要删除吗?" @on-ok="deleteRuku(scope.row)">
<Button type="primary" size="small" style="margin-left: 10px;" @click="editorChuku(scope.row.id,'editor')"></Button>
<Button v-if='scope.row.zhuangtai===""' type="primary" size="small" style="margin-left: 10px;" @click="editorChuku(scope.row.id,'outbounds')"></Button>
<Button v-if='scope.row.zhuangtai===""' type="primary" size="small" style="margin-left: 10px;" @click="tofollow(scope.row.id,scope.row)"></Button>
<!-- v-if='scope.row.zhuangtai==="待处理"' -->
<Button type="primary" size="small" style="margin-left: 10px;" @click="printChuku(scope.row.id,'print')"></Button>
<Poptip transfer confirm title="确认要删除吗?" @on-ok="deleteChuku(scope.row)">
<Button type="primary" style="margin-left: 10px;" size="small" ghost>删除</Button>
</Poptip>
</template>
@ -35,7 +36,7 @@
</xy-table>
<addoutbounds ref="addoutbounds" @refresh="getindex"></addoutbounds>
<printoutbounds ref="printoutbounds" @refresh="getindex"></printoutbounds>
<imports :table-name="customForm.tableName" :form-info="form" ref="imports" @refresh="getindex"></imports>
</div>
@ -45,8 +46,16 @@
import {
index,
destroy
} from "@/api/system/baseForm.js"
import addoutbounds from "./component/addoutbounds.vue"
} from "@/api/system/baseForm.js"
import {
getInfo
} from "@/api/user.js"
import {
getOutboundsStatus
} from "@/api/contract.js"
import addoutbounds from "./component/addoutbounds.vue"
import printoutbounds from "./component/printoutbounds.vue"
import {
Message
} from 'element-ui'
@ -60,11 +69,19 @@
export default {
components: {
addoutbounds,
imports
imports,
printoutbounds
},
data() {
return {
loading:false,
window: {
width: 0,
height: 0,
top: 0,
left: 0
},
loading:false,
userName:'',
select: {
pageSize: 10,
pageIndex: 1,
@ -83,13 +100,19 @@
type: 'index',
fixed: 'left',
width:80,
}, {
},{
label: "出库时间",
width: 180,
prop: 'chukushijian',
align: 'center',
fixed: 'left',
},
{
label: "状态",
width: 180,
prop: 'zhuangtai',
align: 'center'
},
{
label: "出库类型",
width: 180,
@ -128,7 +151,12 @@
]
}
},
methods: {
methods: {
getUserName(){
getInfo().then(res => {
this.userName = res.username
})
},
async getindex() {
this.loading = true
const res = await index({
@ -145,15 +173,51 @@
pageChange(e) {
this.select.pageIndex = e
this.getIndex()
this.getindex()
},
editorRuku(id, type) {
editorChuku(id, type) {
this.$refs['addoutbounds'].id = id
this.$refs['addoutbounds'].isShow = true
this.$refs['addoutbounds'].type = type
this.$refs['addoutbounds'].chukuType = this.chukuType
},
printChuku(id, type){
this.$refs['printoutbounds'].id = id
this.$refs['printoutbounds'].isShow = true
this.$refs['printoutbounds'].type = type
this.$refs['printoutbounds'].chukuType = this.chukuType
},
tofollow(id,row){
console.log(row)
if(row.id_outbounds_items_outbounds_id_relation.length<1){
Message({
type: 'warning',
message: '请补充出库物资'
})
return
}
let default_json = {
'yewukeshi':row.jieyongbumen,
'wuzimingcheng':row.id_outbounds_items_outbounds_id_relation[0].zichanmingcheng,
'lingyongshijian':row.chukushijian,
'shuliang':row.id_outbounds_items_outbounds_id_relation[0].jieyongshuliang,
'xinghaoguige':row.id_outbounds_items_outbounds_id_relation[0].guigexinghao,
'jingbanren':row.jilurenyuan,
'beizhu':row.beizhu,
'gudingzichanbianhao':row.gudingzichanbianhao,
'baofeiyuanyin':row.baofeiyuanyin,
'link_id':row.id
}
let typeid = this.chukuType=='领用'?31:(this.chukuType=='处置'?32:33)
// http://suzhouhedaooa.langye.net/admin/flow/create/31?username=admin&default_json={%22bianhao%22:%22100%22}
let url =
`${process.env.VUE_APP_OUT_URL_test}/admin/flow/create/${typeid}?username=${this.userName}&default_json=${JSON.stringify(default_json)}`
let seeBuy = window.open(url, 'follow',
`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`
)
},
deleteRuku(row) {
deleteChuku(row) {
// return
destroy({
id: row.id,
@ -166,64 +230,21 @@
this.getindex()
})
},
async getField() {
if (this.$route.meta.params?.custom_form) {
let decode = decodeURIComponent(this.$route.meta.params?.custom_form)
try {
let custom_form = JSON.parse(decode)
this.customForm.customFormId = custom_form.custom_form_id
this.customForm.tableName = custom_form.table_name
console.log("123", this.customForm)
// this.select.table_name = custom_form.table_name
} catch (err) {
console.warn(err)
}
}
const res = await fieldIndex({
page: 1,
page_size: 999,
custom_form_id: this.customForm.customFormId,
sort_name: 'sort',
sort_type: 'asc',
})
if (res.data && res.data instanceof Array) {
res.data.forEach(i => {
if (i.field) {
if (
(i.edit_input === "checkbox" || i.edit_input === "radio" || i.edit_input === "select") &&
i.parameter_id
) {
getparameter({
id: i.parameter_id
}).then((res) => {
i._paramters = res.detail ?? [];
});
}
if (
(i.edit_input === "checkbox" || i.edit_input === "radio" || i.edit_input === "select") &&
i.link_table_name
) {
index({
page: 1,
page_size: 999,
table_name: i.link_table_name,
}).then((res) => {
i._paramters = res.data ?? [];
});
}
}
})
}
this.form = res.data
},
},
mounted() {
if(this.$route.path){
let path = this.$route.path.split("_")[1]
this.chukuType = path=='receive'?'领用':(path=='disposition'?'处置':'应急')
}
// this.getField()
let tableName = path=='receive'?'lingyongchuku':(path=='disposition'?'baofeichuzhi':'yingjichuku')
getOutboundsStatus({
table:tableName
})
}
this.window.width = screen.availWidth * 0.95
this.window.height = screen.availHeight * 0.95
this.window.top = (window.screen.height - 30 - this.window.height) / 2
this.window.left = (window.screen.width - 10 - this.window.width) / 2
this.getUserName()
this.getindex()
}

@ -1,19 +1,31 @@
<template>
<div>
<xy-dialog ref="dialog" :width='70' :is-show.sync="isShow" type="form" :title="type === 'add' ? `新增${rukuTypeName}入库` : `编辑${rukuTypeName}入库`" :form="form"
:rules="rules" @submit="submit">
<template v-slot:caigouhetong v-if="form.rukuleixing=='采购'">
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>采购合同
</div>
<div class="xy-table-item-content">
<el-input type="text" @focus="isShowHt=true" v-model="form.caigouhetong"
placeholder="请选择采购合同" style="width: 300px;"></el-input>
</div>
</div>
</template>
<xy-dialog ref="dialog" :width='70' :is-show.sync="isShow" type="form"
:title="type === 'add' ? `新增${rukuTypeName}入库` : `编辑${rukuTypeName}入库`" :form="form" :rules="rules"
@submit="submit">
<template v-slot:caigouhetong v-if="form.rukuleixing=='采购'">
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>采购合同
</div>
<div class="xy-table-item-content">
<el-input type="text" @focus="isShowHt=true" v-model="form.caigouhetong" placeholder="请选择采购合同"
style="width: 300px;"></el-input>
</div>
</div>
</template>
<template v-slot:gudingzichanbianhao>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>固定资产编号
</div>
<div class="xy-table-item-content">
<el-input type="text" v-model="form.gudingzichanbianhao" placeholder="请填写固定资产编号"
style="width: 300px;"></el-input>
</div>
</div>
</template>
<template v-slot:rukushijian>
<div class="xy-table-item">
<div class="xy-table-item-label">
@ -26,7 +38,7 @@
</div>
</div>
</template>
<!-- <template v-slot:rukuleixing>
<!-- <template v-slot:rukuleixing>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>入库类型
@ -101,15 +113,12 @@
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>入库明细
</div>
<div class="xy-table-item-content">
<Button type="primary" icon="md-add" style="margin-bottom: 10px"
@click="isShowMingxi=true">新增入库明细</Button>
<!-- <Button v-if="form.rukuleixing==''" type="primary" icon="md-add" style="margin-bottom: 10px"
@click="isShowMingxi=true">新增入库明细</Button> -->
<Button type="primary" icon="md-add" style="margin-bottom: 10px" @click="isShowMingxi=true"></Button>
<Button type="primary" icon="md-add" style="margin-bottom: 10px" @click="importsRuku"></Button>
<xy-table style="width: 60%" :height="260" :is-page="false" :list="mingxiList" :table-item="mingxiTable">
<template v-slot:btns>
<el-table-column label="操作" width="90" header-align="center" align="center">
<template v-slot:default="scope">
<!-- <Button size="small" type="primary" ghost @click="editMingxi(scope.$index)"></Button> -->
<Button size="small" type="primary" ghost @click="mingxiList.splice(scope.$index, 1)">删除</Button>
</template>
</el-table-column>
@ -118,13 +127,12 @@
</div>
</div>
</template>
</xy-dialog>
</xy-dialog>
<!-- 新增明细 -->
<Modal v-model="isShowMingxi" width='650' title="新增明细" :loading='showLoading' @on-cancel='mingxiCancel'
<Modal v-model="isShowMingxi" width='600' title="新增明细" :loading='showLoading' @on-cancel='mingxiCancel'
@on-ok="mingxiConfirm">
<div class="mingxiwrap">
<div class="xy-table-item">
@ -149,6 +157,15 @@
style="width: 300px;"></el-input>
</div>
</div>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>规格型号
</div>
<div class="xy-table-item-content">
<el-input type="text" v-model="mingxiObj.guigexinghao" placeholder="请选择规格型号" disabled
style="width: 300px;"></el-input>
</div>
</div>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>物资类型
@ -157,15 +174,15 @@
<el-input type="text" v-model="mingxiObj.wuzileixing" placeholder="请选择物资类型" disabled
style="width: 300px;"></el-input>
</div>
</div>
<div class="xy-table-item" v-if="form.rukuleixing!='回库'">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>物资分类
</div>
<div class="xy-table-item-content">
<el-input type="text" v-model="mingxiObj.fenlei" placeholder="请选择物资分类" disabled
style="width: 300px;"></el-input>
</div>
</div>
<div class="xy-table-item" v-if="form.rukuleixing!='回库'">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>物资分类
</div>
<div class="xy-table-item-content">
<el-input type="text" v-model="mingxiObj.fenlei" placeholder="请选择物资分类" disabled
style="width: 300px;"></el-input>
</div>
</div>
<div class="xy-table-item">
<div class="xy-table-item-label">
@ -189,36 +206,16 @@
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>入库批次
</div>
<div class="xy-table-item-content">
<el-select
v-model="mingxiObj.rukupici"
ref='piciref'
v-if="form.rukuleixing!='回库'"
style="width: 300px;"
filterable
clearable
allow-create
default-first-option
placeholder="请选择或新增入库批次">
<el-option
v-for="item in rukupiciList"
:key="item.value"
:label="item.value"
:value="item.value">
</el-option>
</el-select>
<el-input v-else type="text" v-model="mingxiObj.rukupici" disabled placeholder="请输入入库批次" style="width: 300px;"></el-input>
</div>
</div>
<!-- <div class="xy-table-item" v-if="!mingxiObj.wuzileixing=='一类一码'">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>批次
</div>
<div class="xy-table-item-content">
<el-input type="text" v-model="mingxiObj.pici" placeholder="无" disabled
<el-select v-model="mingxiObj.rukupici" ref='piciref' v-if="form.rukuleixing!=''" style="width: 300px;"
filterable clearable allow-create default-first-option placeholder="请选择或新增入库批次">
<el-option v-for="item in rukupiciList" :key="item.value" :label="item.value" :value="item.value">
</el-option>
</el-select>
<el-input v-else type="text" v-model="mingxiObj.rukupici" disabled placeholder="请输入入库批次"
style="width: 300px;"></el-input>
</div>
</div> -->
</div>
<div class="xy-table-item">
<div class="xy-table-item-label">
@ -243,20 +240,22 @@
@on-current-change="wuziSelect" />
<Page :current="wuziPageIndex" :total="showTotal" simple
style="padding-top: 14px;display: flex;justify-content: center;" @on-change="wuziPageChange" />
</Modal>
</Modal>
<!-- 选择采购合同 -->
<Modal v-model="isShowHt" title="合同选择" width='70%' @on-cancel='htCancel' @on-ok='htComfirm'>
<div class="searchCompanys">
<el-input type="text" @keyup.enter.native="getHt" v-model="htkeyword" placeholder="请输入关键词查找"></el-input>
<el-button type="primary" @click="getHt"></el-button>
</div>
<Table highlight-row ref="currentRowTable" :columns="htColumns" :data="htList"
@on-current-change="htSelect" />
<Table highlight-row ref="currentRowTable" :columns="htColumns" :data="htList" @on-current-change="htSelect" />
<Page :current="htPageIndex" :total="htTotal" simple
style="padding-top: 14px;display: flex;justify-content: center;" @on-change="htPageChange" />
</Modal>
<detailContract ref='detailContract'></detailContract>
<imports :table-name="importstableName" :istrueimport='false' :form-info="importForm" ref="imports"
@importdata='getimportData'></imports>
</div>
</template>
@ -265,27 +264,34 @@
save,
index,
show
} from "@/api/system/baseForm.js"
import {
index as getContract
} from "@/api/system/baseForm.js"
import {
index as getContract
} from "@/api/contract.js"
import {
Message
} from 'element-ui'
import isEqual from '@/utils/index.js'
import detailContract from "../component/detailContract.vue"
import detailContract from "../component/detailContract.vue"
import imports from "@/views/component/imports.vue"
import {
index as fieldIndex
} from "@/api/system/customFormField";
export default {
components:{
detailContract
components: {
detailContract,
imports
},
data() {
return {
isShow: false,
type: 'add',
id: '',
rukuType:'',
rukuTypeName:'盘点',
id: '',
rukuType: '',
rukuTypeName: '盘点',
tableName: 'stocks',
importstableName: 'stocks_items',
customFormId: 8,
importForm: [],
cangkuList: [],
lexingoptions: [{
label: '盘点',
@ -296,11 +302,12 @@
}, {
label: '回库',
value: '回库'
}],
rukupiciList:[],
form: {
caigouhetong:'',
rukushijian: '',
}],
rukupiciList: [],
form: {
caigouhetong: '',
gudingzichanbianhao: '',
rukushijian: '',
// caigouhetong:'',
rukuleixing: '',
rukucangku: '',
@ -310,30 +317,30 @@
beizhu: '',
rukumingxi: ''
},
rules: {
rukushijian: [{
required: true,
message: '请选择入库时间'
}],
// caigouhetong: [{
// required: true,
// message: ''
// }],
jingbanren: [{
required: true,
message: '请填写经办人'
}],
jilurenyuan: [{
required: true,
message: '请填写记录人员'
}]
},
hetongoptions:[],
rules: {
rukushijian: [{
required: true,
message: '请选择入库时间'
}],
// caigouhetong: [{
// required: true,
// message: ''
// }],
jingbanren: [{
required: true,
message: '请填写经办人'
}],
jilurenyuan: [{
required: true,
message: '请填写记录人员'
}]
},
hetongoptions: [],
isShowMingxi: false,
showLoading: true,
mingxiObj: {
wuzibianma:'',
rukushuliang:''
wuzibianma: '',
rukushuliang: ''
},
mingxiObjBefore: {},
mingxiList: [],
@ -341,31 +348,40 @@
mingxiTable: [{
label: "物资编码",
prop: "wuzibianma",
width: 200
width: 180
},
{
label: "资产名称",
prop: "zichanmingcheng",
width: 200,
width: 180,
},
{
label: "规格型号",
prop: "guigexinghao",
width: 180,
},
{
label: "物资类型",
prop: "wuzileixing",
width: 200
},
width: 180
},
{
label: "计量单位",
prop: "jiliangdanwei",
width: 180
},
{
label: "入库数量",
prop: "rukushuliang",
width: 200
width: 180
}, {
label: "入库批次",
prop: "rukupici",
width: 200
width: 180
}, {
label: "在库数量",
prop: "zaikushuliang",
width: 200
width: 180
},
],
//
@ -403,129 +419,136 @@
}, {
title: '名称',
key: 'names',
},{
title:'物资类型',
key:'wuzileixing',
}],
//
isShowHt: false,
htList: [],
htPageIndex: 1,
htkeyword: '',
htTotal: 0,
editHt:'',
htColumns: [{
width: 60,
_isChecked: false,
key: "isSelect",
resizable: true,
render: (h, params) => {
return h('div', [
h('Radio', {
props: {
value: params.row.isSelect
},
on: {
'on-change': (e) => {
this.htList.forEach((items) => {
this.$set(items, 'isSelect', false)
});
this.htList[params.index].isSelect = e;
}
}
})
])
}
}, {
title: '名称',
key: 'name',
},{
title:'类型',
key:'type_name',
width:100
},{
title:'状态',
key:'status_name',
width:100
},{
title:'查看',
key:'',
width:100,
render: (h, params) => {
return h('span', {
style: {
color:'#0077CC',
cursor:'pointer'
},
on: {
'click': (e) => {
console.log("click",params.row.id)
this.$refs['detailContract'].getDetail(params.row.id)
this.$refs['detailContract'].isShowDetail = true
// @click=","
}
}
},'查看详情')
}
}]
}, {
title: '物资类型',
key: 'wuzileixing',
}],
//
isShowHt: false,
htList: [],
htPageIndex: 1,
htkeyword: '',
htTotal: 0,
editHt: '',
htColumns: [{
width: 60,
_isChecked: false,
key: "isSelect",
resizable: true,
render: (h, params) => {
return h('div', [
h('Radio', {
props: {
value: params.row.isSelect
},
on: {
'on-change': (e) => {
this.htList.forEach((items) => {
this.$set(items, 'isSelect', false)
});
this.htList[params.index].isSelect = e;
}
}
})
])
}
}, {
title: '名称',
key: 'name',
}, {
title: '类型',
key: 'type_name',
width: 100
}, {
title: '状态',
key: 'status_name',
width: 100
}, {
title: '查看',
key: '',
width: 100,
render: (h, params) => {
return h('span', {
style: {
color: '#0077CC',
cursor: 'pointer'
},
on: {
'click': (e) => {
console.log("click", params.row.id)
this.$refs['detailContract'].getDetail(params.row.id)
this.$refs['detailContract'].isShowDetail = true
// @click=","
}
}
}, '查看详情')
}
}]
}
},
created() {
this.getCangku()
this.getCangku()
},
methods: {
//
importsRuku() {
this.$refs['imports'].show()
this.getField()
},
getimportData(e) {
console.log("e", e)
this.mingxiList = e
},
//
async getHt() {
let res = await getContract({
page_size: 10,
page: this.htPageIndex,
keyword: this.htkeyword,
type: 2,
status: 2
})
for (var m of res.list.data) {
m.isSelect = false
m.type_name = m.type == 1 ? '服务' : (m.type == 2 ? '货物' : (m.type == 3 ? '工程' : '其他'))
m.status_name = m.status == 1 ? '待签订' : (m.status == 2 ? '已签订' : '')
}
console.log(res.list.data)
this.htList = res.list.data
this.htTotal = res.total
// this.hetongoptions = res.data
},
htCancel() {
this.htList.forEach((items) => {
this.$set(items, 'isSelect', false)
});
this.form.caigouhetong = this.editHt
},
htSelect(e) {
this.htList.forEach((items) => {
this.$set(items, 'isSelect', false)
if (items.id == e.id) {
this.$set(items, 'isSelect', true)
}
});
// this.getWuzi()
// this.getKucun()
},
htComfirm() {
console.log("123")
this.htList.forEach((items) => {
if (items.isSelect == true) {
this.form.caigouhetong = items.name
this.editHt = items.name
}
});
},
methods: {
async getHt(){
let res = await getContract({
page_size: 10,
page: this.htPageIndex,
keyword:this.htkeyword,
type:2,
status:2
})
for (var m of res.list.data) {
m.isSelect = false
m.type_name = m.type==1?'服务':(m.type==2?'货物':(m.type==3?'工程':'其他'))
m.status_name = m.status==1?'待签订':(m.status==2?'已签订':'')
}
console.log(res.list.data)
this.htList = res.list.data
this.htTotal = res.total
// this.hetongoptions = res.data
},
htCancel(){
this.htList.forEach((items) => {
this.$set(items, 'isSelect', false)
});
this.form.caigouhetong = this.editHt
},
htSelect(e) {
this.htList.forEach((items) => {
this.$set(items, 'isSelect', false)
if(items.id==e.id){
this.$set(items, 'isSelect', true)
}
});
},
htComfirm(){
console.log("123")
this.htList.forEach((items) => {
if(items.isSelect==true){
this.form.caigouhetong = items.name
this.editHt = items.name
}
});
},
htPageChange(e) {
console.log("e", e)
this.htPageIndex = e
this.getHt()
},
htPageChange(e) {
console.log("e", e)
this.htPageIndex = e
this.getHt()
},
//
mingxiConfirm() {
setTimeout(() => {
this.showLoading = false
@ -534,28 +557,22 @@
})
}, 500)
if(this.mingxiObj.wuzibianma==''||this.mingxiObj.rukushuliang==''){
Message({
type:'warning',
message:'请填写完整数据'
})
this.showLoading = false
return
if (this.mingxiObj.wuzibianma == '' || this.mingxiObj.rukushuliang == '') {
Message({
type: 'warning',
message: '请填写完整数据'
})
this.showLoading = false
return
}
if (this.mingxiIndex != '') {
//
// let isTrue = this.isEqual(this.mingxiObjBefore,this.mingxiObj)
// if(this.type=='editor'&&!isTrue){
// this.submitMingxi(this.mingxiObj)
// }
this.mingxiList[this.mingxiIndex - 1] = this.mingxiObj
} else {
this.mingxiList.push(this.mingxiObj)
}
this.mingxiObj = {
wuzibianma:'',
rukushuliang:''
this.mingxiObj = {
wuzibianma: '',
rukushuliang: ''
}
this.mingxiObjBefore = {}
this.mingxiIndex = ''
@ -566,9 +583,9 @@
this.wuziPageIndex = 1
},
mingxiCancel() {
this.mingxiObj = {
wuzibianma:'',
rukushuliang:''
this.mingxiObj = {
wuzibianma: '',
rukushuliang: ''
}
this.mingxiObjBefore = {}
this.mingxiIndex = ''
@ -587,38 +604,21 @@
this.isShowMingxi = true
},
showWuzi(type) {
// if (this.form.rukuleixing == '') {
// Message({
// type: 'warning',
// message: ''
// })
// return
// }
this.isShowWuzi = true
if (type == '回库') {
this.$nextTick(() => {
this.$refs.huikubianma.focus()
})
this.getKucun()
// this.showList = this.kucunList
// this.showTotal = this.kucunTotal
} else {
this.getWuzi()
// this.showList = this.wuziList
// this.showTotal = this.wuziTotal
}
},
getList() {
if (this.form.rukuleixing == '回库') {
this.getKucun()
// this.showList = this.kucunList
// this.showTotal = this.kucunTotal
} else {
this.getWuzi()
// this.showList = this.wuziList
// this.showTotal = this.wuziTotal
}
},
async getWuzi() {
@ -665,62 +665,53 @@
this.$nextTick(() => {
this.$refs.huikubianma.blur()
})
} else {
return
}
const res = await show({
id: id,
table_name: "inventorys"
})
console.log(res)
})
this.mingxiObj.wuzibianma = res.wuzibianma
this.mingxiObj.zichanmingcheng = res.zichanmingcheng
this.mingxiObj.guigexinghao = res.guigexinghao
this.mingxiObj.wuzileixing = res.wuzileixing
this.mingxiObj.jiliangdanwei = res.jiliangdanwei
this.mingxiObj.zaikushuliang = res.zaikushuliang
this.mingxiObj.rukupici = res.rukupici
console.log("this.mingxiObj",this.mingxiObj)
this.mingxiObj.rukupici = res.rukupici
this.mingxiObj.id = res.id
},
async getPici(){
let res = await index({
page_size: 999,
page: 1,
table_name: 'inventorys',
filter: [{
"key": "wuzibianma",
"op": "eq",
"value": this.mingxiObj.wuzibianma
}]
})
this.rukupiciList = []
for(var m of res.data){
this.rukupiciList.push({
value:m.rukupici,
label:m.rukupici
})
}
},
async getCangku() {
async getPici() {
let res = await index({
page_size: 999,
page: 1,
table_name: 'materialstorages',
table_name: 'inventorys',
filter: [{
"key": "wuzibianma",
"op": "eq",
"value": this.mingxiObj.wuzibianma
}]
})
this.cangkuList = res.data
this.rukupiciList = []
for (var m of res.data) {
this.rukupiciList.push({
value: m.rukupici,
label: m.rukupici
})
}
},
wuziSelect(e) {
console.log(e)
this.showList.forEach((items) => {
this.$set(items, 'isSelect', false)
if(items.id==e.id){
this.$set(items, 'isSelect', true)
}
wuziSelect(e) {
console.log(e)
this.showList.forEach((items) => {
this.$set(items, 'isSelect', false)
if (items.id == e.id) {
this.$set(items, 'isSelect', true)
}
});
if (this.form.rukuleixing == '回库') {
this.mingxiObj.wuzibianma = e.wuzibianma
this.mingxiObj.zichanmingcheng = e.zichanmingcheng
this.mingxiObj.guigexinghao = e.guigexinghao
this.mingxiObj.wuzileixing = e.wuzileixing
this.mingxiObj.jiliangdanwei = e.jiliangdanwei
this.mingxiObj.zaikushuliang = e.zaikushuliang
@ -730,12 +721,13 @@
this.mingxiObj.wuzibianma = e.wuzibianma
this.mingxiObj.zichanmingcheng = e.zichanmingcheng
this.mingxiObj.wuzileixing = e.wuzileixing
this.mingxiObj.jiliangdanwei = e.jiliangdanwei
this.mingxiObj.fenlei = e.fenlei
if(this.mingxiObj.wuzileixing=='一类一码'){
this.getPici()
}
this.mingxiObj.guigexinghao = e.guigexinghao
this.mingxiObj.jiliangdanwei = e.jiliangdanwei
this.mingxiObj.fenlei = e.fenlei
if (this.mingxiObj.wuzileixing == '一类一码') {
this.getPici()
}
}
@ -745,52 +737,36 @@
this.wuziPageIndex = e
this.getList()
},
showWuzimingxi() {
async getCangku() {
let res = await index({
page_size: 999,
page: 1,
table_name: 'materialstorages',
})
this.cangkuList = res.data
},
async getDetail() {
const res = await show({
id: this.id,
table_name: this.tableName
})
this.form = {
caigouhetong:res?.caigouhetong,
this.form = {
caigouhetong: res?.caigouhetong,
gudingzichanbianhao: res?.gudingzichanbianhao,
rukushijian: res?.rukushijian,
rukuleixing: res?.rukuleixing,
rukucangku:res.rukucangku,
rukuleixing: res?.rukuleixing,
rukucangku: res.rukucangku,
jingbanren: res?.jingbanren,
jilurenyuan: res?.jilurenyuan,
baoguanrenyuan: res?.baoguanrenyuan,
beizhu: res?.beizhu,
rukumingxi: ''
}
}
this.editHt = res?.caigouhetong
this.mingxiList = res.id_stocks_items_stocks_id_relation
},
//
async getindex() {
const res = await index({
rows: this.select.pageSize,
page: this.select.pageIndex,
table_name: this.tableName
})
this.list = res.data
this.total = res.total
},
//
submitMingxi(params, callback) {
save({
table_name: 'stocks_items',
...params
}).then(res => {
Message({
type: 'success',
message: '编辑成功'
})
})
},
submit() {
submit() {
this.form.id_stocks_items_stocks_id_relation = this.mingxiList
// return
if (this.type === 'add') {
@ -822,60 +798,56 @@
})
}
},
isEqual(objA, objB) {
//
if (objA === objB) return objA !== 0 || 1 / objA === 1 / objB;
//
if (objA == null || objB == null) return objA === objB;
//
if (Object.prototype.toString.call(objA) !== Object.prototype.toString.call(objB)) return false;
switch (Object.prototype.toString.call(objA)) {
case '[object RegExp]':
case '[object String]':
//
return '' + objA === '' + objB;
case '[object Number]':
//,NaN
if (+objA !== +objA) {
return +objB !== +objB;
}
return +objA === 0 ? 1 / +objA === 1 / objB : +objA === +objB;
case '[object Date]':
case '[object Boolean]':
return +objA === +objB;
case '[object Array]':
//
for (let i = 0; i < objA.length; i++) {
if (!this.isEqual(objA[i], objB[i])) return false;
}
return true;
case '[object Object]':
//
let keys = Object.keys(objA);
for (let i = 0; i < keys.length; i++) {
if (!this.isEqual(objA[keys[i]], objB[keys[i]])) return false;
}
keys = Object.keys(objB);
for (let i = 0; i < keys.length; i++) {
if (!this.isEqual(objA[keys[i]], objB[keys[i]])) return false;
async getField() {
const res = await fieldIndex({
page: 1,
page_size: 999,
custom_form_id: this.customFormId,
sort_name: 'sort',
sort_type: 'asc',
})
if (res.data && res.data instanceof Array) {
res.data.forEach(i => {
if (i.field) {
if (
(i.edit_input === "checkbox" || i.edit_input === "radio" || i.edit_input === "select") &&
i.parameter_id
) {
getparameter({
id: i.parameter_id
}).then((res) => {
i._paramters = res.detail ?? [];
});
}
if (
(i.edit_input === "checkbox" || i.edit_input === "radio" || i.edit_input === "select") &&
i.link_table_name
) {
index({
page: 1,
page_size: 999,
table_name: i.link_table_name,
}).then((res) => {
i._paramters = res.data ?? [];
});
}
}
return true;
default:
return false;
})
}
}
this.importForm = res.data
?.filter((i) => i.list_show)
.map((i) => {
return i
})
},
},
watch: {
isShow(newVal) {
if (newVal) {
this.form.rukuleixing = this.rukuType
this.rukuTypeName = this.rukuType=='回库'?'归还':this.rukuType
if(this.rukuType=='采购'){
this.getHt()
if (newVal) {
this.form.rukuleixing = this.rukuType
this.rukuTypeName = this.rukuType == '回库' ? '归还' : this.rukuType
if (this.rukuType == '采购') {
this.getHt()
}
if (this.type === 'editor') {
this.getDetail()

@ -90,6 +90,12 @@
type: 'index',
fixed: 'left',
width:80
},
{
label: "固定资产编号",
width: 180,
prop: 'gudingzichanbianhao',
align: 'center'
},
{
label: "入库时间",
@ -126,7 +132,7 @@
},
{
label: "备注",
// width: 200,
width: 240,
prop: 'beizhu',
align: 'left'
}
@ -159,7 +165,7 @@
pageChange(e) {
this.select.pageIndex = e
this.getIndex()
this.getindex()
},
editorRuku(id, type) {
this.$refs['addRuku'].id = id
@ -180,59 +186,6 @@
})
this.getindex()
})
},
//
async getField() {
console.log(this.$route.meta.params,"---",this.$route)
return
if (this.$route.meta.params?.custom_form) {
let decode = decodeURIComponent(this.$route.meta.params?.custom_form)
try {
let custom_form = JSON.parse(decode)
this.customForm.customFormId = custom_form.custom_form_id
this.customForm.tableName = custom_form.table_name
console.log("123", this.customForm)
// this.select.table_name = custom_form.table_name
} catch (err) {
console.warn(err)
}
}
const res = await fieldIndex({
page: 1,
page_size: 999,
custom_form_id: this.customForm.customFormId,
sort_name: 'sort',
sort_type: 'asc',
})
if (res.data && res.data instanceof Array) {
res.data.forEach(i => {
if (i.field) {
if (
(i.edit_input === "checkbox" || i.edit_input === "radio" || i.edit_input === "select") &&
i.parameter_id
) {
getparameter({
id: i.parameter_id
}).then((res) => {
i._paramters = res.detail ?? [];
});
}
if (
(i.edit_input === "checkbox" || i.edit_input === "radio" || i.edit_input === "select") &&
i.link_table_name
) {
index({
page: 1,
page_size: 999,
table_name: i.link_table_name,
}).then((res) => {
i._paramters = res.data ?? [];
});
}
}
})
}
this.form = res.data
},
},
mounted() {
@ -244,10 +197,7 @@
this.rukuType = this.rukuTypeList[k]
}
}
// this.rukuType = path=='check'?'':(path=='purchase'?'':'')
}
this.getField()
this.getindex()
}

Loading…
Cancel
Save