|
@@ -60,6 +60,39 @@
|
|
|
<superwei-combox :candidates="candidates" :isJSON="true" keyName="value"
|
|
|
placeholder="请选择或输入" v-model="item.model" @input="input_json" @select="select_json">
|
|
|
</superwei-combox>
|
|
|
+
|
|
|
+ <!-- <uv-form-item label="预计归还时间" required="required" borderBottom prop="expected_end_time" labelWidth="100" @click="showDateSelect" ref="formdata">
|
|
|
+ <uv-input v-model="formdata.expected_end_time" disabled disabledColor="#ffffff" border="none"></uv-input>
|
|
|
+ <uv-datetime-picker :minDate="new Date()" ref="datetimePicker" mode="datetime" @confirm="showDateconfirm"></uv-datetime-picker>
|
|
|
+ <template v-slot:right>
|
|
|
+ <uv-icon name="arrow-right"></uv-icon>
|
|
|
+ </template><strong></strong>
|
|
|
+ </uv-form-item> -->
|
|
|
+
|
|
|
+ <!-- <uni-combox label="所在城市" :candidates="candidates" placeholder="请选择所在城市" v-model="item.model"></uni-combox> -->
|
|
|
+ <!-- <superwei-combox :candidates="candidates" :isJSON="true" keyName="model" placeholder="请选择或输入"
|
|
|
+ v-model="item.model" @input="input_json" @select="select_json">
|
|
|
+ </superwei-combox> -->
|
|
|
+ <!-- <uni-combox :candidates="candidates" placeholder="请选择仪器" v-model="item.model"></uni-combox> -->
|
|
|
+ <!-- <picker @change="bindPickerChange" :value="index" :range="item.origins">
|
|
|
+ <view class="uni-input">{{origins[index]}}</view>
|
|
|
+ </picker> -->
|
|
|
+
|
|
|
+ <!-- <uni-section title="本地数据" type="line">
|
|
|
+ <view class="uni-px-5 uni-pb-5">
|
|
|
+ <uni-data-picker
|
|
|
+ placeholder="请选择班级"
|
|
|
+ popup-title="请选择"
|
|
|
+ :localdata="candidates"
|
|
|
+ v-model="item.model"
|
|
|
+ @change="onchange"
|
|
|
+ @nodeclick="onnodeclick"
|
|
|
+ @popupopened="onpopupopened"
|
|
|
+ @popupclosed="onpopupclosed"
|
|
|
+ @inputclick="inputclick"
|
|
|
+ ></uni-data-picker>
|
|
|
+ </view>
|
|
|
+ </uni-section> -->
|
|
|
<uv-input v-model="item.num" placeholder="数量"></uv-input>
|
|
|
<button class="button" size="mini" type="default"
|
|
|
@click="onDelArrayItem(idx)">删除</button>
|
|
@@ -335,7 +368,7 @@ export default {
|
|
|
this.pImg = data
|
|
|
})
|
|
|
uni.$on('q-sign', data => {
|
|
|
- // console.log('tempFilePath', data);
|
|
|
+ console.log('tempFilePath', data);
|
|
|
formdata.sign = data.tempFilePath;
|
|
|
|
|
|
const ctx2 = uni.createCanvasContext('myCanvasr');
|
|
@@ -350,39 +383,33 @@ export default {
|
|
|
})
|
|
|
);
|
|
|
// 获取拼接后的图片路径
|
|
|
-
|
|
|
const res = requestFileApi(
|
|
|
'/admin/ajax/upload?server=1',
|
|
|
data.tempFilePath
|
|
|
).then(d => {
|
|
|
var responseObject = JSON.parse(d);
|
|
|
var fileUrl = responseObject.data.file.url;
|
|
|
- // // 传图片接口;
|
|
|
- // const returndata = requestApi(
|
|
|
- // 'admin/ajax/saveSign?server=1',
|
|
|
- // {
|
|
|
- // sign: fileUrl
|
|
|
- // },
|
|
|
- // 'POST'
|
|
|
- // ).then(ret => {
|
|
|
- // this.signShow = true;
|
|
|
- // })
|
|
|
+ // 传图片接口;
|
|
|
+ formdata.sign =fileUrl
|
|
|
})
|
|
|
})
|
|
|
- // // 获取电子签字
|
|
|
- // const returndata = requestApi(
|
|
|
- // 'admin/ajax/getSign?server=1', 'GET'
|
|
|
- // ).then(ret => {
|
|
|
- // console.log(ret)
|
|
|
- // if (ret.code == 1) {
|
|
|
- // this.signSrc = "https://yxy.glut.cc/" + ret.data.file.sign
|
|
|
-
|
|
|
- // if (ret.data.file.sign !== '') {
|
|
|
- // this.signShow = true
|
|
|
- // }
|
|
|
- // }
|
|
|
- // })
|
|
|
-
|
|
|
+
|
|
|
+ if(formdata.sign ==null){
|
|
|
+ // 获取电子签字
|
|
|
+ const returndata = requestApi(
|
|
|
+ 'admin/ajax/getSign?server=1', 'GET'
|
|
|
+ ).then(ret => {
|
|
|
+ console.log(ret)
|
|
|
+ if (ret.code == 1) {
|
|
|
+ formdata.sign = "https://yxy.glut.cc/" + ret.data.sign[0].sign
|
|
|
+ if (ret.data.sign[0].sign !== '') {
|
|
|
+ this.signShow = true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
const getUserData = requestApi(
|
|
|
'admin/borrow.BorrowApp/add?server=1', 'GET'
|
|
|
).then(ret => {
|