@ -74,7 +74,7 @@
< view style = "padding: 20rpx 40rpx;" >
< u -form :model ="fund" ref = "form" label -position = " top " >
< u -form -item label = "名称" >
< u -input disabled v-model ="fund.name" placeholder="资产名称" > < / u -input >
< u -input v-model ="fund.name" placeholder="资产名称" > < / u -input >
< / u - f o r m - i t e m >
< u -form -item label = "盘点时间" >
< u -input disabled : value = "$moment(new Date()).format('YYYY-MM-DD')" placeholder = "盘点时间" >
@ -240,7 +240,7 @@
} ,
async confirm ( ) {
if ( ! this . fund . position || ! this . fund . assets _status ) {
if ( ! this . fund . position || ! this . fund . assets _status || ! this . fund . name ) {
androidModule . showToast ( "请填写完整信息" )
}
try {
@ -252,7 +252,7 @@
this . fund . photo = filePath [ 1 ] ? . savedFilePath
}
await executeSql ( `
update property set position = "${this.fund.position}" , worker _id = $ { this . fund . worker _id } , assets _status = "${this.fund.assets_status}" , content = "${this.fund.content}" , is _check = 1 $ { this . fund . photo ? ',photo = "' + this . fund . photo + '"' : '' } where assets _id = $ { this . fund . assets _id } ;
update property set name = "${this.fund.name}" , position = "${this.fund.position}" , worker _id = $ { this . fund . worker _id } , assets _status = "${this.fund.assets_status}" , content = "${this.fund.content}" , is _check = 1 $ { this . fund . photo ? ',photo = "' + this . fund . photo + '"' : '' } where assets _id = $ { this . fund . assets _id } ;
` )
uni . showToast ( {
icon : 'success' ,